Tests for module 'thread'.
[gnulib.git] / ChangeLog
1 2011-07-08  Bruno Haible  <bruno@clisp.org>
2
3         Tests for module 'thread'.
4         * modules/thread-tests: New file.
5         * tests/test-thread_self.c: New file.
6         * tests/test-thread_create.cc: New file.
7
8 2011-07-08  Bruno Haible  <bruno@clisp.org>
9
10         thread: Avoid gcc warnings when using gl_thread_self().
11         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
12         'void *'.
13         (gl_thread_self_pointer): Update.
14
15 2011-07-07  Bruno Haible  <bruno@clisp.org>
16
17         signal-c++-tests: Check declaration of pthread_sigmask.
18         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
19         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
20         $(LIB_PTHREAD_SIGMASK).
21
22 2011-07-07  Bruno Haible  <bruno@clisp.org>
23
24         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
25         * lib/signal.in.h (pthread_sigmask): Override if
26         REPLACE_PTHREAD_SIGMASK is 1.
27         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
28         REPLACE_PTHREAD_SIGMASK.
29         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
30         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
31         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
32         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
33         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
34
35 2011-07-07  Bruno Haible  <bruno@clisp.org>
36
37         pthread_sigmask: Ensure declaration in <signal.h>.
38         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
39         include <pthread.h>.
40         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
41         problem.
42
43 2011-07-07  Bruno Haible  <bruno@clisp.org>
44
45         pthread_sigmask: Document the module.
46         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
47
48 2011-07-07  Bruno Haible  <bruno@clisp.org>
49
50         pthread_sigmask: Follow gnulib conventions.
51         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
52         gl_PTHREAD_SIGMASK.
53         * modules/pthread_sigmask (configure.ac): Update.
54
55 2011-07-07  Bruno Haible  <bruno@clisp.org>
56
57         pthread_sigmask: Make declaration C++ safe.
58         * lib/signal.in.h: In two special conditions, just do an #include_next.
59         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
60         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
61         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
62         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
63         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
64         not REPLACE_PTHREAD_MASK.
65         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
66         not REPLACE_PTHREAD_MASK.
67         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
68
69 2011-07-07  Bruno Haible  <bruno@clisp.org>
70
71         pthread_sigmask: Fix return value.
72         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
73         * lib/pthread_sigmask.c: New file.
74         * modules/pthread_sigmask (Files): Add it.
75         (configure.ac): Invoke AC_LIBOBJ.
76
77 2011-07-07  Eric Blake  <eblake@redhat.com>
78
79         getopt: more portable argv creation
80         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
81         const, use char arrays rather than strings.
82         Suggested by Paul Eggert.
83
84 2011-07-07  Bruno Haible  <bruno@clisp.org>
85
86         Tests for module 'sigprocmask'.
87         * modules/sigprocmask-tests: New file.
88         * tests/test-sigprocmask.c: New file.
89
90 2011-07-07  Bruno Haible  <bruno@clisp.org>
91
92         float tests: Tweak.
93         * tests/test-float.c (main): Tweak skip message.
94
95 2011-07-07  Eric Blake  <eblake@redhat.com>
96
97         getopt: avoid compiler warning during configure
98         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
99         assigning string literals to non-const pointer.
100
101         getopt-gnu: avoid crash in glibc getopt
102         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
103         * tests/test-getopt.h (test_getopt): Enhance test.
104         * tests/test-getopt_long.h (test_getopt_long): Likewise.
105         * doc/posix-functions/getopt.texi (getopt): Document it.
106         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
107         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
108         Likewise.
109
110 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
111
112         getopt: handle W; without long options in getopt [BZ #12922]
113         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
114         but no long options are defined, just return 'W'.
115
116 2011-07-07  Bruno Haible  <bruno@clisp.org>
117
118         Avoid literal tabs.
119         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
120         variable containing a tab instead of a literal tab.
121         Reported by Jim Meyering.
122
123 2011-07-07  Bruno Haible  <bruno@clisp.org>
124
125         Comments.
126         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
127
128 2011-07-06  Bruno Haible  <bruno@clisp.org>
129
130         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
131         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
132         <winsock2.h>.
133         (rpl_fd_isset, FD_ISSET): New definitions, copied from
134         lib/sys_socket.in.h.
135         (close, gethostname): Hide declarations from <winsock2.h>.
136         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
137         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
138         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
139         (select): Don't override if gnulib's <sys/select.h> was already
140         included.
141         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
142         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
143         setsockopt, shutdown, select): Tweak indentation.
144
145 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
146
147         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
148         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
149         in an application that does not use the sys_select module.
150
151 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
152
153         poll: do not return 0 on timeout=-1
154         * lib/poll.c: Loop with yield if no events occured
155
156 2011-07-06  Eric Blake  <eblake@redhat.com>
157
158         pthread_sigmask: always replace when not using pthread
159         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
160         replacement when using some threading other than pthread.  Fix
161         logic bug.
162
163 2011-07-06  Bruno Haible  <bruno@clisp.org>
164
165         Comments.
166         * m4/printf.m4: Update comments about mingw.
167
168 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
169
170         sys_select: define sigset_t more portably
171         * lib/sys_select.in.h: Always include <sys/types.h>, since
172         we now need sigset_t and mingw defines it there.
173         Include <signal.h> before split inclusion guard, to avoid
174         mishaps on Solaris, whose <signal.h> eventually includes us.
175         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
176         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
177         which come from ...
178         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
179         gl_CHECK_TYPE_SIGSET_T.
180         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
181         does the real work.
182         * modules/sys_select (Depends-on): Add 'signal'.
183
184         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
185         Suggested by Bruno Haible.
186
187         pselect: Use pthread_sigmask, not sigprocmask.
188         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
189         multithreaded apps better than sigprocmask does.
190         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
191         sigprocmask directly.
192
193 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
194
195         * lib/pselect.c (pselect): Use plain name, without "rpl_".
196         Don't #undef,  since we don't need any underlying pselect.
197         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
198         (Depends-on): Add select.
199         (Link): Add $(LIBSOCKET).
200         These changes suggested by Bruno Haible.
201
202         pselect: document better
203         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
204         * doc/posix-functions/pselect.texi (pselect): Document new module.
205
206         pthread_sigmask: new module
207         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
208         * doc/posix-functions/pthread_sigmask.texi: Document new module.
209         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
210         This is done only as a macro; I don't know how well that'll
211         work for C++.  Move <sys/types.h> include before the include_next,
212         to avoid mishap on Solaris.
213         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
214         * modules/signal (Makefile.am): Substitute the check's results.
215         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
216
217         test-pselect: new module
218         * modules/pselect-tests, tests/test-pselect.c: New files.
219         * tests/test-select.c, tests/test-sys_select-c++.cc:
220         If TEST_PSELECT is defined, test pselect instead of testing select.
221
222         * tests/test-sys_select.c (sigset_t): Test for it, too.
223         Suggested by Bruno Haible.
224
225 2011-07-05  Eric Blake  <eblake@redhat.com>
226
227         snprintf: guarantee %1$d, for libintl
228         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
229         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
230         * doc/posix-functions/snprintf.texi (snprintf): Update.
231         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
232         * tests/test-snprintf.c (main): Enhance test.
233         * tests/test-vsnprintf.c (main): Likewise.
234
235 2011-07-05  Jim Meyering  <meyering@redhat.com>
236
237         maint: exempt stdio-read.c and stdio-write.c from the cppi check
238         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
239         per Bruno's request, to accommodate this idiom (no space after "#")
240         even when the function is inside an #if block:
241         char *
242         gets (char *s)
243         #undef gets
244         {
245           ...
246         }
247
248 2011-07-04  Jim Meyering  <meyering@redhat.com>
249
250         maint: indent with spaces, not TABs, and add a rule to check this
251         * tests/test-userspec.c: Indent with spaces, not TABs.
252         * tests/test-argp.c: Likewise.
253         * tests/test-c-stack2.sh: Likewise.
254         * tests/test-parse-duration.sh: Likewise
255         * m4/strtod.m4: Likewise.
256         * m4/alloca.m4: Likewise.
257         * m4/pselect.m4: Likewise.
258         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
259
260 2011-07-03  Jim Meyering  <meyering@redhat.com>
261
262         maint.mk: correct omissions in prohibit_argmatch_without_use check
263         This rule would mistakenly report that argmatch.h is included without
264         use even when both the argmatch and invalid_arg macro were used.
265         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
266         of argmatch and invalid_arg.
267
268 2011-07-03  Bruno Haible  <bruno@clisp.org>
269
270         Comments about EINTR.
271         * lib/safe-read.h: Explain the purpose of this module.
272         * lib/safe-write.h: Likewise.
273         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
274         module.
275         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
276         module.
277         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
278
279 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
280
281         xnanosleep: Rewrite to use new dtotimespec module.
282         It has the conversion code that used to be in xnanosleep.
283         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
284         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
285         (TIME_T_MAX): Remove.
286         (xnanosleep): Rewrite in terms of dtotimespec.
287         * modules/xnanosleep (Depends-on): Add dtotimespec.
288         Remove intprops, stdbool.
289
290         timespec-add, timespec-sub: new modules
291         * lib/timespec.h (timespec_add, timespec_sub): New decls.
292         * lib/timespec-add.c, lib/timespec-sub.c:
293         * modules/timespec-add, modules/timespec-sub: New files.
294
295         dtotimespec: new module
296         * lib/timespec.h (dtotimespec): New decl.
297         * lib/dtotimespec.c, modules/dtotimespec: New files.
298
299         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
300
301         pselect: new module
302         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
303         (pselect): New decls.
304         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
305         since the standard pselect decl uses 'restrict'.
306         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
307         HAVE_PSELECT, REPLACE_PSELECT.
308         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
309         HAVE_PSELECT, REPLACE_PSELECT.
310         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
311
312         sys_select: don't depend on sys_socket
313         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
314         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
315         This fix works on GNU and GNU-like platforms, but has not been tested
316         on native Windows.
317         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
318         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
319         gl_HEADER_SYS_SOCKET.
320         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
321         gl_PREREQ_SYS_H_WINSOCK2.
322
323 2011-06-29  Eric Blake  <eblake@redhat.com>
324
325         pipe2: fix C89 compile problem
326         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
327         Reported by Bruno Haible.
328
329         pipe, pipe2: don't corrupt fd on error
330         * lib/pipe.c (pipe): Leave fd unchanged on error.
331         * lib/pipe2.c (pipe2): Likewise.
332         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
333         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
334
335 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
336
337         mmap-anon: do not use regular expressions inadvertently
338         * m4/mmap-anon.m4: Remove trailing period from strings sought
339         in the output.
340
341 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
342
343         nanosleep: fix integer overflow problem
344         * lib/nanosleep.c (my_usleep): Don't assume signed integer
345         arithmetic wraps around on overflow.
346
347         nanosleep: simplify carrying
348         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
349         first call to the underyling nanosleep, not for the last one.
350         This doesn't fix any bugs, but it simplifies the computation of
351         the remaining delay.  Found while auditing integer overflow issues.
352
353         dup2: remove test for existence of fcntl
354         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
355         "#if HAVE_FCNTL", in the configure-time test program.
356         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
357         and therefore speeds up "configure" a bit.  Found while
358         adding the dup2 module to Emacs.
359
360 2011-06-24  Eric Blake  <eblake@redhat.com>
361
362         maint.mk: enhance useless header checks
363         * top/maint.mk (_sc_header_without_use): Check both include
364         styles.
365         (sc_prohibit_assert_without_use)
366         (sc_prohibit_close_stream_without_use)
367         (sc_prohibit_getopt_without_use)
368         (sc_prohibit_quotearg_without_use)
369         (sc_prohibit_quote_without_use)
370         (sc_prohibit_long_options_without_use)
371         (sc_prohibit_inttostr_without_use)
372         (sc_prohibit_ignore_value_without_use)
373         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
374         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
375         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
376         (sc_prohibit_hash_pjw_without_use)
377         (sc_prohibit_safe_read_without_use)
378         (sc_prohibit_argmatch_without_use)
379         (sc_prohibit_canonicalize_without_use)
380         (sc_prohibit_root_dev_ino_without_use)
381         (sc_prohibit_openat_without_use)
382         (sc_prohibit_c_ctype_without_use)
383         (sc_prohibit_signal_without_use)
384         (sc_prohibit_stdio--_without_use)
385         (sc_prohibit_stdio-safer_without_use)
386         (sc_prohibit_strings_without_use)
387         (sc_prohibit_intprops_without_use)
388         (sc_prohibit_stddef_without_use)
389         (sc_prohibit_xfreopen_without_use): Update clients.
390
391 2011-06-24  Jim Meyering  <meyering@redhat.com>
392
393         syntax-check: keep one maint.mk rule in sync with its header
394         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
395         of the bug Eric has just fixed, with today's commit 25e4c2ec.
396         I prefer to avoid temporary files here, so use <(...), but that
397         is not supported by /bin/sh, so...
398         (SHELL): Define to /bin/bash.
399
400 2011-06-24  Eric Blake  <eblake@redhat.com>
401
402         maint.mk: update sc_prohibit_intprops_without_use
403         * top/maint.mk (_intprops_names): Match recent changes.
404
405 2011-06-24  Bruno Haible  <bruno@clisp.org>
406
407         strerror-override: No-op tweak.
408         * lib/strerror-override.h (strerror_override): Reorder conditions,
409         for consistency with lib/strerror-override.c.
410
411 2011-06-23  Eric Blake  <eblake@redhat.com>
412
413         maint.mk: test further PATH_MAX issues
414         * top/maint.mk (sc_prohibit_path_max_array): Rename...
415         (sc_prohibit_path_max_allocation): ...and also test alloca.
416         Suggested by Jim Meyering.
417
418 2011-06-22  Eric Blake  <eblake@redhat.com>
419
420         maint.mk: add syntax-check to avoid char[PATH_MAX]
421         * top/maint.mk (sc_prohibit_path_max_array): New rule.
422
423         stat: be robust to PATH_MAX definition
424         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
425         * modules/stat (Depends-on): Add verify.
426
427         link: work around IRIX bug
428         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
429         * lib/link.c (rpl_link): Work around it.
430         * tests/test-link.h (test_link): Enhance test.
431         * doc/posix-functions/link.texi (link): Document the bug.
432
433         getopt: silence clang warning
434         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
435         dereference.
436         Reported by Gustavo Martin Domato.
437
438 2011-06-22  Jim Meyering  <meyering@redhat.com>
439
440         bootstrap: do not insert a blank line into each .gitignore file
441         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
442
443 2011-06-21  Eric Blake  <eblake@redhat.com>
444
445         perror: test for output mismatch
446         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
447         perror on IRIX.
448
449         strerror_r: fix OpenBSD behavior on out-of-range
450         * lib/strerror_r.c (strerror_r): Always use maximal string.
451         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
452
453         strerror_r: fix OpenBSD behavior on 0
454         * lib/strerror-override.c (strerror_override): Also override 0
455         when needed.
456         * lib/strerror-override.h (strerror_override): Likewise.
457         * lib/strerror.c (strerror): Simplify, now that 0 override is done
458         earlier.
459         * lib/strerror_r.c (strerror_r): Likewise.
460         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
461         behavior...
462         (gl_FUNC_STRERROR_0): ...into new macro.
463         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
464         is overridden.
465         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
466         * modules/strerror-override (Files): Add strerror.m4.
467         (configure.ac): Also provide override for 0 when needed.
468         * doc/posix-functions/strerror.texi (strerror): Document this.
469         * doc/posix-functions/perror.texi (perror): Likewise.
470
471         perror: adjust array size
472         * modules/perror (Depends-on): Add strerror-override.
473         * lib/perror.c (perror): Use it to avoid magic number.
474
475         strerror-override: reduce size
476         * lib/strerror-override.c (strerror_override): Use fewer lines.
477
478 2011-06-20  Bruno Haible  <bruno@clisp.org>
479
480         pathmax: Ensure correct value for PATH_MAX on HP-UX.
481         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
482
483 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
484
485         alloca: port to compilers that can optimize like GCC 4.6.0
486         * lib/alloca.c (find_stack_direction): New signature, taken from
487         Autoconf git.  This works with GCC 4.6.0.  This code should never
488         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
489         be used with other compilers that optimize as well as GCC 4.6.0 does.
490         (alloca): Adjust to new signature.
491         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
492         New macro, which patches Autoconf in a similar way.
493
494         c-stack: stop worrying about stack direction
495         * lib/c-stack.c (find_stack_direction): Remove.
496         (segv_handler): Don't worry about stack direction growth, as it's
497         too much of a pain to configure this correctly, given how compilers
498         are optimizing-away our stack-growth detection code.  Instead, assume
499         that any access to just before or just after the stack is OK.
500         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
501         Don't require AC_FUNC_ALLOCA; no longer needed.
502
503 2011-06-20  Eric Blake  <eblake@redhat.com>
504
505         test-stat: don't allocate PATH_MAX bytes
506         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
507         PATH_MAX-sized buffer.
508         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
509         * modules/stat-tests (Depends-on): Likewise.
510         * tests/test-fstatat.c (includes): Drop pathmax.h.
511         * tests/test-stat.c (includes): Likewise.
512         Reported by Bruno Haible.
513
514 2011-06-20  Bruno Haible  <bruno@clisp.org>
515
516         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
517         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
518         * lib/float.c: New file.
519         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
520         REPLACE_FLOAT_LDBL.
521         * modules/float (Files): Add lib/float.c.
522         (configure.ac): Invoke AC_LIBOBJ.
523         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
524
525 2011-06-20  Bruno Haible  <bruno@clisp.org>
526
527         Tests for module 'float'.
528         * modules/float-tests: New file.
529         * tests/test-float.c: New file.
530
531 2011-06-19  Bruno Haible  <bruno@clisp.org>
532
533         isinf: Coding style.
534         * lib/isinf.c: Use GNU coding style.
535
536 2011-06-19  Bruno Haible  <bruno@clisp.org>
537
538         linkat test: Avoid test failure on AIX 7.1.
539         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
540         * tests/test-link.h (test_link): Likewise.
541
542 2011-06-19  Bruno Haible  <bruno@clisp.org>
543
544         pread test: Avoid test failure on OpenBSD 4.9.
545         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
546
547 2011-06-19  Bruno Haible  <bruno@clisp.org>
548
549         sprintf-posix: Fix test failure on AIX 7.1.
550         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
551         * doc/posix-functions/dprintf.texi: Mention limited precision problem
552         on AIX.
553         * doc/posix-functions/fprintf.texi: Likewise.
554         * doc/posix-functions/printf.texi: Likewise.
555         * doc/posix-functions/snprintf.texi: Likewise.
556         * doc/posix-functions/sprintf.texi: Likewise.
557         * doc/posix-functions/vdprintf.texi: Likewise.
558         * doc/posix-functions/vfprintf.texi: Likewise.
559         * doc/posix-functions/vprintf.texi: Likewise.
560         * doc/posix-functions/vsnprintf.texi: Likewise.
561         * doc/posix-functions/vsprintf.texi: Likewise.
562
563 2011-06-19  Bruno Haible  <bruno@clisp.org>
564
565         roundl-ieee: Fix test failure on AIX 7.1.
566         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
567         * doc/posix-functions/roundl.texi: Mention problem with negative
568         arguments.
569
570 2011-06-19  Bruno Haible  <bruno@clisp.org>
571
572         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
573         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
574         * doc/posix-functions/round.texi: Mention problem with negative
575         arguments.
576         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
577
578 2011-06-19  Bruno Haible  <bruno@clisp.org>
579
580         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
581         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
582         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
583         * doc/posix-functions/roundf.texi: Mention problem with negative
584         arguments.
585         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
586
587 2011-06-19  Bruno Haible  <bruno@clisp.org>
588
589         ceilf-ieee: Work around bug on MacOS X 10.5.
590         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
591
592         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
593         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
594         IEEE compliant, avoid compiler optimizations.
595         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
596         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
597         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
598         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
599         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
600         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
601         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
602         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
603         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
604         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
605
606 2011-06-19  Bruno Haible  <bruno@clisp.org>
607
608         ceilf-ieee: Work around bug on AIX 7.1.
609         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
610         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
611
612 2011-06-19  Bruno Haible  <bruno@clisp.org>
613
614         ceil-ieee: Work around bug on AIX 7.1.
615         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
616         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
617
618 2011-06-18  Bruno Haible  <bruno@clisp.org>
619
620         fsync test: Avoid test failure on MacOS X and AIX.
621         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
622         EINVAL.
623
624 2011-06-18  Bruno Haible  <bruno@clisp.org>
625
626         openat, fdopendir tests: Fix link errors.
627         * modules/openat-tests (Depends-on): Add progname.
628         * modules/fdopendir-tests (Depends-on): Likewise.
629         * tests/test-fchownat.c: Include progname.h.
630         (main): Call set_program_name.
631         * tests/test-fstatat.c: Include progname.h.
632         (main): Call set_program_name.
633         * tests/test-mkdirat.c: Include progname.h.
634         (main): Call set_program_name.
635         * tests/test-openat.c: Include progname.h.
636         (main): Call set_program_name.
637         * tests/test-unlinkat.c: Include progname.h.
638         (main): Call set_program_name.
639         * tests/test-fdopendir.c: Include progname.h.
640         (main): Call set_program_name.
641
642 2011-06-18  Bruno Haible  <bruno@clisp.org>
643
644         Doc update.
645         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
646         HP-UX.
647         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
648
649 2011-06-18  Bruno Haible  <bruno@clisp.org>
650
651         getcwd tests: Avoid compilation error on HP-UX 11.31.
652         * modules/getcwd-tests (Depends-on): Add pathmax.
653         * tests/test-getcwd.c: Include pathmax.h.
654
655 2011-06-18  Bruno Haible  <bruno@clisp.org>
656
657         isfinite, isinf: Fix link error on AIX 6 and 7.
658         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
659         needed, also test the macro with a 'float' argument.
660         * m4/isinf.m4 (gl_ISINF): Likewise.
661
662 2011-06-18  Bruno Haible  <bruno@clisp.org>
663
664         getloadavg: Don't clobber LIBS. Regression from previous commit.
665         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
666         AC_CHECK_LIB from here...
667         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
668         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
669         gl_func_getloadavg_done.
670         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
671
672 2011-06-18  Bruno Haible  <bruno@clisp.org>
673
674         clean-temp: Improve documentation.
675         * lib/clean-temp.h: Explain better how to use this module.
676         Reported by John Darrington <john@darrington.wattle.id.au>.
677
678 2011-06-17  Bruno Haible  <bruno@clisp.org>
679
680         pread, pwrite: Avoid cc warning on AIX.
681         * lib/unistd.in.h (pread): Undefine before defining as a macro.
682         (pwrite): Likewise.
683
684 2011-06-17  Bruno Haible  <bruno@clisp.org>
685
686         spawn-pipe tests: Fix link error.
687         * tests/test-spawn-pipe-child.c: Undefine fprintf.
688         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
689
690 2011-06-17  Bruno Haible  <bruno@clisp.org>
691
692         Tests: Remove unnecessary dependency.
693         * modules/canonicalize-tests (Depends-on): Remove progname.
694         * modules/chown-tests (Depends-on): Likewise.
695         * modules/dirname-tests (Depends-on): Likewise.
696         * modules/fdopendir-tests (Depends-on): Likewise.
697         * modules/fdutimensat-tests (Depends-on): Likewise.
698         * modules/hash-tests (Depends-on): Likewise.
699         * modules/lchown-tests (Depends-on): Likewise.
700         * modules/linkat-tests (Depends-on): Likewise.
701         * modules/renameat-tests (Depends-on): Likewise.
702         * modules/spawn-pipe-tests (Depends-on): Likewise.
703         * modules/utimensat-tests (Depends-on): Likewise.
704
705 2011-06-17  Bruno Haible  <bruno@clisp.org>
706
707         spawn-pipe tests: Fix link error.
708         * tests/test-spawn-pipe-child.c: Undefine fflush.
709
710 2011-06-17  Bruno Haible  <bruno@clisp.org>
711
712         Fix tests link errors.
713         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
714         * modules/chown-tests (Makefile.am): Don't link test-chown with
715         LIBINTL.
716         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
717         LIBINTL.
718         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
719         LIBINTL.
720         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
721         LIBINTL.
722
723 2011-06-16  Bruno Haible  <bruno@clisp.org>
724
725         crypto/gc-sha1: Fix recent regression.
726         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
727         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
728
729         crypto/gc-md5: Fix recent regression.
730         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
731
732         crypto/gc-md4: Fix recent regression.
733         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
734         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
735
736         crypto/gc-arctwo: Fix recent regression.
737         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
738         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
739
740         crypto/gc-rijndael: Fix recent regression.
741         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
742         (configure.ac): Invoke AC_LIBOBJ here.
743         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
744         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
745
746         crypto/gc-hmac-sha1: Fix recent regression.
747         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
748         (configure.ac): Invoke AC_LIBOBJ here.
749         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
750         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
751
752         crypto/gc-hmac-md5: Fix recent regression.
753         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
754         (configure.ac): Invoke AC_LIBOBJ here.
755         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
756         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
757
758         crypto/gc-des: Fix recent regression.
759         * modules/crypto/gc-des (Files): Remove m4/des.m4.
760         (configure.ac): Invoke AC_LIBOBJ here.
761         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
762         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
763
764         crypto/gc-arcfour: Fix recent regression.
765         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
766         (configure.ac): Invoke AC_LIBOBJ here.
767         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
768         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
769
770 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
771
772         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
773         After the 2011-05-21 change, this macro requires
774         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
775         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
776
777 2011-06-16  Bruno Haible  <bruno@clisp.org>
778
779         fprintftime: Move AC_LIBOBJ invocations to module description.
780         * m4/fprintftime.m4: Remove file.
781         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
782         (configure.ac): Remove gl_FPRINTFTIME call.
783         (Makefile.am): Augment lib_SOURCES.
784         Reported by Jim Meyering.
785
786 2011-06-16  Bruno Haible  <bruno@clisp.org>
787
788         tmpfile-safer: Finish 2011-05-23 commit.
789         * m4/stdio-safer.m4: Really remove file.
790         Reported by Jim Meyering.
791
792 2011-06-16  Bruno Haible  <bruno@clisp.org>
793
794         syntax-check: Fix typo.
795         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
796         printf-posix.m4.
797         Reported by Jim Meyering.
798
799 2011-06-13  Jim Meyering  <meyering@redhat.com>
800
801         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
802         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
803
804 2011-05-23  Bruno Haible  <bruno@clisp.org>
805
806         yesno: Move AC_LIBOBJ invocations to module description.
807         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
808         * modules/yesno (Makefile.am): Augment lib_SOURCES.
809
810 2011-05-23  Bruno Haible  <bruno@clisp.org>
811
812         xstrtol: Move AC_LIBOBJ invocations to module description.
813         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
814         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
815
816 2011-05-23  Bruno Haible  <bruno@clisp.org>
817
818         xstrtold: Move AC_LIBOBJ invocations to module description.
819         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
820         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
821
822 2011-05-23  Bruno Haible  <bruno@clisp.org>
823
824         xstrtod: Move AC_LIBOBJ invocations to module description.
825         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
826         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
827
828 2011-05-23  Bruno Haible  <bruno@clisp.org>
829
830         xnanosleep: Move AC_LIBOBJ invocations to module description.
831         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
832         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
833
834 2011-05-23  Bruno Haible  <bruno@clisp.org>
835
836         xgetcwd: Move AC_LIBOBJ invocations to module description.
837         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
838         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
839
840 2011-05-23  Bruno Haible  <bruno@clisp.org>
841
842         xalloc: Move AC_LIBOBJ invocations to module description.
843         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
844         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
845
846 2011-05-23  Bruno Haible  <bruno@clisp.org>
847
848         write-any-file: Move AC_LIBOBJ invocations to module description.
849         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
850         invocation.
851         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
852
853 2011-05-23  Bruno Haible  <bruno@clisp.org>
854
855         utimens: Move AC_LIBOBJ invocations to module description.
856         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
857         * modules/utimens (Makefile.am): Augment lib_SOURCES.
858
859 2011-05-23  Bruno Haible  <bruno@clisp.org>
860
861         utimecmp: Move AC_LIBOBJ invocations to module description.
862         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
863         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
864
865 2011-05-23  Bruno Haible  <bruno@clisp.org>
866
867         userspec: Move AC_LIBOBJ invocations to module description.
868         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
869         * modules/userspec (Makefile.am): Augment lib_SOURCES.
870
871 2011-05-23  Bruno Haible  <bruno@clisp.org>
872
873         unlinkdir: Move AC_LIBOBJ invocations to module description.
874         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
875         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
876
877 2011-05-23  Bruno Haible  <bruno@clisp.org>
878
879         unistd-safer: Move AC_LIBOBJ invocations to module description.
880         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
881         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
882
883 2011-05-23  Bruno Haible  <bruno@clisp.org>
884
885         tempname: Move AC_LIBOBJ invocations to module description.
886         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
887         * modules/tempname (Makefile.am): Augment lib_SOURCES.
888
889 2011-05-23  Bruno Haible  <bruno@clisp.org>
890
891         strftime: Move AC_LIBOBJ invocations to module description.
892         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
893         * modules/strftime (Makefile.am): Augment lib_SOURCES.
894
895 2011-05-23  Bruno Haible  <bruno@clisp.org>
896
897         stdlib-safer: Move AC_LIBOBJ invocations to module description.
898         * m4/stdlib-safer.m4: Remove file.
899         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
900         (configure.ac): Remove gl_STDLIB_SAFER call.
901         (Makefile.am): Augment lib_SOURCES.
902
903 2011-05-23  Bruno Haible  <bruno@clisp.org>
904
905         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
906         * m4/stdio-safer.m4: Remove file.
907         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
908         (configure.ac): Remove gl_TMPFILE_SAFER call.
909         (Makefile.am): Augment lib_SOURCES.
910
911 2011-05-23  Bruno Haible  <bruno@clisp.org>
912
913         popen-safer: Move AC_LIBOBJ invocations to module description.
914         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
915         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
916         (configure.ac): Remove gl_POPEN_SAFER call.
917         (Makefile.am): Augment lib_SOURCES.
918
919 2011-05-23  Bruno Haible  <bruno@clisp.org>
920
921         freopen-safer: Move AC_LIBOBJ invocations to module description.
922         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
923         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
924         (configure.ac): Remove gl_FREOPEN_SAFER call.
925         (Makefile.am): Augment lib_SOURCES.
926
927 2011-05-23  Bruno Haible  <bruno@clisp.org>
928
929         fopen-safer: Move AC_LIBOBJ invocations to module description.
930         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
931         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
932         (configure.ac): Remove gl_FOPEN_SAFER call.
933         (Makefile.am): Augment lib_SOURCES.
934
935 2011-05-23  Bruno Haible  <bruno@clisp.org>
936
937         crypto/sha512: Move AC_LIBOBJ invocations to module description.
938         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
939         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
940
941 2011-05-23  Bruno Haible  <bruno@clisp.org>
942
943         crypto/sha256: Move AC_LIBOBJ invocations to module description.
944         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
945         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
946
947 2011-05-23  Bruno Haible  <bruno@clisp.org>
948
949         crypto/sha1: Move AC_LIBOBJ invocations to module description.
950         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
951         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
952
953 2011-05-23  Bruno Haible  <bruno@clisp.org>
954
955         settime: Move AC_LIBOBJ invocations to module description.
956         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
957         * modules/settime (Makefile.am): Augment lib_SOURCES.
958
959 2011-05-23  Bruno Haible  <bruno@clisp.org>
960
961         savedir: Move AC_LIBOBJ invocations to module description.
962         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
963         * modules/savedir (Makefile.am): Augment lib_SOURCES.
964
965 2011-05-23  Bruno Haible  <bruno@clisp.org>
966
967         save-cwd: Move AC_LIBOBJ invocations to module description.
968         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
969         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
970
971 2011-05-23  Bruno Haible  <bruno@clisp.org>
972
973         same: Move AC_LIBOBJ invocations to module description.
974         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
975         * modules/same (Makefile.am): Augment lib_SOURCES.
976
977 2011-05-23  Bruno Haible  <bruno@clisp.org>
978
979         safe-write: Move AC_LIBOBJ invocations to module description.
980         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
981         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
982         instead of gl_SAFE_WRITE.
983         (Makefile.am): Augment lib_SOURCES.
984
985 2011-05-23  Bruno Haible  <bruno@clisp.org>
986
987         safe-read: Move AC_LIBOBJ invocations to module description.
988         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
989         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
990         of gl_SAFE_READ.
991         (Makefile.am): Augment lib_SOURCES.
992
993 2011-05-23  Bruno Haible  <bruno@clisp.org>
994
995         safe-alloc: Move AC_LIBOBJ invocations to module description.
996         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
997         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
998
999 2011-05-23  Bruno Haible  <bruno@clisp.org>
1000
1001         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
1002         * m4/rijndael.m4: Remove file.
1003         * modules/crypto/rijndael (Files): Remove it.
1004         (configure.ac): Remove gl_RIJNDAEL call.
1005         (Makefile.am): Augment lib_SOURCES.
1006
1007 2011-05-23  Bruno Haible  <bruno@clisp.org>
1008
1009         readtokens: Move AC_LIBOBJ invocations to module description.
1010         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
1011         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
1012
1013 2011-05-23  Bruno Haible  <bruno@clisp.org>
1014
1015         read-file: Move AC_LIBOBJ invocations to module description.
1016         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
1017         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
1018         of gl_FUNC_READ_FILE.
1019         (Makefile.am): Augment lib_SOURCES.
1020
1021 2011-05-23  Bruno Haible  <bruno@clisp.org>
1022
1023         quotearg: Move AC_LIBOBJ invocations to module description.
1024         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
1025         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
1026
1027 2011-05-23  Bruno Haible  <bruno@clisp.org>
1028
1029         quote: Move AC_LIBOBJ invocations to module description.
1030         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
1031         * modules/quote (Makefile.am): Augment lib_SOURCES.
1032
1033 2011-05-23  Bruno Haible  <bruno@clisp.org>
1034
1035         posixver: Move AC_LIBOBJ invocations to module description.
1036         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
1037         * modules/posixver (Makefile.am): Augment lib_SOURCES.
1038
1039 2011-05-23  Bruno Haible  <bruno@clisp.org>
1040
1041         posixtm: Move AC_LIBOBJ invocations to module description.
1042         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
1043         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
1044
1045 2011-05-23  Bruno Haible  <bruno@clisp.org>
1046
1047         physmem: Move AC_LIBOBJ invocations to module description.
1048         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
1049         * modules/physmem (Makefile.am): Augment lib_SOURCES.
1050
1051 2011-05-23  Bruno Haible  <bruno@clisp.org>
1052
1053         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
1054         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
1055         invocation.
1056         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
1057
1058 2011-05-23  Bruno Haible  <bruno@clisp.org>
1059
1060         mpsort: Move AC_LIBOBJ invocations to module description.
1061         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
1062         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
1063
1064 2011-05-23  Bruno Haible  <bruno@clisp.org>
1065
1066         modechange: Move AC_LIBOBJ invocations to module description.
1067         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
1068         * modules/modechange (Makefile.am): Augment lib_SOURCES.
1069
1070 2011-05-23  Bruno Haible  <bruno@clisp.org>
1071
1072         mkdir-p: Move AC_LIBOBJ invocations to module description.
1073         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
1074         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
1075
1076 2011-05-23  Bruno Haible  <bruno@clisp.org>
1077
1078         mkancesdirs: Move AC_LIBOBJ invocations to module description.
1079         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
1080         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
1081
1082 2011-05-23  Bruno Haible  <bruno@clisp.org>
1083
1084         mgetgroups: Move AC_LIBOBJ invocations to module description.
1085         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
1086         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
1087
1088 2011-05-23  Bruno Haible  <bruno@clisp.org>
1089
1090         memxor: Move AC_LIBOBJ invocations to module description.
1091         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
1092         * modules/memxor (Makefile.am): Augment lib_SOURCES.
1093
1094 2011-05-23  Bruno Haible  <bruno@clisp.org>
1095
1096         memcoll: Move AC_LIBOBJ invocations to module description.
1097         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
1098         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
1099
1100 2011-05-23  Bruno Haible  <bruno@clisp.org>
1101
1102         memcasecmp: Move AC_LIBOBJ invocations to module description.
1103         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
1104         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
1105
1106 2011-05-23  Bruno Haible  <bruno@clisp.org>
1107
1108         crypto/md5: Move AC_LIBOBJ invocations to module description.
1109         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
1110         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
1111
1112 2011-05-23  Bruno Haible  <bruno@clisp.org>
1113
1114         crypto/md4: Move AC_LIBOBJ invocations to module description.
1115         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
1116         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
1117
1118 2011-05-23  Bruno Haible  <bruno@clisp.org>
1119
1120         crypto/md2: Move AC_LIBOBJ invocations to module description.
1121         * m4/md2.m4: Remove file.
1122         * modules/crypto/md2 (Files): Remove it.
1123         (configure.ac): Remove gl_MD2 call.
1124         (Makefile.am): Augment lib_SOURCES.
1125
1126 2011-05-23  Bruno Haible  <bruno@clisp.org>
1127
1128         long-options: Move AC_LIBOBJ invocations to module description.
1129         * m4/long-options.m4: Remove file.
1130         * modules/long-options (Files): Remove it.
1131         (configure.ac): Remove gl_LONG_OPTIONS call.
1132         (Makefile.am): Augment lib_SOURCES.
1133
1134 2011-05-23  Bruno Haible  <bruno@clisp.org>
1135
1136         i-ring: Move AC_LIBOBJ invocations to module description.
1137         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
1138         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
1139
1140 2011-05-23  Bruno Haible  <bruno@clisp.org>
1141
1142         idcache: Move AC_LIBOBJ invocations to module description.
1143         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
1144         * modules/idcache (Makefile.am): Augment lib_SOURCES.
1145
1146 2011-05-23  Bruno Haible  <bruno@clisp.org>
1147
1148         human: Move AC_LIBOBJ invocations to module description.
1149         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
1150         * modules/human (Makefile.am): Augment lib_SOURCES.
1151
1152 2011-05-23  Bruno Haible  <bruno@clisp.org>
1153
1154         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
1155         * m4/hmac-sha1.m4: Remove file.
1156         * modules/crypto/hmac-sha1 (Files): Remove it.
1157         (configure.ac): Remove gl_HMAC_SHA1 call.
1158         (Makefile.am): Augment lib_SOURCES.
1159
1160 2011-05-23  Bruno Haible  <bruno@clisp.org>
1161
1162         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
1163         * m4/hmac-md5.m4: Remove file.
1164         * modules/crypto/hmac-md5 (Files): Remove it.
1165         (configure.ac): Remove gl_HMAC_MD5 call.
1166         (Makefile.am): Augment lib_SOURCES.
1167
1168 2011-05-23  Bruno Haible  <bruno@clisp.org>
1169
1170         hash: Move AC_LIBOBJ invocations to module description.
1171         * m4/hash.m4: Remove file.
1172         * modules/hash (Files): Remove it.
1173         (configure.ac): Remove gl_HASH call.
1174         (Makefile.am): Augment lib_SOURCES.
1175
1176 2011-05-23  Bruno Haible  <bruno@clisp.org>
1177
1178         hard-locale: Move AC_LIBOBJ invocations to module description.
1179         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
1180         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
1181
1182 2011-05-23  Bruno Haible  <bruno@clisp.org>
1183
1184         getugroups: Move AC_LIBOBJ invocations to module description.
1185         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
1186         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
1187
1188 2011-05-23  Bruno Haible  <bruno@clisp.org>
1189
1190         gettime: Move AC_LIBOBJ invocations to module description.
1191         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
1192         * modules/gettime (Makefile.am): Augment lib_SOURCES.
1193
1194 2011-05-23  Bruno Haible  <bruno@clisp.org>
1195
1196         getndelim2: Move AC_LIBOBJ invocations to module description.
1197         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
1198         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
1199
1200 2011-05-23  Bruno Haible  <bruno@clisp.org>
1201
1202         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
1203         * m4/gc-pbkdf2-sha1.m4: Remove file.
1204         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
1205         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
1206         (Makefile.am): Augment lib_SOURCES.
1207
1208 2011-05-23  Bruno Haible  <bruno@clisp.org>
1209
1210         fts: Move AC_LIBOBJ invocations to module description.
1211         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
1212         * modules/fts (configure.ac): ... to here.
1213
1214 2011-05-23  Bruno Haible  <bruno@clisp.org>
1215
1216         file-type: Move AC_LIBOBJ invocations to module description.
1217         * m4/file-type.m4: Remove file.
1218         * modules/file-type (Files): Remove it.
1219         (configure.ac): Remove gl_FILE_TYPE call.
1220         (Makefile.am): Augment lib_SOURCES.
1221
1222 2011-05-23  Bruno Haible  <bruno@clisp.org>
1223
1224         filenamecat*: Respect rules for use of AC_LIBOBJ.
1225         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
1226         Remove AC_LIBOBJ invocation.
1227         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
1228         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
1229
1230 2011-05-23  Bruno Haible  <bruno@clisp.org>
1231
1232         filemode: Move AC_LIBOBJ invocations to module description.
1233         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
1234         * modules/filemode (Makefile.am): Augment lib_SOURCES.
1235
1236 2011-05-23  Bruno Haible  <bruno@clisp.org>
1237
1238         openat-safer: Move AC_LIBOBJ invocations to module description.
1239         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
1240         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
1241
1242 2011-05-23  Bruno Haible  <bruno@clisp.org>
1243
1244         fcntl-safer: Move AC_LIBOBJ invocations to module description.
1245         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
1246         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
1247
1248 2011-05-23  Bruno Haible  <bruno@clisp.org>
1249
1250         exclude: Move AC_LIBOBJ invocations to module description.
1251         * m4/exclude.m4: Remove file.
1252         * modules/exclude (Files): Remove it.
1253         (configure.ac): Remove gl_EXCLUDE call.
1254         (Makefile.am): Augment lib_SOURCES.
1255
1256 2011-05-23  Bruno Haible  <bruno@clisp.org>
1257
1258         dirname*: Respect rules for use of AC_LIBOBJ.
1259         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
1260         invocations.
1261         * modules/dirname (Makefile.am): Augment lib_SOURCES.
1262         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
1263
1264 2011-05-23  Bruno Haible  <bruno@clisp.org>
1265
1266         dirent-safer: Move AC_LIBOBJ invocations to module description.
1267         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
1268         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
1269
1270 2011-05-23  Bruno Haible  <bruno@clisp.org>
1271
1272         crypto/des: Move AC_LIBOBJ invocations to module description.
1273         * m4/des.m4: Remove file.
1274         * modules/crypto/des (Files): Remove it.
1275         (configure.ac): Remove gl_DES call.
1276         (Makefile.am): Augment lib_SOURCES.
1277
1278 2011-05-23  Bruno Haible  <bruno@clisp.org>
1279
1280         cycle-check: Move AC_LIBOBJ invocations to module description.
1281         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
1282         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
1283
1284 2011-05-23  Bruno Haible  <bruno@clisp.org>
1285
1286         c-strtold: Move AC_LIBOBJ invocations to module description.
1287         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
1288         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
1289
1290 2011-05-23  Bruno Haible  <bruno@clisp.org>
1291
1292         c-strtod: Move AC_LIBOBJ invocations to module description.
1293         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
1294         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
1295
1296 2011-05-23  Bruno Haible  <bruno@clisp.org>
1297
1298         crc: Move AC_LIBOBJ invocations to module description.
1299         * m4/crc.m4: Remove file.
1300         * modules/crc (Files): Remove it.
1301         (configure.ac): Remove gl_CRC call.
1302         (Makefile.am): Augment lib_SOURCES.
1303
1304 2011-05-23  Bruno Haible  <bruno@clisp.org>
1305
1306         close-stream: Move AC_LIBOBJ invocations to module description.
1307         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
1308         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
1309
1310 2011-05-23  Bruno Haible  <bruno@clisp.org>
1311
1312         closeout: Move AC_LIBOBJ invocations to module description.
1313         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
1314         * modules/closeout (Makefile.am): Augment lib_SOURCES.
1315
1316 2011-05-23  Bruno Haible  <bruno@clisp.org>
1317
1318         closein: Move AC_LIBOBJ invocations to module description.
1319         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
1320         * modules/closein (Makefile.am): Augment lib_SOURCES.
1321
1322 2011-05-23  Bruno Haible  <bruno@clisp.org>
1323
1324         cloexec: Move AC_LIBOBJ invocations to module description.
1325         * m4/cloexec.m4: Remove file.
1326         * modules/cloexec (Files): Remove it.
1327         (configure.ac): Remove gl_CLOEXEC call.
1328         (Makefile.am): Augment lib_SOURCES.
1329
1330 2011-05-23  Bruno Haible  <bruno@clisp.org>
1331
1332         check-version: Move AC_LIBOBJ invocations to module description.
1333         * m4/check-version.m4: Remove file.
1334         * modules/check-version (Files): Remove it.
1335         (configure.ac): Remove gl_CHECK_VERSION call.
1336         (Makefile.am): Augment lib_SOURCES.
1337
1338 2011-05-23  Bruno Haible  <bruno@clisp.org>
1339
1340         chdir-safer: Move AC_LIBOBJ invocations to module description.
1341         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
1342         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
1343
1344 2011-05-23  Bruno Haible  <bruno@clisp.org>
1345
1346         canonicalize: Move AC_LIBOBJ invocations to module description.
1347         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
1348         AC_LIBOBJ invocation.
1349         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
1350
1351 2011-05-23  Bruno Haible  <bruno@clisp.org>
1352
1353         canon-host: Move AC_LIBOBJ invocations to module description.
1354         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
1355         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
1356         instead of gl_CANON_HOST.
1357         (Makefile.am): Augment lib_SOURCES.
1358
1359 2011-05-23  Bruno Haible  <bruno@clisp.org>
1360
1361         backupfile: Move AC_LIBOBJ invocations to module description.
1362         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
1363         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
1364
1365 2011-05-23  Bruno Haible  <bruno@clisp.org>
1366
1367         argmatch: Move AC_LIBOBJ invocations to module description.
1368         * m4/argmatch.m4: Remove file.
1369         * modules/argmatch (Files): Remove it.
1370         (configure.ac): Remove gl_ARGMATCH call.
1371         (Makefile.am): Augment lib_SOURCES.
1372
1373 2011-05-23  Bruno Haible  <bruno@clisp.org>
1374
1375         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
1376         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
1377         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
1378
1379 2011-05-23  Bruno Haible  <bruno@clisp.org>
1380
1381         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
1382         * m4/arcfour.m4: Remove file.
1383         * modules/crypto/arcfour (Files): Remove it.
1384         (configure.ac): Remove gl_ARCFOUR call.
1385         (Makefile.am): Augment lib_SOURCES.
1386
1387 2011-05-22  Bruno Haible  <bruno@clisp.org>
1388
1389         write: Move AC_LIBOBJ invocations to module description.
1390         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
1391         * modules/write (configure.ac): ... to here.
1392
1393 2011-05-22  Bruno Haible  <bruno@clisp.org>
1394
1395         wmemset: Move AC_LIBOBJ invocations to module description.
1396         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
1397         here...
1398         * modules/wmemset (configure.ac): ... to here.
1399
1400 2011-05-22  Bruno Haible  <bruno@clisp.org>
1401
1402         wmemmove: Move AC_LIBOBJ invocations to module description.
1403         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
1404         here...
1405         * modules/wmemmove (configure.ac): ... to here.
1406
1407 2011-05-22  Bruno Haible  <bruno@clisp.org>
1408
1409         wmemcpy: Move AC_LIBOBJ invocations to module description.
1410         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
1411         here...
1412         * modules/wmemcpy (configure.ac): ... to here.
1413
1414 2011-05-22  Bruno Haible  <bruno@clisp.org>
1415
1416         wmemcmp: Move AC_LIBOBJ invocations to module description.
1417         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
1418         here...
1419         * modules/wmemcmp (configure.ac): ... to here.
1420
1421 2011-05-22  Bruno Haible  <bruno@clisp.org>
1422
1423         wmemchr: Move AC_LIBOBJ invocations to module description.
1424         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
1425         here...
1426         * modules/wmemchr (configure.ac): ... to here.
1427
1428 2011-05-22  Bruno Haible  <bruno@clisp.org>
1429
1430         wcswidth: Move AC_LIBOBJ invocations to module description.
1431         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
1432         here...
1433         * modules/wcswidth (configure.ac): ... to here.
1434
1435 2011-05-22  Bruno Haible  <bruno@clisp.org>
1436
1437         wcwidth: Respect rules for use of AC_LIBOBJ.
1438         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
1439         invocation from here...
1440         * modules/wcwidth (configure.ac): ... to here.
1441         (Depends-on): Update conditions.
1442
1443 2011-05-22  Bruno Haible  <bruno@clisp.org>
1444
1445         wctype: Move AC_LIBOBJ invocations to module description.
1446         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
1447         invocation from here...
1448         * modules/wctype (configure.ac): ... to here.
1449         (Depends-on): Update conditions.
1450
1451 2011-05-22  Bruno Haible  <bruno@clisp.org>
1452
1453         wctrans: Move AC_LIBOBJ invocations to module description.
1454         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
1455         invocation from here...
1456         * modules/wctrans (configure.ac): ... to here.
1457
1458 2011-05-22  Bruno Haible  <bruno@clisp.org>
1459
1460         wctomb: Move AC_LIBOBJ invocations to module description.
1461         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
1462         invocations from here...
1463         * modules/wctomb (configure.ac): ... to here.
1464
1465 2011-05-22  Bruno Haible  <bruno@clisp.org>
1466
1467         wctob: Move AC_LIBOBJ invocations to module description.
1468         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
1469         gl_PREREQ_WCTOB invocations from here...
1470         * modules/wctob (configure.ac): ... to here.
1471         (Depends-on): Update conditions.
1472
1473 2011-05-22  Bruno Haible  <bruno@clisp.org>
1474
1475         wcsxfrm: Move AC_LIBOBJ invocations to module description.
1476         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
1477         here...
1478         * modules/wcsxfrm (configure.ac): ... to here.
1479
1480 2011-05-22  Bruno Haible  <bruno@clisp.org>
1481
1482         wcstok: Move AC_LIBOBJ invocations to module description.
1483         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
1484         * modules/wcstok (configure.ac): ... to here.
1485
1486 2011-05-22  Bruno Haible  <bruno@clisp.org>
1487
1488         wcsstr: Move AC_LIBOBJ invocations to module description.
1489         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
1490         * modules/wcsstr (configure.ac): ... to here.
1491
1492 2011-05-22  Bruno Haible  <bruno@clisp.org>
1493
1494         wcsspn: Move AC_LIBOBJ invocations to module description.
1495         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
1496         * modules/wcsspn (configure.ac): ... to here.
1497
1498 2011-05-22  Bruno Haible  <bruno@clisp.org>
1499
1500         wcsrtombs: Move AC_LIBOBJ invocations to module description.
1501         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
1502         gl_PREREQ_WCSRTOMBS invocations from here...
1503         * modules/wcsrtombs (configure.ac): ... to here.
1504
1505 2011-05-22  Bruno Haible  <bruno@clisp.org>
1506
1507         wcsrchr: Move AC_LIBOBJ invocations to module description.
1508         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
1509         here...
1510         * modules/wcsrchr (configure.ac): ... to here.
1511
1512 2011-05-22  Bruno Haible  <bruno@clisp.org>
1513
1514         wcspbrk: Move AC_LIBOBJ invocations to module description.
1515         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
1516         here...
1517         * modules/wcspbrk (configure.ac): ... to here.
1518
1519 2011-05-22  Bruno Haible  <bruno@clisp.org>
1520
1521         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
1522         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
1523         gl_PREREQ_WCSNRTOMBS invocations from here...
1524         * modules/wcsnrtombs (configure.ac): ... to here.
1525
1526 2011-05-22  Bruno Haible  <bruno@clisp.org>
1527
1528         wcsnlen: Move AC_LIBOBJ invocations to module description.
1529         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
1530         here...
1531         * modules/wcsnlen (configure.ac): ... to here.
1532
1533 2011-05-22  Bruno Haible  <bruno@clisp.org>
1534
1535         wcsncpy: Move AC_LIBOBJ invocations to module description.
1536         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
1537         here...
1538         * modules/wcsncpy (configure.ac): ... to here.
1539
1540 2011-05-22  Bruno Haible  <bruno@clisp.org>
1541
1542         wcsncmp: Move AC_LIBOBJ invocations to module description.
1543         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
1544         here...
1545         * modules/wcsncmp (configure.ac): ... to here.
1546
1547 2011-05-22  Bruno Haible  <bruno@clisp.org>
1548
1549         wcsncat: Move AC_LIBOBJ invocations to module description.
1550         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
1551         here...
1552         * modules/wcsncat (configure.ac): ... to here.
1553
1554 2011-05-22  Bruno Haible  <bruno@clisp.org>
1555
1556         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
1557         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
1558         from here...
1559         * modules/wcsncasecmp (configure.ac): ... to here.
1560
1561 2011-05-22  Bruno Haible  <bruno@clisp.org>
1562
1563         wcslen: Move AC_LIBOBJ invocations to module description.
1564         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
1565         * modules/wcslen (configure.ac): ... to here.
1566
1567 2011-05-22  Bruno Haible  <bruno@clisp.org>
1568
1569         wcsdup: Move AC_LIBOBJ invocations to module description.
1570         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
1571         * modules/wcsdup (configure.ac): ... to here.
1572
1573 2011-05-22  Bruno Haible  <bruno@clisp.org>
1574
1575         wcscspn: Move AC_LIBOBJ invocations to module description.
1576         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
1577         here...
1578         * modules/wcscspn (configure.ac): ... to here.
1579
1580 2011-05-22  Bruno Haible  <bruno@clisp.org>
1581
1582         wcscpy: Move AC_LIBOBJ invocations to module description.
1583         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
1584         * modules/wcscpy (configure.ac): ... to here.
1585
1586 2011-05-22  Bruno Haible  <bruno@clisp.org>
1587
1588         wcscoll: Move AC_LIBOBJ invocations to module description.
1589         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
1590         here...
1591         * modules/wcscoll (configure.ac): ... to here.
1592
1593 2011-05-22  Bruno Haible  <bruno@clisp.org>
1594
1595         wcscmp: Move AC_LIBOBJ invocations to module description.
1596         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
1597         * modules/wcscmp (configure.ac): ... to here.
1598
1599 2011-05-22  Bruno Haible  <bruno@clisp.org>
1600
1601         wcschr: Move AC_LIBOBJ invocations to module description.
1602         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
1603         * modules/wcschr (configure.ac): ... to here.
1604
1605 2011-05-22  Bruno Haible  <bruno@clisp.org>
1606
1607         wcscat: Move AC_LIBOBJ invocations to module description.
1608         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
1609         * modules/wcscat (configure.ac): ... to here.
1610
1611 2011-05-22  Bruno Haible  <bruno@clisp.org>
1612
1613         wcscasecmp: Move AC_LIBOBJ invocations to module description.
1614         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
1615         here...
1616         * modules/wcscasecmp (configure.ac): ... to here.
1617
1618 2011-05-22  Bruno Haible  <bruno@clisp.org>
1619
1620         wcrtomb: Move AC_LIBOBJ invocations to module description.
1621         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
1622         invocations from here...
1623         * modules/wcrtomb (configure.ac): ... to here.
1624
1625 2011-05-22  Bruno Haible  <bruno@clisp.org>
1626
1627         wcpncpy: Move AC_LIBOBJ invocations to module description.
1628         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
1629         here...
1630         * modules/wcpncpy (configure.ac): ... to here.
1631
1632 2011-05-22  Bruno Haible  <bruno@clisp.org>
1633
1634         wcpcpy: Move AC_LIBOBJ invocations to module description.
1635         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
1636         * modules/wcpcpy (configure.ac): ... to here.
1637
1638 2011-05-22  Bruno Haible  <bruno@clisp.org>
1639
1640         waitpid: Move AC_LIBOBJ invocations to module description.
1641         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
1642         invocation from here...
1643         * modules/waitpid (configure.ac): ... to here.
1644
1645 2011-05-22  Bruno Haible  <bruno@clisp.org>
1646
1647         utimensat: Move AC_LIBOBJ invocations to module description.
1648         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
1649         here...
1650         * modules/utimensat (configure.ac): ... to here.
1651
1652 2011-05-22  Bruno Haible  <bruno@clisp.org>
1653
1654         usleep: Move AC_LIBOBJ invocations to module description.
1655         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
1656         here...
1657         * modules/usleep (configure.ac): ... to here.
1658
1659 2011-05-22  Bruno Haible  <bruno@clisp.org>
1660
1661         unlockpt: Move AC_LIBOBJ invocations to module description.
1662         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
1663         gl_PREREQ_UNLOCKPT invocations from here...
1664         * modules/unlockpt (configure.ac): ... to here.
1665
1666 2011-05-22  Bruno Haible  <bruno@clisp.org>
1667
1668         unlink: Respect rules for use of AC_LIBOBJ.
1669         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
1670         * modules/unlink (configure.ac): ... to here.
1671
1672 2011-05-22  Bruno Haible  <bruno@clisp.org>
1673
1674         uname: Move AC_LIBOBJ invocations to module description.
1675         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
1676         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
1677         here...
1678         * modules/uname (configure.ac): ... to here.
1679
1680 2011-05-22  Bruno Haible  <bruno@clisp.org>
1681
1682         ttyname_r: Move AC_LIBOBJ invocations to module description.
1683         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
1684         gl_PREREQ_TTYNAME_R invocations from here...
1685         * modules/ttyname_r (configure.ac): ... to here.
1686
1687 2011-05-22  Bruno Haible  <bruno@clisp.org>
1688
1689         tsearch: Move AC_LIBOBJ invocations to module description.
1690         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
1691         invocations from here...
1692         * modules/tsearch (configure.ac): ... to here.
1693
1694 2011-05-22  Bruno Haible  <bruno@clisp.org>
1695
1696         towctrans: Move AC_LIBOBJ invocations to module description.
1697         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
1698         AC_LIBOBJ invocation from here...
1699         * modules/towctrans (configure.ac): ... to here.
1700
1701 2011-05-22  Bruno Haible  <bruno@clisp.org>
1702
1703         tmpfile: Move AC_LIBOBJ invocations to module description.
1704         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
1705         invocations from here...
1706         * modules/tmpfile (configure.ac): ... to here.
1707
1708 2011-05-22  Bruno Haible  <bruno@clisp.org>
1709
1710         times: Move AC_LIBOBJ invocations to module description.
1711         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
1712         * modules/times (configure.ac): ... to here.
1713
1714 2011-05-22  Bruno Haible  <bruno@clisp.org>
1715
1716         time_r: Move AC_LIBOBJ invocations to module description.
1717         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
1718         invocations from here...
1719         * modules/time_r (configure.ac): ... to here.
1720
1721 2011-05-22  Bruno Haible  <bruno@clisp.org>
1722
1723         timegm: Move AC_LIBOBJ invocations to module description.
1724         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
1725         invocations from here...
1726         * modules/timegm (configure.ac): ... to here.
1727
1728 2011-05-22  Bruno Haible  <bruno@clisp.org>
1729
1730         tcgetsid: Move AC_LIBOBJ invocations to module description.
1731         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
1732         and gl_PREREQ_TCGETSID invocations from here...
1733         * modules/tcgetsid (configure.ac): ... to here.
1734         (Depends-on): Update conditions.
1735
1736 2011-05-22  Bruno Haible  <bruno@clisp.org>
1737
1738         symlinkat: Move AC_LIBOBJ invocations to module description.
1739         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
1740         here...
1741         * modules/symlinkat (configure.ac): ... to here.
1742
1743 2011-05-22  Bruno Haible  <bruno@clisp.org>
1744
1745         symlink: Move AC_LIBOBJ invocations to module description.
1746         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
1747         here...
1748         * modules/symlink (configure.ac): ... to here.
1749
1750 2011-05-22  Bruno Haible  <bruno@clisp.org>
1751
1752         strverscmp: Move AC_LIBOBJ invocations to module description.
1753         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
1754         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
1755         from here...
1756         * modules/strverscmp (configure.ac): ... to here.
1757
1758 2011-05-22  Bruno Haible  <bruno@clisp.org>
1759
1760         strtok_r: Move AC_LIBOBJ invocations to module description.
1761         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
1762         and gl_PREREQ_STRTOK_R invocations from here...
1763         * modules/strtok_r (configure.ac): ... to here.
1764         (Depends-on): Update conditions.
1765
1766 2011-05-22  Bruno Haible  <bruno@clisp.org>
1767
1768         strtoumax: Move AC_LIBOBJ invocations to module description.
1769         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
1770         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
1771         from here...
1772         * modules/strtoumax (configure.ac): ... to here.
1773
1774 2011-05-22  Bruno Haible  <bruno@clisp.org>
1775
1776         strtoimax: Move AC_LIBOBJ invocations to module description.
1777         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
1778         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
1779         from here...
1780         * modules/strtoimax (configure.ac): ... to here.
1781
1782 2011-05-22  Bruno Haible  <bruno@clisp.org>
1783
1784         strtoull: Move AC_LIBOBJ invocations to module description.
1785         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
1786         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
1787         from here...
1788         * modules/strtoull (configure.ac): ... to here.
1789
1790 2011-05-22  Bruno Haible  <bruno@clisp.org>
1791
1792         strtoll: Move AC_LIBOBJ invocations to module description.
1793         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
1794         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
1795         here...
1796         * modules/strtoll (configure.ac): ... to here.
1797
1798 2011-05-22  Bruno Haible  <bruno@clisp.org>
1799
1800         strtoul: Move AC_LIBOBJ invocations to module description.
1801         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
1802         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
1803         * modules/strtoul (configure.ac): ... to here.
1804
1805 2011-05-22  Bruno Haible  <bruno@clisp.org>
1806
1807         strtol: Move AC_LIBOBJ invocations to module description.
1808         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
1809         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
1810         * modules/strtol (configure.ac): ... to here.
1811
1812 2011-05-22  Bruno Haible  <bruno@clisp.org>
1813
1814         strtod: Move AC_LIBOBJ invocations to module description.
1815         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
1816         invocations from here...
1817         * modules/strtod (configure.ac): ... to here.
1818
1819 2011-05-22  Bruno Haible  <bruno@clisp.org>
1820
1821         strstr*: Move AC_LIBOBJ invocations to module description.
1822         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
1823         invocations from here...
1824         * modules/strstr-simple (configure.ac): ... to here.
1825         * modules/strstr (configure.ac): ... and here.
1826
1827 2011-05-22  Bruno Haible  <bruno@clisp.org>
1828
1829         strsignal: Move AC_LIBOBJ invocations to module description.
1830         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
1831         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
1832         * modules/strsignal (configure.ac): ... to here.
1833         (Depends-on): Update conditions.
1834
1835 2011-05-22  Bruno Haible  <bruno@clisp.org>
1836
1837         strsep: Move AC_LIBOBJ invocations to module description.
1838         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
1839         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
1840         here...
1841         * modules/strsep (configure.ac): ... to here.
1842
1843 2011-05-22  Bruno Haible  <bruno@clisp.org>
1844
1845         strptime: Move AC_LIBOBJ invocations to module description.
1846         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
1847         gl_PREREQ_STRPTIME invocations from here...
1848         * modules/strptime (configure.ac): ... to here.
1849
1850 2011-05-22  Bruno Haible  <bruno@clisp.org>
1851
1852         strpbrk: Move AC_LIBOBJ invocations to module description.
1853         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
1854         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
1855         here...
1856         * modules/strpbrk (configure.ac): ... to here.
1857
1858 2011-05-22  Bruno Haible  <bruno@clisp.org>
1859
1860         strnlen: Move AC_LIBOBJ invocations to module description.
1861         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
1862         invocations from here...
1863         * modules/strnlen (configure.ac): ... to here.
1864
1865 2011-05-22  Bruno Haible  <bruno@clisp.org>
1866
1867         strndup: Move AC_LIBOBJ invocations to module description.
1868         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
1869         invocations from here...
1870         * modules/strndup (configure.ac): ... to here.
1871         (Depends-on): Update conditions.
1872
1873 2011-05-22  Bruno Haible  <bruno@clisp.org>
1874
1875         strncat: Move AC_LIBOBJ invocations to module description.
1876         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
1877         invocations from here...
1878         * modules/strncat (configure.ac): ... to here.
1879
1880 2011-05-22  Bruno Haible  <bruno@clisp.org>
1881
1882         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
1883         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
1884         invocations from here...
1885         * modules/strdup (configure.ac): ... to here.
1886         * modules/strdup-posix (configure.ac): ... and here.
1887
1888 2011-05-22  Bruno Haible  <bruno@clisp.org>
1889
1890         strcspn: Move AC_LIBOBJ invocations to module description.
1891         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
1892         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
1893         here...
1894         * modules/strcspn (configure.ac): ... to here.
1895
1896 2011-05-22  Bruno Haible  <bruno@clisp.org>
1897
1898         strchrnul: Move AC_LIBOBJ invocations to module description.
1899         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
1900         gl_PREREQ_STRCHRNUL invocations from here...
1901         * modules/strchrnul (configure.ac): ... to here.
1902
1903 2011-05-22  Bruno Haible  <bruno@clisp.org>
1904
1905         strcasestr*: Move AC_LIBOBJ invocations to module description.
1906         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
1907         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
1908         * modules/strcasestr-simple (configure.ac): ... to here.
1909         * modules/strcasestr (configure.ac): ... and here.
1910
1911 2011-05-22  Bruno Haible  <bruno@clisp.org>
1912
1913         strcase: Move AC_LIBOBJ invocations to module description.
1914         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
1915         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
1916         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
1917         gl_PREREQ_STRNCASECMP invocations from here...
1918         * modules/strcase (configure.ac): ... to here.
1919
1920 2011-05-22  Bruno Haible  <bruno@clisp.org>
1921
1922         stpncpy: Move AC_LIBOBJ invocations to module description.
1923         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
1924         here...
1925         * modules/stpncpy (configure.ac): ... to here.
1926
1927 2011-05-22  Bruno Haible  <bruno@clisp.org>
1928
1929         stpcpy: Move AC_LIBOBJ invocations to module description.
1930         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
1931         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
1932         here...
1933         * modules/stpcpy (configure.ac): ... to here.
1934
1935 2011-05-21  Bruno Haible  <bruno@clisp.org>
1936
1937         stat: Move AC_LIBOBJ invocations to module description.
1938         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
1939         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
1940         here...
1941         * modules/stat (configure.ac): ... to here.
1942
1943 2011-05-21  Bruno Haible  <bruno@clisp.org>
1944
1945         sleep: Move AC_LIBOBJ invocations to module description.
1946         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
1947         * modules/sleep (configure.ac): ... to here.
1948
1949 2011-05-21  Bruno Haible  <bruno@clisp.org>
1950
1951         signbit: Move AC_LIBOBJ invocations to module description.
1952         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
1953         * modules/signbit (configure.ac): ... to here.
1954
1955 2011-05-21  Bruno Haible  <bruno@clisp.org>
1956
1957         sigprocmask: Move AC_LIBOBJ invocations to module description.
1958         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
1959         gl_PREREQ_SIGPROMASK invocations from here...
1960         * modules/sigprocmask (configure.ac): ... to here.
1961
1962 2011-05-21  Bruno Haible  <bruno@clisp.org>
1963
1964         sigaction: Move AC_LIBOBJ invocations to module description.
1965         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
1966         gl_PREREQ_SIGACTION invocations from here...
1967         * modules/sigaction (configure.ac): ... to here.
1968
1969 2011-05-21  Bruno Haible  <bruno@clisp.org>
1970
1971         sig2str: Move AC_LIBOBJ invocations to module description.
1972         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
1973         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
1974         here...
1975         * modules/sig2str (configure.ac): ... to here.
1976
1977 2011-05-21  Bruno Haible  <bruno@clisp.org>
1978
1979         setlocale: Move AC_LIBOBJ invocations to module description.
1980         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
1981         gl_PREREQ_SETLOCALE invocations from here...
1982         * modules/setlocale (configure.ac): ... to here.
1983
1984 2011-05-21  Bruno Haible  <bruno@clisp.org>
1985
1986         unsetenv: Move AC_LIBOBJ invocations to module description.
1987         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
1988         and gl_PREREQ_UNSETENV invocations from here...
1989         * modules/unsetenv (configure.ac): ... to here.
1990         (Depends-on): Update.
1991
1992 2011-05-21  Bruno Haible  <bruno@clisp.org>
1993
1994         setenv: Move AC_LIBOBJ invocations to module description.
1995         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
1996         here...
1997         * modules/setenv (configure.ac): ... to here.
1998
1999 2011-05-21  Bruno Haible  <bruno@clisp.org>
2000
2001         selinux-h: Move AC_LIBOBJ invocations to module description.
2002         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
2003         AC_LIBOBJ invocation from here...
2004         * modules/selinux-h (configure.ac): ... to here.
2005
2006 2011-05-21  Bruno Haible  <bruno@clisp.org>
2007
2008         select: Respect rules for use of AC_LIBOBJ.
2009         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
2010         here...
2011         * modules/select (configure.ac): ... to here.
2012
2013 2011-05-21  Bruno Haible  <bruno@clisp.org>
2014
2015         scandir: Move AC_LIBOBJ invocations to module description.
2016         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
2017         invocations from here...
2018         * modules/scandir (configure.ac): ... to here.
2019
2020 2011-05-21  Bruno Haible  <bruno@clisp.org>
2021
2022         rpmatch: Move AC_LIBOBJ invocations to module description.
2023         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
2024         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
2025         here...
2026         * modules/rpmatch (configure.ac): ... to here.
2027
2028 2011-05-21  Bruno Haible  <bruno@clisp.org>
2029
2030         rmdir: Respect rules for use of AC_LIBOBJ.
2031         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
2032         * modules/rmdir (configure.ac): ... to here.
2033
2034 2011-05-21  Bruno Haible  <bruno@clisp.org>
2035
2036         renameat: Move AC_LIBOBJ invocations to module description.
2037         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
2038         here...
2039         * modules/renameat (configure.ac): ... to here.
2040
2041 2011-05-21  Bruno Haible  <bruno@clisp.org>
2042
2043         rename: Respect rules for use of AC_LIBOBJ.
2044         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
2045         here...
2046         * modules/rename (configure.ac): ... to here.
2047
2048 2011-05-21  Bruno Haible  <bruno@clisp.org>
2049
2050         remove: Move AC_LIBOBJ invocations to module description.
2051         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
2052         here...
2053         * modules/remove (configure.ac): ... to here.
2054
2055 2011-05-21  Bruno Haible  <bruno@clisp.org>
2056
2057         relocatable-lib: Move AC_LIBOBJ invocations to module description.
2058         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
2059         macro.
2060         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
2061         * modules/relocatable-lib (configure.ac): ... to here.
2062         * modules/relocatable-prog-wrapper (configure.ac): Invoke
2063         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
2064
2065 2011-05-21  Bruno Haible  <bruno@clisp.org>
2066
2067         relocatable-prog: Move AC_LIBOBJ invocations to module description.
2068         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
2069         here...
2070         * modules/relocatable-prog (configure.ac): ... to here.
2071
2072 2011-05-21  Bruno Haible  <bruno@clisp.org>
2073
2074         regex: Move AC_LIBOBJ invocations to module description.
2075         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
2076         invocations from here...
2077         * modules/regex (configure.ac): ... to here.
2078
2079 2011-05-21  Bruno Haible  <bruno@clisp.org>
2080
2081         realloc-*: Move AC_LIBOBJ invocations to module description.
2082         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
2083         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
2084         AC_LIBOBJ invocations from here...
2085         * modules/realloc-gnu (configure.ac): ... to here.
2086         * modules/realloc-posix (configure.ac): ... and here.
2087
2088 2011-05-21  Bruno Haible  <bruno@clisp.org>
2089
2090         readutmp: Move AC_LIBOBJ invocations to module description.
2091         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
2092         * modules/readutmp (configure.ac): ... to here.
2093
2094 2011-05-21  Bruno Haible  <bruno@clisp.org>
2095
2096         readlinkat: Move AC_LIBOBJ invocations to module description.
2097         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
2098         here...
2099         * modules/readlinkat (configure.ac): ... to here.
2100
2101 2011-05-21  Bruno Haible  <bruno@clisp.org>
2102
2103         readlink: Move AC_LIBOBJ invocations to module description.
2104         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
2105         gl_PREREQ_READLINK invocations from here...
2106         * modules/readlink (configure.ac): ... to here.
2107
2108 2011-05-21  Bruno Haible  <bruno@clisp.org>
2109
2110         readline: Move AC_LIBOBJ invocations to module description.
2111         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
2112         gl_PREREQ_READLINE invocations from here...
2113         * modules/readline (configure.ac): ... to here.
2114
2115 2011-05-21  Bruno Haible  <bruno@clisp.org>
2116
2117         read: Move AC_LIBOBJ invocations to module description.
2118         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
2119         * modules/read (configure.ac): ... to here.
2120
2121 2011-05-21  Bruno Haible  <bruno@clisp.org>
2122
2123         rawmemchr: Move AC_LIBOBJ invocations to module description.
2124         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
2125         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
2126         from here...
2127         * modules/rawmemchr (configure.ac): ... to here.
2128
2129 2011-05-21  Bruno Haible  <bruno@clisp.org>
2130
2131         random_r: Move AC_LIBOBJ invocations to module description.
2132         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
2133         gl_PREREQ_RANDOM_R invocations from here...
2134         * modules/random_r (configure.ac): ... to here.
2135
2136 2011-05-21  Bruno Haible  <bruno@clisp.org>
2137
2138         pwrite: Move AC_LIBOBJ invocations to module description.
2139         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
2140         * modules/pwrite (configure.ac): ... to here.
2141
2142 2011-05-21  Bruno Haible  <bruno@clisp.org>
2143
2144         putenv: Move AC_LIBOBJ invocations to module description.
2145         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
2146         * modules/putenv (configure.ac): ... to here.
2147
2148 2011-05-21  Bruno Haible  <bruno@clisp.org>
2149
2150         login_tty: Move AC_LIBOBJ invocations to module description.
2151         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
2152         * modules/login_tty (configure.ac): ... to here.
2153
2154 2011-05-21  Bruno Haible  <bruno@clisp.org>
2155
2156         openpty: Move AC_LIBOBJ invocations to module description.
2157         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
2158         * modules/openpty (configure.ac): ... to here.
2159
2160 2011-05-21  Bruno Haible  <bruno@clisp.org>
2161
2162         forkpty: Move AC_LIBOBJ invocations to module description.
2163         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
2164         * modules/forkpty (configure.ac): ... to here.
2165
2166 2011-05-21  Bruno Haible  <bruno@clisp.org>
2167
2168         ptsname: Move AC_LIBOBJ invocations to module description.
2169         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
2170         invocations from here...
2171         * modules/ptsname (configure.ac): ... to here.
2172
2173 2011-05-21  Bruno Haible  <bruno@clisp.org>
2174
2175         pread: Move AC_LIBOBJ invocations to module description.
2176         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
2177         * modules/pread (configure.ac): ... to here.
2178
2179 2011-05-21  Bruno Haible  <bruno@clisp.org>
2180
2181         posix_spawn*: Move AC_LIBOBJ invocations to module description.
2182         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
2183         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
2184         * modules/posix_spawn (configure.ac): ... to here.
2185         * modules/posix_spawnp (configure.ac): ... and here.
2186
2187 2011-05-21  Bruno Haible  <bruno@clisp.org>
2188
2189         popen: Move AC_LIBOBJ invocations to module description.
2190         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
2191         invocations from here...
2192         * modules/popen (configure.ac): ... to here.
2193
2194 2011-05-21  Bruno Haible  <bruno@clisp.org>
2195
2196         poll: Move AC_LIBOBJ invocations to module description.
2197         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
2198         invocations from here...
2199         * modules/poll (configure.ac): ... to here.
2200
2201 2011-05-21  Bruno Haible  <bruno@clisp.org>
2202
2203         pipe-posix: Move AC_LIBOBJ invocations to module description.
2204         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
2205         * modules/pipe-posix (configure.ac): ... to here.
2206
2207 2011-05-21  Bruno Haible  <bruno@clisp.org>
2208
2209         openat: Respect rules for use of AC_LIBOBJ.
2210         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
2211         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2212         * modules/openat (configure.ac): ... to here.
2213
2214 2011-05-21  Bruno Haible  <bruno@clisp.org>
2215
2216         obstack-printf*: Move AC_LIBOBJ invocations to module description.
2217         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
2218         invocation from here...
2219         * modules/obstack-printf (configure.ac): ... to here.
2220         * modules/obstack-printf-posix (configure.ac): ... and here.
2221
2222 2011-05-21  Bruno Haible  <bruno@clisp.org>
2223
2224         nl_langinfo: Move AC_LIBOBJ invocations to module description.
2225         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
2226         from here...
2227         * modules/nl_langinfo (configure.ac): ... to here.
2228
2229 2011-05-21  Bruno Haible  <bruno@clisp.org>
2230
2231         nanosleep: Move AC_LIBOBJ invocations to module description.
2232         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
2233         gl_PREREQ_NANOSLEEP invocations from here...
2234         * modules/nanosleep (configure.ac): ... to here.
2235
2236 2011-05-21  Bruno Haible  <bruno@clisp.org>
2237
2238         mountlist: Move AC_LIBOBJ invocations to module description.
2239         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
2240         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
2241         * modules/mountlist (configure.ac): ... to here.
2242
2243 2011-05-21  Bruno Haible  <bruno@clisp.org>
2244
2245         mktime: Respect rules for use of AC_LIBOBJ.
2246         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
2247         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
2248         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
2249         (gl_FUNC_MKTIME_INTERNAL): ... and here...
2250         * modules/mktime (configure.ac): ... to here.
2251         * modules/mktime-internal (configure.ac): ... and here.
2252         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
2253
2254 2011-05-21  Bruno Haible  <bruno@clisp.org>
2255
2256         mkstemps: Move AC_LIBOBJ invocations to module description.
2257         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
2258         here...
2259         * modules/mkstemps (configure.ac): ... to here.
2260
2261 2011-05-21  Bruno Haible  <bruno@clisp.org>
2262
2263         mkstemp: Move AC_LIBOBJ invocations to module description.
2264         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
2265         gl_PREREQ_MKSTEMP invocations from here...
2266         * modules/mkstemp (configure.ac): ... to here.
2267
2268 2011-05-21  Bruno Haible  <bruno@clisp.org>
2269
2270         mkostemps: Move AC_LIBOBJ invocations to module description.
2271         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
2272         here...
2273         * modules/mkostemps (configure.ac): ... to here.
2274
2275 2011-05-21  Bruno Haible  <bruno@clisp.org>
2276
2277         mkostemp: Move AC_LIBOBJ invocations to module description.
2278         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
2279         gl_PREREQ_MKOSTEMP invocations from here...
2280         * modules/mkostemp (configure.ac): ... to here.
2281
2282 2011-05-21  Bruno Haible  <bruno@clisp.org>
2283
2284         mknod: Move AC_LIBOBJ invocations to module description.
2285         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
2286         * modules/mknod (configure.ac): ... to here.
2287
2288 2011-05-21  Bruno Haible  <bruno@clisp.org>
2289
2290         mkfifoat: Move AC_LIBOBJ invocations to module description.
2291         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
2292         here...
2293         * modules/mkfifoat (configure.ac): ... to here.
2294
2295 2011-05-21  Bruno Haible  <bruno@clisp.org>
2296
2297         mkfifo: Respect rules for use of AC_LIBOBJ.
2298         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
2299         here...
2300         * modules/mkfifo (configure.ac): ... to here.
2301
2302 2011-05-21  Bruno Haible  <bruno@clisp.org>
2303
2304         mkdtemp: Move AC_LIBOBJ invocations to module description.
2305         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
2306         invocations from here...
2307         * modules/mkdtemp (configure.ac): ... to here.
2308
2309 2011-05-21  Bruno Haible  <bruno@clisp.org>
2310
2311         mkdir: Move AC_LIBOBJ invocations to module description.
2312         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
2313         * modules/mkdir (configure.ac): ... to here.
2314
2315 2011-05-21  Bruno Haible  <bruno@clisp.org>
2316
2317         memset: Move AC_LIBOBJ invocations to module description.
2318         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
2319         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
2320         here...
2321         * modules/memset (configure.ac): ... to here.
2322
2323 2011-05-21  Bruno Haible  <bruno@clisp.org>
2324
2325         memrchr: Move AC_LIBOBJ invocations to module description.
2326         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
2327         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
2328         here...
2329         * modules/memrchr (configure.ac): ... to here.
2330
2331 2011-05-21  Bruno Haible  <bruno@clisp.org>
2332
2333         mempcpy: Move AC_LIBOBJ invocations to module description.
2334         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
2335         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
2336         here...
2337         * modules/mempcpy (configure.ac): ... to here.
2338
2339 2011-05-21  Bruno Haible  <bruno@clisp.org>
2340
2341         memmove: Move AC_LIBOBJ invocations to module description.
2342         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
2343         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
2344         here...
2345         * modules/memmove (configure.ac): ... to here.
2346
2347 2011-05-21  Bruno Haible  <bruno@clisp.org>
2348
2349         memmem*: Move AC_LIBOBJ invocations to module description.
2350         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
2351         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
2352         here...
2353         (gl_FUNC_MEMMEM): ... and here...
2354         * modules/memmem-simple (configure.ac): ... to here.
2355         * modules/memmem (configure.ac): ... and here.
2356
2357 2011-05-21  Bruno Haible  <bruno@clisp.org>
2358
2359         memcpy: Move AC_LIBOBJ invocations to module description.
2360         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
2361         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
2362         here...
2363         * modules/memcpy (configure.ac): ... to here.
2364
2365 2011-05-21  Bruno Haible  <bruno@clisp.org>
2366
2367         memcmp: Simplify autoconf macro.
2368         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
2369         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
2370         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
2371
2372 2011-05-21  Bruno Haible  <bruno@clisp.org>
2373
2374         memcmp: Move AC_LIBOBJ invocations to module description.
2375         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
2376         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
2377         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
2378         * modules/memcmp (configure.ac): ... to here.
2379         (Depends-on): Update conditions.
2380
2381 2011-05-21  Bruno Haible  <bruno@clisp.org>
2382
2383         memchr: Respect rules for use of AC_LIBOBJ.
2384         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
2385         invocations from here...
2386         * modules/memchr (configure.ac): ... to here.
2387
2388 2011-05-21  Bruno Haible  <bruno@clisp.org>
2389
2390         mbtowc: Move AC_LIBOBJ invocations to module description.
2391         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
2392         invocations from here...
2393         * modules/mbtowc (configure.ac): ... to here.
2394
2395 2011-05-21  Bruno Haible  <bruno@clisp.org>
2396
2397         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
2398         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
2399         gl_PREREQ_MBSRTOWCS invocations from here...
2400         * modules/mbsrtowcs (configure.ac): ... to here.
2401
2402 2011-05-21  Bruno Haible  <bruno@clisp.org>
2403
2404         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
2405         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
2406         gl_PREREQ_MBSNRTOWCS invocations from here...
2407         * modules/mbsnrtowcs (configure.ac): ... to here.
2408
2409 2011-05-21  Bruno Haible  <bruno@clisp.org>
2410
2411         mbsinit: Move AC_LIBOBJ invocations to module description.
2412         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
2413         invocations from here...
2414         * modules/mbsinit (configure.ac): ... to here.
2415
2416 2011-05-21  Bruno Haible  <bruno@clisp.org>
2417
2418         mbrlen: Move AC_LIBOBJ invocations to module description.
2419         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
2420         invocations from here...
2421         * modules/mbrlen (configure.ac): ... to here.
2422
2423 2011-05-21  Bruno Haible  <bruno@clisp.org>
2424
2425         mbrtowc: Respect rules for use of AC_LIBOBJ.
2426         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
2427         invocations from here...
2428         * modules/mbrtowc (configure.ac): ... to here.
2429
2430 2011-05-21  Bruno Haible  <bruno@clisp.org>
2431
2432         malloc-*: Move AC_LIBOBJ invocations to module description.
2433         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
2434         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
2435         AC_LIBOBJ invocations from here...
2436         * modules/malloc-gnu (configure.ac): ... to here.
2437         * modules/malloc-posix (configure.ac): ... and here.
2438
2439 2011-05-21  Bruno Haible  <bruno@clisp.org>
2440
2441         lstat, openat: Respect rules for use of AC_LIBOBJ.
2442         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
2443         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
2444         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
2445         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
2446         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
2447         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
2448         here.
2449         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
2450
2451 2011-05-21  Bruno Haible  <bruno@clisp.org>
2452
2453         lseek: Move AC_LIBOBJ invocations to module description.
2454         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
2455         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
2456         * modules/lseek (configure.ac): ... to here.
2457
2458 2011-05-21  Bruno Haible  <bruno@clisp.org>
2459
2460         linkat: Move AC_LIBOBJ invocations to module description.
2461         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
2462         here...
2463         * modules/linkat (configure.ac): ... to here.
2464
2465 2011-05-21  Bruno Haible  <bruno@clisp.org>
2466
2467         link: Respect rules for use of AC_LIBOBJ.
2468         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
2469         * modules/link (configure.ac): ... to here.
2470
2471 2011-05-21  Bruno Haible  <bruno@clisp.org>
2472
2473         lchown: Move AC_LIBOBJ invocations to module description.
2474         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
2475         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2476         * modules/lchown (configure.ac): ... to here.
2477
2478 2011-05-21  Bruno Haible  <bruno@clisp.org>
2479
2480         iswctype: Move AC_LIBOBJ invocations to module description.
2481         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
2482         here...
2483         * modules/iswctype (configure.ac): ... to here.
2484
2485 2011-05-21  Bruno Haible  <bruno@clisp.org>
2486
2487         iswblank: Move AC_LIBOBJ invocations to module description.
2488         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
2489         here...
2490         * modules/iswblank (configure.ac): ... to here.
2491
2492 2011-05-21  Bruno Haible  <bruno@clisp.org>
2493
2494         atanl: Move AC_LIBOBJ invocations to module description.
2495         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
2496         * modules/atanl (configure.ac): ... to here.
2497
2498 2011-05-21  Bruno Haible  <bruno@clisp.org>
2499
2500         acosl: Move AC_LIBOBJ invocations to module description.
2501         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
2502         * modules/acosl (configure.ac): ... to here.
2503
2504 2011-05-21  Bruno Haible  <bruno@clisp.org>
2505
2506         asinl: Respect rules for use of AC_LIBOBJ.
2507         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
2508         * modules/asinl (configure.ac): ... to here.
2509
2510 2011-05-21  Bruno Haible  <bruno@clisp.org>
2511
2512         tanl: Move AC_LIBOBJ invocations to module description.
2513         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
2514         * modules/tanl (configure.ac): ... to here.
2515
2516 2011-05-21  Bruno Haible  <bruno@clisp.org>
2517
2518         cosl: Move AC_LIBOBJ invocations to module description.
2519         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
2520         * modules/cosl (configure.ac): ... to here.
2521
2522 2011-05-21  Bruno Haible  <bruno@clisp.org>
2523
2524         sinl: Move AC_LIBOBJ invocations to module description.
2525         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
2526         * modules/sinl (configure.ac): ... to here.
2527
2528 2011-05-21  Bruno Haible  <bruno@clisp.org>
2529
2530         logl: Move AC_LIBOBJ invocations to module description.
2531         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
2532         * modules/logl (configure.ac): ... to here.
2533
2534 2011-05-21  Bruno Haible  <bruno@clisp.org>
2535
2536         expl: Move AC_LIBOBJ invocations to module description.
2537         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
2538         * modules/expl (configure.ac): ... to here.
2539
2540 2011-05-21  Bruno Haible  <bruno@clisp.org>
2541
2542         roundl: Move AC_LIBOBJ invocations to module description.
2543         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
2544         * modules/roundl (configure.ac): ... to here.
2545
2546 2011-05-21  Bruno Haible  <bruno@clisp.org>
2547
2548         round: Move AC_LIBOBJ invocations to module description.
2549         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
2550         * modules/round (configure.ac): ... to here.
2551
2552 2011-05-21  Bruno Haible  <bruno@clisp.org>
2553
2554         roundf: Move AC_LIBOBJ invocations to module description.
2555         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
2556         * modules/roundf (configure.ac): ... to here.
2557
2558 2011-05-21  Bruno Haible  <bruno@clisp.org>
2559
2560         truncl: Move AC_LIBOBJ invocations to module description.
2561         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
2562         * modules/truncl (configure.ac): ... to here.
2563
2564 2011-05-21  Bruno Haible  <bruno@clisp.org>
2565
2566         trunc: Move AC_LIBOBJ invocations to module description.
2567         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
2568         * modules/trunc (configure.ac): ... to here.
2569
2570 2011-05-21  Bruno Haible  <bruno@clisp.org>
2571
2572         truncf: Move AC_LIBOBJ invocations to module description.
2573         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
2574         * modules/truncf (configure.ac): ... to here.
2575
2576 2011-05-21  Bruno Haible  <bruno@clisp.org>
2577
2578         ceill: Move AC_LIBOBJ invocations to module description.
2579         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
2580         * modules/ceill (configure.ac): ... to here.
2581
2582 2011-05-21  Bruno Haible  <bruno@clisp.org>
2583
2584         ceil: Move AC_LIBOBJ invocations to module description.
2585         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
2586         * modules/ceil (configure.ac): ... to here.
2587
2588 2011-05-21  Bruno Haible  <bruno@clisp.org>
2589
2590         ceilf: Move AC_LIBOBJ invocations to module description.
2591         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
2592         * modules/ceilf (configure.ac): ... to here.
2593
2594 2011-05-21  Bruno Haible  <bruno@clisp.org>
2595
2596         floorl: Respect rules for use of AC_LIBOBJ.
2597         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
2598         * modules/floorl (configure.ac): ... to here.
2599
2600 2011-05-21  Bruno Haible  <bruno@clisp.org>
2601
2602         floor: Respect rules for use of AC_LIBOBJ.
2603         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
2604         * modules/floor (configure.ac): ... to here.
2605
2606 2011-05-21  Bruno Haible  <bruno@clisp.org>
2607
2608         floorf: Move AC_LIBOBJ invocations to module description.
2609         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
2610         * modules/floorf (configure.ac): ... to here.
2611
2612 2011-05-20  Bruno Haible  <bruno@clisp.org>
2613
2614         sqrtl: Respect rules for use of AC_LIBOBJ.
2615         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
2616         * modules/sqrtl (configure.ac): ... to here.
2617
2618 2011-05-20  Bruno Haible  <bruno@clisp.org>
2619
2620         ldexpl: Respect rules for use of AC_LIBOBJ.
2621         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
2622         * modules/ldexpl (configure.ac): ... to here.
2623
2624 2011-05-20  Bruno Haible  <bruno@clisp.org>
2625
2626         frexpl*: Respect rules for use of AC_LIBOBJ.
2627         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
2628         invocation from here...
2629         * modules/frexpl (configure.ac): ... to here.
2630         * modules/frexpl-nolibm (configure.ac): ... and here.
2631
2632 2011-05-20  Bruno Haible  <bruno@clisp.org>
2633
2634         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
2635         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
2636         invocation from here...
2637         * modules/frexp (configure.ac): ... to here.
2638         * modules/frexp-nolibm (configure.ac): ... and here.
2639
2640 2011-05-20  Bruno Haible  <bruno@clisp.org>
2641
2642         isnan: Respect rules for use of AC_LIBOBJ.
2643         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
2644         invocations here.
2645         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
2646         REPLACE_ISNAN.
2647         * modules/isnand (configure.ac): Likewise.
2648         * modules/isnanl (configure.ac): Likewise.
2649
2650 2011-05-20  Bruno Haible  <bruno@clisp.org>
2651
2652         isnanl*: Respect rules for use of AC_LIBOBJ.
2653         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
2654         invocation from here...
2655         * modules/isnanl (configure.ac): ... to here.
2656         * modules/isnanl-nolibm (configure.ac): ... and here.
2657
2658 2011-05-20  Bruno Haible  <bruno@clisp.org>
2659
2660         isnand*: Move AC_LIBOBJ invocations to module description.
2661         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
2662         invocation from here...
2663         * modules/isnand (configure.ac): ... to here.
2664         * modules/isnand-nolibm (configure.ac): ... and here.
2665
2666 2011-05-20  Bruno Haible  <bruno@clisp.org>
2667
2668         isnanf*: Move AC_LIBOBJ invocations to module description.
2669         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
2670         invocation from here...
2671         * modules/isnanf (configure.ac): ... to here.
2672         * modules/isnanf-nolibm (configure.ac): ... and here.
2673
2674 2011-05-20  Bruno Haible  <bruno@clisp.org>
2675
2676         isnan*: Separate the AC_LIBOBJ invocations.
2677         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
2678         AC_LIBOBJ invocation.
2679         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
2680         here.
2681         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
2682         AC_LIBOBJ invocation.
2683         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
2684         here.
2685         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
2686         AC_LIBOBJ invocation.
2687         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
2688         here.
2689         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
2690
2691 2011-05-08  Bruno Haible  <bruno@clisp.org>
2692
2693         isinf: Move AC_LIBOBJ invocations to module description.
2694         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
2695         * modules/isinf (configure.ac): ... to here.
2696
2697 2011-05-08  Bruno Haible  <bruno@clisp.org>
2698
2699         isfinite: Move AC_LIBOBJ invocations to module description.
2700         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
2701         * modules/isfinite (configure.ac): ... to here.
2702
2703 2011-05-08  Bruno Haible  <bruno@clisp.org>
2704
2705         isblank: Move AC_LIBOBJ invocations to module description.
2706         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
2707         here...
2708         * modules/isblank (configure.ac): ... to here.
2709
2710 2011-05-08  Bruno Haible  <bruno@clisp.org>
2711
2712         isapipe: Move AC_LIBOBJ invocations to module description.
2713         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
2714         gl_PREREQ_ISAPIPE invocations from here...
2715         * modules/isapipe (configure.ac): ... to here.
2716         (Depends-on): Update condition.
2717
2718 2011-05-08  Bruno Haible  <bruno@clisp.org>
2719
2720         ioctl: Move AC_LIBOBJ invocations to module description.
2721         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
2722         invocations from here...
2723         * modules/ioctl (configure.ac): ... to here.
2724         (Depends-on): Update condition.
2725
2726 2011-05-08  Bruno Haible  <bruno@clisp.org>
2727
2728         imaxdiv: Move AC_LIBOBJ invocations to module description.
2729         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
2730         invocations from here...
2731         * modules/imaxdiv (configure.ac): ... to here.
2732
2733 2011-05-08  Bruno Haible  <bruno@clisp.org>
2734
2735         imaxabs: Move AC_LIBOBJ invocations to module description.
2736         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
2737         invocations from here...
2738         * modules/imaxabs (configure.ac): ... to here.
2739
2740 2011-05-08  Bruno Haible  <bruno@clisp.org>
2741
2742         getaddrinfo: Move AC_LIBOBJ invocations to module description.
2743         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
2744         AC_LIBOBJ invocations from here...
2745         * modules/getaddrinfo (configure.ac): ... to here.
2746         (Depends-on): Add conditions.
2747
2748 2011-05-08  Bruno Haible  <bruno@clisp.org>
2749
2750         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
2751         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
2752         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
2753         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
2754         (gl_PREREQ_INET_PTON): ... from here.
2755         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
2756         gl_PREREQ_INET_PTON here.
2757         (Depends-on): Update condition.
2758
2759 2011-05-08  Bruno Haible  <bruno@clisp.org>
2760
2761         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
2762         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
2763         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
2764         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
2765         (gl_PREREQ_INET_NTOP): ... from here.
2766         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
2767         gl_PREREQ_INET_NTOP here.
2768         (Depends-on): Update condition.
2769
2770 2011-05-08  Bruno Haible  <bruno@clisp.org>
2771
2772         iconv_open: Move AC_LIBOBJ invocations to module description.
2773         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
2774         AC_LIBOBJ invocations from here...
2775         * modules/iconv_open (configure.ac): ... to here.
2776
2777 2011-05-08  Bruno Haible  <bruno@clisp.org>
2778
2779         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
2780         If module 'iconv_open' is among the main modules and module
2781         'iconv_open-utf' is among the tests dependencies, then
2782         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
2783         return the special iconv_t values. Therefore iconv() and iconv_close()
2784         must support these special iconv_t values, already in lib, not only in
2785         tests.
2786         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
2787         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
2788         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
2789         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
2790         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
2791         (Depends-on): Add the dependencies of iconv_open-utf.
2792         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
2793         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
2794         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
2795
2796 2011-05-08  Bruno Haible  <bruno@clisp.org>
2797
2798         group-member: Move AC_LIBOBJ invocations to module description.
2799         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
2800         gl_PREREQ_GROUP_MEMBER invocations from here...
2801         * modules/group-member (configure.ac): ... to here.
2802
2803 2011-05-08  Bruno Haible  <bruno@clisp.org>
2804
2805         grantpt: Move AC_LIBOBJ invocations to module description.
2806         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
2807         invocations from here...
2808         * modules/grantpt (configure.ac): ... to here.
2809
2810 2011-05-08  Bruno Haible  <bruno@clisp.org>
2811
2812         glob: Move AC_LIBOBJ invocations to module description.
2813         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
2814         from here...
2815         * modules/glob (configure.ac): ... to here.
2816
2817 2011-05-08  Bruno Haible  <bruno@clisp.org>
2818
2819         getusershell: Move AC_LIBOBJ invocations to module description.
2820         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
2821         Move AC_LIBOBJ invocation from here...
2822         * modules/getusershell (configure.ac): ... to here.
2823         (Depends-on): Update condition.
2824
2825 2011-05-08  Bruno Haible  <bruno@clisp.org>
2826
2827         gettimeofday: Move AC_LIBOBJ invocations to module description.
2828         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
2829         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
2830         gl_PREREQ_GETTIMEOFDAY invocations from here...
2831         * modules/gettimeofday (configure.ac): ... to here.
2832
2833 2011-05-08  Bruno Haible  <bruno@clisp.org>
2834
2835         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
2836         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
2837         just gl_FUNC_TZSET.
2838         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
2839         (gl_FUNC_TZSET_CLOBBER): Remove actions.
2840         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
2841         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
2842
2843 2011-05-08  Bruno Haible  <bruno@clisp.org>
2844
2845         getsubopt: Move AC_LIBOBJ invocations to module description.
2846         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
2847         gl_PREREQ_GETSUBOPT invocations from here...
2848         * modules/getsubopt (configure.ac): ... to here.
2849
2850 2011-05-08  Bruno Haible  <bruno@clisp.org>
2851
2852         getpass-gnu: Move AC_LIBOBJ invocations to module description.
2853         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
2854         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
2855         * modules/getpass-gnu (configure.ac): ... to here.
2856
2857 2011-05-08  Bruno Haible  <bruno@clisp.org>
2858
2859         getpass: Move AC_LIBOBJ invocations to module description.
2860         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
2861         gl_PREREQ_GETPASS invocations from here...
2862         * modules/getpass (configure.ac): ... to here.
2863
2864 2011-05-08  Bruno Haible  <bruno@clisp.org>
2865
2866         getpagesize: Move AC_LIBOBJ invocations to module description.
2867         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
2868         from here...
2869         * modules/getpagesize (configure.ac): ... to here.
2870
2871 2011-05-08  Bruno Haible  <bruno@clisp.org>
2872
2873         getopt: Move AC_LIBOBJ invocations to module description.
2874         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
2875         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
2876         invocations from here...
2877         * modules/getopt-gnu (configure.ac): ... to here.
2878         * modules/getopt-posix (configure.ac): ... and here.
2879         (Depends-on): Update condition.
2880
2881 2011-05-08  Bruno Haible  <bruno@clisp.org>
2882
2883         getopt, argp: Respect rules for use of AC_LIBOBJ.
2884         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
2885         (gl_REPLACE_GETOPT_ALWAYS): New macro.
2886         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
2887         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
2888
2889 2011-05-08  Bruno Haible  <bruno@clisp.org>
2890
2891         getlogin_r: Move AC_LIBOBJ invocations to module description.
2892         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
2893         gl_PREREQ_GETLOGIN_R invocations from here...
2894         * modules/getlogin_r (configure.ac): ... to here.
2895
2896 2011-05-08  Bruno Haible  <bruno@clisp.org>
2897
2898         getlogin: Move AC_LIBOBJ invocations to module description.
2899         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
2900         here...
2901         * modules/getlogin (configure.ac): ... to here.
2902
2903 2011-05-08  Bruno Haible  <bruno@clisp.org>
2904
2905         getloadavg: Move AC_LIBOBJ invocations to module description.
2906         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
2907         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
2908         * modules/getloadavg (configure.ac): ... to here.
2909
2910 2011-05-08  Bruno Haible  <bruno@clisp.org>
2911
2912         gethrxtime: Move AC_LIBOBJ invocations to module description.
2913         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
2914         LIB_GETHRXTIME from here...
2915         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
2916         invocations from here...
2917         * modules/gethrxtime (configure.ac): ... to here.
2918
2919 2011-05-08  Bruno Haible  <bruno@clisp.org>
2920
2921         gethostname: Move AC_LIBOBJ invocations to module description.
2922         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
2923         gl_PREREQ_GETHOSTNAME invocations from here...
2924         * modules/gethostname (configure.ac): ... to here.
2925
2926 2011-05-08  Bruno Haible  <bruno@clisp.org>
2927
2928         getgroups: Move AC_LIBOBJ invocations to module description.
2929         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
2930         here...
2931         * modules/getgroups (configure.ac): ... to here.
2932
2933 2011-05-08  Bruno Haible  <bruno@clisp.org>
2934
2935         getdtablesize: Move AC_LIBOBJ invocations to module description.
2936         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
2937         invocation from here...
2938         * modules/getdtablesize (configure.ac): ... to here.
2939
2940 2011-05-08  Bruno Haible  <bruno@clisp.org>
2941
2942         getdomainname: Move AC_LIBOBJ invocations to module description.
2943         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
2944         gl_PREREQ_GETDOMAINNAME invocations from here...
2945         * modules/getdomainname (configure.ac): ... to here.
2946
2947 2011-05-08  Bruno Haible  <bruno@clisp.org>
2948
2949         getline: Move AC_LIBOBJ invocations to module description.
2950         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
2951         invocations from here...
2952         * modules/getline (configure.ac): ... to here.
2953
2954 2011-05-08  Bruno Haible  <bruno@clisp.org>
2955
2956         getline: Simplify.
2957         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
2958         It's already handled through the module dependency.
2959
2960 2011-05-08  Bruno Haible  <bruno@clisp.org>
2961
2962         getdelim: Move AC_LIBOBJ invocations to module description.
2963         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
2964         and gl_PREREQ_GETDELIM invocations from here...
2965         * modules/getdelim (configure.ac): ... to here.
2966         (Depends-on): Fix condition.
2967
2968 2011-05-08  Bruno Haible  <bruno@clisp.org>
2969
2970         getcwd: Move AC_LIBOBJ invocations to module description.
2971         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
2972         invocations from here...
2973         * modules/getcwd (configure.ac): ... to here.
2974
2975 2011-05-08  Bruno Haible  <bruno@clisp.org>
2976
2977         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
2978         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
2979         here...
2980         * modules/getcwd-lgpl (configure.ac): ... to here.
2981
2982 2011-05-07  Bruno Haible  <bruno@clisp.org>
2983
2984         crypto/gc: Move AC_LIBOBJ invocations to module description.
2985         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
2986         * modules/crypto/gc (configure.ac): ... to here.
2987
2988 2011-05-07  Bruno Haible  <bruno@clisp.org>
2989
2990         fwriting: Move AC_LIBOBJ invocations to module description.
2991         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
2992         here...
2993         * modules/fwriting (configure.ac): ... to here.
2994
2995 2011-05-07  Bruno Haible  <bruno@clisp.org>
2996
2997         fwritable: Move AC_LIBOBJ invocations to module description.
2998         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
2999         here...
3000         * modules/fwritable (configure.ac): ... to here.
3001
3002 2011-05-07  Bruno Haible  <bruno@clisp.org>
3003
3004         futimens: Move AC_LIBOBJ invocations to module description.
3005         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
3006         here...
3007         * modules/futimens (configure.ac): ... to here.
3008
3009 2011-05-07  Bruno Haible  <bruno@clisp.org>
3010
3011         ftruncate: Move AC_LIBOBJ invocations to module description.
3012         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
3013         gl_PREREQ_FTRUNCATE invocations from here...
3014         * modules/ftruncate (configure.ac): ... to here.
3015
3016 2011-05-07  Bruno Haible  <bruno@clisp.org>
3017
3018         fsync: Move AC_LIBOBJ invocations to module description.
3019         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
3020         invocations from here...
3021         * modules/fsync (configure.ac): ... to here.
3022
3023 2011-05-07  Bruno Haible  <bruno@clisp.org>
3024
3025         fsusage: Move AC_LIBOBJ invocations to module description.
3026         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
3027         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
3028         * modules/fsusage (configure.ac): ... to here.
3029
3030 2011-05-07  Bruno Haible  <bruno@clisp.org>
3031
3032         freopen: Move AC_LIBOBJ invocations to module description.
3033         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
3034         invocations from here...
3035         * modules/freopen (configure.ac): ... to here.
3036
3037 2011-05-07  Bruno Haible  <bruno@clisp.org>
3038
3039         free: Move AC_LIBOBJ invocations to module description.
3040         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
3041         invocations from here...
3042         * modules/free (configure.ac): ... to here.
3043
3044 2011-05-07  Bruno Haible  <bruno@clisp.org>
3045
3046         freadable: Move AC_LIBOBJ invocations to module description.
3047         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
3048         here...
3049         * modules/freadable (configure.ac): ... to here.
3050
3051 2011-05-07  Bruno Haible  <bruno@clisp.org>
3052
3053         fpurge: Move AC_LIBOBJ invocations to module description.
3054         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
3055         invocations from here...
3056         * modules/fpurge (configure.ac): ... to here.
3057
3058 2011-05-07  Bruno Haible  <bruno@clisp.org>
3059
3060         fpending: Move AC_LIBOBJ invocations to module description.
3061         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
3062         gl_FUNC_FPENDING.
3063         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
3064         invocations from here...
3065         * modules/fpending (configure.ac): ... to here.
3066
3067 2011-05-07  Bruno Haible  <bruno@clisp.org>
3068
3069         fopen: Move AC_LIBOBJ invocations to module description.
3070         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
3071         invocations from here...
3072         * modules/fopen (configure.ac): ... to here.
3073
3074 2011-05-07  Bruno Haible  <bruno@clisp.org>
3075
3076         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
3077         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
3078         gl_FUNC_FNMATCH_POSIX.
3079         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
3080         invocations from here...
3081         * modules/fnmatch (configure.ac): ... to here.
3082         * modules/fnmatch-gnu (configure.ac): ... and here.
3083
3084 2011-05-07  Bruno Haible  <bruno@clisp.org>
3085
3086         flock: Move AC_LIBOBJ invocations to module description.
3087         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
3088         invocations from here...
3089         * modules/flock (configure.ac): ... to here.
3090
3091 2011-05-07  Bruno Haible  <bruno@clisp.org>
3092
3093         fileblocks: Move AC_LIBOBJ invocations to module description.
3094         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
3095         gl_PREREQ_FILEBLOCKS invocations from here...
3096         * modules/fileblocks (configure.ac): ... to here.
3097
3098 2011-05-06  Bruno Haible  <bruno@clisp.org>
3099
3100         fflush: Move AC_LIBOBJ invocations to module description.
3101         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
3102         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
3103         invocations from here...
3104         * modules/fflush (configure.ac): ... to here.
3105
3106 2011-05-06  Bruno Haible  <bruno@clisp.org>
3107
3108         fdopendir: Move AC_LIBOBJ invocations to module description.
3109         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
3110         here...
3111         * modules/fdopendir (configure.ac): ... to here.
3112         (Depends-on): Improve conditions.
3113
3114 2011-05-06  Bruno Haible  <bruno@clisp.org>
3115
3116         _Exit: Move AC_LIBOBJ invocations to module description.
3117         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
3118         invocations from here...
3119         * modules/_Exit (configure.ac): ... to here.
3120
3121 2011-05-21  Bruno Haible  <bruno@clisp.org>
3122
3123         euidaccess: Respect rules for use of AC_LIBOBJ.
3124         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
3125         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
3126         from here...
3127         * modules/euidaccess (configure.ac): ... to here.
3128
3129 2011-05-06  Bruno Haible  <bruno@clisp.org>
3130
3131         error: Move AC_LIBOBJ invocations to module description.
3132         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
3133         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
3134         invocations from here...
3135         * modules/error (configure.ac): ... to here.
3136
3137 2011-05-06  Bruno Haible  <bruno@clisp.org>
3138
3139         duplocale: Move AC_LIBOBJ invocations to module description.
3140         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
3141         gl_PREREQ_DUPLOCALE invocations from here...
3142         * modules/duplocale (configure.ac): ... to here.
3143
3144 2011-05-05  Bruno Haible  <bruno@clisp.org>
3145
3146         dirfd: Move AC_LIBOBJ invocations to module description.
3147         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
3148         gl_FUNC_DIRFD.
3149         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
3150         here...
3151         * modules/dirfd (configure.ac): ... to here.
3152         (Depends-on): Fix condition.
3153
3154 2011-05-05  Bruno Haible  <bruno@clisp.org>
3155
3156         chown: Respect rules for use of AC_LIBOBJ.
3157         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
3158         * modules/chown (configure.ac): ... to here.
3159
3160 2011-05-05  Bruno Haible  <bruno@clisp.org>
3161
3162         chdir-long: Move AC_LIBOBJ invocations to module description.
3163         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
3164         gl_PREREQ_CHDIR_LONG invocations from here...
3165         * modules/chdir-long (configure.ac): ... to here.
3166
3167 2011-05-05  Bruno Haible  <bruno@clisp.org>
3168
3169         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
3170         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
3171         from here...
3172         * modules/canonicalize-lgpl (configure.ac): ... to here.
3173
3174 2011-05-05  Bruno Haible  <bruno@clisp.org>
3175
3176         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
3177         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
3178         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
3179         REPLACE_CALLOC.
3180         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
3181         * modules/calloc-gnu (configure.ac): Likewise.
3182
3183 2011-05-05  Bruno Haible  <bruno@clisp.org>
3184
3185         btowc: Move AC_LIBOBJ invocations to module description.
3186         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
3187         invocations from here...
3188         * modules/btowc (configure.ac): ... to here.
3189
3190 2011-05-21  Bruno Haible  <bruno@clisp.org>
3191
3192         atexit: Move AC_LIBOBJ invocations to module description.
3193         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
3194         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
3195         here...
3196         * modules/atexit (configure.ac): ... to here.
3197
3198 2011-05-05  Bruno Haible  <bruno@clisp.org>
3199
3200         atoll: Move AC_LIBOBJ invocations to module description.
3201         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
3202         invocations from here...
3203         * modules/atoll (configure.ac): ... to here.
3204
3205 2011-05-05  Bruno Haible  <bruno@clisp.org>
3206
3207         argz: Move AC_LIBOBJ invocations to module description.
3208         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
3209         * modules/argz (configure.ac): ... to here.
3210
3211 2011-05-05  Bruno Haible  <bruno@clisp.org>
3212
3213         alphasort: Move AC_LIBOBJ invocations to module description.
3214         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
3215         gl_PREREQ_ALPHASORT invocations from here...
3216         * modules/alphasort (configure.ac): ... to here.
3217
3218 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
3219
3220         verify: new macro verify_expr; verify_true deprecated
3221         * NEWS: Mention this.
3222         * doc/verify.texi (Compile-time Assertions): Document this.
3223         * lib/verify.h (verify_true): Deprecate.
3224         (verify_expr): New macro.
3225         * tests/test-verify.c (function): Test verify_expr.
3226
3227 2011-06-14  Jim Meyering  <meyering@redhat.com>
3228
3229         init.sh: give more portable redirection-related advice in a comment
3230         * tests/init.sh (stderr_fileno_): Update the advice in comments.
3231         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
3232         for lots of discussion.  Stefano Lattarini suggested the solution
3233         of putting "9>&2" after the command.  Reported by Bruno Haible.
3234
3235 2011-06-13  Bruno Haible  <bruno@clisp.org>
3236
3237         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
3238         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
3239         'none'.
3240
3241 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
3242
3243         ftoastr: use strtof only if HAVE_STRTOF
3244         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
3245         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
3246         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
3247         * modules/ftoastr (configure.ac): Check for strtof.
3248
3249 2011-06-13  Bruno Haible  <bruno@clisp.org>
3250
3251         gnulib-tool: Addendum to 2011-06-08 commit.
3252         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
3253         and --witness-c-macro have been given, augment AM_CPPFLAGS.
3254
3255 2011-06-13  Bruno Haible  <bruno@clisp.org>
3256
3257         fseeko: Provide a non-inline replacement of fseek().
3258         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
3259         * modules/fseeko (Depends-on): Add fseek.
3260         * modules/fseek (License): Change to LGPLv2+.
3261
3262 2011-06-13  Bruno Haible  <bruno@clisp.org>
3263
3264         ftello: Provide a non-inline replacement of ftell().
3265         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
3266         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
3267         not have ftello() (such as on mingw).
3268         * modules/ftello (Depends-on): Add ftell.
3269         * modules/ftell (License): Change to LGPLv2+.
3270
3271 2011-05-07  Bruno Haible  <bruno@clisp.org>
3272
3273         ftell: Move AC_LIBOBJ invocations to module description.
3274         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
3275         * modules/ftell (configure.ac): ... to here.
3276
3277 2011-05-07  Bruno Haible  <bruno@clisp.org>
3278
3279         ftello: Respect rules for use of AC_LIBOBJ.
3280         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
3281         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
3282         here...
3283         * modules/ftello (configure.ac): ... to here.
3284
3285 2011-05-07  Bruno Haible  <bruno@clisp.org>
3286
3287         fseeko: Simplify.
3288         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
3289         (gl_FUNC_FSEEKO): Inline it here.
3290
3291 2011-05-07  Bruno Haible  <bruno@clisp.org>
3292
3293         fseek: Move AC_LIBOBJ invocations to module description.
3294         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
3295         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
3296         * modules/fseek (configure.ac): ... to here.
3297
3298 2011-05-07  Bruno Haible  <bruno@clisp.org>
3299
3300         fseek: Respect rules for use of AC_LIBOBJ.
3301         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
3302         here...
3303         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
3304
3305 2011-05-07  Bruno Haible  <bruno@clisp.org>
3306
3307         fseeko: Respect rules for use of AC_LIBOBJ.
3308         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
3309         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
3310         here...
3311         * modules/fseeko (configure.ac): ... to here.
3312
3313 2011-06-13  Bruno Haible  <bruno@clisp.org>
3314
3315         gnulib-tool: Allow comments in the 'Depends-on' section.
3316         * doc/gnulib.texi (Module description): Mention comment syntax in the
3317         Depends-on section.
3318         * gnulib-tool (func_get_dependencies): Filter out comment lines.
3319
3320 2011-06-13  Bruno Haible  <bruno@clisp.org>
3321
3322         file-set.h: guard __attibute__ use, now that it's not always defined
3323         * lib/file-set.h (record_file): Use __attribute__ only with compiler
3324         versions that support it.  This fixes a coreutils build failure with
3325         the vendor cc on HP-UX 11.31.
3326
3327 2011-06-12  Bruno Haible  <bruno@clisp.org>
3328
3329         acl: Add support for HP-UX >= 11.11 JFS ACLs.
3330         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
3331         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
3332         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
3333         (acl, aclsort): New declarations.
3334         (aclv_nontrivial): New declaration.
3335         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
3336         (file_has_acl): Read also the second kind of HP-UX ACLs.
3337         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
3338         kind of HP-UX ACLs if the first kind fails.
3339         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
3340         second kind of HP-UX ACLs.
3341         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
3342         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
3343         agree.
3344         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3345         hpuxjfs.
3346         Handle hpuxjfs.
3347         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3348         hpuxjfs.
3349         Handle hpuxjfs.
3350         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3351         (func_test_same_acls): Use both lsacl and getacl.
3352         Handle hpuxjfs.
3353         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3354         (func_test_same_acls): Use both lsacl and getacl.
3355         Handle hpuxjfs.
3356
3357 2011-06-12  Bruno Haible  <bruno@clisp.org>
3358
3359         acl: Complete the 2010-08-10 fix.
3360         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
3361         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
3362         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
3363         explicitly.
3364         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
3365         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
3366
3367 2011-06-12  Bruno Haible  <bruno@clisp.org>
3368
3369         spawn-pipe tests: Comments.
3370         * tests/test-spawn-pipe-child.c (main): Update comment.
3371         Reported by James Youngman <jay@gnu.org>.
3372
3373 2011-06-11  James Youngman  <jay@gnu.org>
3374
3375         New module 'stat-size'.
3376         * modules/stat-size: New module.  Provides macros for accessing
3377         file size information in instances of struct stat.  Depends on the
3378         fileblocks module because it calls st_blocks.
3379         * lib/stat-size.h: New file, adapted from coreutils' system.h.
3380         * doc/gnulib.texi: Include stat-size.texi.
3381         * doc/stat-size.texi: Documentation for this module.
3382         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
3383         * m4/fileblocks.m4: Mention that stat-size depends on the call to
3384         AC_STRUCT_ST_BLOCKS.
3385
3386 2011-06-09  Bruno Haible  <bruno@clisp.org>
3387
3388         thread: Support pthreads-win32.
3389         * lib/glthread/thread.h (gl_thread_self): Define differently on
3390         pthreads-win32.
3391         (gl_null_thread): New declaration.
3392         (gl_thread_self_pointer): New macro.
3393         * lib/glthread/thread.c (gl_null_thread): New constant.
3394         * tests/test-lock.c: Use gl_thread_self_pointer instead of
3395         gl_thread_self.
3396         * tests/test-tls.c: Likewise.
3397         Suggested by Paul Eggert. Reported by Eric Blake.
3398
3399 2011-06-09  Bruno Haible  <bruno@clisp.org>
3400
3401         thread: Fix confusion between NULL and 0.
3402         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
3403         Reported by Paul Eggert.
3404
3405 2011-06-09  Bruno Haible  <bruno@clisp.org>
3406
3407         spawn-pipe tests: Avoid test failure on HP-UX 11.
3408         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
3409         is closed.
3410
3411 2011-06-09  Bruno Haible  <bruno@clisp.org>
3412
3413         acl tests: Fix compilation error on HP-UX 11.
3414         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
3415
3416 2011-06-09  Bruno Haible  <bruno@clisp.org>
3417
3418         rmdir: Avoid test failure on HP-UX 10.20.
3419         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
3420         EEXIST.
3421
3422 2011-06-08  Eric Blake  <eblake@redhat.com>
3423
3424         perror: fix test on mingw
3425         * modules/perror-tests (Depends-on): Add dup2.
3426
3427         strerror_r-posix: fix on MacOS
3428         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
3429         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
3430         logic bug.
3431         * lib/strerror_r.c (strerror_r): Fix the bug.
3432         * lib/strerror.c (strerror): Likewise.
3433         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
3434         problem.
3435         * doc/posix-functions/strerror.texi (strerror): Likewise.
3436         * doc/posix-functions/perror.texi (perror): Likewise.
3437         * tests/test-strerror.c (main): Enhance test.
3438         * tests/test-strerror_r.c (main): Likewise.
3439
3440 2011-06-08  Bruno Haible  <bruno@clisp.org>
3441
3442         gnulib-tool: Better isolation between different gnulib-tool invocations.
3443         * gnulib-tool: New option --witness-c-macro.
3444         (witness_c_macro): New variable.
3445         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
3446         AM_CPPFLAGS define it as a C macro.
3447         (func_emit_tests_Makefile_am): Likewise.
3448         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
3449         read it from there.
3450         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
3451         m4_define, not AC_DEFUN.
3452         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
3453         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
3454         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
3455         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
3456         s|...|...|, to substitute the values of the GNULIB_* module indicator
3457         variables.
3458         * modules/dirent (Makefile.am): Likewise.
3459         * modules/fcntl-h (Makefile.am): Likewise.
3460         * modules/iconv-h (Makefile.am): Likewise.
3461         * modules/langinfo (Makefile.am): Likewise.
3462         * modules/locale (Makefile.am): Likewise.
3463         * modules/math (Makefile.am): Likewise.
3464         * modules/netdb (Makefile.am): Likewise.
3465         * modules/poll-h (Makefile.am): Likewise.
3466         * modules/pty (Makefile.am): Likewise.
3467         * modules/search (Makefile.am): Likewise.
3468         * modules/signal (Makefile.am): Likewise.
3469         * modules/spawn (Makefile.am): Likewise.
3470         * modules/stdio (Makefile.am): Likewise.
3471         * modules/stdlib (Makefile.am): Likewise.
3472         * modules/string (Makefile.am): Likewise.
3473         * modules/sys_ioctl (Makefile.am): Likewise.
3474         * modules/sys_select (Makefile.am): Likewise.
3475         * modules/sys_socket (Makefile.am): Likewise.
3476         * modules/sys_stat (Makefile.am): Likewise.
3477         * modules/sys_times (Makefile.am): Likewise.
3478         * modules/sys_utsname (Makefile.am): Likewise.
3479         * modules/sys_wait (Makefile.am): Likewise.
3480         * modules/termios (Makefile.am): Likewise.
3481         * modules/time (Makefile.am): Likewise.
3482         * modules/unistd (Makefile.am): Likewise.
3483         * modules/wchar (Makefile.am): Likewise.
3484
3485 2011-06-08  Eric Blake  <eblake@redhat.com>
3486
3487         strerror: simplify replacement
3488         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
3489         * modules/strerror (configure.ac): No prereqs needed here...
3490         * modules/strerror-override (configure.ac): ...but this needs it.
3491         (Files): Add file for needed prereq macro.
3492
3493 2011-06-08  Bruno Haible  <bruno@clisp.org>
3494
3495         strerror_r-posix: Tweaks.
3496         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
3497         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
3498         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
3499         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
3500         (gl_FUNC_STRERROR_R): ... to here.
3501         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
3502
3503 2011-06-07  Eric Blake  <eblake@redhat.com>
3504
3505         perror: document fixed bugs
3506         * doc/posix-functions/perror.texi (perror): Document recent
3507         patches.
3508
3509 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
3510
3511         stat-time: get_stat_birthtime failure is better-defined
3512         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
3513         return a timestamp whose tv_sec and tv_nsec values are both -1.
3514         Previously, the spec said only that the tv_nsec value was negative.
3515         This upward-compatible change simplifies GNU tar a bit.
3516
3517 2011-06-07  Eric Blake  <eblake@redhat.com>
3518
3519         strerror_r-posix: work around cygwin 1.7.9
3520         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
3521         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
3522         bug without replacing strerror_r.
3523         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
3524         strerror_r is buggy, but without requiring strerror_r compilation.
3525         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
3526
3527         test-perror: relax test to ignore cygwin bug
3528         * tests/test-perror2.c (main): Relax test on requiring detection
3529         of stream errors, and use unbuffered stream.
3530         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
3531         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
3532         * doc/posix-functions/fputc.texi (fputc): Likewise.
3533         * doc/posix-functions/fputs.texi (fputs): Likewise.
3534         * doc/posix-functions/fputws.texi (fputws): Likewise.
3535         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
3536         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
3537         * doc/posix-functions/getopt.texi (getopt): Likewise.
3538         * doc/posix-functions/perror.texi (perror): Likewise.
3539         * doc/posix-functions/printf.texi (printf): Likewise.
3540         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
3541         * doc/posix-functions/psignal.texi (psignal): Likewise.
3542         * doc/posix-functions/putc.texi (putc): Likewise.
3543         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
3544         Likewise.
3545         * doc/posix-functions/putchar.texi (putchar): Likewise.
3546         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
3547         Likewise.
3548         * doc/posix-functions/puts.texi (puts): Likewise.
3549         * doc/posix-functions/putwc.texi (putwc): Likewise.
3550         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
3551         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
3552         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
3553         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
3554         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
3555         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
3556         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
3557         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
3558
3559 2011-05-22  Bruno Haible  <bruno@clisp.org>
3560
3561         strerror: Move AC_LIBOBJ invocations to module description.
3562         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
3563         gl_PREREQ_STRERROR invocations from here...
3564         * modules/strerror (configure.ac): ... to here.
3565
3566 2011-05-21  Bruno Haible  <bruno@clisp.org>
3567
3568         perror: Use common idiom.
3569         * modules/perror (configure.ac): Reorder statements.
3570
3571 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
3572
3573         tests: fix usage message in 'mktempd_'
3574         * tests/init.sh (mktempd_): In the usage message, use literal
3575         'mktempd_', not '$ME' (which is even undefined), as the name of
3576         the subroutine.
3577
3578 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
3579
3580         tests init: new function 'fatal_', for hard errors
3581         Before this patch, the only way offered by tests/init.sh to
3582         properly signal a hard error was the `framework_failure_'
3583         function.  But the error message issued by that function,
3584         as its name would suggest, refers to a set-up failure in the
3585         testsuite, while hard errors can obviously also be due to
3586         other reasons.  The best way to fix this inconsistency is to
3587         introduce a new function with a more general error message.
3588         * tests/init.sh (fatal_): New function.
3589
3590 2011-06-06  Eric Blake  <eblake@redhat.com>
3591
3592         canonicalize-lgpl: use common idiom
3593         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
3594         over newer POSIX -Rf.
3595         Reported by Bruno Haible.
3596
3597         canonicalize-lgpl: work around AIX realpath bug
3598         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
3599         * doc/posix-functions/realpath.texi (realpath): Document it.
3600         Reported by Bruno Haible.
3601
3602         strerror: work around FreeBSD bug
3603         * lib/strerror.c (strerror): Special case 0.
3604         Reported by Bruno Haible.
3605
3606         strerror-override: avoid bloating errno module
3607         * modules/errno (Files, configure.ac): Move replacement strings...
3608         * modules/strerror-override: ...to new module.
3609         * modules/strerror (Depends-on): Add strerror-override.
3610         * modules/strerror_r-posix (Depends-on): Likewise.
3611         * MODULES.html.sh: Document new module.
3612         Reported by Bruno Haible.
3613
3614 2011-06-06  Bruno Haible  <bruno@clisp.org>
3615
3616         spawn-pipe tests: Rename program.
3617         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
3618         * tests/test-spawn-pipe-child.c: Update comment.
3619         * tests/test-spawn-pipe.sh: Update.
3620         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
3621
3622         spawn-pipe tests: Link the child program only against libc.
3623         * tests/test-spawn-pipe-child.c: New file, extracted from
3624         tests/test-spawn-pipe.c.
3625         (main): Expect only one argument.
3626         (is_open): New function, copied from tests/test-pipe.c.
3627         * tests/test-spawn-pipe.c: Don't include <errno.h>.
3628         (child_main): Remove function.
3629         (test_pipe): Pass only one argument to the child program.
3630         (main): Remove child process code. Expect the child program's name as
3631         first argument.
3632         * tests/test-spawn-pipe.sh: Pass the child program's name as first
3633         argument.
3634         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
3635         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
3636         test-spawn-pipe-child against no libraries.
3637
3638 2011-06-06  Bruno Haible  <bruno@clisp.org>
3639
3640         careadlinkat: Avoid mismatch between ssize_t and int.
3641         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
3642         * lib/careadlinkat.c (careadlinkatcwd): Define always.
3643
3644 2011-06-06  Jim Meyering  <meyering@redhat.com>
3645
3646         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
3647         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
3648         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
3649
3650 2011-06-05  Bruno Haible  <bruno@clisp.org>
3651
3652         ansi-c++-opt: Interoperability with libtool.
3653         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
3654         set the variable to "no", not to ":".
3655         * NEWS: Mention the change.
3656
3657 2011-06-05  Bruno Haible  <bruno@clisp.org>
3658
3659         acl: Fix test failure on AIX 7.
3660         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
3661         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
3662
3663 2011-06-05  Bruno Haible  <bruno@clisp.org>
3664
3665         pipe-filter-ii: Fix test failure on AIX and IRIX.
3666         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
3667         with EAGAIN, retry with a smaller buffer size.
3668
3669 2011-06-05  Bruno Haible  <bruno@clisp.org>
3670
3671         localename: Fix link dependencies.
3672         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
3673         * modules/localename-tests (Makefile.am): Link test-localename with
3674         $(LIBTHREAD).
3675
3676 2011-06-05  Bruno Haible  <bruno@clisp.org>
3677
3678         error: Avoid gcc warning.
3679         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
3680
3681 2011-06-05  Bruno Haible  <bruno@clisp.org>
3682
3683         unsetenv: Avoid gcc warning.
3684         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
3685
3686 2011-06-05  Bruno Haible  <bruno@clisp.org>
3687
3688         setenv: Avoid gcc warning.
3689         * lib/setenv.c (setenv): Provide declaration if system lacks it.
3690
3691 2011-06-05  Bruno Haible  <bruno@clisp.org>
3692
3693         sys_select: Ensure memset is declared also on AIX 7.
3694         * lib/sys_select.in.h: Include <string.h> also on AIX.
3695         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
3696         self-contained also on AIX 7.1.
3697
3698 2011-06-04  Jim Meyering  <meyering@redhat.com>
3699
3700         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
3701         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
3702         function name, "error".
3703         (_gl_translatable_diag_func_re): New configurable variable.
3704
3705 2011-06-04  Bruno Haible  <bruno@clisp.org>
3706
3707         getopt: Avoid gcc warning.
3708         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
3709
3710 2011-06-04  Bruno Haible  <bruno@clisp.org>
3711
3712         strerror_r: Fix comments.
3713         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
3714         commit.
3715
3716 2011-06-04  Bruno Haible  <bruno@clisp.org>
3717
3718         perror: Fix compilation error.
3719         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
3720         Undefine fprintf, not sprintf.
3721         * modules/perror (Depends-on): Remove intprops, verify.
3722
3723 2011-06-04  Bruno Haible  <bruno@clisp.org>
3724
3725         setlocale: Enable replacement on Cygwin 1.5.
3726         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
3727         Cygwin 1.5.x.
3728         * doc/posix-functions/setlocale.texi: Mention that the problem with the
3729         LC_CTYPE category also exists on Cygwin 1.5.x.
3730
3731 2011-06-04  Bruno Haible  <bruno@clisp.org>
3732
3733         strerror-override: Don't disable symbol renamings.
3734         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
3735         * lib/strerror-override.c: Include config.h.
3736         (strerror_override): Don't undefine.
3737
3738 2011-06-03  Bruno Haible  <bruno@clisp.org>
3739
3740         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
3741         * lib/localename.h: Update copyright header.
3742         * lib/localename.c: Likewise.
3743         * lib/relocatable.h: Likewise.
3744         * lib/relocatable.c: Likewise.
3745
3746 2011-06-02  Bruno Haible  <bruno@clisp.org>
3747
3748         doc: Fix a module name.
3749         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
3750
3751 2011-06-02  Bruno Haible  <bruno@clisp.org>
3752
3753         pipe2: Remove dependency on 'nonblocking' module.
3754         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
3755         O_NONBLOCK is defined by gnulib.
3756         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
3757         is zero.
3758         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
3759         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
3760         defined by gnulib.
3761         (get_nonblocking_flag): New function.
3762         (main): Test O_NONBLOCK flag only if it is nonzero.
3763         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
3764
3765 2011-06-03  Jim Meyering  <meyering@redhat.com>
3766
3767         maint: three new prohibit-header-without-use rules
3768         Prohibit use of cloexec.h, posixver.h, same.h without use.
3769         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
3770         (sc_prohibit_posixver_without_use): Likewise.
3771         (sc_prohibit_same_without_use): Likewise.
3772
3773 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
3774
3775         allocator: 'die' routine is now given requested size
3776         * lib/allocator.h (struct allocator.die): New size arg.
3777         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
3778         If the actual problem is an ssize_t limitation, not a size_t or
3779         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
3780
3781 2011-06-01  Eric Blake  <eblake@redhat.com>
3782
3783         strerror: drop strerror_r dependency
3784         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
3785         * lib/strerror-override.c (strerror_override): ...to new file.
3786         * lib/strerror-override.h: Add prototype.
3787         * lib/strerror-impl.h: Delete.
3788         * lib/strerror.c (strerror): New implementation.
3789         * modules/errno (Files): Add new files.
3790         (configure.ac): Compile new file as appropriate.
3791         * modules/strerror (Files): Drop unused file.
3792         (Depends-on): Drop strerror_r-posix.
3793         * MODULES.html.sh: Document strerror_r-posix.
3794         Requested by Sam Steingold.
3795
3796         perror: call strerror_r directly
3797         * modules/perror (Files): Drop strerror-impl.h.
3798         * lib/perror.c (perror): Use our own stack buffer, rather than
3799         calling a wrapper that uses static storage.
3800         * doc/posix-functions/perror.texi (perror): Document a limitation
3801         of our replacement.
3802
3803         strerror_r: fix includes for FreeBSD
3804         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
3805         since we use abort on some platforms.
3806         Reported by Matthias Bolte.
3807
3808 2011-05-31  Bruno Haible  <bruno@clisp.org>
3809
3810         Fix link errors in tests: openat-die uses gettext-h.
3811         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
3812         against $(LIBINTL).
3813         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
3814         against $(LIBINTL).
3815         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
3816         $(LIBINTL).
3817         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
3818         against $(LIBINTL).
3819         * modules/linkat-tests (Makefile.am): Link test-linkat against
3820         $(LIBINTL).
3821         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
3822         $(LIBINTL).
3823         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
3824         against $(LIBINTL).
3825         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
3826         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
3827         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
3828         $(LIBINTL).
3829         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
3830         $(LIBINTL).
3831         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
3832         $(LIBINTL).
3833         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3834
3835 2011-05-31  Bruno Haible  <bruno@clisp.org>
3836
3837         Fix link errors in tests: wait-process uses gettext-h.
3838         * modules/nonblocking-pipe-tests (Makefile.am): Set
3839         test_nonblocking_pipe_main_LDADD.
3840         * modules/nonblocking-socket-tests (Makefile.am): Link
3841         test-nonblocking-socket-main against $(LIBINTL).
3842         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3843
3844 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
3845
3846         assert-h: work around 'verify' incompatibility
3847         * lib/verify.h: Use @...@ directives, not ifdef.
3848         * modules/assert-h (assert.h): Implement the directives.
3849         (assert.h): Substitute the symbol-prefix more consistently.
3850
3851 2011-05-29  Jim Meyering  <meyering@redhat.com>
3852
3853         trim: remove three superfluous assignments
3854         * lib/trim.c (trim2): Remove three superfluous assignments
3855         and correct brace positioning.
3856
3857 2011-05-29  Bruno Haible  <bruno@clisp.org>
3858
3859         wctype-h: Avoid namespace pollution on Solaris 2.6.
3860         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
3861         identifiers.
3862         * doc/posix-headers/wctype.texi: Mention the problem.
3863         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3864
3865 2011-05-28  Jim Meyering  <meyering@redhat.com>
3866
3867         parse-datetime.y: accommodate -Wstrict-overflow
3868         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
3869         placate -Wstrict-overflow.
3870
3871         trim: avoid a warning from -O2 -Wstrict-overflow
3872         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
3873
3874 2011-05-29  Bruno Haible  <bruno@clisp.org>
3875
3876         gnulib-tool: Fix bug in yesterday's commit.
3877         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
3878         twice.
3879
3880 2011-05-29  Bruno Haible  <bruno@clisp.org>
3881
3882         Allow multiple gnulib generated include files to be combined.
3883         * gnulib-tool (func_compute_include_guard_prefix): New function.
3884         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
3885         ${gl_include_guard_prefix} references.
3886         (func_import, func_create_testdir): Invoke
3887         func_compute_include_guard_prefix.
3888         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
3889         * lib/ctype.in.h: Likewise.
3890         * lib/dirent.in.h: Likewise.
3891         * lib/errno.in.h: Likewise.
3892         * lib/fcntl.in.h: Likewise.
3893         * lib/float.in.h: Likewise.
3894         * lib/getopt.in.h: Likewise.
3895         * lib/iconv.in.h: Likewise.
3896         * lib/langinfo.in.h: Likewise.
3897         * lib/locale.in.h: Likewise.
3898         * lib/math.in.h: Likewise.
3899         * lib/netdb.in.h: Likewise.
3900         * lib/netinet_in.in.h: Likewise.
3901         * lib/poll.in.h: Likewise.
3902         * lib/pthread.in.h: Likewise.
3903         * lib/pty.in.h: Likewise.
3904         * lib/sched.in.h: Likewise.
3905         * lib/se-selinux.in.h: Likewise.
3906         * lib/search.in.h: Likewise.
3907         * lib/signal.in.h: Likewise.
3908         * lib/spawn.in.h: Likewise.
3909         * lib/stdarg.in.h: Likewise.
3910         * lib/stddef.in.h: Likewise.
3911         * lib/stdint.in.h: Likewise.
3912         * lib/stdio.in.h: Likewise.
3913         * lib/stdlib.in.h: Likewise.
3914         * lib/string.in.h: Likewise.
3915         * lib/strings.in.h: Likewise.
3916         * lib/sys_file.in.h: Likewise.
3917         * lib/sys_ioctl.in.h: Likewise.
3918         * lib/sys_select.in.h: Likewise.
3919         * lib/sys_socket.in.h: Likewise.
3920         * lib/sys_stat.in.h: Likewise.
3921         * lib/sys_time.in.h: Likewise.
3922         * lib/sys_times.in.h: Likewise.
3923         * lib/sys_uio.in.h: Likewise.
3924         * lib/sys_utsname.in.h: Likewise.
3925         * lib/sys_wait.in.h: Likewise.
3926         * lib/sysexits.in.h: Likewise.
3927         * lib/termios.in.h: Likewise.
3928         * lib/time.in.h: Likewise.
3929         * lib/unistd.in.h: Likewise.
3930         * lib/wchar.in.h: Likewise.
3931         * lib/wctype.in.h: Likewise.
3932         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
3933         * modules/ctype (Makefile.am): Likewise.
3934         * modules/dirent (Makefile.am): Likewise.
3935         * modules/errno (Makefile.am): Likewise.
3936         * modules/fcntl-h (Makefile.am): Likewise.
3937         * modules/float (Makefile.am): Likewise.
3938         * modules/getopt-posix (Makefile.am): Likewise.
3939         * modules/iconv-h (Makefile.am): Likewise.
3940         * modules/langinfo (Makefile.am): Likewise.
3941         * modules/locale (Makefile.am): Likewise.
3942         * modules/math (Makefile.am): Likewise.
3943         * modules/netdb (Makefile.am): Likewise.
3944         * modules/netinet_in (Makefile.am): Likewise.
3945         * modules/poll-h (Makefile.am): Likewise.
3946         * modules/pthread (Makefile.am): Likewise.
3947         * modules/pty (Makefile.am): Likewise.
3948         * modules/sched (Makefile.am): Likewise.
3949         * modules/search (Makefile.am): Likewise.
3950         * modules/selinux-h (Makefile.am): Likewise.
3951         * modules/signal (Makefile.am): Likewise.
3952         * modules/spawn (Makefile.am): Likewise.
3953         * modules/stdarg (Makefile.am): Likewise.
3954         * modules/stddef (Makefile.am): Likewise.
3955         * modules/stdint (Makefile.am): Likewise.
3956         * modules/stdio (Makefile.am): Likewise.
3957         * modules/stdlib (Makefile.am): Likewise.
3958         * modules/string (Makefile.am): Likewise.
3959         * modules/strings (Makefile.am): Likewise.
3960         * modules/sys_file (Makefile.am): Likewise.
3961         * modules/sys_ioctl (Makefile.am): Likewise.
3962         * modules/sys_select (Makefile.am): Likewise.
3963         * modules/sys_socket (Makefile.am): Likewise.
3964         * modules/sys_stat (Makefile.am): Likewise.
3965         * modules/sys_time (Makefile.am): Likewise.
3966         * modules/sys_times (Makefile.am): Likewise.
3967         * modules/sys_uio (Makefile.am): Likewise.
3968         * modules/sys_utsname (Makefile.am): Likewise.
3969         * modules/sys_wait (Makefile.am): Likewise.
3970         * modules/sysexits (Makefile.am): Likewise.
3971         * modules/termios (Makefile.am): Likewise.
3972         * modules/time (Makefile.am): Likewise.
3973         * modules/unistd (Makefile.am): Likewise.
3974         * modules/wchar (Makefile.am): Likewise.
3975         * modules/wctype-h (Makefile.am): Likewise.
3976         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
3977
3978 2011-05-29  Bruno Haible  <bruno@clisp.org>
3979
3980         assert-h: Allow multiple gnulib generated replacements to coexist.
3981         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
3982
3983 2011-05-29  Bruno Haible  <bruno@clisp.org>
3984
3985         argp: Allow coexistence with strerror_r-posix module.
3986         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
3987         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
3988         by gnulib's <string.h> replacement), assume it has the POSIX signature,
3989         not the glibc signature.
3990
3991 2011-05-28  Bruno Haible  <bruno@clisp.org>
3992
3993         gnulib-tool: Alternative structure of testdirs, similar to --import.
3994         * gnulib-tool: New option --single-configure.
3995         (func_usage): Document it.
3996         (single_configure): New variable.
3997         (func_modules_transitive_closure_separately,
3998         func_modules_transitive_closure_separately,
3999         func_determine_use_libtests, func_modules_add_dummy_separately,
4000         func_modules_to_filelist_separately): New functions, extracted from
4001         func_import.
4002         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
4003         (func_import): Use the new functions.
4004         (func_create_testdir): Set final_modules. Handle $single_configure =
4005         true case.
4006
4007 2011-05-28  Bruno Haible  <bruno@clisp.org>
4008
4009         getloadavg: Remove an unreliable safety check.
4010         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
4011         getloadavg.c is in place.
4012         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
4013         Reported by Sam Steingold <sds@gnu.org>.
4014
4015 2011-05-28  Bruno Haible  <bruno@clisp.org>
4016
4017         doc: Cleanup yet another file produced by texinfo.tex.
4018         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
4019
4020 2011-05-28  Bruno Haible  <bruno@clisp.org>
4021
4022         Finish the conditional dependencies mechanism.
4023         * gnulib-tool: New option --no-conditional-dependencies.
4024         (func_usage): Document it. Don't mark --conditional-dependencies as
4025         experimental.
4026         (cond_dependencies): The possible values can now be true, false, empty.
4027         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
4028         (func_import): Store setting in gnulib-cache.m4 and read it from there.
4029         * doc/gnulib-tool.texi (Conditional dependencies): New section.
4030
4031 2011-05-28  Bruno Haible  <bruno@clisp.org>
4032
4033         doc: Use a recent texinfo.tex.
4034         * doc/Makefile (tex_opts): New variable.
4035         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
4036
4037 2011-05-28  Jim Meyering  <meyering@redhat.com>
4038
4039         intprops.h: adjust comment to match code change
4040         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
4041         only once, it *may* have side effects.  Also fix an unrelated typo.
4042         (_GL_INT_SIGNED): Likewise.
4043
4044 2011-05-26  Simon Josefsson  <simon@josefsson.org>
4045
4046         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
4047
4048 2011-05-26  Bruno Haible  <bruno@clisp.org>
4049
4050         mbsrchr: Avoid collision with system function on Interix.
4051         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
4052         Reported by Markus Duft <mduft@gentoo.org>.
4053
4054 2011-05-15  James Youngman  <jay@gnu.org>
4055
4056         getopt: for ambiguous options, enumerate the possibilities.
4057         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
4058         the ambiguous options when an ambiguous prefix is given. This was
4059         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
4060         glibc change was
4061         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
4062
4063 2011-05-25  Eric Blake  <eblake@redhat.com>
4064
4065         getcwd: work around mingw bug
4066         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
4067         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4068         Reported by Matthias Bolte.
4069
4070 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
4071
4072         test-intprops: disable -Wtype-limits diagnostics
4073         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
4074         diagnostics.  Otherwise, the integer overflow macros generate many
4075         diagnostics.  Reported by Jim Meyering in
4076         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4077
4078         intprops: shorten, to pacify gcc -Woverlength-strings
4079         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
4080         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
4081         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
4082         likely to run afoul of C compiler limits for string constant lengths.
4083         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4084
4085 2011-05-24  Eric Blake  <eblake@redhat.com>
4086
4087         docs: document recently fixed glibc printf bug
4088         * doc/posix-functions/fprintf.texi (fprintf): Document it.
4089         * doc/posix-functions/printf.texi (printf): Likewise.
4090         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4091         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4092
4093         closein-tests: convert to init.sh
4094         * modules/closein-tests (Files): Add init.sh
4095         * tests/test-closein.sh Use it.
4096
4097         yesno-tests: convert to init.sh
4098         * modules/yesno-tests (Files): Add init.sh.
4099         * tests/test-yesno.sh: Use it.
4100
4101         atexit-tests: ensure reliable exit status
4102         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
4103         Reported by Bruno Haible.
4104
4105 2011-05-24  Bruno Haible  <bruno@clisp.org>
4106
4107         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
4108         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
4109         gl_PREREQ_STRERROR_R invocations from here...
4110         * modules/strerror_r-posix (configure.ac): ... to here.
4111
4112 2011-05-24  Eric Blake  <eblake@redhat.com>
4113
4114         strerror_r: fix missing header
4115         * lib/strerror_r.c: Avoid compiler warning about snprintf.
4116
4117         strerror_r: fix AIX test failures
4118         * lib/strerror_r.c (strerror_r): Convert silent truncation to
4119         ERANGE failure.
4120
4121         strerror_r: fix Solaris test failures
4122         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
4123         failures.
4124         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4125
4126         strerror_r: enforce POSIX recommendations
4127         * lib/strerror_r.c (safe_copy): New helper method.
4128         (strerror_r): Guarantee a non-empty string.
4129         * tests/test-strerror_r.c (main): Enhance tests to incorporate
4130         recent POSIX rulings and to match our strerror guarantees.
4131         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4132
4133 2011-05-24  Jim Meyering  <meyering@redhat.com>
4134
4135         test-perror2.c: avoid warning about unused variable
4136         * tests/test-perror2.c (main): Remove declaration of unused "fp".
4137
4138 2011-05-24  Eric Blake  <eblake@redhat.com>
4139
4140         perror: avoid spurious test failure on HP-UX
4141         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
4142
4143         tests: fix logic bug in init.sh
4144         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
4145         shell.
4146
4147 2011-05-24  Jim Meyering  <meyering@redhat.com>
4148
4149         utimensat: do not reference an out-of-scope buffer
4150         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
4151         declared in an inner scope, yet "times" would be dereferenced outside
4152         the scope in which "ts" was valid.
4153         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
4154         of ts[2] "out/up", so that the use of aliased "times" (via
4155         "times = ts;") does not end up referencing an out-of-scope "ts"
4156
4157         opendir-safer.c: don't clobber errno; don't close negative FD
4158         * lib/opendir-safer.c (opendir_safer):
4159         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
4160         file descriptor, and more importantly, don't clobber the
4161         offending errno value with EINVAL.  Before, upon failure
4162         of dup_safer, we would pass the negative file descriptor to
4163         fdopendir, which would clobber errno.
4164
4165 2011-05-23  Bruno Haible  <bruno@clisp.org>
4166
4167         idcache: Fix module description.
4168         * modules/idcache (Include): Set to "idcache.h".
4169
4170 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4171
4172         gnulib-tool: fix portability problem with MacOS sed
4173         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
4174         before the "}".  Problem reported by Leo in
4175         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
4176         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
4177         sed_extract_condition1, sed_extract_condition2.
4178
4179 2011-05-23  Bruno Haible  <bruno@clisp.org>
4180
4181         hash: Simplify autoconf macro.
4182         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
4183
4184 2011-05-23  Bruno Haible  <bruno@clisp.org>
4185
4186         getugroups: Fix module description.
4187         * modules/getugroups (Include): Set to "getugroups.h".
4188
4189 2011-05-23  Bruno Haible  <bruno@clisp.org>
4190
4191         linkat: Simplify autoconf macro.
4192         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
4193
4194 2011-05-23  Bruno Haible  <bruno@clisp.org>
4195             Eric Blake  <eblake@redhat.com>
4196
4197         linkat, renameat: Update dependencies.
4198         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
4199         * modules/linkat (Depends-on): Likewise. Remove also readlink,
4200         symlinkat.
4201
4202 2011-05-23  Jim Meyering  <meyering@redhat.com>
4203
4204         maint.mk: more tight_scope improvements
4205         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
4206         (_gl_TS_headers): Define only in if-0'd block.
4207         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
4208         sometimes we must *not* use it.  Adjust uses accordingly.
4209         (sc_tight_scope): Use much simpler grep-based test to determine
4210         whether we skip this rule.
4211
4212         maint.mk: generalize/improve the tight-scope rule
4213         * top/maint.mk: Emit a warning when the test is skipped.
4214         (_gl_TS_dir): Add $(srcdir)/ prefix.
4215         (_gl_TS_function_match): Simplify, rather than trying
4216         to enumerate common types.  Otherwise, it would fail to match an
4217         "extern unsigned char const *" declaration in idutils.
4218         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
4219         a way to support use of that type of macro.
4220         (_gl_TS_var_match): Simplify regexp.
4221         (_gl_TS_obj_files): New configurable variable.
4222         (_gl_TS_headers): Likewise.
4223
4224 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4225
4226         verify: fix bug when gnulib <assert.h> is also included
4227         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
4228         is defined, not if _GL_STATIC_ASSERT_H is not defined.
4229         Perhaps there's a better way, but this fixes the immediate problem.
4230         Problem reported by Bruno Haible in
4231         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
4232
4233 2011-05-22  Bruno Haible  <bruno@clisp.org>
4234
4235         xgetcwd: Simplify autoconf macro.
4236         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
4237
4238 2011-05-22  Bruno Haible  <bruno@clisp.org>
4239
4240         New module 'mktime-internal'.
4241         * modules/mktime-internal: New file.
4242         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
4243         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
4244         mktime_internal as a C macro if libc has __mktime_internal.
4245         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
4246         conditions.
4247         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
4248
4249 2011-05-22  Bruno Haible  <bruno@clisp.org>
4250
4251         timegm: Correct mktime replacement statements.
4252         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
4253         defining mktime as a C macro. This completes a 2009-07-28 commit.
4254
4255 2011-05-22  Bruno Haible  <bruno@clisp.org>
4256
4257         timegm: Simplify autoconf macro.
4258         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
4259
4260 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
4261
4262         clock-time: change to LGPLv2+.
4263         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
4264         BSD-like but we have no mark for that; this is good enough for now.
4265
4266 2011-05-21  Bruno Haible  <bruno@clisp.org>
4267
4268         strerror_r: Fix comments.
4269         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
4270
4271 2011-05-21  Bruno Haible  <bruno@clisp.org>
4272
4273         relocatable-prog-wrapper: Fix possible link error.
4274         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
4275         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
4276         (gl_FUNC_SETENV): ... to here.
4277         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
4278         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
4279
4280 2011-05-21  Bruno Haible  <bruno@clisp.org>
4281
4282         relocatable-prog-wrapper: Assume strerror() exists.
4283         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
4284         m4/strerror.m4.
4285         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
4286         * lib/relocwrapper.c: Remove mention of strerror module.
4287         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
4288         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
4289         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
4290         C macro.
4291
4292 2011-05-21  Bruno Haible  <bruno@clisp.org>
4293
4294         select: Simplify replacement idiom.
4295         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
4296         Win32 platforms.
4297         * lib/sys_select.in.h (select): Simplify accordingly.
4298         * modules/select (Depends-on): Likewise.
4299
4300 2011-05-21  Bruno Haible  <bruno@clisp.org>
4301
4302         mkdir-p: Simplify autoconf macro.
4303         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
4304         gl_FUNC_LCHOWN.
4305
4306 2011-05-21  Eric Blake  <eblake@redhat.com>
4307
4308         strerror_r: avoid clobbering strerror on cygwin
4309         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
4310         fall back instead to sys_errlist.
4311         * modules/strerror (configure.ac): Add witness.
4312         * tests/test-strerror_r.c (main): Enhance test.
4313         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4314         * tests/test-perror2.c (main): Free memory before exit.
4315
4316 2011-05-21  Bruno Haible  <bruno@clisp.org>
4317
4318         mkdtemp: Use gnulib naming conventions.
4319         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
4320         * modules/mkdtemp (configure.ac): Update.
4321
4322 2011-05-20  Eric Blake  <eblake@redhat.com>
4323
4324         strerror_r: avoid corrupting errno on Solaris
4325         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
4326         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4327
4328         strerror_r: avoid compiler warning
4329         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
4330
4331         strerror_r: simplify AIX code
4332         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
4333
4334         test-perror: avoid spurious failure on FreeBSD
4335         * modules/perror-tests (Depends-on): Add strerror, now that
4336         strerror_r no longer pulls it in.
4337
4338 2011-05-20  Bruno Haible  <bruno@clisp.org>
4339
4340         strerror_r-posix: Remove unused dependencies.
4341         * modules/strerror_r-posix (Depends-on): Remove strerror.
4342         Reported by Eric Blake.
4343
4344 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
4345
4346         intprops: remove assumption about A|B representation
4347         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
4348         is a valid integer if both A and B are.  Although this is true for
4349         all known practical hosts, the C standard doesn't guarantee it,
4350         and the code need not assume it.  Also, this change may work around
4351         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
4352         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
4353
4354 2011-05-20  Eric Blake  <eblake@redhat.com>
4355
4356         perror: work around FreeBSD bug
4357         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
4358         is broken.  Move AC_LIBOBJ...
4359         * modules/perror (configure.ac): Here.
4360         * doc/posix-functions/perror.texi (perror): Document this.
4361         * tests/test-perror2.c (main): Enhance test.
4362
4363         test-perror: check for strerror interactions
4364         * tests/macros.h (STREQ): Add macro.
4365         * modules/perror-tests (Files): Add second test.
4366         * tests/test-perror2.c (main): New file.
4367         * doc/posix-functions/perror.texi (perror): Document glibc bug.
4368
4369         test-perror: rewrite to use init script
4370         * modules/perror-tests (Files): Add init.sh.
4371         * tests/test-perror.sh: Use temporary directory.
4372
4373 2011-05-20  Jim Meyering  <meyering@redhat.com>
4374
4375         maint: replace misused "a" with "an"
4376         * doc/intprops.texi: "a integer"
4377         * doc/regex.texi: "a explanation"
4378         * lib/alignof.h: "a object"
4379         * lib/argmatch.h: "a explanation"
4380         * lib/argp-help.c: "a option" and "a OPTION_DOC"
4381         * lib/stdint.in.h: "a integer"
4382         * lib/userspec.c: "a owner"
4383         * doc/gnulib.texi: Fix "a idea", and reword.
4384
4385 2011-05-19  Jim Meyering  <meyering@redhat.com>
4386
4387         maint: correct misuse of "a" and "an"
4388         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
4389         * lib/argp-help.c: "an docum...": s/an/a/
4390         * lib/argp-parse.c: "An vector": s/An/A/
4391         * lib/execute.c: "an native": s/an/a/
4392         * lib/spawn-pipe.c: Likewise.
4393         * lib/gc.h: "an Gc_rc": s/an/a/
4394         * lib/unigbrk.in.h: "an grapheme": s/an/a/
4395         * lib/fts.c: "an stat.st_dev": s/an/a/
4396
4397 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4398
4399         intprops-tests: work around HP-UX 11.23 cc bug with constants
4400         * tests/test-intprops.c (VERIFY): New macro.
4401         (main): Use it, instead of verify, to work around the compiler bug; see
4402         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4403
4404         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
4405         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
4406         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
4407         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
4408         (_GL_REMAINDER_OVERFLOW): Use it.
4409
4410         intprops-tests: revert unsigned part of previous change
4411         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
4412         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
4413         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
4414         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
4415
4416 2011-05-19  Bruno Haible  <bruno@clisp.org>
4417
4418         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
4419         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
4420         strerror_r() returned without filling the buffer.
4421         Reported by Eric Blake.
4422
4423 2011-05-19  Eric Blake  <eblake@redhat.com>
4424
4425         strerror_r: guarantee unchanged errno
4426         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
4427         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
4428         failure.
4429         * tests/test-strerror_r.c (main): Enhance test.
4430
4431 2011-05-19  Bruno Haible  <bruno@clisp.org>
4432
4433         strerror_r: Reorder #if blocks.
4434         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
4435         for consistency with the previous commit.
4436
4437 2011-05-19  Bruno Haible  <bruno@clisp.org>
4438
4439         perror: Avoid clobbering the strerror buffer when possible.
4440         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
4441         * lib/strerror.c: Include it.
4442         * modules/strerror (Files): Add lib/strerror-impl.h.
4443         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
4444         (my_strerror): New function, defined through lib/strerror-impl.h.
4445         (perror): Use it instead of strerror.
4446         * modules/perror (Files): Add lib/strerror-impl.h.
4447         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
4448
4449 2011-05-19  Eric Blake  <eblake@redhat.com>
4450
4451         strerror_r: fix on newer cygwin
4452         * lib/strerror_r.c (strerror_r): Cygwin now has
4453         __xpg_strerror_r, use it.
4454
4455 2011-05-19  Bruno Haible  <bruno@clisp.org>
4456
4457         strerror_r: Avoid clobbering the strerror buffer when possible.
4458         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
4459         (sys_nerr, sys_errlist): New declarations.
4460         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
4461         HP-UX, native Win32, IRIX, and 32-bit Solaris.
4462         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
4463
4464 2011-05-19  Bruno Haible  <bruno@clisp.org>
4465
4466         strerror_r: Fix test failure on mingw.
4467         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
4468         EXTEND_STRERROR_R.
4469         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
4470         macros from errno.in.h instead.
4471
4472 2011-05-19  Eric Blake  <eblake@redhat.com>
4473
4474         strerror: relax test for Solaris
4475         * tests/test-strerror.c (main): Permit Solaris behavior.
4476         * tests/test-strerror_r.c (main): Likewise.
4477
4478         strerror: enforce POSIX ruling on strerror(0)
4479         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
4480         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
4481         * lib/strerror_r.c (rpl_strerror_r): Work around it.
4482         * doc/posix-functions/strerror.texi (strerror): Document it.
4483         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
4484         * tests/test-strerror.c (main): Strengthen test.
4485         * tests/test-strerror_r.c (main): Likewise.
4486
4487 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4488
4489         intprop-tests: port to older and more-pedantic compilers
4490         * modules/intprops-tests (Files): Add tests/macros.h.
4491         * tests/test-intprops.c: Include macros.h.
4492         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
4493         it's no longer documented to expand to an integer constant expression.
4494         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
4495         argument is floating point, as it's no longer documented to expand
4496         to an integer constant expression in that case.
4497         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
4498         compiler bugs reported by Bruno Haible.  See
4499         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4500         (U0, U1): New constants, to work around the same bugs.  Also,
4501         in tests, use e.g., "(unsigned int) 39" rather than "39u".
4502
4503         intprops: work around C compiler bugs
4504         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
4505         bug in Sun C 5.11 2010/08/13 and other compilers; see
4506         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4507
4508         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
4509         * doc/intprops.texi (Integer Type Determination): Fix
4510         documentation for TYPE_IS_INTEGER: it returns an constant
4511         expression, not an integer constant expression.  Fix doc for
4512         TYPE_SIGNED: it returns an integer constant expression only if its
4513         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
4514         hardly worth documented that way....)
4515
4516 2011-05-18  Bruno Haible  <bruno@clisp.org>
4517
4518         strerror_r: Avoid clobbering the strerror buffer when possible.
4519         * lib/strerror_r.c (strerror_r): Merge the three implementations.
4520         Handle gnulib defined errno values here. When strerror() returns NULL
4521         or an empty string, return EINVAL.
4522         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
4523         gnulib defined errno values here.
4524         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
4525
4526 2011-05-18  Eric Blake  <eblake@redhat.com>
4527
4528         fnmatch: avoid compiler warning
4529         * lib/fnmatch_loop.c (FCT): Use correct type.
4530         Reported by Matthias Bolte.
4531
4532 2011-05-13  Jim Meyering  <meyering@redhat.com>
4533
4534         maint.mk: three new prohibit_<HDR>_without_use rules
4535         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
4536         (sc_prohibit_stdio-safer_without_use): Likewise.
4537         (sc_prohibit_xfreopen_without_use): Likewise.
4538
4539 2011-05-17  Jim Meyering  <meyering@redhat.com>
4540
4541         announce-gen: fail if the NEWS delta is empty
4542         If there's nothing noteworthy in NEWS, then either you forgot
4543         or you shouldn't be releasing.
4544         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
4545
4546 2011-05-17  Pádraig Brady <P@draigBrady.com>
4547
4548         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
4549         reserved symbols starting with double underscore from the check.
4550
4551 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
4552
4553         intprops: add doc
4554         * doc/intprops.texi: New file, documenting intprops.
4555         * doc/gnulib.texi (Particular Modules): Include it.
4556
4557         verify: add doc to gnulib manual and fix example
4558         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
4559         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
4560         (Compile-time Assertions): Fix example so it can't overflow.
4561
4562 2011-05-17  Jim Meyering  <meyering@redhat.com>
4563
4564         warnings.m4: don't usurp save_CPPFLAGS variable name
4565         * m4/warnings.m4: Prefix local temporary variable name with gl_.
4566
4567         doc: fix typo
4568         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
4569
4570 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4571             Bruno Haible  <bruno@clisp.org>
4572
4573         doc: Tweak recent change.
4574         * README (Portability guidelines): Tweak new text.
4575         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
4576         Interix 6.1.
4577
4578 2011-05-16  Eric Blake  <eblake@redhat.com>
4579
4580         inttypes: avoid autoconf warning
4581         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
4582         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4583
4584 2011-05-16  Sam Steingold <sds@gnu.org>
4585         and Eric Blake  <eblake@redhat.com>
4586
4587         vc-list-files: accept multiple directory operands
4588         * build-aux/vc-list-files: Iterate over all remaining operands.
4589
4590 2011-05-16  Bruno Haible  <bruno@clisp.org>
4591
4592         Fix confusion regarding deprecated modules.
4593         * modules/calloc (Status, Notice): Mark module as deprecated, not
4594         obsolete.
4595         * modules/fnmatch-posix (Status, Notice): Likewise.
4596         * modules/getdate (Status, Notice): Likewise.
4597         * modules/getopt (Status, Notice): Likewise.
4598         * modules/malloc (Status, Notice): Likewise.
4599         * modules/pipe (Status, Notice): Likewise.
4600         * modules/realloc (Status, Notice): Likewise.
4601         * modules/rename-dest-slash (Status, Notice): Likewise.
4602         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
4603         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
4604         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
4605         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
4606         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
4607
4608 2011-05-16  Bruno Haible  <bruno@clisp.org>
4609
4610         doc: List the target platforms.
4611         * doc/gnulib-intro.texi (Target Platforms): New section.
4612         * doc/gnulib.texi (Introduction): Update menu.
4613         * README (Portability guidelines): Refer to the new section. Update
4614         statement about oldest supported environment. Remove rationale why
4615         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
4616         unportable C89 function.
4617         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
4618         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
4619
4620 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4621
4622         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
4623
4624 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
4625
4626         intprops-tests: new module
4627         * modules/intprops-tests, tests/test-intprops.c: New files.
4628
4629         intprops: add safe, portable integer overflow checking
4630         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
4631         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
4632         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
4633         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
4634         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
4635         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
4636         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
4637         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
4638         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
4639         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
4640         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
4641
4642 2011-05-12  James Youngman  <jay@gnu.org>
4643
4644         Add a test for glibc's Bugzilla bug #12378.
4645         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
4646         doesn't allow the literal matching of a lone "[" (which is
4647         required by POSIX).
4648         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
4649
4650 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
4651
4652         Sync glibc change fixing Bugzilla bug #12378.
4653         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
4654         beginning and fall back to matching as normal character if the
4655         string ends before the matching ']' is found.  This is what POSIX
4656         requires.
4657
4658 2011-05-13  Eric Blake  <eblake@redhat.com>
4659
4660         getcwd-lgpl: relax test for FreeBSD
4661         * doc/posix-functions/getcwd.texi (getcwd): Document portability
4662         issue.
4663         * tests/test-getcwd-lgpl.c (main): Relax test.
4664         Reported by Matthias Bolte.
4665
4666 2011-05-11  Eric Blake  <eblake@redhat.com>
4667
4668         test-fflush: silence compiler warning
4669         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
4670
4671 2011-05-11  Bruno Haible  <bruno@clisp.org>
4672
4673         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
4674         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
4675         * modules/canonicalize (Depends-on): Add 'nocrash'.
4676         * modules/canonicalize-lgpl (Depends-on): Likewise.
4677         * doc/posix-functions/realpath.texi: Update platforms list.
4678         Reported by Ryan Schmidt <ryandesign@macports.org>.
4679
4680 2011-05-11  Bruno Haible  <bruno@clisp.org>
4681
4682         group-member: Declare function in <unistd.h>.
4683         * lib/unistd.in.h (group_member): New declaration.
4684         * lib/group-member.h: Remove file.
4685         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
4686         * tests/test-unistd-c++.cc: Check signature of group_member.
4687         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
4688         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
4689         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
4690         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
4691         HAVE_GROUP_MEMBER.
4692         * modules/group-member (Files): Remove lib/group-member.h.
4693         (Depends-on): Add unistd. Specify conditions.
4694         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4695         (Include): Change to <unistd.h>.
4696         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
4697         HAVE_GROUP_MEMBER.
4698         * NEWS: Mention the change.
4699         * lib/euidaccess.c: Don't include group-member.h.
4700
4701 2011-05-11  Bruno Haible  <bruno@clisp.org>
4702
4703         group-member: Document module.
4704         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
4705         module.
4706
4707 2011-05-11  Bruno Haible  <bruno@clisp.org>
4708
4709         fclose: Fix mistake earlier today.
4710         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
4711
4712 2011-05-11  Eric Blake  <eblake@redhat.com>
4713
4714         fclose: preserve fflush errors
4715         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
4716         Reported by Jim Meyering.
4717
4718         bootstrap: support a prereq of 'rpcgen -' on RHEL5
4719         * build-aux/bootstrap (check_versions): When no specific version
4720         is required, merely check that the app produces an exit status
4721         that indicates its existence.
4722
4723         maint.mk: drop redundant check
4724         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
4725         the same but better.
4726
4727 2011-05-11  Bruno Haible  <bruno@clisp.org>
4728
4729         fclose: Fix possible link error.
4730         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
4731         unregister_shadow_fd. Improve comments.
4732         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
4733         Eric Blake.
4734
4735 2011-05-11  Jim Meyering  <meyering@redhat.com>
4736
4737         maint.mk: improve "can not" detection and generalize rule name
4738         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
4739         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
4740         Use the same technique as in sc_prohibit_doubled_word, so that
4741         we recognize "can not" also when the words are separated by a newline.
4742         Suggested by Eric Blake.
4743         (perl_filename_lineno_text_): Define.  Factored out of...
4744         (prohibit_doubled_word_): ...here.  Use the new definition.
4745         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
4746         (prohibit_undesirable_word_seq_RE_): New overridable variable.
4747         (ignore_undesirable_word_sequence_RE_): New overridable variable.
4748
4749 2011-05-10  Eric Blake  <eblake@redhat.com>
4750
4751         fclose: avoid double close race when possible
4752         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
4753         all but WINDOWS_SOCKETS.
4754
4755 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
4756
4757         openat: correct new comment
4758         * lib/openat-proc.c (openat_proc_name): Correct the comment.
4759
4760 2011-05-10  Jim Meyering  <meyering@redhat.com>
4761
4762         openat: add comments
4763         * lib/openat-proc.c (openat_proc_name): Add comments,
4764         mostly from Eric Blake.
4765
4766 2011-05-09  Eric Blake  <eblake@redhat.com>
4767
4768         openat: reduce syscalls in first probe of /proc
4769         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
4770         be a directory.  Simplify the probe for .. bugs.
4771         * modules/openat (Depends-on): Drop same-inode.
4772         Reported by Bastien ROUCARIES.
4773
4774 2011-05-09  Jim Meyering  <meyering@redhat.com>
4775
4776         maint.mk: change semantics/name of tight_scope variables
4777         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
4778         Rename variables to align with semantics that make them more useful.
4779
4780         maint.mk: tweak new rule's name not to impinge
4781         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
4782         (sc_tight_scope): Use new rule name rather than $@-0.
4783
4784         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
4785         * top/maint.mk (sc_tight_scope): New rule.
4786         (sc_tight_scope-0): New rule, ifdef'd out.
4787         (_gl_TS_dir): Default.
4788         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
4789         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
4790
4791 2011-05-09  Simon Josefsson  <simon@josefsson.org>
4792
4793         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
4794         Haible <bruno@clisp.org>.
4795
4796 2011-05-08  Bruno Haible  <bruno@clisp.org>
4797
4798         Comments.
4799         * m4/isnanf.m4: Add comment.
4800         * m4/isnanl.m4: Likewise.
4801
4802 2011-05-08  Bruno Haible  <bruno@clisp.org>
4803
4804         glob: Remove obsolete macro.
4805         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
4806
4807 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
4808
4809         intprops: Sun C 5.11 supports __typeof__
4810         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
4811         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
4812         which is new.
4813         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
4814
4815         intprops: switch to usual gnulib indenting and naming
4816         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
4817         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
4818
4819         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
4820
4821 2011-05-08  Jim Meyering  <meyering@redhat.com>
4822
4823         maint.mk: suppress "Entering/Leaving directory" diag in announcement
4824         * top/maint.mk (release-prep): Use make's --no-print-directory
4825         option when generating the announcement.  This eliminates the
4826         pesky "make[2]: Entering/Leaving directory" diagnostics in the
4827         generated announcement template.
4828
4829 2011-05-08  Bruno Haible  <bruno@clisp.org>
4830
4831         tzset: Fix gettimeofday wrapper on Solaris 2.6.
4832         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
4833         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
4834
4835 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
4836
4837         ignore-value, verify: Omit include files from lib_SOURCES.
4838         * modules/ignore-value, modules/verify (Makefile.am):
4839         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
4840         that leads Automake to duplicate use of am__objects_... variables
4841         in Makefile.in.  See
4842         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
4843
4844 2011-05-07  Bruno Haible  <bruno@clisp.org>
4845
4846         fclose: Simplify autoconf macro.
4847         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
4848         defined.
4849
4850 2011-05-07  Bruno Haible  <bruno@clisp.org>
4851
4852         canonicalize-lgpl: Fix autoconf macro ordering bug.
4853         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
4854         gl_STDLIB_H_DEFAULTS.
4855
4856 2011-05-06  Eric Blake  <eblake@redhat.com>
4857
4858         maintainer-makefile: make sc_po_check easier to tune
4859         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
4860         to probe for strings, such as an alternate location for gnulib.
4861
4862         fclose: guarantee behavior on seekable stdin
4863         * modules/fclose (Depends-on): Add fflush.
4864         * doc/posix-functions/fclose.texi (fclose): Document this.
4865         * tests/test-fclose.c (main): Make test for this unconditional.
4866
4867 2011-05-06  Bruno Haible  <bruno@clisp.org>
4868
4869         fflush, fpurge: Relicense under LGPLv2+.
4870         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
4871         * modules/fpurge (License): Likewise.
4872         With permission from Eric Blake and Jim Meyering.
4873         Suggested by Eric Blake.
4874
4875 2011-05-06  Karl Berry  <karl@gnu.org>
4876
4877         * MODULES.html.sh (func_all_modules): remove exit.
4878
4879 2011-05-06  Jim Meyering  <meyering@redhat.com>
4880
4881         maint.mk: use info-gnu@ as the default only for a stable release
4882         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
4883         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
4884         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
4885         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
4886
4887 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
4888
4889         assert-h: new module, which supports C1X-style static_assert
4890         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
4891         * lib/verify.h: Revamp so that this can be copied into assert.h,
4892         while retaining the ability to use it standalone as before.
4893         Rename private identifiers so as not to encroach on the
4894         standard C namespace, since this is now used by assert.h.
4895         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
4896         the old verify_true.
4897         (_GL_VERIFY_TRUE): New macro, with much of the contents of
4898         the old verify_true.  Use _GL_VERIFY_TYPE.
4899         (_GL_VERIFY): New macro, with much of the contents of the old verify.
4900         (static_assert): New macro, if _GL_STATIC_ASSERT_H
4901         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
4902         defined when this file is copied into the replacement assert.h.
4903         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
4904         and _Static_assert is not built in.
4905         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
4906         defined, and use the new macros mentioned above.
4907         * doc/posix-headers/assert.texi: Document this.
4908
4909 2011-05-05  Bruno Haible  <bruno@clisp.org>
4910
4911         fclose, fflush: Respect rules for use of AC_LIBOBJ.
4912         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
4913         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
4914         gl_REPLACE_FCLOSE here.
4915         * modules/fflush (Depends-on): Remove fclose.
4916         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
4917         combination with module 'fclose'.
4918
4919 2011-05-05  Bruno Haible  <bruno@clisp.org>
4920
4921         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
4922         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
4923         gl_FUNC_FFLUSH.
4924         (gl_FUNC_FFLUSH): Use it.
4925         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
4926         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
4927         gl_REPLACE_FSEEKO here.
4928
4929 2011-05-05  Bruno Haible  <bruno@clisp.org>
4930
4931         tzset: Relicense under LGPL.
4932         * modules/tzset (License): Change to LGPL.
4933         No agreement needed; it's a no-op.
4934
4935         strtoimax, strtoumax: Relicense under LGPL.
4936         * modules/strtoimax (License): Change to LGPL.
4937         * modules/strtoumax (License): Likewise.
4938         With permission from Jim Meyering, Paul Eggert:
4939         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
4940         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
4941
4942         getgroups: Relicense under LGPL.
4943         * modules/getgroups (License): Change to LGPL.
4944         With permission from Jim Meyering, Paul Eggert, Eric Blake:
4945         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
4946         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
4947         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4948
4949         nanosleep: Relicense under LGPL.
4950         * modules/nanosleep (License): Change to LGPL.
4951         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
4952         Haible:
4953         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
4954         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
4955         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
4957
4958         futimens: Relicense under LGPL.
4959         * modules/futimens (License): Change to LGPL.
4960         With permission from Eric Blake:
4961         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4962
4963         fflush: Relicense under LGPL.
4964         * modules/fflush (License): Change to LGPL.
4965         With permission from Eric Blake, Bruno Haible, Jim Meyering:
4966         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4967         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
4968         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
4969
4970         tmpfile: Relicense under LGPL.
4971         * modules/tmpfile (License): Change to LGPL.
4972         With permission from Ben Pfaff:
4973         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
4974
4975         isfinite: Relicense under LGPL.
4976         * modules/isfinite (License): Change to LGPL.
4977         With permission from Ben Pfaff, Bruno Haible:
4978         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
4979         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
4980
4981         acosl..tanl: Relicense under LGPL.
4982         * modules/acosl (License): Change to LGPL.
4983         * modules/asinl (License): Likewise.
4984         * modules/atanl (License): Likewise.
4985         * modules/cosl (License): Likewise.
4986         * modules/expl (License): Likewise.
4987         * modules/logl (License): Likewise.
4988         * modules/sinl (License): Likewise.
4989         * modules/sqrtl (License): Likewise.
4990         * modules/tanl (License): Likewise.
4991         Source code originally from glibc and Paolo Bonzini. Agreements:
4992         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
4993         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
4994
4995 2011-05-05  Bruno Haible  <bruno@clisp.org>
4996
4997         signal: Define sighandler_t.
4998         * lib/signal.in.h (sighandler_t): New type.
4999         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
5000         whether sighandler_t is defined.
5001         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
5002         * modules/signal (Depends-on): Add extensions.
5003         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
5004         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
5005         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
5006
5007 2011-05-05  Eric Blake  <eblake@redhat.com>
5008
5009         maint: remove useless REPLACE_*_H macros
5010         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
5011         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
5012         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
5013         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
5014         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
5015         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
5016         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
5017         * m4/btowc.m4: Update callers.
5018         * m4/dirfd.m4: Likewise.
5019         * m4/duplocale.m4: Likewise.
5020         * m4/fchdir.m4: Likewise.
5021         * m4/fdopendir.m4: Likewise.
5022         * m4/inet_ntop.m4: Likewise.
5023         * m4/inet_pton.m4: Likewise.
5024         * m4/ioctl.m4: Likewise.
5025         * m4/mbrlen.m4: Likewise.
5026         * m4/mbrtowc.m4: Likewise.
5027         * m4/mbsinit.m4: Likewise.
5028         * m4/mbsnrtowcs.m4: Likewise.
5029         * m4/mbsrtowcs.m4: Likewise.
5030         * m4/poll.m4: Likewise.
5031         * m4/setlocale.m4: Likewise.
5032         * m4/wcrtomb.m4: Likewise.
5033         * m4/wcsnrtombs.m4: Likewise.
5034         * m4/wcsrtombs.m4: Likewise.
5035         * m4/wctob.m4: Likewise.
5036         * m4/wcwidth.m4: Likewise.
5037         * modules/posix_spawn: Likewise.
5038         * modules/posix_spawn_file_actions_addclose: Likewise.
5039         * modules/posix_spawn_file_actions_adddup2: Likewise.
5040         * modules/posix_spawn_file_actions_addopen: Likewise.
5041         * modules/posix_spawn_file_actions_destroy: Likewise.
5042         * modules/posix_spawn_file_actions_init: Likewise.
5043         * modules/posix_spawnattr_destroy: Likewise.
5044         * modules/posix_spawnattr_getflags: Likewise.
5045         * modules/posix_spawnattr_getpgroup: Likewise.
5046         * modules/posix_spawnattr_getschedparam: Likewise.
5047         * modules/posix_spawnattr_getschedpolicy: Likewise.
5048         * modules/posix_spawnattr_getsigdefault: Likewise.
5049         * modules/posix_spawnattr_getsigmask: Likewise.
5050         * modules/posix_spawnattr_init: Likewise.
5051         * modules/posix_spawnattr_setflags: Likewise.
5052         * modules/posix_spawnattr_setpgroup: Likewise.
5053         * modules/posix_spawnattr_setschedparam: Likewise.
5054         * modules/posix_spawnattr_setschedpolicy: Likewise.
5055         * modules/posix_spawnattr_setsigdefault: Likewise.
5056         * modules/posix_spawnattr_setsigmask: Likewise.
5057         * modules/posix_spawnp: Likewise.
5058
5059 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
5060
5061         Add option to do-release-commit-and-tag to specify branch.
5062         * build-aux/do-release-commit-and-tag: Add --branch.
5063
5064 2011-05-03  Bruno Haible  <bruno@clisp.org>
5065
5066         Avoid unnecessary compilation units, through conditional dependencies.
5067         * modules/accept (Depends-on): Add conditions to the dependencies.
5068         * modules/acosl (Depends-on): Likewise.
5069         * modules/argz (Depends-on): Likewise.
5070         * modules/asinl (Depends-on): Likewise.
5071         * modules/atanl (Depends-on): Likewise.
5072         * modules/atoll (Depends-on): Likewise.
5073         * modules/bind (Depends-on): Likewise.
5074         * modules/btowc (Depends-on): Likewise.
5075         * modules/canonicalize-lgpl (Depends-on): Likewise.
5076         * modules/ceil (Depends-on): Likewise.
5077         * modules/ceilf (Depends-on): Likewise.
5078         * modules/ceill (Depends-on): Likewise.
5079         * modules/chdir-long (Depends-on): Likewise.
5080         * modules/chown (Depends-on): Likewise.
5081         * modules/close (Depends-on): Likewise.
5082         * modules/connect (Depends-on): Likewise.
5083         * modules/cosl (Depends-on): Likewise.
5084         * modules/dirfd (Depends-on): Likewise.
5085         * modules/dprintf (Depends-on): Likewise.
5086         * modules/dprintf-posix (Depends-on): Likewise.
5087         * modules/error (Depends-on): Likewise.
5088         * modules/euidaccess (Depends-on): Likewise.
5089         * modules/expl (Depends-on): Likewise.
5090         * modules/faccessat (Depends-on): Likewise.
5091         * modules/fchdir (Depends-on): Likewise.
5092         * modules/fclose (Depends-on): Likewise.
5093         * modules/fcntl (Depends-on): Likewise.
5094         * modules/fdopendir (Depends-on): Likewise.
5095         * modules/fflush (Depends-on): Likewise.
5096         * modules/floor (Depends-on): Likewise.
5097         * modules/floorf (Depends-on): Likewise.
5098         * modules/floorl (Depends-on): Likewise.
5099         * modules/fnmatch (Depends-on): Likewise.
5100         * modules/fopen (Depends-on): Likewise.
5101         * modules/fprintf-posix (Depends-on): Likewise.
5102         * modules/frexp (Depends-on): Likewise.
5103         * modules/frexp-nolibm (Depends-on): Likewise.
5104         * modules/frexpl (Depends-on): Likewise.
5105         * modules/frexpl-nolibm (Depends-on): Likewise.
5106         * modules/fseek (Depends-on): Likewise.
5107         * modules/fsusage (Depends-on): Likewise.
5108         * modules/ftell (Depends-on): Likewise.
5109         * modules/ftello (Depends-on): Likewise.
5110         * modules/futimens (Depends-on): Likewise.
5111         * modules/getcwd (Depends-on): Likewise.
5112         * modules/getcwd-lgpl (Depends-on): Likewise.
5113         * modules/getdelim (Depends-on): Likewise.
5114         * modules/getdomainname (Depends-on): Likewise.
5115         * modules/getgroups (Depends-on): Likewise.
5116         * modules/gethostname (Depends-on): Likewise.
5117         * modules/getline (Depends-on): Likewise.
5118         * modules/getlogin_r (Depends-on): Likewise.
5119         * modules/getopt-posix (Depends-on): Likewise.
5120         * modules/getpeername (Depends-on): Likewise.
5121         * modules/getsockname (Depends-on): Likewise.
5122         * modules/getsockopt (Depends-on): Likewise.
5123         * modules/getsubopt (Depends-on): Likewise.
5124         * modules/getusershell (Depends-on): Likewise.
5125         * modules/glob (Depends-on): Likewise.
5126         * modules/grantpt (Depends-on): Likewise.
5127         * modules/iconv_open (Depends-on): Likewise.
5128         * modules/iconv_open-utf (Depends-on): Likewise.
5129         * modules/inet_ntop (Depends-on): Likewise.
5130         * modules/inet_pton (Depends-on): Likewise.
5131         * modules/ioctl (Depends-on): Likewise.
5132         * modules/isapipe (Depends-on): Likewise.
5133         * modules/isfinite (Depends-on): Likewise.
5134         * modules/isinf (Depends-on): Likewise.
5135         * modules/lchown (Depends-on): Likewise.
5136         * modules/ldexpl (Depends-on): Likewise.
5137         * modules/link (Depends-on): Likewise.
5138         * modules/linkat (Depends-on): Likewise.
5139         * modules/listen (Depends-on): Likewise.
5140         * modules/logl (Depends-on): Likewise.
5141         * modules/lstat (Depends-on): Likewise.
5142         * modules/mbrlen (Depends-on): Likewise.
5143         * modules/mbrtowc (Depends-on): Likewise.
5144         * modules/mbsinit (Depends-on): Likewise.
5145         * modules/mbsnrtowcs (Depends-on): Likewise.
5146         * modules/mbsrtowcs (Depends-on): Likewise.
5147         * modules/mbtowc (Depends-on): Likewise.
5148         * modules/memcmp (Depends-on): Likewise.
5149         * modules/mkdir (Depends-on): Likewise.
5150         * modules/mkdtemp (Depends-on): Likewise.
5151         * modules/mkfifo (Depends-on): Likewise.
5152         * modules/mkfifoat (Depends-on): Likewise.
5153         * modules/mknod (Depends-on): Likewise.
5154         * modules/mkostemp (Depends-on): Likewise.
5155         * modules/mkostemps (Depends-on): Likewise.
5156         * modules/mkstemp (Depends-on): Likewise.
5157         * modules/mkstemps (Depends-on): Likewise.
5158         * modules/mktime (Depends-on): Likewise.
5159         * modules/nanosleep (Depends-on): Likewise.
5160         * modules/open (Depends-on): Likewise.
5161         * modules/openat (Depends-on): Likewise.
5162         * modules/perror (Depends-on): Likewise.
5163         * modules/poll (Depends-on): Likewise.
5164         * modules/popen (Depends-on): Likewise.
5165         * modules/posix_spawn (Depends-on): Likewise.
5166         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
5167         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
5168         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
5169         * modules/posix_spawnp (Depends-on): Likewise.
5170         * modules/pread (Depends-on): Likewise.
5171         * modules/printf-posix (Depends-on): Likewise.
5172         * modules/ptsname (Depends-on): Likewise.
5173         * modules/putenv (Depends-on): Likewise.
5174         * modules/pwrite (Depends-on): Likewise.
5175         * modules/readline (Depends-on): Likewise.
5176         * modules/readlink (Depends-on): Likewise.
5177         * modules/readlinkat (Depends-on): Likewise.
5178         * modules/recv (Depends-on): Likewise.
5179         * modules/recvfrom (Depends-on): Likewise.
5180         * modules/regex (Depends-on): Likewise.
5181         * modules/remove (Depends-on): Likewise.
5182         * modules/rename (Depends-on): Likewise.
5183         * modules/renameat (Depends-on): Likewise.
5184         * modules/rmdir (Depends-on): Likewise.
5185         * modules/round (Depends-on): Likewise.
5186         * modules/roundf (Depends-on): Likewise.
5187         * modules/roundl (Depends-on): Likewise.
5188         * modules/rpmatch (Depends-on): Likewise.
5189         * modules/select (Depends-on): Likewise.
5190         * modules/send (Depends-on): Likewise.
5191         * modules/sendto (Depends-on): Likewise.
5192         * modules/setenv (Depends-on): Likewise.
5193         * modules/setlocale (Depends-on): Likewise.
5194         * modules/setsockopt (Depends-on): Likewise.
5195         * modules/shutdown (Depends-on): Likewise.
5196         * modules/sigaction (Depends-on): Likewise.
5197         * modules/signbit (Depends-on): Likewise.
5198         * modules/sigprocmask (Depends-on): Likewise.
5199         * modules/sinl (Depends-on): Likewise.
5200         * modules/sleep (Depends-on): Likewise.
5201         * modules/snprintf (Depends-on): Likewise.
5202         * modules/snprintf-posix (Depends-on): Likewise.
5203         * modules/socket (Depends-on): Likewise.
5204         * modules/sprintf-posix (Depends-on): Likewise.
5205         * modules/sqrtl (Depends-on): Likewise.
5206         * modules/stat (Depends-on): Likewise.
5207         * modules/strchrnul (Depends-on): Likewise.
5208         * modules/strdup-posix (Depends-on): Likewise.
5209         * modules/strerror (Depends-on): Likewise.
5210         * modules/strerror_r-posix (Depends-on): Likewise.
5211         * modules/strndup (Depends-on): Likewise.
5212         * modules/strnlen (Depends-on): Likewise.
5213         * modules/strptime (Depends-on): Likewise.
5214         * modules/strsep (Depends-on): Likewise.
5215         * modules/strsignal (Depends-on): Likewise.
5216         * modules/strstr-simple (Depends-on): Likewise.
5217         * modules/strtod (Depends-on): Likewise.
5218         * modules/strtoimax (Depends-on): Likewise.
5219         * modules/strtok_r (Depends-on): Likewise.
5220         * modules/strtoumax (Depends-on): Likewise.
5221         * modules/symlink (Depends-on): Likewise.
5222         * modules/symlinkat (Depends-on): Likewise.
5223         * modules/tanl (Depends-on): Likewise.
5224         * modules/tcgetsid (Depends-on): Likewise.
5225         * modules/tmpfile (Depends-on): Likewise.
5226         * modules/trunc (Depends-on): Likewise.
5227         * modules/truncf (Depends-on): Likewise.
5228         * modules/truncl (Depends-on): Likewise.
5229         * modules/uname (Depends-on): Likewise.
5230         * modules/unlink (Depends-on): Likewise.
5231         * modules/unlockpt (Depends-on): Likewise.
5232         * modules/unsetenv (Depends-on): Likewise.
5233         * modules/usleep (Depends-on): Likewise.
5234         * modules/utimensat (Depends-on): Likewise.
5235         * modules/vasprintf (Depends-on): Likewise.
5236         * modules/vdprintf (Depends-on): Likewise.
5237         * modules/vdprintf-posix (Depends-on): Likewise.
5238         * modules/vfprintf-posix (Depends-on): Likewise.
5239         * modules/vprintf-posix (Depends-on): Likewise.
5240         * modules/vsnprintf (Depends-on): Likewise.
5241         * modules/vsnprintf-posix (Depends-on): Likewise.
5242         * modules/vsprintf-posix (Depends-on): Likewise.
5243         * modules/wcrtomb (Depends-on): Likewise.
5244         * modules/wcscasecmp (Depends-on): Likewise.
5245         * modules/wcscspn (Depends-on): Likewise.
5246         * modules/wcsdup (Depends-on): Likewise.
5247         * modules/wcsncasecmp (Depends-on): Likewise.
5248         * modules/wcsnrtombs (Depends-on): Likewise.
5249         * modules/wcspbrk (Depends-on): Likewise.
5250         * modules/wcsrtombs (Depends-on): Likewise.
5251         * modules/wcsspn (Depends-on): Likewise.
5252         * modules/wcsstr (Depends-on): Likewise.
5253         * modules/wcstok (Depends-on): Likewise.
5254         * modules/wcswidth (Depends-on): Likewise.
5255         * modules/wctob (Depends-on): Likewise.
5256         * modules/wctomb (Depends-on): Likewise.
5257         * modules/wctype (Depends-on): Likewise.
5258         * modules/wcwidth (Depends-on): Likewise.
5259         * modules/write (Depends-on): Likewise.
5260
5261 2011-05-03  Bruno Haible  <bruno@clisp.org>
5262
5263         Support for conditional dependencies.
5264         * doc/gnulib.texi (Module description): Document the syntax of
5265         conditional dependencies.
5266         * gnulib-tool: New option --conditional-dependencies.
5267         (func_usage): Document it.
5268         (cond_dependencies): New variable.
5269         (func_get_automake_snippet_conditional,
5270         func_get_automake_snippet_unconditional): New functions, extracted from
5271         func_get_automake_snippet.
5272         (func_get_automake_snippet): Use them.
5273         (sed_first_32_chars): New variable.
5274         (func_module_shellfunc_name): New function.
5275         (func_module_shellvar_name): New function.
5276         (func_module_conditional_name): New function.
5277         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
5278         func_cond_module_condition): New functions.
5279         (func_modules_transitive_closure): Add support for conditional
5280         dependencies.
5281         (func_emit_lib_Makefile_am): For a conditional module, enclose the
5282         conditional automake snippet in an automake conditional.
5283         (func_emit_autoconf_snippets): Emit shell functions that contain the
5284         code for conditional modules.
5285         (func_import, func_create_testdir): Update specification.
5286
5287 2011-05-03  Eric Blake  <eblake@redhat.com>
5288
5289         test-getaddrinfo: report error information
5290         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
5291
5292 2011-05-03  Jim Meyering  <meyering@redhat.com>
5293
5294         bootstrap: avoid build failure when $GZIP is set
5295         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
5296         program name.  If defined at all, it is supposed to list gzip options.
5297         Reported by Alan Curry in http://debbugs.gnu.org/8609
5298
5299 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
5300
5301         readme-release: new module with release instructions
5302         * modules/readme-release: New module.
5303         * top/README-release: New file, from coreutils, grep, diffutils.
5304         * MODULES.html.sh (Support for maintaining and releasing): Add it.
5305
5306 2011-05-02  Eric Blake  <eblake@redhat.com>
5307
5308         fflush: also replace fclose when fixing fflush
5309         * modules/fflush (Depends-on): Add fclose.
5310         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
5311         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
5312         memstreams with no backing fd.
5313         * doc/posix-functions/fclose.texi (fclose): Document the use of
5314         fflush module to fix the bug.
5315         * tests/test-fclose.c (main): Relax test when fclose is used in
5316         isolation.
5317
5318         fclose: add some tests
5319         * modules/fclose-tests: New test module.
5320         * tests/test-fclose.c: New file.
5321         * doc/posix-functions/fclose.texi (fclose): Document the bug.
5322
5323         fclose: reduced dependencies
5324         * modules/fclose (Depends-on): Switch from fflush/fseeko to
5325         simpler lseek.
5326         * lib/fclose.c (rpl_fclose): Likewise.
5327         Reported by Simon Josefsson.
5328
5329         exit: drop remaining clients
5330         * modules/argmatch (Depends-on): Replace exit with stdlib.
5331         * modules/copy-file (Depends-on): Likewise.
5332         * modules/execute (Depends-on): Likewise.
5333         * modules/exitfail (Depends-on): Likewise.
5334         * modules/obstack (Depends-on): Likewise.
5335         * modules/pagealign_alloc (Depends-on): Likewise.
5336         * modules/pipe-filter-gi (Depends-on): Likewise.
5337         * modules/pipe-filter-ii (Depends-on): Likewise.
5338         * modules/savewd (Depends-on): Likewise.
5339         * modules/spawn-pipe (Depends-on): Likewise.
5340         * modules/wait-process (Depends-on): Likewise.
5341         * modules/xsetenv (Depends-on): Likewise.
5342         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
5343         * modules/git-merge-changelog (Depends-on): Likewise.
5344         * modules/long-options (Depends-on): Likewise.
5345         * modules/pt_chown (Depends-on): Likewise.
5346         * modules/sysexits (Depends-on): Likewise.
5347
5348         freading: relax license from LGPLv3+ to LGPLv2+
5349         * modules/freading (License): Relax LGPL version.
5350
5351 2011-05-02  Bruno Haible  <bruno@clisp.org>
5352
5353         fchdir: Remove unused dependencies.
5354         * modules/fchdir (Depends-on): Remove include_next.
5355
5356 2011-05-02  Bruno Haible  <bruno@clisp.org>
5357
5358         gnulib-tool: Refactor.
5359         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
5360         from func_emit_autoconf_snippets.
5361         (func_emit_autoconf_snippets): Use it.
5362
5363 2011-05-02  Simon Josefsson  <simon@josefsson.org>
5364
5365         * NEWS: Document removal of 'exit'.
5366         * modules/exit: Remove file.
5367
5368 2011-05-01  Bruno Haible  <bruno@clisp.org>
5369
5370         Update DEPENDENCIES.
5371         * DEPENDENCIES (gettext): Recommend the newest release.
5372         Reported by Simon Josefsson.
5373
5374 2011-05-01  Bruno Haible  <bruno@clisp.org>
5375
5376         gnulib-tool: Reduce code duplication.
5377         * gnulib-tool (func_emit_autoconf_snippets): New function.
5378         (func_import, func_create_testdir): Use it.
5379
5380 2011-04-30  Eric Blake  <eblake@redhat.com>
5381
5382         fclose: don't fail on non-seekable input stream
5383         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
5384         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
5385         since fflush is allowed to fail in that case.
5386
5387 2011-04-30  Bruno Haible  <bruno@clisp.org>
5388
5389         dup3: cleanup
5390         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
5391
5392 2011-04-30  Bruno Haible  <bruno@clisp.org>
5393
5394         netdb: Make it work in C++ mode.
5395         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
5396         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
5397         module.
5398         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
5399         gl_MODULE_INDICATOR_FOR_TESTS.
5400         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
5401         * modules/netdb-c++-tests: New file.
5402         * tests/test-netdb-c++.cc: New file.
5403
5404 2011-04-30  Bruno Haible  <bruno@clisp.org>
5405
5406         New modules 'vfscanf', 'vscanf'.
5407         * modules/vfscanf: New file.
5408         * modules/vscanf: New file.
5409         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
5410         here.
5411         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
5412         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
5413
5414 2011-04-30  Bruno Haible  <bruno@clisp.org>
5415
5416         passfd: Add comments.
5417         * lib/passfd.c: Add comments about platforms.
5418
5419 2011-04-30  Bruno Haible  <bruno@clisp.org>
5420
5421         sys_uio: Make <sys/uio.h> self-contained.
5422         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
5423         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
5424
5425 2011-04-30  Bruno Haible  <bruno@clisp.org>
5426
5427         sys_socket: Ensure 'struct iovec' definition.
5428         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
5429         <sys/socket.h>.
5430         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
5431
5432 2011-04-30  Bruno Haible  <bruno@clisp.org>
5433
5434         sys_uio: Protect definition of 'struct iovec'.
5435         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
5436         it as a C struct.
5437
5438 2011-04-30  Bruno Haible  <bruno@clisp.org>
5439
5440         manywarnings: fix indentation
5441         * m4/manywarnings.m4: Indent by 2 spaces consistently.
5442
5443 2011-04-30  Pádraig Brady <P@draigBrady.com>
5444
5445         manywarnings: add -Wno-missing-field-initializers if needed.
5446         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
5447         option if it's needed to allow initialization with { 0, }
5448
5449 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
5450
5451         announce-gen: cosmetic improvement
5452         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
5453
5454 2011-04-29  Jim Meyering  <meyering@redhat.com>
5455
5456         vc-list-files: indent with spaces, not TABs
5457         * build-aux/vc-list-files: Convert leading TABs to spaces,
5458         to match the style of most other files in gnulib.
5459
5460         announce-gen: indent with spaces, not TABs
5461         * build-aux/announce-gen: Convert all TABs to spaces, to match
5462         the style of most other files in gnulib.
5463
5464 2011-04-29  Eric Blake  <eblake@redhat.com>
5465
5466         quotearg: avoid uninitialized variable use
5467         * lib/quotearg.c (quoting_options_from_style): Initialize
5468         remaining fields, and ensure that custom styles are only used via
5469         quoting_options rather than quoting_style.
5470
5471 2011-04-29  Jim Meyering  <meyering@redhat.com>
5472
5473         maint.mk: remove unused VC-tag variable
5474         * top/maint.mk (VC-tag): Remove unused variable.
5475
5476 2011-04-29  Bruno Haible  <bruno@clisp.org>
5477
5478         netdb: fix gai_strerror replacements
5479         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
5480         * modules/netdb: Substitute it.
5481
5482 2011-04-29  Jim Meyering  <meyering@redhat.com>
5483
5484         test-getcwd.c: avoid new set-but-not-used warning
5485         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
5486         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
5487         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
5488         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
5489
5490         test-hash.c: avoid a new shadowing warning
5491         * tests/test-hash.c (main): Don't shadow "dup".
5492
5493 2011-04-28  Eric Blake  <eblake@redhat.com>
5494
5495         getaddrinfo: fix gai_strerror signature
5496         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
5497         and work around mingw with UNICODE defined.
5498         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
5499         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
5500         * modules/netdb (Makefile.am): Substitute it.
5501         * lib/netdb.in.h (gai_strerror): Declare replacement.
5502         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
5503         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
5504         the fix.
5505
5506         getsockopt: avoid compiler warning
5507         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
5508         Reported by Matthias Bolte.
5509
5510         tests: drop unused link dependency
5511         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
5512         * modules/dirent-safer-tests (Makefile.am): Likewise.
5513         * modules/fdopendir-tests (Makefile.am): Likewise.
5514         * modules/mkfifoat-tests (Makefile.am): Likewise.
5515         * modules/openat-safer-tests (Makefile.am): Likewise.
5516         * modules/openat-tests (Makefile.am): Likewise.
5517         * modules/readlinkat-tests (Makefile.am): Likewise.
5518         * modules/symlinkat-tests (Makefile.am): Likewise.
5519         * modules/linkat-tests (Makefile.am): Likewise.
5520         (Depends-on): Switch to filenamecat-lgpl.
5521         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
5522         LIBINTL.
5523         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
5524         * tests/test-linkat.c (main): Don't require xalloc.
5525
5526         hash, mgetgroups: drop xalloc dependency
5527         * lib/hash.c (includes): Adjust includes.
5528         * lib/mgetgroups.c (includes): Likewise.
5529         (xgetgroups): Move...
5530         * lib/xgetgroups.c: ...to new file.
5531         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
5532         * modules/xgetgroups: New file, split from...
5533         * modules/mgetgroups: ...here.
5534         (Depends-on): Add xalloc-oversized.
5535         * modules/hash (Depends-on): Likewise.
5536         * modules/hash-tests (Depends-on): Drop xalloc.
5537         (test_hash_LDADD): Drop unused library.
5538         * tests/test-hash.c (main): Break xalloc dependency.
5539         (includes): Drop unused include.
5540
5541         xalloc-oversized: new module
5542         * modules/xalloc-oversized: New module.
5543         * modules/xalloc (Depends-on): Add it.
5544         * lib/xalloc.h (xalloc_oversized): Move...
5545         * lib/xalloc-oversized.h: ...into new file.
5546
5547         utimecmp: drop dependency on xmalloc
5548         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
5549         due to memory pressure.
5550         * modules/utimecmp (Depends-on): Drop xalloc.
5551
5552 2011-04-27  Eric Blake  <eblake@redhat.com>
5553
5554         getcwd: fix mingw bugs
5555         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
5556         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
5557         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
5558
5559 2011-04-27  Bruno Haible  <bruno@clisp.org>
5560
5561         mkstemps: Ensure declaration on MacOS X 10.5.
5562         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
5563         * doc/glibc-functions/mkstemps.texi: Document header file problem on
5564         MacOS X.
5565
5566 2011-04-27  Bruno Haible  <bruno@clisp.org>
5567
5568         mkstemp: More documentation.
5569         * doc/posix-functions/mkstemp.texi: Document header file problem on
5570         MacOS X.
5571
5572 2011-04-27  Bruno Haible  <bruno@clisp.org>
5573
5574         mkstemp: Tweak configure message when cross-compiling.
5575         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
5576         result as a guess.
5577
5578 2011-04-27  Bruno Haible  <bruno@clisp.org>
5579
5580         clean-temp: Clarify what it does.
5581         * lib/clean-temp.h: Add more comments.
5582         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
5583         module.
5584         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
5585         * doc/glibc-functions/mkstemps.texi: Likewise.
5586         * doc/glibc-functions/mkostemps.texi: Likewise.
5587
5588 2011-04-27  Eric Blake  <eblake@redhat.com>
5589
5590         fchdir: avoid extra chdir and fix test
5591         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
5592         getcwd-lgpl.
5593         * lib/fchdir.c (get_name): Any absolute name will do; it does not
5594         have to be canonical.
5595         (canonicalize_file_name): Drop unused macro.
5596         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
5597
5598         filenamecat-lgpl: fix licence
5599         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
5600         when it was first created.
5601
5602         linkat, renameat: add missing dependency
5603         * modules/linkat (Depends-on): Require getcwd-lgpl.
5604         * modules/renameat (Depends-on): Likewise.
5605
5606         tests: reduce dependencies
5607         * tests/test-linkat.c (main): Use lighter-weight getcwd.
5608         * tests/test-renameat.c (main): Likewise.
5609         * modules/linkat-tests (Depends-on): Relax dependency.
5610         * modules/renameat-tests (Depends-on): Likewise.
5611         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
5612         dependency explicit.
5613
5614         save-cwd: reduce default dependency
5615         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
5616         * lib/save-cwd.c: Update comments.
5617         * NEWS: Document the semantic change.
5618
5619         getcwd: enhance tests
5620         * tests/test-getcwd-lgpl.c: New file, taken from...
5621         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
5622         repeat long path stress tests from m4 probe.
5623         * modules/getcwd-lgpl-tests: New module.
5624         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
5625         * m4/getcwd-abort-bug.m4: Update comment.
5626         * m4/getcwd-path-max.m4: Likewise.
5627
5628         getcwd-lgpl: new module
5629         * modules/getcwd-lgpl: New module.
5630         * lib/getcwd-lgpl.c: New file.
5631         * doc/posix-functions/getcwd.texi (getcwd): Document it.
5632         * MODULES.html.sh (lacking POSIX:2008): Likewise.
5633         * modules/getcwd (configure.ac): Set C witness.
5634         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
5635
5636         getcwd: tweak comments
5637         * m4/getcwd-abort-bug.m4: Fix comments.
5638         * m4/getcwd-path-max.m4: Likewise.
5639         * m4/getcwd.m4: Likewise.
5640
5641 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
5642         and Eric Blake  <eblake@redhat.com>
5643
5644         mkstemp: replace if system version uses wrong permissions
5645         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
5646         read/write mode bits set in file created by mkstemp.
5647         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
5648
5649 2011-04-27  Eric Blake  <eblake@redhat.com>
5650
5651         passfd: avoid compiler warning
5652         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
5653         Reported by Laine Stump.
5654
5655 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
5656
5657         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
5658         required by the NetBSD (and perhaps other 4.4BSD derived) join.
5659
5660 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
5661         and Eric Blake  <eblake@redhat.com>
5662
5663         mkstemp: mention clean-temp module
5664         * lib/mkstemp.c: Add comment.
5665         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
5666
5667 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
5668
5669         inttypes: also provide default values for 32-bit tests
5670         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
5671         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
5672
5673 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
5674
5675         strtoumax: remove dependency on strtoimax
5676         This is like the strtoull change of yesterday.
5677         * modules/strtoumax (Files): Add lib/strtoimax.c.
5678         (Depends-on): Remove strtoimax and add verify.
5679
5680         inttypes-incomplete: new module
5681         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
5682         all but the PRI* and SCN* parts of gl_INTTYPES_H.
5683         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
5684         of gl_INTTYPES_H.
5685         (gl_INTTYPES_H): Rewrite in terms of these new macros.
5686         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
5687         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
5688         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
5689         * modules/strtoumax, modules/xstrtol (Depends-on):
5690         Depend on inttypes-incomplete, not inttypes.
5691         * modules/inttypes-incomplete: New module, containing the contents
5692         of the old modules/inttypes module, except that the Files: section
5693         omits m4/inttypes-pri.m4, and the configure.ac section invokes
5694         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
5695         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
5696         (Depends-on): Depend only on inttypes-incomplete.
5697         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
5698
5699         inttypes: omit now-redundant strtoimax and strtoumax work
5700         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
5701         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
5702
5703         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
5704         This supports apps that need pointers to strtoimax and strtoumax,
5705         and ports to HP-UX 11.00 64.bit, which has macros that expand to
5706         nonexistent functions.  See
5707         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
5708         et seq.
5709         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
5710         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
5711         a macro.
5712         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
5713
5714 2011-04-25  Simon Josefsson  <simon@josefsson.org>
5715
5716         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
5717
5718 2011-04-25  Bruno Haible  <bruno@clisp.org>
5719
5720         strtol, strtoul: Mark modules as obsolete.
5721         * modules/strtol (Status, Notice): New sections.
5722         * modules/strtoul (Status, Notice): New sections.
5723
5724 2011-04-25  Bruno Haible  <bruno@clisp.org>
5725
5726         strtod: Remove check for strtod, unless supporting old platforms.
5727         * modules/strtod-obsolete: New file.
5728         * m4/strtod-obsolete.m4: New file.
5729         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
5730         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
5731         * modules/strtod (Depends-on): Add strtod-obsolete.
5732         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
5733
5734 2011-04-25  Bruno Haible  <bruno@clisp.org>
5735
5736         strcase: Make module obsolete.
5737         * modules/strcase (Status, Notice): New sections.
5738
5739 2011-04-25  Bruno Haible  <bruno@clisp.org>
5740
5741         dup2: Remove check for dup2, unless supporting old obsolete platforms.
5742         * modules/dup2-obsolete: New file.
5743         * m4/dup2-obsolete.m4: New file.
5744         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
5745         gl_FUNC_DUP2_OBSOLETE is not also defined.
5746         * modules/dup2 (Depends-on): Add dup2-obsolete.
5747         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
5748
5749 2011-04-25  Bruno Haible  <bruno@clisp.org>
5750
5751         strnlen: Avoid memchr related link error on old obsolete platforms.
5752         * modules/memchr-obsolete: New file.
5753         * m4/memchr-obsolete.m4: New file.
5754         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
5755         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
5756         * modules/memchr (Depends-on): Add memchr-obsolete.
5757         * modules/strnlen (Depends-on): Likewise.
5758         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
5759
5760 2011-04-25  Jim Meyering  <meyering@redhat.com>
5761
5762         maint.mk: makefile_at_at_check extend and clean up
5763         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
5764         in addition to */Makefile.am.
5765         Exempt legitimate uses of @VAR@ notation, e.g.,
5766         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
5767         Remove obsolete coreutils-specific comment.
5768         Prompted by discussion here:
5769         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
5770
5771 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
5772
5773         strtoul: remove dependency on strtol
5774         This is so that 'configure' need not check for strtol merely because
5775         the application needs strtoul.
5776         * modules/strtoul (Files): Add lib/strtol.c.
5777         (Depends-on): Remove strtol.
5778
5779         strtoull: remove dependency on strtoul
5780         This is like the strtoll change.
5781         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
5782         (Depends-on): Remove strtoul.
5783
5784         strtoll: remove dependency on strtol
5785         This is so that 'configure' need not check for strtol merely because
5786         the application needs strtoll.
5787         * modules/strtoll (Files): Add lib/strtol.c.
5788         (Depends-on): Remove strtol.
5789
5790 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5791
5792         inttypes: Move some configure check to module 'imaxdiv'.
5793         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
5794         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
5795         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
5796
5797 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5798
5799         inttypes: Move some configure check to module 'imaxabs'.
5800         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
5801         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
5802         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
5803
5804 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5805
5806         inttypes: Remove configure tests that are not needed since 2009-12-31.
5807         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
5808         gl_cv_header_working_inttypes_h.
5809
5810 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5811
5812         * modules/strnlen (Depends-on): Remove memchr.
5813         The strnlen implementation doesn't need the memchr module's fixes; see
5814         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
5815
5816         strtol: remove dependency on wchar
5817         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
5818         * modules/strtol (Depends-on): Remove wchar.
5819
5820 2011-04-21  Eric Blake  <eblake@redhat.com>
5821
5822         passfd: fix test regression on Linux
5823         * modules/passfd-tests (configure.ac): Correct socketpair check.
5824
5825         passfd: speed up configure and drop unused code
5826         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
5827         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
5828         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
5829         Instead of probing at configure for unix_scm_rights_bsd44_way,
5830         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
5831         check to a struct member probe.
5832         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
5833         (sendfd, recvfd): Update preprocessor checks.
5834         * modules/passfd (Files): Reflect rename, and drop unused file.
5835         (Depends-on): Drop unused dependency.
5836
5837         passfd: allow compilation on mingw
5838         * modules/sys_socket (Depends-on): Add sys_uio.
5839         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
5840         iovec and a minimal struct msghdr.
5841         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
5842         * tests/test-sys_socket.c (main): Enhance test.
5843         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
5844         guaranteed to provide what we need.
5845         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
5846         * modules/passfd-tests (Depends-on): Add sys_wait.
5847         * tests/test-passfd.c (main): Skip test on mingw, for now.
5848         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
5849         partial 'struct msghdr' implementation.
5850
5851         sys_uio: new module
5852         * modules/sys_uio: New module.
5853         * modules/sys_uio-tests: Likewise.
5854         * lib/sys_uio.in.h: New file.
5855         * m4/sys_uio_h.m4: Likewise.
5856         * tests/test-sys_uio.c: Likewise.
5857         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
5858         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
5859
5860 2011-04-20  Jim Meyering  <meyering@redhat.com>
5861
5862         useless-if-before-free: avoid false-positive
5863         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
5864         disjunct so that it too requires a terminating ";".  Without that,
5865         this script would identify as useless one statement from gcc that
5866         was not:
5867           if (aligned_ptr)
5868             free (((void **) aligned_ptr) [-1]);
5869
5870 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
5871
5872         doc: update users.txt.
5873         * users.txt: Add barcode.
5874
5875 2011-04-19  Bruno Haible  <bruno@clisp.org>
5876
5877         ioctl: Remove link dependency on native Windows.
5878         * lib/fd-hook.h: Renamed from lib/close-hook.h.
5879         (gl_close_fn, gl_ioctl_fn): New types.
5880         (struct fd_hook): Renamed from struct close_hook. Change type of
5881         private_close_fn field. Add private_ioctl_fn field.
5882         (close_hook_fn): Add parameter for primary close method.
5883         (execute_close_hooks, execute_all_close_hooks): Likewise.
5884         (ioctl_hook_fn): New type.
5885         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
5886         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
5887         argument.
5888         (unregister_fd_hook): Renamed from unregister_close_hook.
5889         * lib/fd-hook.c: Renamed from lib/close-hook.c.
5890         Don't include <unistd.h>.
5891         (close): Remove undef.
5892         (anchor): Update.
5893         (execute_close_hooks): Add argument for primary close method.
5894         (execute_all_close_hooks): Likewise.
5895         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
5896         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
5897         argument. Allow each argument to be NULL.
5898         (unregister_fd_hook): Renamed from unregister_close_hook.
5899         * lib/close.c (rpl_close): Pass 'close' function pointer to
5900         execute_all_close_hooks.
5901         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
5902         (primary_ioctl): New function.
5903         (ioctl): Don't call ioctlsocket here. Instead, call
5904         execute_all_ioctl_hooks.
5905         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
5906         close method.
5907         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
5908         (fd_sockets_hook): Renamed from close_sockets_hook.
5909         (gl_sockets_startup, gl_sockets_cleanup): Update.
5910         * modules/fd-hook: Renamed from modules/close-hook. Update.
5911         * modules/close (Depends-on): Add fd-hook, remove close-hook.
5912         * modules/sockets (Depends-on): Likewise.
5913         * modules/ioctl (Depends-on): Add fd-hook.
5914         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
5915         GNULIB_SOCKET.
5916
5917 2011-04-19  Bruno Haible  <bruno@clisp.org>
5918
5919         Move the support of O_NONBLOCK in open() to the 'open' module.
5920         * modules/nonblocking (Depends-on): Remove 'open'.
5921         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
5922         gl_cv_have_open_O_NONBLOCK.
5923         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
5924         O_NONBLOCK support.
5925         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
5926
5927 2011-04-17  Bruno Haible  <bruno@clisp.org>
5928
5929         pipe2: Simplify code.
5930         * lib/pipe2.c (pipe2): Reduce code duplication.
5931
5932 2011-04-17  Bruno Haible  <bruno@clisp.org>
5933
5934         nonblocking: Add comment.
5935         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
5936
5937 2011-04-17  Bruno Haible  <bruno@clisp.org>
5938
5939         nonblocking: Add tests for sockets.
5940         * tests/test-nonblocking-socket.sh: New file.
5941         * tests/test-nonblocking-socket-main.c: New file.
5942         * tests/test-nonblocking-socket-child.c: New file.
5943         * tests/test-nonblocking-socket.h: New file.
5944         * tests/socket-server.h: New file.
5945         * tests/socket-client.h: New file.
5946         * modules/nonblocking-socket-tests: New file.
5947         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
5948
5949 2011-04-17  Bruno Haible  <bruno@clisp.org>
5950
5951         nonblocking: Add tests for pipes.
5952         * tests/test-nonblocking-pipe.sh: New file.
5953         * tests/test-nonblocking-pipe-main.c: New file.
5954         * tests/test-nonblocking-pipe-child.c: New file.
5955         * tests/test-nonblocking-pipe.h: New file.
5956         * tests/test-nonblocking-writer.h: New file.
5957         * tests/test-nonblocking-reader.h: New file.
5958         * tests/test-nonblocking-misc.h: New file.
5959         * modules/nonblocking-pipe-tests: New file.
5960         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
5961
5962 2011-04-16  Bruno Haible  <bruno@clisp.org>
5963
5964         gettext: Clarify the needed programmer actions.
5965         * modules/gettext (Notice): New field.
5966         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
5967
5968 2011-04-16  Bruno Haible  <bruno@clisp.org>
5969
5970         strchrnul: Tweak last commit.
5971         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
5972         bug.
5973         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
5974         as in _GL_FUNCDECL_SYS.
5975         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
5976         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
5977
5978 2011-04-15  Eric Blake  <eblake@redhat.com>
5979
5980         strchrnul: work around cygwin bug
5981         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
5982         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
5983         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
5984         * modules/string (Makefile.am): Substitute it.
5985         * lib/string.in.h (strchrnul): Use it.
5986
5987 2011-04-15  Bruno Haible  <bruno@clisp.org>
5988
5989         Don't require lib/stdio-write.c when only module 'stdio' is used.
5990         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
5991         invocation.
5992         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
5993
5994 2011-04-14  Bruno Haible  <bruno@clisp.org>
5995
5996         Support non-blocking pipe I/O in read() on native Windows.
5997         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
5998         (read): New declaration.
5999         * lib/read.c: New file.
6000         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
6001         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
6002         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
6003         vscanf): New declarations.
6004         * lib/stdio-read.c: New file.
6005         * m4/read.m4: New file.
6006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
6007         REPLACE_READ.
6008         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
6009         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6010         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
6011         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
6012         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
6013         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6014         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6015         * modules/read: New file.
6016         * modules/nonblocking (Files): Add lib/stdio-read.c.
6017         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
6018         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
6019         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6020         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6021         * modules/pread (Depends-on): Add read.
6022         * modules/safe-read (Depends-on): Likewise.
6023         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
6024         gets, scanf, vfscanf, vscanf): Verify signatures.
6025         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
6026         problem with non-blocking pipes.
6027         * doc/posix-functions/fgetc.texi: Likewise.
6028         * doc/posix-functions/fgets.texi: Likewise.
6029         * doc/posix-functions/fread.texi: Likewise.
6030         * doc/posix-functions/fscanf.texi: Likewise.
6031         * doc/posix-functions/getc.texi: Likewise.
6032         * doc/posix-functions/getchar.texi: Likewise.
6033         * doc/posix-functions/gets.texi: Likewise.
6034         * doc/posix-functions/scanf.texi: Likewise.
6035         * doc/posix-functions/vfscanf.texi: Likewise.
6036         * doc/posix-functions/vscanf.texi: Likewise.
6037
6038 2011-04-14  Bruno Haible  <bruno@clisp.org>
6039
6040         Support non-blocking pipe I/O in write() on native Windows.
6041         * lib/write.c (rpl_write): Split a write request that failed merely
6042         because the byte count was larger than the pipe buffer's size.
6043         * doc/posix-functions/write.texi: Mention the problem with large byte
6044         counts.
6045
6046 2011-04-14  Bruno Haible  <bruno@clisp.org>
6047
6048         wchar: Ensure that wchar_t gets defined on uClibc.
6049         * lib/wchar.in.h: On uClibc, include <stddef.h>.
6050         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
6051
6052 2011-04-13  Bruno Haible  <bruno@clisp.org>
6053
6054         safe-write, full-read: Avoid unnecessary compilation units.
6055         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
6056         (Depends-on): Remove safe-read. Add ssize_t.
6057         * modules/full-read (Files): Add lib/full-write.c.
6058         (Depends-on): Add full-write.
6059
6060 2011-04-13  Bruno Haible  <bruno@clisp.org>
6061
6062         Support non-blocking pipe I/O and SIGPIPE in pwrite().
6063         * modules/pwrite (Depends-on): Add 'write'.
6064
6065 2011-04-13  Bruno Haible  <bruno@clisp.org>
6066
6067         Support non-blocking pipe I/O in write() on native Windows.
6068         * lib/unistd.in.h (write): Enable replacement also if
6069         GNULIB_UNISTD_H_NONBLOCKING is 1.
6070         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
6071         (rpl_write): When failing to write on a non-blocking pipe, change
6072         errno from ENOSPC to EAGAIN.
6073         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
6074         putchar, puts, vfprintf, vprintf): Enable replacement also if
6075         GNULIB_STDIO_H_NONBLOCKING is 1.
6076         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
6077         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
6078         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
6079         CALL_WITH_SIGPIPE_EMULATION.
6080         (CALL_WITH_SIGPIPE_EMULATION): Use them.
6081         * m4/nonblocking.m4: New file.
6082         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
6083         for non-blocking I/O support.
6084         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6085         GNULIB_UNISTD_H_NONBLOCKING.
6086         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
6087         required for non-blocking I/O support.
6088         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
6089         * modules/nonblocking (Files): Add m4/nonblocking.m4,
6090         lib/stdio-write.c, m4/asm-underscore.m4.
6091         (Depends-on): Add stdio, unistd.
6092         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
6093         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
6094         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
6095         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
6096         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
6097         problem with non-blocking pipes.
6098         * doc/posix-functions/fputc.texi: Likewise.
6099         * doc/posix-functions/fputs.texi: Likewise.
6100         * doc/posix-functions/fwrite.texi: Likewise.
6101         * doc/posix-functions/printf.texi: Likewise.
6102         * doc/posix-functions/putc.texi: Likewise.
6103         * doc/posix-functions/putchar.texi: Likewise.
6104         * doc/posix-functions/puts.texi: Likewise.
6105         * doc/posix-functions/vfprintf.texi: Likewise.
6106         * doc/posix-functions/vprintf.texi: Likewise.
6107         * doc/posix-functions/write.texi: Likewise.
6108
6109 2011-04-10  Jim Meyering  <meyering@redhat.com>
6110
6111         maint.mk: prohibit doubled words
6112         Detect them also when they're separated by a newline.
6113         There are 3 ways to customize it:
6114           - disable the test on a per file basis, as usual with rules using
6115             $(VC_LIST_EXCEPT)
6116           - replace the default doubled-word-selecting regexp (affects all files)
6117           - ignore a particular file-vs-doubled-word match
6118         I nearly used that last one to ignore the "is is" match in
6119         coreutils' NEWS file, since the text was "ls -is is ..."
6120         To do that, I would have added this line to cfg.mk:
6121           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
6122         but it would have ignored any "is is" match in NEWS.
6123         Low probability, but still...
6124         Instead, I changed the text, slightly:
6125           -  ls -is is now consistent with ls -lis in ignoring values returned
6126           +  "ls -is" is now consistent with ls -lis in ignoring values returned
6127         * top/maint.mk (prohibit_double_word_RE_): Provide default.
6128         (prohibit_doubled_word_): Define.
6129         (sc_prohibit_doubled_word): New rule.
6130         (sc_prohibit_the_the): Remove.  Subsumed by the above.
6131
6132 2011-04-10  Jim Meyering  <meyering@redhat.com>
6133
6134         maint: fix doubled-word typo in comment
6135         * m4/gethostname.m4: s/is is/it is/
6136         * m4/getdomainname.m4: Likewise.
6137
6138 2011-04-10  Jim Meyering  <meyering@redhat.com>
6139
6140         maint: remove doubled word: s/it it/it/
6141         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
6142
6143 2011-04-10  Jim Meyering  <meyering@redhat.com>
6144
6145         maint.mk: remove useless semicolon and backslash
6146         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
6147         semicolon and backslash.
6148
6149 2011-04-10  Bruno Haible  <bruno@clisp.org>
6150
6151         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
6152         * modules/stdint-tests (Depends-on): Add wchar.
6153
6154 2011-04-10  Jim Meyering  <meyering@redhat.com>
6155
6156         maint: remove doubled words in comments, e.g., s/a a/a/
6157         * lib/strptime.c (day_of_the_week): s/the the/the/
6158         * tests/test-chown.h (test_chown): s/a a/a/
6159
6160         test-chown.h: correct a cast
6161         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
6162         when the destination is a stat.st_gid.
6163
6164 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
6165
6166         getaddrinfo: Fix test for sa_len member.
6167         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
6168         include <sys/types.h> before <sys/socket.h>.
6169
6170 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
6171
6172         maint: change "can not" to "cannot"
6173         * doc/posix-functions/iconv.texi (iconv): This one crossed line
6174         boundaries.
6175
6176 2011-04-09  Jim Meyering  <meyering@redhat.com>
6177
6178         maint: change "a a" to "a"
6179         * tests/test-lchown.h (test_lchown): s/a a/a/
6180
6181         maint.mk: prohibit \<the the\>
6182         * top/maint.mk (sc_prohibit_the_the): New rule.
6183
6184         maint: fix "the the" in comment
6185         * lib/count-one-bits.h: s/the the/the/
6186
6187         maint: change "can not" to "cannot"
6188         But do not change the occurrences in maintain.texi or in
6189         build-aux/po/Makefile.in.in, which I presume comes from gettext.
6190         * doc/gnulib-tool.texi: s/can not/cannot/
6191         * doc/posix-functions/accept.texi (accept): Likewise.
6192         * doc/posix-functions/socket.texi (socket): Likewise.
6193         * lib/mbrtowc.c: Likewise.
6194
6195         maint.mk: prohibit use of "can not"
6196         * top/maint.mk (sc_prohibit_can_not): New rule.
6197         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
6198
6199 2011-04-09  Bruno Haible  <bruno@clisp.org>
6200
6201         careadlinkat: Guard against misuse of careadlinkatcwd.
6202         * lib/careadlinkat.c: Include <stdlib.h>.
6203         (careadlinkatcwd): Check that the fd argument is as expected.
6204
6205 2011-04-09  Bruno Haible  <bruno@clisp.org>
6206
6207         careadlinkat: Use common coding style.
6208         * lib/careadlinkat.c: Move gnulib includes after system includes.
6209
6210 2011-04-09  Bruno Haible  <bruno@clisp.org>
6211
6212         careadlinkat: Clarify specification.
6213         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
6214         (careadlinkatcwd): Add comment.
6215         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
6216
6217 2011-04-09  Bruno Haible  <bruno@clisp.org>
6218
6219         areadlinkat: Avoid link error on many platforms.
6220         * modules/areadlinkat (Depends-on): Add areadlink.
6221
6222 2011-04-09  Bruno Haible  <bruno@clisp.org>
6223
6224         allocator, careadlinkat: Fix double-inclusion guard.
6225         * lib/allocator.h: Fix double-inclusion guard.
6226         * lib/careadlinkat.h: Likewise.
6227
6228 2011-04-09  Bruno Haible  <bruno@clisp.org>
6229
6230         relocatable-prog-wrapper: Update after module 'areadlink' changed.
6231         * lib/relocwrapper.c: Update dependencies hierarchy.
6232         * build-aux/install-reloc: Update list of files to be compiled.
6233         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
6234         lib/allocator.[hc].
6235
6236 2011-04-08  Eric Blake  <eblake@redhat.com>
6237
6238         strftime: silence gnulib-tool warning
6239         * modules/strftime-tests (Depends-on): Drop automatic dependency.
6240
6241 2011-04-08  Bruno Haible  <bruno@clisp.org>
6242
6243         verify: Fix syntax error with GCC 4.6 in C++ mode.
6244         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
6245         (HAVE_STATIC_ASSERT): New macro.
6246         (verify_true, verify): Use 'static_assert' if it is supported and
6247         '_Static_assert' is not supported.
6248
6249 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
6250
6251         allocator: New module.
6252         * modules/allocator, lib/allocator.c: New files.
6253         * lib/allocator.h (stdlib_allocator): New decl.
6254         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
6255         Remove.  Do not include <stdlib.h>.
6256         (careadlinkat): Use stdlib_allocator instead of rolling our own.
6257         * modules/careadlinkat (Files): Remove lib/allocator.h.
6258         (Depends-on): Add allocator.
6259
6260         stdlib: let modules use system malloc, realloc
6261         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
6262         if !_GL_USE_STDLIB_ALLOC.
6263         (malloc, realloc): Limit this change to a smaller scope.
6264
6265         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
6266         (malloc, realloc): Don't #undef; no longer needed.
6267         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6268         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6269         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6270         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6271         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6272         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6273         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6274         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6275
6276         careadlinkat: rename members to avoid problem
6277         * lib/allocator.h (struct allocator): Rename members from
6278         malloc/realloc to allocate/reallocate, to avoid problems if malloc
6279         and realloc are #define'd.  Reported by Eric Blake in
6280         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
6281         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
6282
6283 2011-04-08  Eric Blake  <eblake@redhat.com>
6284
6285         nonblocking: reduce dependency
6286         * tests/test-nonblocking.c: Only test sockets when in use.
6287         * modules/nonblocking-tests (Depends-on): Drop socket.
6288         (Makefile.am): Link even if sockets are not present.
6289         * modules/pipe2-tests (Makefile.am): Likewise.
6290         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
6291
6292         pipe2: fix O_NONBLOCK support on mingw
6293         * modules/pipe2 (Depends-on): Add nonblocking.
6294         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
6295         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
6296         * tests/test-nonblocking.c (main): Likewise.
6297         * modules/pipe2-tests (Makefile.am): Avoid link failure.
6298
6299         fcntl-h: fix O_ACCMODE on cygwin
6300         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
6301         * lib/fcntl.in.h (O_ACCMODE): Fix it.
6302
6303         pipe-filter: drop O_NONBLOCK workarounds
6304         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
6305         * modules/pipe-filter-ii (Depends-on): Likewise.
6306         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
6307
6308         nonblocking: provide O_NONBLOCK for mingw
6309         * modules/nonblocking (Depends-on): Add open.
6310         (configure.ac): Set new witness macro.
6311         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
6312         * modules/fcntl-h (Makefile.am): Substitute it.
6313         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
6314         nonblocking module is in use.
6315         * lib/nonblocking.c: Adjust portability test.
6316         * lib/open.c (open): Don't let native open see gnulib flag.
6317         * tests/test-fcntl-h.c (main): Enhance test.
6318         * tests/test-open.h (test_open): Likewise.
6319         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
6320
6321         careadlinkat: fix compilation error on mingw
6322         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
6323         within struct allocator.
6324
6325 2011-04-06  Eric Blake  <eblake@redhat.com>
6326
6327         binary-io: relicense under LGPLv2+
6328         * modules/binary-io (License): Relax to LGPLv2+.
6329         Requested for libvirt, and required by pipe2.
6330
6331 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
6332
6333         verify: use _Static_assert if available
6334         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
6335         (verify_true, verify): Use it if available.  This generates better
6336         diagnostics with GCC 4.6.0 and later.
6337
6338 2011-04-05  Bruno Haible  <bruno@clisp.org>
6339
6340         Remove leftover generated .h files after config.status changed.
6341
6342         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
6343         GL_GENERATE_ALLOCA_H.
6344         * modules/alloca-opt (Makefile.am): Remove alloca.h if
6345         GL_GENERATE_ALLOCA_H evaluates to false.
6346
6347         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
6348         GL_GENERATE_ARGZ_H.
6349         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
6350         evaluates to false.
6351
6352         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
6353         GL_GENERATE_BYTESWAP_H.
6354         * modules/byteswap (Makefile.am): Remove byteswap.h if
6355         GL_GENERATE_BYTESWAP_H evaluates to false.
6356
6357         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
6358         GL_GENERATE_ERRNO_H.
6359         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
6360         evaluates to false.
6361
6362         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
6363         GL_GENERATE_FLOAT_H.
6364         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
6365         evaluates to false.
6366
6367         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
6368         GL_GENERATE_FNMATCH_H.
6369         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
6370         GL_GENERATE_FNMATCH_H evaluates to false.
6371
6372         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
6373         GL_GENERATE_GLOB_H.
6374         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
6375         evaluates to false.
6376
6377         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
6378         automake conditional GL_GENERATE_ICONV_H.
6379         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
6380         evaluates to false.
6381
6382         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
6383         GL_GENERATE_NETINET_IN_H.
6384         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
6385         GL_GENERATE_NETINET_IN_H evaluates to false.
6386
6387         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
6388         conditional GL_GENERATE_PTHREAD_H.
6389         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
6390         * modules/pthread (Makefile.am): Remove pthread.h if
6391         GL_GENERATE_PTHREAD_H evaluates to false.
6392
6393         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
6394         GL_GENERATE_SCHED_H.
6395         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
6396         evaluates to false.
6397
6398         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
6399         conditional GL_GENERATE_SELINUX_CONTEXT_H.
6400         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
6401         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
6402
6403         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
6404         GL_GENERATE_STDARG_H.
6405         * modules/stdarg (Makefile.am): Remove stdarg.h if
6406         GL_GENERATE_STDARG_H evaluates to false.
6407
6408         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
6409         GL_GENERATE_STDBOOL_H.
6410         * modules/stdbool (Makefile.am): Remove stdbool.h if
6411         GL_GENERATE_STDBOOL_H evaluates to false.
6412
6413         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
6414         conditional GL_GENERATE_STDDEF_H.
6415         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
6416         * modules/stddef (Makefile.am): Remove stddef.h if
6417         GL_GENERATE_STDDEF_H evaluates to false.
6418
6419         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
6420         GL_GENERATE_STDINT_H.
6421         * modules/stdint (Makefile.am): Remove stdint.h if
6422         GL_GENERATE_STDINT_H evaluates to false.
6423
6424         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
6425         GL_GENERATE_SYSEXITS_H.
6426         * modules/sysexits (Makefile.am): Remove sysexits.h if
6427         GL_GENERATE_SYSEXITS_H evaluates to false.
6428
6429         Reported by Karl Berry and Ralf Wildenhues.
6430
6431 2011-04-05  Bruno Haible  <bruno@clisp.org>
6432
6433         Ensure to rebuild generated .h files when config.status has changed.
6434         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
6435         config.status.
6436         * modules/ctype (Makefile.am): Likewise.
6437         * modules/dirent (Makefile.am): Likewise.
6438         * modules/errno (Makefile.am): Likewise.
6439         * modules/fcntl-h (Makefile.am): Likewise.
6440         * modules/float (Makefile.am): Likewise.
6441         * modules/getopt-posix (Makefile.am): Likewise.
6442         * modules/glob (Makefile.am): Likewise.
6443         * modules/iconv-h (Makefile.am): Likewise.
6444         * modules/inttypes (Makefile.am): Likewise.
6445         * modules/langinfo (Makefile.am): Likewise.
6446         * modules/locale (Makefile.am): Likewise.
6447         * modules/math (Makefile.am): Likewise.
6448         * modules/netdb (Makefile.am): Likewise.
6449         * modules/netinet_in (Makefile.am): Likewise.
6450         * modules/poll-h (Makefile.am): Likewise.
6451         * modules/pthread (Makefile.am): Likewise.
6452         * modules/pty (Makefile.am): Likewise.
6453         * modules/sched (Makefile.am): Likewise.
6454         * modules/search (Makefile.am): Likewise.
6455         * modules/selinux-h (Makefile.am): Likewise.
6456         * modules/signal (Makefile.am): Likewise.
6457         * modules/spawn (Makefile.am): Likewise.
6458         * modules/stdarg (Makefile.am): Likewise.
6459         * modules/stdbool (Makefile.am): Likewise.
6460         * modules/stddef (Makefile.am): Likewise.
6461         * modules/stdint (Makefile.am): Likewise.
6462         * modules/stdio (Makefile.am): Likewise.
6463         * modules/stdlib (Makefile.am): Likewise.
6464         * modules/string (Makefile.am): Likewise.
6465         * modules/strings (Makefile.am): Likewise.
6466         * modules/sys_file (Makefile.am): Likewise.
6467         * modules/sys_ioctl (Makefile.am): Likewise.
6468         * modules/sys_select (Makefile.am): Likewise.
6469         * modules/sys_socket (Makefile.am): Likewise.
6470         * modules/sys_stat (Makefile.am): Likewise.
6471         * modules/sys_time (Makefile.am): Likewise.
6472         * modules/sys_times (Makefile.am): Likewise.
6473         * modules/sys_utsname (Makefile.am): Likewise.
6474         * modules/sys_wait (Makefile.am): Likewise.
6475         * modules/sysexits (Makefile.am): Likewise.
6476         * modules/termios (Makefile.am): Likewise.
6477         * modules/time (Makefile.am): Likewise.
6478         * modules/unistd (Makefile.am): Likewise.
6479         * modules/wchar (Makefile.am): Likewise.
6480         * modules/wctype-h (Makefile.am): Likewise.
6481         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
6482
6483 2011-04-05  Bruno Haible  <bruno@clisp.org>
6484
6485         pipe2: Relicense under LGPLv2+.
6486         * modules/pipe2 (License): Change to LGPLv2+.
6487         Requested by Eric Blake, for libvirt.
6488
6489 2011-04-05  Bruce Korb  <bkorb@gnu.org>
6490
6491         bootstrap: compute gnulib_extra_files after updating build_aux
6492         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
6493         change build_aux or also supply gnulib_extra_files.  Handle correctly.
6494
6495 2011-04-05  Eric Blake  <eblake@redhat.com>
6496
6497         bootstrap: preserve git whitelist item sorting
6498         * build-aux/bootstrap (sort_patterns): New function.
6499         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
6500
6501 2011-04-05  Simon Josefsson  <simon@josefsson.org>
6502
6503         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
6504         sc_space_tab check.
6505
6506 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
6507
6508         areadlink, areadlinkat: rewrite in terms of careadlinkat
6509         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
6510         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
6511         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
6512         (malloc, realloc): Remove #undefs.
6513         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
6514         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
6515         readlink, ssize_t, stdint, unistd.
6516         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
6517         areadlink, stdint.
6518
6519         careadlinkat: new module
6520         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
6521         * modules/careadlinkat: New files, written by me with
6522         a review and feedback from Ben Pfaff in
6523         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
6524
6525 2011-04-01  Bruno Haible  <bruno@clisp.org>
6526
6527         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
6528         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
6529         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
6530         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
6531         Reported by Bruce Korb <bruce.korb@gmail.com>.
6532
6533 2011-04-01  Bruno Haible  <bruno@clisp.org>
6534
6535         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
6536         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
6537         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
6538         * modules/wcpcpy (Depends-on): Add extensions.
6539         * modules/wcpncpy (Depends-on): Likewise.
6540         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
6541         systems.
6542         * doc/posix-functions/wcpncpy.texi: Likewise.
6543         * doc/posix-functions/wcwidth.texi: Likewise.
6544
6545 2011-03-31  Eric Blake  <eblake@redhat.com>
6546
6547         nonblocking: fix mingw test failures
6548         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
6549         non-blocking flag on regular file.
6550         (get_nonblocking_flag): Set errno on invalid fd.
6551         * tests/test-nonblocking.c (main): Avoid test failure on
6552         directories if fchdir is not active.
6553         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
6554
6555 2011-03-31  Bruno Haible  <bruno@clisp.org>
6556
6557         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
6558         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
6559         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
6560         Reported by Simon Josefsson <simon@josefsson.org>.
6561
6562 2011-03-31  Bruno Haible  <bruno@clisp.org>
6563         and Eric Blake  <eblake@redhat.com>
6564
6565         nonblocking: new module
6566         * modules/nonblocking: New module.
6567         * modules/nonblocking-tests: Likewise.
6568         * lib/nonblocking.h: New file.
6569         * lib/nonblocking.c: Likewise.
6570         * tests/test-nonblocking.c: New test.
6571         * lib/ioctl.c (ioctl) [mingw]: Update comment.
6572
6573 2011-03-30  Bruno Haible  <bruno@clisp.org>
6574
6575         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
6576         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
6577         instead of 'printf' format for GCC >= 4.4.
6578         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
6579         (fprintf, printf, vfprintf, vprintf): Declare with
6580         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
6581         the system's vfprintf() function.
6582         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
6583
6584 2011-03-30  Eric Blake  <eblake@redhat.com>
6585
6586         passfd: fix scoping bug
6587         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
6588         before sendmsg/recvmsg.
6589
6590         passfd: standardize coding conventions
6591         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
6592         can be learned at compile time.
6593         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
6594         ifdefs.
6595         (sendfd, recvfd): Follow gnulib code conventions.
6596
6597         passfd: fix incorrect sendmsg arguments
6598         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
6599         incorrect msg_controllen value.
6600         * modules/passfd-tests (Depends-on): Check for alarm.
6601         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
6602         Reported by Bastien ROUCARIES.
6603
6604 2011-03-30  Bruno Haible  <bruno@clisp.org>
6605
6606         c-strcasestr: Relicense under LGPLv2+.
6607         * modules/c-strcasestr (License): Change to LGPLv2+.
6608         Requested by Eric Blake, for libvirt.
6609
6610 2011-03-30  Simon Josefsson  <simon@josefsson.org>
6611
6612         * users.txt: Add libidn2.  Fix libtasn1 link.
6613
6614 2011-03-30  Jim Meyering  <meyering@redhat.com>
6615
6616         tests: readlink* ("",... fails with EINVAL on newer kernels
6617         readlink and readlinkat have typically failed with ENOENT for
6618         the invalid, empty file name,  "".  However, with the advent
6619         of linux-2.6.39, they fail with EINVAL.
6620         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
6621         when operating on the empty file name.
6622         * tests/test-readlink.h (test_readlink): Likewise.
6623
6624 2011-03-29  Bruno Haible  <bruno@clisp.org>
6625
6626         Relicense some modules under LGPLv2+, for libidn2.
6627         * modules/array-mergesort (License): Change to LGPLv2+.
6628         * modules/c-strcaseeq (License): Likewise.
6629         * modules/striconveh (License): Likewise.
6630         * modules/striconveha (License): Likewise.
6631         * modules/uniconv/base (License): Likewise.
6632         * modules/uniconv/u8-conv-from-enc (License): Likewise.
6633         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
6634         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
6635         * modules/unictype/base (License): Likewise.
6636         * modules/unictype/bidiclass-of (License): Likewise.
6637         * modules/unictype/category-M (License): Likewise.
6638         * modules/unictype/category-none (License): Likewise.
6639         * modules/unictype/category-of (License): Likewise.
6640         * modules/unictype/category-test (License): Likewise.
6641         * modules/unictype/category-test-withtable (License): Likewise.
6642         * modules/unictype/combining-class (License): Likewise.
6643         * modules/unictype/joiningtype-of (License): Likewise.
6644         * modules/unictype/scripts (License): Likewise.
6645         * modules/uninorm/base (License): Likewise.
6646         * modules/uninorm/canonical-decomposition (License): Likewise.
6647         * modules/uninorm/composition (License): Likewise.
6648         * modules/uninorm/decompose-internal (License): Likewise.
6649         * modules/uninorm/decomposition-table (License): Likewise.
6650         * modules/uninorm/nfc (License): Likewise.
6651         * modules/uninorm/nfd (License): Likewise.
6652         * modules/uninorm/u32-normalize (License): Likewise.
6653         * modules/unistr/base (License): Likewise.
6654         * modules/unistr/u32-cpy (License): Likewise.
6655         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
6656         * modules/unistr/u32-to-u8 (License): Likewise.
6657         * modules/unistr/u32-uctomb (License): Likewise.
6658         * modules/unistr/u8-check (License): Likewise.
6659         * modules/unistr/u8-mblen (License): Likewise.
6660         * modules/unistr/u8-mbtouc (License): Likewise.
6661         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
6662         * modules/unistr/u8-mbtoucr (License): Likewise.
6663         * modules/unistr/u8-prev (License): Likewise.
6664         * modules/unistr/u8-strlen (License): Likewise.
6665         * modules/unistr/u8-to-u32 (License): Likewise.
6666         * modules/unistr/u8-uctomb (License): Likewise.
6667         * modules/unitypes (License): Likewise.
6668         Requested by Simon Josefsson.
6669
6670 2011-03-29  Simon Josefsson  <simon@josefsson.org>
6671
6672         lib-symbol-visibility: Add a notice.
6673         * modules/lib-symbol-visibility (Notice): New field.
6674
6675 2011-03-29  Bruno Haible  <bruno@clisp.org>
6676
6677         getaddrinfo: Doc fix.
6678         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
6679         section "fixed in Gnulib".
6680
6681 2011-03-28  Simon Josefsson  <simon@josefsson.org>
6682
6683         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
6684         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
6685
6686 2011-03-26  Bruno Haible  <bruno@clisp.org>
6687
6688         unictype/property-byname: Reduce the number of load-time relocations.
6689         * lib/unictype/pr_byname.c: Include <stdlib.h>.
6690         (UC_PROPERTY_INDEX_*): New enumeration values.
6691         (uc_property_byname): Convert an index from the lookup table to an
6692         uc_property_t.
6693         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
6694         values.
6695
6696 2011-03-26  Bruno Haible  <bruno@clisp.org>
6697
6698         unictype/property-byname: Allow omitted word separators and aliases.
6699         * lib/unictype/pr_byname.gperf: Add property names without word
6700         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
6701         for 'space'.
6702
6703 2011-03-26  Bruno Haible  <bruno@clisp.org>
6704
6705         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
6706         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
6707         also hyphens to space.
6708         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
6709         without spaces.
6710         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
6711
6712 2011-03-26  Bruno Haible  <bruno@clisp.org>
6713
6714         unictype/joiningtype-byname: Recognize long names as well.
6715         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
6716         a long name.
6717         * lib/unictype/joiningtype_byname.c: Include <string.h>,
6718         unictype/joiningtype_byname.h.
6719         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
6720         * lib/unictype/joiningtype_byname.gperf: New file.
6721         * modules/unictype/joiningtype-byname (Files): Add
6722         lib/unictype/joiningtype_byname.gperf.
6723         (Depends-on): Add gperf.
6724         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
6725         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
6726         long names.
6727
6728         Tests for module 'unictype/joiningtype-longname'.
6729         * modules/unictype/joiningtype-longname-tests: New file.
6730         * tests/unictype/test-joiningtype_longname.c: New file.
6731
6732         New module 'unictype/joiningtype-longname'.
6733         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
6734         * lib/unictype/joiningtype_longname.c: New file.
6735         * modules/unictype/joiningtype-longname: New file.
6736         * modules/unictype/joiningtype-all (Depends-on): Add
6737         unictype/joiningtype-longname.
6738
6739 2011-03-26  Bruno Haible  <bruno@clisp.org>
6740
6741         unictype/bidiclass-byname: Recognize long names as well.
6742         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
6743         name.
6744         * lib/unictype/bidi_byname.c: Include <string.h>,
6745         unictype/bidi_byname.h.
6746         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
6747         * lib/unictype/bidi_byname.gperf: New file.
6748         * modules/unictype/bidiclass-byname (Files): Add
6749         lib/unictype/bidi_byname.gperf.
6750         (Depends-on): Add gperf.
6751         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
6752         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
6753         long names.
6754
6755         Tests for module 'unictype/bidiclass-longname'.
6756         * modules/unictype/bidiclass-longname-tests: New file.
6757         * tests/unictype/test-bidi_longname.c: New file.
6758
6759         New module 'unictype/bidiclass-longname'.
6760         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
6761         * lib/unictype/bidi_longname.c: New file.
6762         * modules/unictype/bidiclass-longname: New file.
6763         * modules/unictype/bidiclass-all (Depends-on): Add
6764         unictype/bidiclass-longname.
6765
6766 2011-03-26  Bruno Haible  <bruno@clisp.org>
6767
6768         unictype/bidi*: Rename modules.
6769         * modules/unictype/bidiclass-all: Renamed from
6770         modules/unictype/bidicategory-all.
6771         * modules/unictype/bidiclass-name: Renamed from
6772         modules/unictype/bidiclass-name.
6773         (Description): Update.
6774         * modules/unictype/bidiclass-name-tests: Renamed from
6775         modules/unictype/bidicategory-name-tests.
6776         * modules/unictype/bidiclass-byname: Renamed from
6777         modules/unictype/bidicategory-byname.
6778         (Description): Update.
6779         * modules/unictype/bidiclass-byname-tests: Renamed from
6780         modules/unictype/bidicategory-byname-tests.
6781         * modules/unictype/bidiclass-of: Renamed from
6782         modules/unictype/bidicategory-of.
6783         (Description): Update.
6784         * modules/unictype/bidiclass-of-tests: Renamed from
6785         modules/unictype/bidicategory-of-tests.
6786         * modules/unictype/bidiclass-test: Renamed from
6787         modules/unictype/bidicategory-test.
6788         (Description): Update.
6789         * modules/unictype/bidiclass-test-tests: Renamed from
6790         modules/unictype/bidicategory-test-tests.
6791         * modules/unictype/bidicategory-all: New file, a simple redirection.
6792         * modules/unictype/bidicategory-name: Likewise.
6793         * modules/unictype/bidicategory-byname: Likewise.
6794         * modules/unictype/bidicategory-of: Likewise.
6795         * modules/unictype/bidicategory-test: Likewise.
6796         * modules/unictype/property-bidi-* (Dependencies): Update.
6797         * lib/unictype/bidi_*.c: Update comment.
6798
6799 2011-03-26  Bruno Haible  <bruno@clisp.org>
6800
6801         unictype/bidi*: Rename functions, part 2.
6802         * modules/unictype/bidicategory-name (configure.ac): Update required
6803         libunistring version.
6804         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
6805
6806 2011-03-25  Bruno Haible  <bruno@clisp.org>
6807
6808         New module 'unictype/combining-class-all'.
6809         * modules/unictype/combining-class-all: New file.
6810
6811         Tests for module 'unictype/combining-class-byname'.
6812         * modules/unictype/combining-class-byname-tests: New file.
6813         * tests/unictype/test-combiningclass_byname.c: New file.
6814
6815         New module 'unictype/combining-class-byname'.
6816         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
6817         * lib/unictype/combiningclass_byname.c: New file.
6818         * lib/unictype/combiningclass_byname.gperf: New file.
6819         * modules/unictype/combining-class-byname: New file.
6820
6821         Tests for module 'unictype/combining-class-longname'.
6822         * modules/unictype/combining-class-longname-tests: New file.
6823         * tests/unictype/test-combiningclass_longname.c: New file.
6824
6825         New module 'unictype/combining-class-longname'.
6826         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
6827         * lib/unictype/combiningclass_longname.c: New file.
6828         * modules/unictype/combining-class-longname: New file.
6829
6830         Tests for module 'unictype/combining-class-name'.
6831         * modules/unictype/combining-class-name-tests: New file.
6832         * tests/unictype/test-combiningclass_name.c: New file.
6833
6834         New module 'unictype/combining-class-name'.
6835         * lib/unictype.in.h (uc_combining_class_name): New declaration.
6836         * lib/unictype/combiningclass_name.c: New file.
6837         * modules/unictype/combining-class-name: New file.
6838
6839 2011-03-25  Bruno Haible  <bruno@clisp.org>
6840
6841         unictype/combining-class: Rename source files.
6842         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
6843         of unictype/combining.h.
6844         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
6845         Update.
6846         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
6847         * modules/unictype/combining-class (Description): Fix.
6848         (Files, Makefile.am): Update.
6849         * tests/unictype/test-combiningclass.c: Renamed from
6850         tests/unictype/test-combining.c.
6851         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
6852
6853 2011-03-25  Bruno Haible  <bruno@clisp.org>
6854
6855         unictype: Update list of canonical combining classes.
6856         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
6857
6858 2011-03-25  Bruno Haible  <bruno@clisp.org>
6859
6860         unictype/category-byname: Recognize long names as well.
6861         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
6862         a long name.
6863         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
6864         unictype/categ_byname.h.
6865         (UC_CATEGORY_INDEX_*): New enumeration values.
6866         (uc_general_category_byname): Use uc_general_category_lookup and
6867         convert from index to value.
6868         * lib/unictype/categ_byname.gperf: New file.
6869         * modules/unictype/category-byname (Files): Add
6870         lib/unictype/categ_byname.gperf.
6871         (Depends-on): Add gperf.
6872         (Makefile.am): Add rule for generating unictype/categ_byname.h.
6873         * tests/unictype/test-categ_byname.c (main): Test the recognition of
6874         long names.
6875
6876         Tests for module 'unictype/category-longname'.
6877         * modules/unictype/category-longname-tests: New file.
6878         * tests/unictype/test-categ_longname.c: New file.
6879
6880         New module 'unictype/category-longname'.
6881         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
6882         * lib/unictype/categ_longname.c: New file.
6883         * modules/unictype/category-longname: New file.
6884         * modules/unictype/category-all (Depends-on): Add it.
6885
6886 2011-03-25  Bruno Haible  <bruno@clisp.org>
6887
6888         Tests for module 'unictype/category-LC'.
6889         * modules/unictype/category-LC-tests: New file.
6890         * tests/unictype/test-categ_LC.c: New file, automatically generated.
6891
6892         New module 'unictype/category-LC'.
6893         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
6894         (UC_CATEGORY_LC): New declaration.
6895         (UC_CASED_LETTER): New macro.
6896         * lib/gen-uni-tables.c (is_category_LC): New function.
6897         (output_categories): Also handle category LC.
6898         (UC_CATEGORY_MASK_LC): New enumeration value.
6899         (general_category_byname): Also handle category LC.
6900         * lib/unictype/categ_LC.c: New file.
6901         * lib/unictype/categ_LC.h: New file, automatically generated.
6902         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
6903         category LC.
6904         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
6905         * modules/unictype/category-LC: New file.
6906         * modules/unictype/category-byname (Depends-on): Add
6907         unictype/category-LC.
6908         * modules/unictype/category-all (Depends-on): Likewise.
6909
6910 2011-03-25  Eric Blake  <eblake@redhat.com>
6911
6912         xmalloc: revert yesterday's regression
6913         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
6914         realloc's underlying behavior (allowing allocation of zero-size
6915         objects, especially if malloc-gnu is also in use).
6916
6917 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
6918
6919         maint.mk: add missing version to VC-tag
6920         * top/maint.mk: git tag was missing actual tag name; add it.
6921
6922         valgrind: do leak checking, and exit with code 1 on error (not 0)
6923         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
6924         to VALGRIND.
6925
6926 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
6927
6928         posix-modules: say what it does.
6929         * posix-modules: Add a line to the --help output saying what it does.
6930
6931 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
6932
6933         xmalloc: Do not leak if underlying realloc is C99 compatible.
6934         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
6935         This avoids a leak on C99-based systems.  See
6936         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
6937
6938 2011-03-24  Eric Blake  <eblake@redhat.com>
6939
6940         realloc: document portability problem
6941         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
6942         passing 0 size to realloc.
6943
6944 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
6945
6946         doc: update users.txt
6947         * users.txt: Add cvsps, tmpwatch
6948
6949 2011-03-23  Matt Rice  <ratmice@gmail.com>
6950
6951         doc: update users.txt
6952         * users.txt: Add gdb.
6953
6954 2011-03-23  Jim Meyering  <meyering@redhat.com>
6955
6956         doc: update users.txt
6957         Looking through matches up to the following URL (there are still
6958         several more pages), I found several projects that use gnulib:
6959         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
6960         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
6961         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
6962
6963 2011-03-22  Bruno Haible  <bruno@clisp.org>
6964
6965         unictype/bidi*: Rename functions.
6966         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
6967         uc_bidi_class, uc_is_bidi_class): New declarations.
6968         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
6969         uc_bidi_category_byname.
6970         (uc_bidi_category_byname): New function.
6971         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
6972         u_bidi_category_name.
6973         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
6974         (uc_bidi_category_name): New function.
6975         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
6976         uc_bidi_category.
6977         (uc_bidi_category): New function.
6978         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
6979         uc_is_bidi_category. Invoke uc_bidi_class.
6980         (uc_is_bidi_category): New function.
6981         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
6982         instead of uc_bidi_category_byname.
6983         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
6984         instead of uc_bidi_category_name.
6985         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
6986         uc_bidi_category.
6987         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
6988         instead of uc_is_bidi_category.
6989
6990 2011-03-21  Bruno Haible  <bruno@clisp.org>
6991
6992         New module 'unictype/joininggroup-all'.
6993         * modules/unictype/joininggroup-all: New file.
6994
6995         Tests for module 'unictype/joininggroup-of'.
6996         * modules/unictype/joininggroup-of-tests: New file.
6997         * tests/unictype/test-joininggroup_of.c: New file.
6998         * tests/unictype/test-joininggroup_of.h: New file, automatically
6999         generated by gen-uni-tables.
7000
7001         New module 'unictype/joininggroup-of'.
7002         * modules/unictype/joininggroup-of: New file.
7003         * lib/unictype/joininggroup_of.c: New file.
7004         * lib/unictype/joininggroup_of.h: New file, automatically generated by
7005         gen-uni-tables.
7006
7007         Tests for module 'unictype/joininggroup-byname'.
7008         * modules/unictype/joininggroup-byname-tests: New file.
7009         * tests/unictype/test-joininggroup_byname.c: New file.
7010
7011         New module 'unictype/joininggroup-byname'.
7012         * modules/unictype/joininggroup-byname: New file.
7013         * lib/unictype/joininggroup_byname.c: New file.
7014         * lib/unictype/joininggroup_byname.gperf: New file.
7015
7016         Tests for module 'unictype/joininggroup-name'.
7017         * modules/unictype/joininggroup-name-tests: New file.
7018         * tests/unictype/test-joininggroup_name.c: New file.
7019
7020         New module 'unictype/joininggroup-name'.
7021         * modules/unictype/joininggroup-name: New file.
7022         * lib/unictype/joininggroup_name.c: New file.
7023         * lib/unictype/joininggroup_name.h: New file.
7024
7025         New module 'unictype/joiningtype-all'.
7026         * modules/unictype/joiningtype-all: New file.
7027
7028         Tests for module 'unictype/joiningtype-of'.
7029         * modules/unictype/joiningtype-of-tests: New file.
7030         * tests/unictype/test-joiningtype_of.c: New file.
7031         * tests/unictype/test-joiningtype_of.h: New file, automatically
7032         generated by gen-uni-tables.
7033
7034         New module 'unictype/joiningtype-of'.
7035         * modules/unictype/joiningtype-of: New file.
7036         * lib/unictype/joiningtype_of.c: New file.
7037         * lib/unictype/joiningtype_of.h: New file, automatically generated by
7038         gen-uni-tables.
7039
7040         Tests for module 'unictype/joiningtype-byname'.
7041         * modules/unictype/joiningtype-byname-tests: New file.
7042         * tests/unictype/test-joiningtype_byname.c: New file.
7043
7044         New module 'unictype/joiningtype-byname'.
7045         * modules/unictype/joiningtype-byname: New file.
7046         * lib/unictype/joiningtype_byname.c: New file.
7047
7048         Tests for module 'unictype/joiningtype-name'.
7049         * modules/unictype/joiningtype-name-tests: New file.
7050         * tests/unictype/test-joiningtype_name.c: New file.
7051
7052         New module 'unictype/joiningtype-name'.
7053         * modules/unictype/joiningtype-name: New file.
7054         * lib/unictype/joiningtype_name.c: New file.
7055
7056         unictype: Add support for Arabic shaping properties.
7057         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
7058         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
7059         declarations.
7060         (UC_JOINING_GROUP_*): New enumeration values.
7061         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
7062         declarations.
7063         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
7064         (unicode_joining_type): New variable.
7065         (UC_JOINING_GROUP_*): New enumeration values.
7066         (unicode_joining_group): New variable.
7067         (fill_arabicshaping, joining_type_as_c_identifier,
7068         output_joining_type_test, output_joining_type,
7069         joining_group_as_c_identifier, output_joining_group_test,
7070         output_joining_group): New functions.
7071         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
7072         fill_arabicshaping and output_joining_type_test, output_joining_type,
7073         output_joining_group_test, output_joining_group.
7074         Reported by Simon Josefsson.
7075
7076 2011-03-21  Jim Meyering  <meyering@redhat.com>
7077
7078         strftime: fix a bug in yesterday's change
7079         * lib/strftime.c (add): Accommodate width's initial value of -1.
7080         Otherwise, nstrftime would copy uninitialized data into
7081         the result buffer.
7082
7083 2011-03-21  Jim Meyering  <meyering@redhat.com>
7084
7085         tests: add strftime-tests module
7086         * tests/test-strftime.c: New file.
7087         * modules/strftime-tests: New module.
7088
7089 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7090
7091         strftime: don't assume a byte count fits in 'int'
7092         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
7093         found this problem by static analysis, using gcc -Wstrict-overflow
7094         (GCC 4.5.2, x86-64).  This reported an optimization that depended
7095         on an integer overflow having undefined behavior, but it turns out
7096         that the argument is a size, which might not fit in 'int' anyway,
7097
7098 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7099
7100         stdio: don't require ignore_value around fwrite
7101
7102         This patch works around libc bug 11959
7103         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
7104         Without this patch, applications must often write
7105         ignore_value (fwrite (...)) even though the ignore_value is
7106         not helpful here.  It's common to write many objects, using
7107         fwrite/printf/etc., and then use ferror to detect output error.
7108
7109         I considered making this patch optional, but decided against it,
7110         because libc is obviously being inconsistent here: there is no
7111         reason libc should insist that user code must inspect fwrite
7112         return's value without also insisting that it inspect printf's,
7113         putchar's, etc.  If user code wants to have a strict style where
7114         all these functions' values are checked (so that ferror need not
7115         be checked), we could add support for that style in a new gnulib
7116         module, but in the meantime it's better to be consistent and to
7117         support common usage.
7118
7119         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
7120         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
7121         that we are compiling in checking mode, and if not C++, and
7122         if not already wrapping fwrite for some other reason.
7123         (fwrite): #define to rpl_fwrite if the latter is defined.
7124
7125 2011-03-20  Bruno Haible  <bruno@clisp.org>
7126
7127         verror: Fix compilation error introduced on 2011-02-13.
7128         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
7129         instead of __attribute__.
7130         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7131
7132 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7133             Bruno Haible  <bruno@clisp.org>
7134
7135         socklen: do not depend on sys_socket
7136         While trying to modify Emacs to use gnulib's socklen module,
7137         I discovered a circular dependency: socklen depends on sys_socket
7138         and vice versa.  Emacs can use socklen, but it does not need
7139         sys_socket because it has its own substitute for sys/socket.h.
7140         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
7141         gl_TYPE_SOCKLEN_T.
7142         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
7143         gl_PREREQ_SYS_H_SOCKET.
7144         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
7145         gl_PREREQ_SYS_H_SOCKET.
7146         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
7147         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
7148         * modules/socklen (Depends-on): Do not depend on sys_socket.
7149         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
7150
7151 2011-03-20  Jim Meyering  <meyering@redhat.com>
7152
7153         maint.mk: sort file names *after* new transformation
7154         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
7155         prefix would have led to an unwarranted failure in GNU parted.
7156         Sort after that transformation.
7157
7158 2011-03-19  Jim Meyering  <meyering@redhat.com>
7159
7160         maint.mk: fix po-file syntax-check rule
7161         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
7162         Patch by Bruno Haible.
7163
7164 2011-03-19  Bruno Haible  <bruno@clisp.org>
7165
7166         socklen: Update comment.
7167         * m4/socklen.m4: Update comment about platforms.
7168
7169 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7170             Bruno Haible  <bruno@clisp.org>
7171
7172         inet_ntop, inet_pton: Simplify.
7173         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
7174         documented to provide socklen_t and we already depend on sys_socket.
7175         * modules/inet_pton (Depends-on): Likewise.
7176         * lib/arpa_inet.in.h: Adjust comment.
7177
7178 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7179             Bruno Haible  <bruno@clisp.org>
7180
7181         netdb: Simplify.
7182         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
7183         documented to provide socklen_t and we already depend on sys_socket.
7184         * lib/netdb.in.h: Adjust comment.
7185
7186 2011-03-19  Bruno Haible  <bruno@clisp.org>
7187
7188         sys_socket, netdb: Document problem with socklen_t.
7189         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
7190         platforms.
7191         * doc/posix-headers/netdb.texi: Likewise.
7192
7193 2011-03-18  Eric Blake  <eblake@redhat.com>
7194
7195         maint.mk: let po check work in VPATH build
7196         * top/maint.mk (po_file): Allow cfg.mk override.
7197         (sc_po_check): Allow VPATH use.
7198         Reported by Jiri Denemark.
7199
7200 2011-03-16  Jim Meyering  <meyering@redhat.com>
7201
7202         maint.mk: allow fine-grained syntax-check exclusion via Make variables
7203         Before, you would have had to create one .x-sc_ file per rule in order
7204         to exempt offending files.  Now, you may instead use a Make variable --
7205         usually defined in cfg.mk -- whose name identifies the affected rule.
7206         * top/maint.mk (_sc_excl): Define.
7207         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
7208         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
7209
7210 2011-03-13  Bruno Haible  <bruno@clisp.org>
7211
7212         ignore-value tests: Avoid warnings.
7213         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
7214         empty for gcc < 3.4.
7215
7216 2011-03-13  Bruno Haible  <bruno@clisp.org>
7217
7218         passfd: Fix link error on Solaris.
7219         * modules/passfd (Description): Correct.
7220         (Depends-on): Add socketlib.
7221         (Link): New section.
7222         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
7223
7224 2011-03-13  Bruno Haible  <bruno@clisp.org>
7225
7226         passfd: Fix link error on AIX 5.2.
7227         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
7228
7229 2011-03-13  Bruno Haible  <bruno@clisp.org>
7230
7231         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
7232         * lib/sys_socket.in.h: Include <stddef.h>.
7233         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
7234         CMSG_FIRSTHDR. Remove unused variable.
7235
7236 2011-03-13  Bruno Haible  <bruno@clisp.org>
7237
7238         passfd: Fix compilation error on OpenBSD.
7239         * lib/passfd.c: Include <sys/uio.h>.
7240
7241 2011-03-13  Bruno Haible  <bruno@clisp.org>
7242
7243         passfd test: Fix warnings.
7244         * tests/test-passfd.c: Include <sys/wait.h>.
7245         (main): Fix typo.
7246
7247 2011-03-13  Bruno Haible  <bruno@clisp.org>
7248
7249         passfd module, part 4, tweaks.
7250         * tests/test-passfd.c: Reorder includes.
7251         (main): Fix perror and printf calls.
7252
7253 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7254
7255         passfd module, part 4.
7256         * modules/passfd-tests: New file.
7257         * tests/test-passfd.c: New file.
7258
7259 2011-03-13  Jim Meyering  <meyering@redhat.com>
7260
7261         Makefile: rely on GNU make; derive syntax-check rule names
7262         Rather than requiring that each sc_ rule be listed as a dependent
7263         of "check", use features of GNU make to derive the list.
7264         * Makefile (syntax-check-rules): Define.
7265         (check): Depend on the new variable, not the hard-coded list.
7266
7267 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
7268             Bruno Haible  <bruno@clisp.org>
7269
7270         passfd module, part 3.
7271         * lib/passfd.h (recvfd): Add a flags argument.
7272         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
7273         (recvfd): Add a flags argument.
7274         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
7275         exists.
7276         * modules/passfd (Depends-on): Add cloexec.
7277         Suggested by Eric Blake.
7278
7279 2011-03-13  Bruno Haible  <bruno@clisp.org>
7280
7281         passfd module, part 2, tweaks.
7282         * modules/passfd (Files): Reorder.
7283         (Depends-on): Remove errno.
7284         (Include): Remove <sys/socket.h>, <sys/un.h>.
7285         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
7286         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
7287         specification header. Include <sys/socket.h> always. Don't include
7288         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
7289         (sendfd): Clarify that it sets errno when it fails.
7290         (recvfd): Fix specification.
7291
7292 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7293
7294         passfd module, part 2.
7295         * modules/passfd: New file.
7296         * lib/passfd.h: New file.
7297         * lib/passfd.c: New file.
7298
7299 2011-03-12  Bruno Haible  <bruno@clisp.org>
7300
7301         wcswidth, mbswidth: Avoid integer overflow.
7302         * lib/wcswidth.c: Include <limits.h>.
7303         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
7304         * lib/mbswidth.c: Include <limits.h>.
7305         (mbsnwidth): Avoid 'int' overflow.
7306         Reported by Jim Meyering.
7307
7308 2011-03-12  Bruno Haible  <bruno@clisp.org>
7309
7310         futimens, utimensat: Avoid endless recursion on Solaris 10.
7311         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
7312         Solaris.
7313         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
7314         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
7315
7316 2011-03-11  Jim Meyering  <meyering@redhat.com>
7317
7318         maint.mk: relax a regexp to accommodate other formatting styles
7319         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
7320         between "ngettext" and the following "(".
7321
7322 2011-03-11  Pádraig Brady <P@draigBrady.com>
7323
7324         maint.mk: suppress a false positive warning
7325         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
7326         diagnostics are marked with ngettext.
7327
7328 2011-03-10  Eric Blake  <eblake@redhat.com>
7329
7330         wchar: add explicit dependencies, for Tru64
7331         * modules/mbmemcasecoll (Depends-on): Add wchar.
7332         * modules/mbtowc (Depends-on): Likewise.
7333         * modules/vasnprintf (Depends-on): Likewise.
7334         * modules/unistdio/u-printf-args (Depends-on): Likewise.
7335         * modules/wctomb (Depends-on): Likewise.
7336         Reported by Peter O'Gorman.
7337
7338 2011-03-08  Bruno Haible  <bruno@clisp.org>
7339
7340         passfd module, part 1, tweaks.
7341         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
7342         Improve indentation. Improve AC_MSG_CHECKING messages.
7343         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
7344         gl_SOCKET_FAMILIES.
7345
7346 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7347
7348         passfd module, part 1.
7349         * m4/afunix.m4: New file.
7350         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
7351         sockets.
7352
7353 2011-03-08  Bruno Haible  <bruno@clisp.org>
7354
7355         regex-quote: New API.
7356         * lib/regex-quote.h: Include <stdbool.h>.
7357         (struct regex_quote_spec): New type.
7358         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7359         New declarations.
7360         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7361         'const struct regex_quote_spec *' argument.
7362         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
7363         (pcre_special): New constant.
7364         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7365         New functions.
7366         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7367         'const struct regex_quote_spec *' argument.
7368         * modules/regex-quote (Depends-on): Add stdbool.
7369         * tests/test-regex-quote.c (check): Update for new API. Add test for
7370         anchored results.
7371         * NEWS: Mention the API change.
7372         Reported by Reuben Thomas and Eric Blake.
7373
7374 2011-03-06  Bruno Haible  <bruno@clisp.org>
7375
7376         regex-quote: Fix creation of POSIX extended regular expressions.
7377         * lib/regex-quote.c (ere_special): Add grouping and alternation
7378         operators.
7379
7380 2011-03-05  Bruno Haible  <bruno@clisp.org>
7381
7382         doc: Improve doc regarding autopoint vs. gnulib.
7383         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
7384         disable autopoint while running autoreconf.
7385         Suggested by Ralf Wildenhues.
7386
7387 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7388
7389         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
7390         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
7391
7392 2011-03-03  Bruce Korb  <bkorb@gnu.org>
7393
7394         parse-duration: remove xalloc.h dependency
7395         * lib/parse-duration.c (parse_period): handle NULL return from
7396         strdup instead of calling xstrdup().
7397         * modules/parse-duration: remove "xalloc" dependency
7398
7399 2011-03-03  Matthew Booth  <mbooth@redhat.com>
7400
7401         bootstrap: honor m4_base when running aclocal
7402         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
7403
7404 2011-03-02  Jim Meyering  <meyering@redhat.com>
7405
7406         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
7407         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
7408         on request from Matt Booth.
7409
7410 2011-03-01  Eric Blake  <eblake@redhat.com>
7411
7412         test-link: work on Hurd
7413         * tests/test-link.h (test_link): Hurd rejects linking directories
7414         with EISDIR instead of the POSIX-mandated EPERM.
7415
7416 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
7417
7418         stdio: simplify by moving files to printf-posix, sigpipe
7419         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
7420         since this symbol is needed only if printf is replaced.
7421         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
7422         Require gl_ASM_SYMBOL_PREFIX.
7423         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
7424         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
7425         (Depends-on): Add 'raise'.
7426         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
7427         * modules/stdio (Files): Remove lib/stdio-write.c,
7428         m4/asm-underscore.m4.
7429         (Depends-on): Remove 'raise'.
7430
7431         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
7432         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
7433         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
7434         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
7435
7436 2011-02-28  Bruno Haible  <bruno@clisp.org>
7437
7438         localcharset: Assume ANSI C behaviour of free().
7439         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
7440         calling free().
7441         Suggested by Simon Josefsson <simon@josefsson.org>.
7442
7443 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
7444             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
7445             Bruno Haible  <bruno@clisp.org>  (tiny change)
7446
7447         On Cygwin, use /proc file system instead of win32 API.
7448         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
7449         Win32 file names.
7450         (DllMain): Simplify by removing Cygwin specific code.
7451         (find_shared_library_fullname): Use Linux specific implementation also
7452         for Cygwin.
7453         (get_shared_library_fullname): Update accordingly.
7454         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
7455         Win32 file names.
7456         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
7457         Cygwin specific code.
7458
7459 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
7460             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
7461
7462         Fix OpenMP flag detection for various Fortran compilers.
7463         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
7464         OpenMP-conditional compilation construct, to force compile
7465         failure with missing OpenMP flag.
7466         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
7467
7468 2011-02-25  Eric Blake  <eblake@redhat.com>
7469
7470         strstr: expand test coverage
7471         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
7472         compilation.
7473         * tests/test-memmem.c (main): Duplicate tests.
7474         * tests/test-strcasestr.c (main): Likewise.
7475         * tests/test-c-strcasestr.c (main): Likewise.
7476
7477 2011-02-25  Jim Meyering  <meyering@redhat.com>
7478
7479         maint.mk: detect missing-NL-at-EOF, too
7480         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
7481         it also detects when a file lacks a newline at EOF.
7482         (require_exactly_one_NL_at_EOF_): Renamed from
7483         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
7484         since people may well have .x-sc_... file names tied to the
7485         existing name.  Suggested by Eric Blake.
7486
7487 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
7488
7489         dirname: move m4/dos.m4 functionality into lib/dosname.h
7490
7491         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
7492         extracts symbols from it, puts them into config.h; but it's much
7493         easier to use the symbols directly.  filename.h already does this,
7494         but it disagrees with dos.m4 in some respects.  This patch
7495         introduces a different include file dosname.h that packages up
7496         dos.m4, and then later we can work on merging filename.h and
7497         dosname.h.  Applications that need only the easy-to-configure
7498         symbols should consider including dosname.h rather than dirname.h.
7499         * NEWS: Mention incompatible changes.
7500         * m4/dos.m4: Remove.
7501         * lib/dosname.h, modules/dosname: New files.
7502         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
7503         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
7504         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
7505         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
7506         Include dosname.h, not dirname.h.
7507         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
7508         Include dosname.h, for definitions of symbols like ISSLASH
7509         that used to be in config.h.
7510         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
7511         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7512         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7513         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7514         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
7515         * modules/rmdir (Files): Likewise.
7516         * modules/stat (Files): Likewise.
7517         * modules/unlink (Files): Likewise.
7518         * modules/dirname-lgpl (Depends-on): Add dosname.
7519         * modules/lstat (Depends-on): Likewise.
7520         * modules/openat (Depends-on): Likewise.
7521         * modules/rmdir (Depends-on): Likewise.
7522         * modules/savewd (Depends-on): Likewise.
7523         * modules/stat (Depends-on): Likewise.
7524         * modules/unlink (Depends-on): Likewise.
7525         * modules/openat (Depends-on): Remove dirname-lgpl.
7526         * modules/savewd (Depends-on): Likewise.
7527         * tests/test-dirname.c: Do not use removed symbols like
7528         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
7529         the remaining symbols, e.g., ISSLASH ('\\').
7530
7531 2011-02-25  Eric Blake  <eblake@redhat.com>
7532
7533         strstr: revert patches that introduced bug and pessimization
7534         * lib/str-two-way.h: Add another reference.
7535         (two_way_short_needle, two_way_long_needle): Revert changes from
7536         2011-02-24; they pessimize search speed.
7537         (critical_factorization): Partially revert changes from
7538         2010-06-22; they violate the requirement that the left half of the
7539         needle be smaller than the period of the needle.
7540
7541 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7542
7543         filenamecat: remove unnecessary dependency on dirname-lgpl
7544         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
7545         is no direct dependency, just an indirect one via filenamecat-lgpl.
7546
7547         remove: remove unnecessary use of m4/dos.m4
7548         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
7549         * modules/remove (FILES): Remove m4/dos.m4.
7550
7551         * lib/openat-proc.c: Don't include dirname.h; not needed.
7552
7553         backupfile: remove unnecessary use of m4/dos.m4
7554         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
7555         of its symbols are used by the backupfile code.  backupfile.c does
7556         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
7557         for the rare case of programs that want all their backup file
7558         names to live within 8+3 limits, and dos.m4 doesn't address that.
7559         * modules/backupfile (Files): Remove m4/dos.m4.
7560
7561 2011-02-24  Jim Meyering  <meyering@redhat.com>
7562
7563         strstr: fix a bug whereby strstr would mistakenly return NULL
7564         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
7565         in period calculation.
7566         (two_way_long_needle): Likewise.
7567         The original problem was reported by Mike Stump in
7568         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
7569         Ralf Wildenhues provided the short needle and haystack.
7570         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
7571         Add a more involved test to trigger the bug in two_way_long_needle.
7572
7573 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
7574
7575         gnulib-tool: remove use of bold display in help screen
7576         * gnulib-tool (func_usage): Do not use bold display anymore in the
7577         help screen.  That was just meant to be a temporary emphasis for a
7578         backward-incompatible change.
7579
7580 2011-02-23  Bruno Haible  <bruno@clisp.org>
7581
7582         Fix misindentation of preprocessor directives.
7583         * lib/argp-namefrob.h: Reindent preprocessor directives.
7584         * lib/getopt_int.h (struct _getopt_data): Likewise.
7585         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
7586         * lib/vasnprintf.c (decode_long_double): Likewise.
7587         * tests/test-argmatch.c: Insert blank lines, for clarity.
7588         * tests/test-exclude.c: Likewise.
7589
7590 2011-02-22  Bruno Haible  <bruno@clisp.org>
7591
7592         ioctl: Fix for MacOS X in 64-bit mode.
7593         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
7594         value.
7595         Suggested by Eric Blake.
7596         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
7597
7598 2011-02-22  Jim Meyering  <meyering@redhat.com>
7599
7600         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
7601         * Makefile (sc_cpp_indent_check): Don't limit the check to files
7602         in lib/.
7603
7604 2011-02-22  Eric Blake  <eblake@redhat.com>
7605
7606         maint: avoid any CDPATH issue
7607         * Makefile (sc_cpp_indent_check): Anchor cd argument.
7608
7609         maint: adjust cpp indentation for my modules, as well
7610         * Makefile (sc_cpp_indent_check): Add my name.
7611         * lib/fbufmode.c: Filter through cppi.
7612         * lib/fpurge.c: Likewise.
7613         * lib/freadable.c: Likewise.
7614         * lib/freading.c: Likewise.
7615         * lib/fwritable.c: Likewise.
7616         * lib/fwriting.c: Likewise.
7617         * lib/sigaction.c: Likewise.
7618
7619 2011-02-22  Jim Meyering  <meyering@redhat.com>
7620
7621         maint: adjust cpp indentation to reflect nesting depth
7622         I.e., in a block of code that begins with an unnested "#if",
7623         put one space between the "#" in column 1 and following token.
7624         For example,
7625         -#include <sys/vfs.h>
7626         +# include <sys/vfs.h>
7627         Do this only in .c files that are part of a module I maintain.
7628         * lib/linkat.c: Filter through cppi.
7629         * lib/nanosleep.c: Likewise.
7630         * lib/openat.c: Likewise.
7631         * lib/openat-die.c: Likewise.
7632         * lib/dup3.c: Likewise.
7633         * lib/fchownat.c: Likewise.
7634         * lib/flock.c: Likewise.
7635         * lib/fsync.c: Likewise.
7636         * lib/fts.c: Likewise.
7637         * lib/getpass.c: Likewise.
7638         * lib/gettimeofday.c: Likewise.
7639         * lib/userspec.c: Likewise.
7640         * Makefile (sc_cpp_indent_check): New rule, to check this.
7641
7642 2011-02-22  Bruno Haible  <bruno@clisp.org>
7643
7644         New module 'wctomb'.
7645         * lib/stdlib.in.h (wctomb): New declaration.
7646         * lib/wctomb.c: New file.
7647         * lib/wctomb-impl.h: New file.
7648         * m4/wctomb.m4: New file.
7649         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
7650         REPLACE_WCTOMB.
7651         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
7652         REPLACE_WCTOMB.
7653         * modules/wctomb: New file.
7654         * tests/test-stdlib-c++.cc: Test signature of wctomb.
7655         * doc/posix-functions/wctomb.texi: Mention the new module.
7656         * modules/wctob (Depends-on): Add wctomb.
7657
7658 2011-02-22  Bruno Haible  <bruno@clisp.org>
7659
7660         New module 'mbtowc'.
7661         * lib/stdlib.in.h (mbtowc): New declaration.
7662         * lib/mbtowc.c: New file.
7663         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
7664         * m4/mbtowc.m4: New file.
7665         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
7666         REPLACE_MBTOWC.
7667         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
7668         REPLACE_MBTOWC.
7669         * modules/mbtowc: New file.
7670         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
7671         * doc/posix-functions/mbtowc.texi: Mention the new module.
7672         * modules/btowc (Depends-on): Add mbtowc.
7673
7674 2011-02-22  Bruno Haible  <bruno@clisp.org>
7675
7676         wcrtomb: Add more tests for native Windows platforms.
7677         * tests/test-wcrtomb-w32-1.sh: New file.
7678         * tests/test-wcrtomb-w32-2.sh: New file.
7679         * tests/test-wcrtomb-w32-3.sh: New file.
7680         * tests/test-wcrtomb-w32-4.sh: New file.
7681         * tests/test-wcrtomb-w32-5.sh: New file.
7682         * tests/test-wcrtomb-w32.c: New file.
7683         * modules/wcrtomb-tests (Files): Add them.
7684         (Makefile.am): Arrange to run these tests.
7685         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
7686         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
7687
7688 2011-02-20  Bruno Haible  <bruno@clisp.org>
7689
7690         wcrtomb: Enhance test.
7691         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
7692
7693 2011-02-20  Bruno Haible  <bruno@clisp.org>
7694
7695         mbrtowc: Tiny optimization.
7696         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
7697
7698 2011-02-20  Jim Meyering  <meyering@redhat.com>
7699
7700         test-exclude.c: remove unmatched #endif
7701         * tests/test-exclude.c: Remove stray #endif, left over from
7702         the change of a week ago.
7703
7704 2011-02-19  Jim Meyering  <meyering@redhat.com>
7705
7706         git-version-gen: skip "-dirty" check when appropriate
7707         * build-aux/git-version-gen: Don't run any git commands when the
7708         version string comes from .tarball-version.  Prior to this, we
7709         would run git update-index --refresh even from a just-unpacked
7710         tarball directory, and that could affect a .git/ directory in a
7711         parent of the build directory.  Reported by Mike Frysinger.
7712
7713 2011-02-19  Bruno Haible  <bruno@clisp.org>
7714
7715         unictype/property-byname: Reduce the size of the 'data' segment.
7716         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
7717
7718 2011-02-19  Bruno Haible  <bruno@clisp.org>
7719
7720         unictype/scripts: Reduce the size of the 'data' segment.
7721         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
7722         '%pic'.
7723         * lib/unictype/scripts_byname.gperf: Regenerated.
7724
7725 2011-02-19  Bruno Haible  <bruno@clisp.org>
7726
7727         stdint: Update documentation.
7728         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
7729
7730 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
7731
7732         stdint: omit redundant check for wchar.h
7733         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
7734         always tests whether wchar.h exists, so remove the now-redundant test.
7735
7736 2011-02-18  Bruno Haible  <bruno@clisp.org>
7737
7738         stdint: Cut dependency to module 'wchar'.
7739         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
7740         include the necessary prerequisites.
7741         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
7742         * modules/stdint (Depends-on): Remove wchar.
7743         (Makefile.am): Substitute HAVE_WCHAR_H.
7744         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
7745
7746 2011-02-18  Eric Blake  <eblake@redhat.com>
7747
7748         longlong: skip, rather than fail, on cross-compilation
7749         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
7750         when cross-compiling; regression from 2011-02-16.
7751
7752 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
7753
7754         * NEWS: Mention 2011-02-08 change to stdlib.
7755
7756 2011-02-17  Bruno Haible  <bruno@clisp.org>
7757
7758         getloadavg: Add comments about platforms.
7759         * m4/getloadavg.m4: Add comment.
7760         * lib/getloadavg.c: Likewise.
7761
7762 2011-02-17  Bruno Haible  <bruno@clisp.org>
7763
7764         getloadavg: Fix link error on Solaris 2.6.
7765         * modules/getloadavg (Link): New section.
7766         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
7767         linking test-getloadavg.
7768         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
7769         getloadavg.
7770
7771 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
7772
7773         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
7774         It was 'int', but this doesn't match the IRIX 6.5 manual.
7775         Suggested by Bruno Haible in
7776         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
7777
7778 2011-02-17  Bruno Haible  <bruno@clisp.org>
7779
7780         havelib: Fix comments.
7781         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
7782         change.
7783
7784 2011-02-17  Bruno Haible  <bruno@clisp.org>
7785
7786         havelib: Update config.rpath.
7787         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
7788
7789 2011-02-17  Bruno Haible  <bruno@clisp.org>
7790
7791         getloadavg test: Add some plausibility checks.
7792         * tests/test-getloadavg.c (check_avg): Print a warning when the value
7793         is improbable.
7794
7795 2011-02-16  Eric Blake  <eblake@redhat.com>
7796
7797         maintainer-makefile: make syntax-check a no-op from tarballs
7798         * top/maint.mk (no-vc-detected): New rule.
7799         (local-checks-available): Use it to avoid hanging if someone tries
7800         'make syntax-check' from a tarball.  Also append to any non-syntax
7801         checks already defined in cfg.mk.
7802
7803 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
7804
7805         longlong: tune, particularly for common case of c99
7806
7807         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
7808         or running anything if c99, or if unsigned long long int does not
7809         work.  In either case, we know the answer without further tests.
7810         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
7811         it at most once, and use its results for both long long int and
7812         unsigned long long int.  This is more likely to be efficient in
7813         the common case where the program wants to check for both long
7814         long int and unsigned long long int.
7815         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
7816         since the answer is already known.
7817
7818 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
7819
7820         getloadavg: set errno
7821         * lib/getloadavg.c: Set errno when returning -1.  If no other
7822         error number looks appropriate, set it to ENOSYS if the getloadavg
7823         looks like it can't possibly ever work, ENOTSUP otherwise.
7824         Suggested by Bruno Haible in
7825         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
7826
7827         getloadavg: trim unused parts and speed up 'configure'
7828         * NEWS: Document this.
7829         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
7830         always compiled if getloadavg is absent.
7831         Move test code to ...
7832         * tests/test-getloadavg.c: New file, containing previous
7833         contents of test from lib/getloadavg.c.  It also contains
7834         suggestions by Bruno Haible in
7835         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
7836         * modules/getloadavg-tests: New file.
7837         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
7838         Do tests in the same order as they're needed for getloadavg.c.
7839         Omit setgid-related tests that generate symbols KMEM_GROUP,
7840         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
7841         Do only the tests that are needed to see whether the system has
7842         getloadavg, moving the other tests into ...
7843         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
7844         NLIST_NAME_UNION; nobody should be using it.  Do not define
7845         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
7846         relevant, as the user of this module shouldn't care how getloadavg
7847         is implemented.
7848
7849         getloadavg: omit unused var
7850         * lib/getloadavg.c (getloadavg): Omit unused local variable.
7851
7852 2011-02-15  Jim Meyering  <meyering@redhat.com>
7853
7854         doc: update users.txt
7855         * users.txt: Update iwhd's URL.
7856
7857 2011-02-13  Bruno Haible  <bruno@clisp.org>
7858
7859         Consistent macro naming for macros that use GCC __attribute__.
7860         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
7861         _ATTRIBUTE_NONNULL_.
7862         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
7863         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
7864         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
7865         ATTRIBUTE_DEPRECATED.
7866         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
7867         ATTRIBUTE_NORETURN.
7868         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7869         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7870         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7871         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7872         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
7873         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
7874         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
7875         ATTRIBUTE_SENTINEL.
7876         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
7877         ATTRIBUTE_RETURN_CHECK.
7878         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
7879         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
7880         ATTRIBUTE_NORETURN.
7881         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
7882         Reported by Paul Eggert.
7883
7884 2011-02-13  Bruno Haible  <bruno@clisp.org>
7885
7886         Don't interfere with a program's definition of __attribute__.
7887         * lib/argp.h (__attribute__): Remove definition.
7888         (_GL_ATTRIBUTE_FORMAT): New macro.
7889         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
7890         * lib/argp-fmtstream.h (__attribute__): Remove definition.
7891         (_GL_ATTRIBUTE_FORMAT): New macro.
7892         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
7893         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
7894         GCC 3 or newer.
7895         * lib/error.h (__attribute__): Remove definition.
7896         (_GL_ATTRIBUTE_FORMAT): New macro.
7897         (error, error_at_line): Use it.
7898         * lib/hash.h (__attribute__): Remove definition.
7899         (ATTRIBUTE_WUR): Update definition. Define always.
7900         * lib/openat.h (__attribute__): Remove definition.
7901         (ATTRIBUTE_NORETURN): Update definition. Define always.
7902         * lib/sigpipe-die.h (__attribute__): Remove definition.
7903         (ATTRIBUTE_NORETURN): Update definition. Define always.
7904         * lib/vasnprintf.h (__attribute__): Remove definition.
7905         (_GL_ATTRIBUTE_FORMAT): New macro.
7906         (asnprintf, vasnprintf): Use it.
7907         * lib/xalloc.h (__attribute__): Remove definition.
7908         (ATTRIBUTE_NORETURN): Update definition. Define always.
7909         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
7910         * lib/xmemdup0.h (__attribute__): Remove definition.
7911         (ATTRIBUTE_NORETURN): Update definition. Define always.
7912         * lib/xprintf.h (__attribute__): Remove definition.
7913         (_GL_ATTRIBUTE_FORMAT): New macro.
7914         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
7915         * lib/xstrtol.h (__attribute__): Remove definition.
7916         (ATTRIBUTE_NORETURN): Update definition. Define always.
7917         * lib/xvasprintf.h (__attribute__): Remove definition.
7918         (_GL_ATTRIBUTE_FORMAT): New macro.
7919         (xasprintf, xvasprintf): Use it.
7920         * tests/test-argmatch.c (__attribute__): Remove definition.
7921         (ATTRIBUTE_NORETURN): Update definition. Define always.
7922         * tests/test-exclude.c (__attribute__): Remove definition.
7923         (ATTRIBUTE_NORETURN): Update definition. Define always.
7924         Reported by Paul Eggert.
7925
7926 2011-02-13  Bruno Haible  <bruno@clisp.org>
7927
7928         mbrtowc: Add more tests for native Windows platforms.
7929         * tests/test-mbrtowc-w32-1.sh: New file.
7930         * tests/test-mbrtowc-w32-2.sh: New file.
7931         * tests/test-mbrtowc-w32-3.sh: New file.
7932         * tests/test-mbrtowc-w32-4.sh: New file.
7933         * tests/test-mbrtowc-w32-5.sh: New file.
7934         * tests/test-mbrtowc-w32.c: New file.
7935         * modules/mbrtowc-tests (Files): Add them.
7936         (Makefile.am): Arrange to run these tests.
7937         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
7938         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
7939
7940 2011-02-13  Bruno Haible  <bruno@clisp.org>
7941
7942         mbrtowc: Work around native Windows bug.
7943         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
7944         guess when no suitable locale for testing was found.
7945         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
7946
7947 2011-02-13  Bruno Haible  <bruno@clisp.org>
7948
7949         mbsinit: Work around mingw bug.
7950         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
7951         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
7952         Windows.
7953         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
7954
7955 2011-02-13  Bruno Haible  <bruno@clisp.org>
7956
7957         mbsinit: Don't crash for a NULL argument.
7958         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
7959         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
7960
7961 2011-02-13  Bruno Haible  <bruno@clisp.org>
7962
7963         Don't interfere with a program's definition of __attribute__.
7964         * lib/stdio.in.h (__attribute__): Remove definition.
7965         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
7966         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
7967         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
7968         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
7969         * lib/string.in.h (__attribute__): Remove definition.
7970         Reported by Paul Eggert.
7971
7972 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7973
7974         stdlib: don't get in the way of non-GCC __attribute__
7975         See thread starting at
7976         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
7977         Revert previous stdlib change, installing the following instead:
7978         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
7979         to get in the way of a non-GCC compiler that supports __attribute__.
7980         (_GL_ATTRIBUTE_RETURN): New macro.
7981         (_Exit): Use it instead of __attribute__.
7982
7983 2011-02-12  Bruno Haible  <bruno@clisp.org>
7984
7985         quotearg test: Avoid test failure on mingw.
7986         * tests/test-quotearg.sh: Convert the locale identifier from native
7987         Windows syntax to Unix syntax.
7988
7989 2011-02-12  Bruno Haible  <bruno@clisp.org>
7990
7991         setlocale: Prefer gnulib's override over libintl's override.
7992         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
7993         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
7994         GNULIB_defined_setlocale is set.
7995
7996 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7997
7998         stdlib: support non-GCC __attribute__
7999
8000         Fix a serious and tricky problem encountered when attempting to
8001         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
8002         5.5, but it crashed due to memory corruption on Solaris 10 with
8003         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
8004         bits that are otherwise zero.  This tagging is optional inside
8005         Emacs but is preferred and is used when __attribute__ ((__aligned
8006         (8))) works, as it does with both recent-enough GCC and with Sun C
8007         5.11.  However, Sun C 5.11 is not GCC and does not #define
8008         __GNUC__ and __GNUC_MINOR__.
8009
8010         When I added the getloadavg module to Emacs, it brought in
8011         stdlib.in.h, which contained this fragment:
8012
8013            #ifndef __attribute__
8014            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
8015            #  define __attribute__(Spec)   /* empty */
8016            # endif
8017            #endif
8018
8019         When files that include <stdlib.h> were compiled with Sun C 5.11,
8020         the above code disabled __attribute__ ((__aligned (8))), which
8021         caused variables to not be properly aligned, which eventually led
8022         to the pointer corruption mentioned above.  (This was a bit hard
8023         to diagnose, unfortunately.)
8024
8025         Several "#define __attribute__(X) /* empty */" code snippets need
8026         to be eradicated from Gnulib to work with non-GCC compilers that
8027         support __attribute__.  The Autoconf way to do this is to test for
8028         each kind of attribute that we want support for, and selectively
8029         enable that in source code.
8030
8031         Fix this problem just for stdlib.h, by adding a test for the
8032         __noreturn__ attribute, and change stdlib.in.h to use that test
8033         when needed.  This technique can be easily generalized to the
8034         other *.in.h files and attributes, and a similar technique can be
8035         used for *.h and *.c files.  This patch is enough to solve the
8036         problem for Emacs + getloadavg, and I thought I'd publish it for
8037         feedback before undertaking further, similar fixes in other
8038         modules.
8039
8040         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
8041         because it's not needed for stdlib.h.  It merely substitutes the
8042         value directly into stdlib.h.  We may well need to #define it, or
8043         similar symbols, for other modules, but it's nice to also have an
8044         option to not #define it for applications like Emacs that do not
8045         need it.
8046
8047         * lib/stdlib.in.h (__attribute__): Do not #define.
8048         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
8049         be defined only if the _Exit module is also used.
8050         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
8051         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
8052         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
8053         platforms.
8054         * modules/_Exit (Files): Add m4/attribute.m4.
8055         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
8056         * m4/attribute.m4: New file.
8057
8058 2011-02-12  Bruno Haible  <bruno@clisp.org>
8059
8060         wcsrtombs: Work around bug on native Windows.
8061         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
8062         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
8063         instead of len.
8064         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
8065
8066 2011-02-12  Bruno Haible  <bruno@clisp.org>
8067
8068         mbsrtowcs: Work around bug on native Windows.
8069         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
8070         against mingw bug.
8071         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
8072
8073 2011-02-12  Bruno Haible  <bruno@clisp.org>
8074
8075         Avoid setlocale bugs in tests.
8076         * modules/btowc (Dependencies): Add setlocale.
8077         * modules/c-strcase (Dependencies): Likewise.
8078         * modules/mbmemcasecmp (Dependencies): Likewise.
8079         * modules/mbmemcasecoll (Dependencies): Likewise.
8080         * modules/mbrtowc (Dependencies): Likewise.
8081         * modules/mbscasecmp (Dependencies): Likewise.
8082         * modules/mbscasestr (Dependencies): Likewise.
8083         * modules/mbschr (Dependencies): Likewise.
8084         * modules/mbscspn (Dependencies): Likewise.
8085         * modules/mbsinit (Dependencies): Likewise.
8086         * modules/mbsncasecmp (Dependencies): Likewise.
8087         * modules/mbsnrtowcs (Dependencies): Likewise.
8088         * modules/mbspbrk (Dependencies): Likewise.
8089         * modules/mbspcasecmp (Dependencies): Likewise.
8090         * modules/mbsrchr (Dependencies): Likewise.
8091         * modules/mbsrtowcs (Dependencies): Likewise.
8092         * modules/mbsspn (Dependencies): Likewise.
8093         * modules/mbsstr (Dependencies): Likewise.
8094         * modules/nl_langinfo (Dependencies): Likewise.
8095         * modules/quotearg (Dependencies): Likewise.
8096         * modules/unicase/locale-language (Dependencies): Likewise.
8097         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
8098         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
8099         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
8100         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
8101         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
8102         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
8103         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
8104         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
8105         * modules/vasnprintf-posix (Dependencies): Likewise.
8106         * modules/wcrtomb (Dependencies): Likewise.
8107         * modules/wcsnrtombs (Dependencies): Likewise.
8108         * modules/wcsrtombs (Dependencies): Likewise.
8109
8110 2011-02-12  Bruno Haible  <bruno@clisp.org>
8111
8112         setlocale: Workaround native Windows bug.
8113         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
8114         succeeds but sets LC_CTYPE to "C", report a failure.
8115         * tests/test-setlocale2.sh: New file.
8116         * tests/test-setlocale2.c: New file.
8117         * modules/setlocale-tests (Files): Add the new files.
8118         (Makefile.am): Enable test-setlocale2.sh test.
8119         * doc/posix-functions/setlocale.texi: Mention workaround.
8120
8121 2011-02-11  Bruno Haible  <bruno@clisp.org>
8122
8123         Tests for module 'setlocale'.
8124         * modules/setlocale-tests: New file.
8125         * tests/test-setlocale1.sh: New file.
8126         * tests/test-setlocale1.c: New file.
8127
8128         New module 'setlocale'.
8129         * lib/locale.in.h (setlocale): New declaration.
8130         * lib/setlocale.c: New file, based on
8131         gettext/gettext-runtime/intl/setlocale.c.
8132         * m4/setlocale.m4: New file.
8133         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
8134         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
8135         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
8136         REPLACE_SETLOCALE.
8137         * modules/setlocale: New file.
8138         * tests/test-locale-c++.cc: Test the declaration of setlocale.
8139         * doc/posix-functions/setlocale.texi: Mention the new module.
8140
8141 2011-02-11  Bruno Haible  <bruno@clisp.org>
8142
8143         Prepare for locale dependent tests on mingw.
8144         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
8145         because it has the wrong locale encoding.
8146         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
8147         French_France.1252 instead of "fr".
8148         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
8149         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
8150         because it has the wrong locale encoding.
8151         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
8152         native Windows, try Turkish_Turkey.65001.
8153         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
8154         Chinese_China.54936.
8155
8156         Prepare for locale dependent tests on mingw.
8157         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
8158         differently.
8159         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
8160         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
8161         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8162         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8163
8164 2011-02-11  Eric Blake  <eblake@redhat.com>
8165
8166         strptime: avoid compiler warnings
8167         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
8168         compiler warnings about dead code.
8169         Reported by Daniel P. Berrange.
8170
8171 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
8172
8173         doc: update users.txt
8174         * users.txt: Add rcs.
8175
8176 2011-02-10  John W. Eaton  <jwe@gnu.org>
8177
8178         doc: update users.txt
8179         * users.txt: Add octave.
8180
8181 2011-02-10  Jim Meyering  <meyering@redhat.com>
8182
8183         doc: update users.txt
8184         * users.txt: Add iwhd.
8185
8186 2011-02-09  Bruno Haible  <bruno@clisp.org>
8187
8188         gnulib-tool: Make copyright notice adjustment more robust.
8189         * gnulib-tool (func_import): In sed_transform_main_lib_file,
8190         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
8191         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
8192         License".
8193         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
8194
8195 2011-02-06  Bruno Haible  <bruno@clisp.org>
8196
8197         New module 'towctrans'.
8198         * modules/towctrans: New file.
8199         * lib/wctype.in.h (towctrans): New declaration.
8200         * lib/towctrans.c: New file.
8201         * lib/towctrans-impl.h: New file.
8202         * m4/towctrans.m4: New file.
8203         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
8204         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
8205         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
8206         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
8207         * doc/posix-functions/towctrans.texi: Mention the new module.
8208
8209 2011-02-06  Bruno Haible  <bruno@clisp.org>
8210
8211         New module 'wctrans'.
8212         * modules/wctrans: New file.
8213         * lib/wctype.in.h (wctrans): New declaration.
8214         * lib/wctrans.c: New file.
8215         * lib/wctrans-impl.h: New file.
8216         * m4/wctrans.m4: New file.
8217         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
8218         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
8219         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
8220         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
8221         * doc/posix-functions/wctrans.texi: Mention the new module.
8222
8223 2011-02-06  Bruno Haible  <bruno@clisp.org>
8224
8225         New module 'iswctype'.
8226         * modules/iswctype: New file.
8227         * lib/wctype.in.h (iswctype): New declaration.
8228         * lib/iswctype.c: New file.
8229         * lib/iswctype-impl.h: New file.
8230         * m4/iswctype.m4: New file.
8231         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
8232         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
8233         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
8234         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
8235         * doc/posix-functions/iswctype.texi: Mention the new module and the
8236         HP-UX 11.00 problem.
8237
8238 2011-02-06  Bruno Haible  <bruno@clisp.org>
8239
8240         New module 'wctype'.
8241         * modules/wctype: Change to represent the wctype() substitute.
8242         * lib/wctype.in.h (wctype): New declaration.
8243         * lib/wctype.c: New file.
8244         * lib/wctype-impl.h: New file.
8245         * m4/wctype.m4: New file.
8246         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
8247         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
8248         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
8249         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
8250         * doc/posix-functions/wctype.texi: Mention the new module and the
8251         HP-UX 11.00 problem.
8252
8253 2011-02-06  Bruno Haible  <bruno@clisp.org>
8254
8255         wctype-h: Ensure wctype_t and wctrans_t are defined.
8256         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
8257         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8258         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8259         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
8260         HAVE_WCTRANS_T.
8261         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
8262
8263 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8264
8265         flock: fix license typo
8266
8267         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
8268         omitted.
8269
8270 2011-02-08  Bruno Haible  <bruno@clisp.org>
8271
8272         Split large sed scripts, for HP-UX sed.
8273         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
8274         to avoid HP-UX limit of 99 commands, in the near future.
8275         * modules/stdlib (Makefile.am): Likewise.
8276         * modules/unistd (Makefile.am): Likewise.
8277         * modules/wchar (Makefile.am): Likewise.
8278         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8279         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
8280         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
8281
8282 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8283             Bruno Haible  <bruno@clisp.org>
8284
8285         stdlib: improve random_r modularization
8286         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
8287         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
8288         you also need the random_r module to get this material right.
8289         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
8290         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
8291         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
8292
8293 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8294
8295         stdlib: don't depend on stdint
8296         * lib/stdlib.in.h: Don't include <stdint.h> merely because
8297         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
8298         be independent of whether stdint.h is needed.
8299         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
8300         here, instead of ...
8301         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
8302         struct random_data should be using the random_r module, not just
8303         the stdlib module (which wouldn't make sense: what package needs
8304         just struct random_data without also needing random_r?).
8305         * modules/stdlib (Depends-on): Remove stdint.
8306
8307         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
8308         See the thread rooted at
8309         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
8310         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
8311         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
8312         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
8313         __VMS)); previously it was always included (via fcntl--.h).
8314         (getloadavg): Do not use c_strtod.  Instead, approximate it by
8315         hand; this is good enough for load averages.  Also, do not use
8316         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
8317         flags directly if available and don't bother otherwise.  (Packages
8318         that need the extra reliability should use the modules that define
8319         these flags on older platforms that lack them.)
8320         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
8321         fcntl-safer.
8322
8323 2011-02-08  Jim Meyering  <meyering@redhat.com>
8324
8325         di-set.h, ino-map.h: add multiple-inclusion guard
8326         Technically, the guard is required only for ino-map.h, due to its
8327         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
8328         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
8329         * lib/ino-map.h: Likewise.
8330
8331 2011-02-06  Bruno Haible  <bruno@clisp.org>
8332
8333         iswblank: Ensure declaration on glibc systems.
8334         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
8335         * modules/iswblank (Dependencies): Add 'extensions'.
8336         * doc/posix-functions/iswblank.texi: Document the glibc problem.
8337
8338 2011-02-06  Bruno Haible  <bruno@clisp.org>
8339
8340         New module 'iswblank'.
8341         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
8342         * modules/iswblank: New file.
8343         * modules/wctype-h (Files): Remove lib/iswblank.c.
8344         (Makefile.am): Substitute GNULIB_ISWBLANK.
8345         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
8346         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
8347         (gl_WCTYPE_H_DEFAULTS): New macro.
8348         (gl_WCTYPE_H): Require it. Remove iswblank related code.
8349         * modules/iswblank-tests: New file.
8350         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
8351         * tests/test-wctype-h.c (main): Remove iswblank tests.
8352         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
8353         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
8354         of 'wctype-h'.
8355         * NEWS: Mention the change.
8356         * modules/mbchar (Depends-on): Add iswblank.
8357
8358 2011-02-08  Bruno Haible  <bruno@clisp.org>
8359
8360         di-set tests: Refactor.
8361         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
8362         unnecessary includes.
8363         (ASSERT): Remove macro.
8364         (main): Make C90 compliant by avoiding variable declaration after
8365         statement.
8366         * modules/di-set-tests (Files): Add tests/macros.h.
8367
8368 2011-02-08  Bruno Haible  <bruno@clisp.org>
8369
8370         ino-map tests: Refactor.
8371         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
8372         unnecessary includes.
8373         (ASSERT): Remove macro.
8374         (main): Make C90 compliant by avoiding variable declaration after
8375         statement.
8376         * modules/ino-map-tests (Files): Add tests/macros.h.
8377
8378 2011-02-08  Jim Meyering  <meyering@redhat.com>
8379
8380         di-set: add "const" to a cast
8381         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
8382         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
8383
8384 2011-02-06  Bruno Haible  <bruno@clisp.org>
8385
8386         Rename module 'wctype' to 'wctype-h'.
8387         * modules/wctype-h: Renamed from modules/wctype.
8388         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
8389         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
8390         (Files, Depends-on, Makefile.am): Update.
8391         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
8392         (Files, Makefile.am): Update.
8393         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
8394         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
8395         * doc/posix-headers/wctype.texi: Update.
8396         * doc/posix-functions/iswalnum.texi: Update.
8397         * doc/posix-functions/iswalpha.texi: Update.
8398         * doc/posix-functions/iswblank.texi: Update.
8399         * doc/posix-functions/iswcntrl.texi: Update.
8400         * doc/posix-functions/iswdigit.texi: Update.
8401         * doc/posix-functions/iswgraph.texi: Update.
8402         * doc/posix-functions/iswlower.texi: Update.
8403         * doc/posix-functions/iswprint.texi: Update.
8404         * doc/posix-functions/iswpunct.texi: Update.
8405         * doc/posix-functions/iswspace.texi: Update.
8406         * doc/posix-functions/iswupper.texi: Update.
8407         * doc/posix-functions/iswxdigit.texi: Update.
8408         * doc/posix-functions/towlower.texi: Update.
8409         * doc/posix-functions/towupper.texi: Update.
8410         * NEWS: Mention the change.
8411         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
8412         * modules/mbchar (Dependencies): Likewise.
8413         * modules/mbswidth (Dependencies): Likewise.
8414         * modules/quotearg (Dependencies): Likewise.
8415         * modules/regex (Dependencies): Likewise.
8416         * modules/wcscasecmp (Dependencies): Likewise.
8417         * modules/wcsncasecmp (Dependencies): Likewise.
8418         * modules/wcwidth (Dependencies): Likewise.
8419
8420 2011-02-06  Bruno Haible  <bruno@clisp.org>
8421
8422         New module 'wcswidth'.
8423         * modules/wcswidth: New file.
8424         * lib/wchar.in.h (wcswidth): New declaration.
8425         * lib/wcswidth.c: New file.
8426         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
8427         * m4/wcswidth.m4: New file.
8428         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
8429         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
8430         REPLACE_WCSWIDTH.
8431         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
8432         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
8433         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
8434         * doc/posix-functions/wcswidth.texi: Mention the new module.
8435
8436 2011-02-06  Bruno Haible  <bruno@clisp.org>
8437
8438         New module 'wcstok'.
8439         * modules/wcstok: New file.
8440         * lib/wchar.in.h (wcstok): New declaration.
8441         * lib/wcstok.c: New file.
8442         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
8443         * m4/wcstok.m4: New file.
8444         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
8445         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
8446         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
8447         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
8448         * doc/posix-functions/wcstok.texi: Mention the new module.
8449
8450 2011-02-06  Bruno Haible  <bruno@clisp.org>
8451
8452         New module 'wcsstr'.
8453         * modules/wcsstr: New file.
8454         * lib/wchar.in.h (wcsstr): New declaration.
8455         * lib/wcsstr.c: New file.
8456         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
8457         * m4/wcsstr.m4: New file.
8458         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
8459         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
8460         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
8461         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
8462         * doc/posix-functions/wcsstr.texi: Mention the new module.
8463
8464 2011-02-06  Bruno Haible  <bruno@clisp.org>
8465
8466         New module 'wcspbrk'.
8467         * modules/wcspbrk: New file.
8468         * lib/wchar.in.h (wcspbrk): New declaration.
8469         * lib/wcspbrk.c: New file.
8470         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
8471         * m4/wcspbrk.m4: New file.
8472         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
8473         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
8474         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
8475         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
8476         * doc/posix-functions/wcspbrk.texi: Mention the new module.
8477
8478 2011-02-06  Bruno Haible  <bruno@clisp.org>
8479
8480         New module 'wcsspn'.
8481         * modules/wcsspn: New file.
8482         * lib/wchar.in.h (wcsspn): New declaration.
8483         * lib/wcsspn.c: New file.
8484         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
8485         * m4/wcsspn.m4: New file.
8486         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
8487         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
8488         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
8489         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
8490         * doc/posix-functions/wcsspn.texi: Mention the new module.
8491
8492 2011-02-06  Bruno Haible  <bruno@clisp.org>
8493
8494         New module 'wcscspn'.
8495         * modules/wcscspn: New file.
8496         * lib/wchar.in.h (wcscspn): New declaration.
8497         * lib/wcscspn.c: New file.
8498         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
8499         * m4/wcscspn.m4: New file.
8500         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
8501         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
8502         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
8503         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
8504         * doc/posix-functions/wcscspn.texi: Mention the new module.
8505
8506 2011-02-06  Bruno Haible  <bruno@clisp.org>
8507
8508         New module 'wcsrchr'.
8509         * modules/wcsrchr: New file.
8510         * lib/wchar.in.h (wcsrchr): New declaration.
8511         * lib/wcsrchr.c: New file.
8512         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
8513         * m4/wcsrchr.m4: New file.
8514         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
8515         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
8516         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
8517         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
8518         * doc/posix-functions/wcsrchr.texi: Mention the new module.
8519
8520 2011-02-06  Bruno Haible  <bruno@clisp.org>
8521
8522         New module 'wcschr'.
8523         * modules/wcschr: New file.
8524         * lib/wchar.in.h (wcschr): New declaration.
8525         * lib/wcschr.c: New file.
8526         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
8527         * m4/wcschr.m4: New file.
8528         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
8529         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
8530         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
8531         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
8532         * doc/posix-functions/wcschr.texi: Mention the new module.
8533
8534 2011-02-06  Bruno Haible  <bruno@clisp.org>
8535
8536         New module 'wcsdup'.
8537         * modules/wcsdup: New file.
8538         * lib/wchar.in.h (wcsdup): New declaration.
8539         * lib/wcsdup.c: New file.
8540         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
8541         * m4/wcsdup.m4: New file.
8542         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
8543         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
8544         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
8545         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
8546         * doc/posix-functions/wcsdup.texi: Mention the new module.
8547
8548 2011-02-06  Bruno Haible  <bruno@clisp.org>
8549
8550         New module 'wcsxfrm'.
8551         * modules/wcsxfrm: New file.
8552         * lib/wchar.in.h (wcsxfrm): New declaration.
8553         * lib/wcsxfrm.c: New file.
8554         * lib/wcsxfrm-impl.h: New file.
8555         * m4/wcsxfrm.m4: New file.
8556         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
8557         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
8558         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
8559         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
8560         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
8561
8562 2011-02-06  Bruno Haible  <bruno@clisp.org>
8563
8564         New module 'wcscoll'.
8565         * modules/wcscoll: New file.
8566         * lib/wchar.in.h (wcscoll): New declaration.
8567         * lib/wcscoll.c: New file.
8568         * lib/wcscoll-impl.h: New file.
8569         * m4/wcscoll.m4: New file.
8570         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
8571         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
8572         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
8573         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
8574         * doc/posix-functions/wcscoll.texi: Mention the new module.
8575
8576 2011-02-06  Bruno Haible  <bruno@clisp.org>
8577
8578         New module 'wcsncasecmp'.
8579         * modules/wcsncasecmp: New file.
8580         * lib/wchar.in.h (wcsncasecmp): New declaration.
8581         * lib/wcsncasecmp.c: New file.
8582         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
8583         * m4/wcsncasecmp.m4: New file.
8584         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
8585         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
8586         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
8587         HAVE_WCSNCASECMP.
8588         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
8589         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
8590
8591 2011-02-06  Bruno Haible  <bruno@clisp.org>
8592
8593         New module 'wcscasecmp'.
8594         * modules/wcscasecmp: New file.
8595         * lib/wchar.in.h (wcscasecmp): New declaration.
8596         * lib/wcscasecmp.c: New file.
8597         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
8598         * m4/wcscasecmp.m4: New file.
8599         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
8600         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
8601         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
8602         HAVE_WCSCASECMP.
8603         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
8604         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
8605
8606 2011-02-05  Bruno Haible  <bruno@clisp.org>
8607
8608         New module 'wcsncmp'.
8609         * modules/wcsncmp: New file.
8610         * lib/wchar.in.h (wcsncmp): New declaration.
8611         * lib/wcsncmp.c: New file.
8612         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
8613         * m4/wcsncmp.m4: New file.
8614         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
8615         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
8616         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
8617         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
8618         * doc/posix-functions/wcsncmp.texi: Mention the new module.
8619
8620 2011-02-05  Bruno Haible  <bruno@clisp.org>
8621
8622         New module 'wcscmp'.
8623         * modules/wcscmp: New file.
8624         * lib/wchar.in.h (wcscmp): New declaration.
8625         * lib/wcscmp.c: New file.
8626         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
8627         * m4/wcscmp.m4: New file.
8628         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
8629         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
8630         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
8631         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
8632         * doc/posix-functions/wcscmp.texi: Mention the new module.
8633
8634 2011-02-05  Bruno Haible  <bruno@clisp.org>
8635
8636         New module 'wcsncat'.
8637         * modules/wcsncat: New file.
8638         * lib/wchar.in.h (wcsncat): New declaration.
8639         * lib/wcsncat.c: New file.
8640         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
8641         * m4/wcsncat.m4: New file.
8642         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
8643         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
8644         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
8645         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
8646         * doc/posix-functions/wcsncat.texi: Mention the new module.
8647
8648 2011-02-05  Bruno Haible  <bruno@clisp.org>
8649
8650         New module 'wcscat'.
8651         * modules/wcscat: New file.
8652         * lib/wchar.in.h (wcscat): New declaration.
8653         * lib/wcscat.c: New file.
8654         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
8655         * m4/wcscat.m4: New file.
8656         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
8657         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
8658         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
8659         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
8660         * doc/posix-functions/wcscat.texi: Mention the new module.
8661
8662 2011-02-05  Bruno Haible  <bruno@clisp.org>
8663
8664         New module 'wcpncpy'.
8665         * modules/wcpncpy: New file.
8666         * lib/wchar.in.h (wcpncpy): New declaration.
8667         * lib/wcpncpy.c: New file.
8668         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
8669         * m4/wcpncpy.m4: New file.
8670         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
8671         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
8672         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
8673         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
8674         * doc/posix-functions/wcpncpy.texi: Mention the new module.
8675
8676 2011-02-05  Bruno Haible  <bruno@clisp.org>
8677
8678         New module 'wcsncpy'.
8679         * modules/wcsncpy: New file.
8680         * lib/wchar.in.h (wcsncpy): New declaration.
8681         * lib/wcsncpy.c: New file.
8682         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
8683         * m4/wcsncpy.m4: New file.
8684         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
8685         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
8686         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
8687         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
8688         * doc/posix-functions/wcsncpy.texi: Mention the new module.
8689
8690 2011-02-05  Bruno Haible  <bruno@clisp.org>
8691
8692         New module 'wcpcpy'.
8693         * modules/wcpcpy: New file.
8694         * lib/wchar.in.h (wcpcpy): New declaration.
8695         * lib/wcpcpy.c: New file.
8696         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
8697         * m4/wcpcpy.m4: New file.
8698         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
8699         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
8700         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
8701         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
8702         * doc/posix-functions/wcpcpy.texi: Mention the new module.
8703
8704 2011-02-05  Bruno Haible  <bruno@clisp.org>
8705
8706         New module 'wcscpy'.
8707         * modules/wcscpy: New file.
8708         * lib/wchar.in.h (wcscpy): New declaration.
8709         * lib/wcscpy.c: New file.
8710         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
8711         * m4/wcscpy.m4: New file.
8712         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
8713         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
8714         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
8715         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
8716         * doc/posix-functions/wcscpy.texi: Mention the new module.
8717
8718 2011-02-05  Bruno Haible  <bruno@clisp.org>
8719
8720         New module 'wcsnlen'.
8721         * modules/wcsnlen: New file.
8722         * lib/wchar.in.h (wcsnlen): New declaration.
8723         * lib/wcsnlen.c: New file.
8724         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
8725         * m4/wcsnlen.m4: New file.
8726         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
8727         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
8728         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
8729         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
8730         * doc/posix-functions/wcsnlen.texi: Mention the new module.
8731
8732 2011-02-05  Bruno Haible  <bruno@clisp.org>
8733
8734         New module 'wcslen'.
8735         * modules/wcslen: New file.
8736         * lib/wchar.in.h (wcslen): New declaration.
8737         * lib/wcslen.c: New file.
8738         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
8739         * m4/wcslen.m4: New file.
8740         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
8741         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
8742         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
8743         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
8744         * doc/posix-functions/wcslen.texi: Mention the new module.
8745
8746 2011-02-05  Bruno Haible  <bruno@clisp.org>
8747
8748         New module 'wmemset'.
8749         * modules/wmemset: New file.
8750         * lib/wchar.in.h (wmemset): New declaration.
8751         * lib/wmemset.c: New file.
8752         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
8753         * m4/wmemset.m4: New file.
8754         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
8755         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
8756         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
8757         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
8758         * doc/posix-functions/wmemset.texi: Mention the new module.
8759
8760 2011-02-05  Bruno Haible  <bruno@clisp.org>
8761
8762         New module 'wmemmove'.
8763         * modules/wmemmove: New file.
8764         * lib/wchar.in.h (wmemmove): New declaration.
8765         * lib/wmemmove.c: New file.
8766         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
8767         * m4/wmemmove.m4: New file.
8768         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
8769         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
8770         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
8771         HAVE_WMEMMOVE.
8772         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
8773         * doc/posix-functions/wmemmove.texi: Mention the new module.
8774
8775 2011-02-05  Bruno Haible  <bruno@clisp.org>
8776
8777         New module 'wmemcpy'.
8778         * modules/wmemcpy: New file.
8779         * lib/wchar.in.h (wmemcpy): New declaration.
8780         * lib/wmemcpy.c: New file.
8781         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
8782         * m4/wmemcpy.m4: New file.
8783         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
8784         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
8785         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
8786         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
8787         * doc/posix-functions/wmemcpy.texi: Mention the new module.
8788
8789 2011-02-05  Bruno Haible  <bruno@clisp.org>
8790
8791         New module 'wmemcmp'.
8792         * modules/wmemcmp: New file.
8793         * lib/wchar.in.h (wmemcmp): New declaration.
8794         * lib/wmemcmp.c: New file.
8795         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
8796         * m4/wmemcmp.m4: New file.
8797         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
8798         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
8799         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
8800         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
8801         * doc/posix-functions/wmemcmp.texi: Mention the new module.
8802
8803 2011-02-07  Jim Meyering  <meyering@redhat.com>
8804
8805         di-set, ino-map: new modules, from coreutils
8806         * lib/di-set.c: New file.
8807         * lib/di-set.h: Likewise.
8808         * lib/ino-map.c: Likewise.
8809         * lib/ino-map.h: Likewise.
8810         * modules/di-set: Likewise.
8811         * modules/di-set-tests: Likewise.
8812         * modules/ino-map: Likewise.
8813         * modules/ino-map-tests: Likewise.
8814         * tests/test-di-set.c: Likewise.
8815         * tests/test-ino-map.c: Likewise.
8816
8817 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
8818
8819         getloadavg: merge minor changes from Emacs
8820
8821         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
8822         (getloadavg): Use memset, not bzero.
8823
8824         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
8825         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8826         clash (bug#86).
8827
8828 2010-11-14  Bruno Haible  <bruno@clisp.org>
8829
8830         Allow multiple gnulib generated replacements to coexist.
8831         * lib/getopt.in.h (struct option): Avoid identical redefinition.
8832         * lib/inttypes.in.h (imaxdiv_t): Likewise.
8833         * lib/langinfo.in.h (nl_item): Likewise.
8834         * lib/math.in.h (_NaN, NAN): Likewise.
8835         * lib/netdb.in.h (struct addrinfo): Likewise.
8836         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
8837         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
8838         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
8839         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
8840         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
8841         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
8842         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
8843         pthread_mutexattr_init, pthread_mutexattr_settype,
8844         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
8845         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
8846         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
8847         pthread_spin_trylock, pthread_spin_unlock): Likewise.
8848         * lib/sched.in.h (struct sched_param): Likewise.
8849         * lib/se-selinux.in.h (security_class_t, security_context_t,
8850         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
8851         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
8852         lsetfilecon, fsetfilecon, security_check_context,
8853         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
8854         Likewise.
8855         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
8856         Likewise.
8857         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
8858         _gl_function_taking_int_returning_void_t, union sigval,
8859         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
8860         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
8861         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
8862         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
8863         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
8864         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
8865         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
8866         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
8867         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
8868         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
8869         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
8870         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
8871         socklen_t, rpl_fd_isset): Likewise.
8872         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
8873         * lib/sys_time.in.h (struct timeval): Likewise.
8874         * lib/sys_times.in.h (struct tms): Likewise.
8875         * lib/sys_utsname.in.h (struct utsname):
8876         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
8877         * lib/unistd.in.h (getpagesize): Likewise.
8878         * lib/wchar.in.h (mbstate_t): Likewise.
8879         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
8880         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
8881         towlower, towupper): Likewise.
8882         Reported by Sam Steingold <sds@gnu.org>.
8883
8884 2011-02-05  Eric Blake  <eblake@redhat.com>
8885
8886         unsetenv: work around Haiku issues
8887         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
8888         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
8889
8890 2010-12-30  Bruce Korb  <bkorb@gnu.org>
8891
8892         libposix: avoid calling error() within libposix
8893         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
8894         is defined.
8895
8896 2011-02-05  Eric Blake  <eblake@redhat.com>
8897
8898         strerror_r-posix: port to cygwin
8899         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
8900         implementation.
8901         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
8902         * tests/test-strerror_r.c (main): Fix test.
8903         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
8904         issue.
8905
8906 2011-02-05  Bruno Haible  <bruno@clisp.org>
8907
8908         New module 'wmemchr'.
8909         * modules/wmemchr: New file.
8910         * lib/wchar.in.h (wmemchr): New declaration.
8911         * lib/wmemchr.c: New file.
8912         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
8913         * m4/wmemchr.m4: New file.
8914         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
8915         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
8916         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
8917         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
8918         * doc/posix-functions/wmemchr.texi: Mention the new module.
8919
8920 2011-02-04  Eric Blake  <eblake@redhat.com>
8921
8922         fdopendir: detect FreeBSD bug
8923         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
8924         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
8925
8926 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
8927
8928         stdbool: do not define HAVE_STDBOOL_H
8929         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
8930         AC_HEADER_STDBOOL.  All uses changed.  Do not define
8931         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
8932         imported from the latest Autoconf git.  It was motivated by Emacs,
8933         which uses gnulib but does not need HAVE_STDBOOL_H.
8934
8935 2011-02-04  Bruno Haible  <bruno@clisp.org>
8936
8937         wcsnrtombs: Prepare for new module wwcsnrtombs.
8938         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
8939         * lib/wcsnrtombs.c: Include it.
8940         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
8941
8942         wcsrtombs: Prepare for new module wwcsrtombs.
8943         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
8944         * lib/wcsrtombs.c: Include it.
8945         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
8946
8947         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
8948         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
8949         * lib/mbsnrtowcs.c: Include it.
8950         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
8951
8952         mbsrtowcs: Prepare for new module mbsrtowwcs.
8953         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
8954         * lib/mbsrtowcs.c: Include it.
8955         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
8956
8957 2011-02-04  Bruno Haible  <bruno@clisp.org>
8958
8959         vasnprintf: Reduce use of malloc for small format strings.
8960         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
8961         (arguments): Add room for the first 7 arguments.
8962         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
8963         (char_directives, u8_directives, u16_directives, u32_directives): Add
8964         room for the first 7 directives.
8965         * lib/printf-parse.c: Include <string.h>.
8966         (PRINTF_PARSE): Change memory handling code so that it uses the first
8967         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
8968         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
8969         Reported by Pádraig Brady <P@draigbrady.com>.
8970
8971 2011-01-31  Eric Blake  <eblake@redhat.com>
8972
8973         dup2: work around Haiku bug
8974         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
8975         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
8976         * doc/posix-functions/dup2.texi (dup2): Document the bug.
8977         * tests/test-dup2.c (main): Enhance test.
8978
8979 2011-01-31  Simon Josefsson  <simon@josefsson.org>
8980
8981         doc: off_t is not available in eglibc 2.11.2 stdio.h.
8982         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
8983         declared by eglibc 2.11.2.
8984         * lib/stdio.in.h: Likewise.
8985
8986 2011-01-31  Eric Blake  <eblake@redhat.com>
8987
8988         ignore-value: add missing test dependency
8989         * tests/test-ignore-value.c: Revert previous change; stdio.h
8990         provides off_t.
8991         * modules/ignore-value-tests (Depends-on): Add missing dependency.
8992
8993 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
8994
8995         mktime: clarify long_int width checking
8996         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
8997         the top level, to make it clearer that the assumption about
8998         long_int width is being checked.  See
8999         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
9000
9001 2011-01-30  Simon Josefsson  <simon@josefsson.org>
9002
9003         ignore-value: Fix self-test.
9004         * tests/test-ignore-value.c: Include sys/types.h for off_t.
9005
9006 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
9007
9008         TYPE_MAXIMUM: avoid theoretically undefined behavior
9009         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
9010         negative number, which the C Standard says has undefined behavior.
9011         In practice this is not a problem, but might as well do it by the book.
9012         Reported by Rich Felker and Eric Blake; see
9013         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
9014         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
9015         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9016         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9017         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
9018         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9019         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
9020
9021         mktime: #undef mktime before #defining it
9022         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
9023
9024         mktime: systematically normalize tm_isdst comparisons
9025         * lib/mktime.c (isdst_differ): New function.
9026         (__mktime_internal): Use it systematically for all isdst comparisons.
9027         This completes the fix for libc BZ #6723, and removes the need for
9028         normalizing tm_isdst.  See
9029         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
9030         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
9031
9032         mktime: fix some integer overflow issues and sidestep the rest
9033
9034         This was prompted by a bug report by Benjamin Lindner for MinGW
9035         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
9036         His bug is due to signed integer overflow (0 - INT_MIN), and I
9037         I scanned through mktime.c looking for other integer overflow
9038         problems, fixing all the bugs I found.
9039
9040         Although the C Standard says the resulting code is still not safe
9041         in the presence of integer overflow, in practice it should be good
9042         enough for all real-world two's-complement implementations, except
9043         for debugging environments that deliberately trap on integer
9044         overflow (e.g., gcc -ftrapv).
9045
9046         * lib/mktime.c (WRAPV): New macro.
9047         (SHR): Also check that long_int and time_t shift right in the
9048         usual way, before using the fast-but-unportable method.
9049         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
9050         used.  The code already assumed two's complement, so there's
9051         no need to test for alternatives.  All uses removed.
9052         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
9053         the C standard.  Problem reported by Rich Felker in
9054         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
9055         (twos_complement_arithmetic): Also check long_int and time_t.
9056         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
9057         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
9058         (__mktime_internal): Avoid integer overflow with unary subtraction
9059         in two instances where -1 - X is an adequate replacement for -X,
9060         since the calculations are approximate.
9061
9062 2011-01-29  Eric Blake  <eblake@redhat.com>
9063
9064         mktime: avoid infinite loop
9065         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
9066         type; behavior is still undefined but portable to all known targets.
9067         Reported by Rich Felker.
9068
9069 2011-01-29  Simon Josefsson  <simon@josefsson.org>
9070
9071         rename, unlink, same-inode: Relicense.
9072         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
9073         * modules/unlink (License): Likewise.
9074         * modules/same-inode (License): Likewise.
9075
9076 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9077
9078         mktime: avoid problems on NetBSD 5 / i386
9079         * lib/mktime.c (long_int): New type.  This works around a problem
9080         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
9081         but time_t is 64 bits, and where I expect the existing code is
9082         wrong in some cases.
9083         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
9084         (ydhms_diff): Bring back the compile-time check for wide-enough
9085         year and yday.
9086
9087         mktime: fix misspelling in comment
9088         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
9089         This merges all recent glibc changes of importance.
9090
9091 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9092
9093         move-if-change: cope with concurrent mv of identical file.
9094         * build-aux/move-if-change (CMPPROG): Accept environment
9095         variable as an override for `cmp'.
9096         (usage): Document CMPPROG.
9097         Adjust comparison to drop stdout.  Cope with failure of mv if
9098         the target file exists and is identical to the source, for
9099         parallel builds.
9100         Report from H.J. Lu against binutils in PR binutils/12283.
9101
9102 2011-01-28  Bruce Korb  <bkorb@gnu.org>
9103
9104         * users.txt: Mention sharutils.
9105
9106 2011-01-28  Simon Josefsson  <simon@josefsson.org>
9107
9108         * users.txt: Mention OATH Toolkit.
9109
9110 2011-01-27  Bruno Haible  <bruno@clisp.org>
9111
9112         Prepare for supporting FreeBSD 10.
9113         * build-aux/config.libpath: Remove handling of freebsd1*.
9114
9115 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
9116
9117         Prepare for supporting FreeBSD 10.
9118         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
9119         match FreeBSD 10.0.
9120
9121 2011-01-27  Bruno Haible  <bruno@clisp.org>
9122
9123         vma-iter, get-rusage-as: Add OpenBSD support.
9124         * modules/vma-iter (configure.ac): Test for mquery.
9125         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
9126         * lib/vma-iter.c: Include <sys/mman.h>.
9127         (vma_iterate): Add an implementation based on mquery().
9128         * lib/resource-ext.h (get_rusage_as): Update comments.
9129         * lib/get-rusage-as.c: Likewise.
9130         * lib/get-rusage-data.c: Likewise.
9131
9132 2011-01-26  Karl Berry  <karl@gnu.org>
9133
9134         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
9135         variables to make it easier to override the makeinfo program used.
9136
9137 2011-01-26  Eric Blake  <eblake@redhat.com>
9138
9139         fcntl: work around Haiku F_DUPFD bugs
9140         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
9141         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
9142         cloexec bit on duplication.
9143         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
9144
9145 2011-01-26  Bruno Haible  <bruno@clisp.org>
9146
9147         Enable memory leak tests on AIX.
9148         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
9149         * tests/test-fprintf-posix3.c (main): Likewise.
9150
9151 2011-01-26  Bruno Haible  <bruno@clisp.org>
9152
9153         Tests for module 'get-rusage-data'.
9154         * modules/get-rusage-data-tests: New file.
9155         * tests/test-get-rusage-data.c: New file.
9156
9157         New module 'get-rusage-data'.
9158         * lib/resource-ext.h (get_rusage_data): New declaration.
9159         * lib/get-rusage-data.c: New file.
9160         * modules/get-rusage-data: New file.
9161
9162 2011-01-25  Bruno Haible  <bruno@clisp.org>
9163
9164         get-rusage-as: Allow for easier testing.
9165         * lib/resource-ext.h (get_rusage_as): Add comment.
9166         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
9167         (main): New function for interactive testing.
9168
9169 2011-01-25  Bruno Haible  <bruno@clisp.org>
9170
9171         vma-iter: Treat Haiku like BeOS.
9172         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
9173         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
9174
9175 2011-01-25  Eric Blake  <eblake@redhat.com>
9176
9177         c-stack: fix regression on cygwin when libsigsegv is present
9178         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
9179
9180 2011-01-24  Bruno Haible  <bruno@clisp.org>
9181
9182         vma-iter: Avoid empty intervals.
9183         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
9184         on an empty interval.
9185
9186 2011-01-24  Jim Meyering  <meyering@redhat.com>
9187
9188         u64: remove unnecessary #include
9189         * lib/u64.h: Don't include <stddef.h>.  It was not used.
9190
9191 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9192
9193         Allow the user to avoid the HAVE_RAW_DECL_* macros.
9194         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
9195
9196 2011-01-23  Bruno Haible  <bruno@clisp.org>
9197
9198         New module 'vma-iter'.
9199         * lib/vma-iter.h: New file.
9200         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
9201         * modules/vma-iter: New file.
9202         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
9203         for get_rusage_as_via_iterator.
9204         (vma_iterate_callback): New function.
9205         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
9206         * modules/get-rusage-as (Depends-on): Add vma-iter.
9207
9208 2011-01-23  Bruno Haible  <bruno@clisp.org>
9209
9210         uninorm: Tweak includes.
9211         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
9212         Reported by Jim Meyering.
9213
9214 2011-01-23  Bruno Haible  <bruno@clisp.org>
9215
9216         get-rusage-as: Improve on NetBSD.
9217         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
9218         /proc, like on FreeBSD.
9219
9220 2011-01-23  Jim Meyering  <meyering@redhat.com>
9221
9222         xreadlink.h: remove unnecessary #include
9223         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
9224
9225         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
9226         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
9227
9228 2011-01-23  Bruno Haible  <bruno@clisp.org>
9229
9230         get-rusage-as: Fix bug.
9231         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
9232         original limit when aborting the first loop.
9233
9234 2011-01-23  Bruno Haible  <bruno@clisp.org>
9235
9236         wctype: Ensure valid C syntax.
9237         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
9238         unconditionally, instead of gl_NEXT_HEADERS conditionally.
9239
9240 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
9241
9242         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
9243         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
9244         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
9245         as they are needed only for configure's test case.
9246         This removes two unnecessary symbols from config.h.
9247
9248         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
9249         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
9250         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
9251         AC_CHECK_HEADERS_ONCE on a header that we also invoke
9252         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
9253         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
9254         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
9255         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9256         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9257         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9258         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9259         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9260         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9261         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9262         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9263         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9264         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9265         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
9266
9267 2011-01-21  Eric Blake  <eblake@redhat.com>
9268
9269         maintainer-makefile: work with older git for submodule check
9270         * top/maint.mk (public-submodule-commit): Rewrite to avoid
9271         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
9272         Reported by Matthias Bolte.
9273
9274         bootstrap: minor portability fixes
9275         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
9276         (usage): Omit leading capital and trailing . on help phrases, per
9277         GNU Coding Standards.
9278         (check_versions, top level): Prefix messages with script name.
9279
9280 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
9281
9282         bootstrap: support --no-git option
9283         * build-aux/bootstrap: Add --no-git option, to be used when
9284         --gnulib-srcdir points to the exact desired checkout.
9285
9286 2011-01-21  Eric Blake  <eblake@redhat.com>
9287
9288         strerror_r-posix: work with glibc 2.13
9289         * lib/strerror_r.c (strerror_r): Fix return type.
9290
9291 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9292             Bruno Haible  <bruno@clisp.org>
9293
9294         uN_strstr: New unit tests.
9295         * modules/unistr/u8-strstr-tests: New file.
9296         * modules/unistr/u16-strstr-tests: New file.
9297         * modules/unistr/u32-strstr-tests: New file.
9298         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
9299         * tests/unistr/test-u8-strstr.c: New file.
9300         * tests/unistr/test-u16-strstr.c: New file.
9301         * tests/unistr/test-u32-strstr.c: New file.
9302
9303 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9304             Bruno Haible  <bruno@clisp.org>
9305
9306         Make uN_strstr functions O(n) worst-case.
9307         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
9308         16-bit and 32-bit unit cases, use the unibyte algorithm from
9309         lib/mbsstr.c.
9310         * lib/unistr/u8-strstr.c: Include <string.h>.
9311         (UNIT_IS_UINT8_T): New macro.
9312         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
9313         (U_STRLEN, U_STRNLEN): New macros.
9314         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
9315         (U_STRLEN, U_STRNLEN): New macros.
9316         * modules/unistr/u8-strstr (Depends-on): Add strstr.
9317         (configure.ac): Update required libunistring version.
9318         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
9319         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
9320         malloca.
9321         (configure.ac): Update required libunistring version.
9322         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
9323         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
9324         malloca.
9325         (configure.ac): Update required libunistring version.
9326
9327 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9328             Bruno Haible  <bruno@clisp.org>
9329
9330         Prepare for faster uN_strstr functions.
9331         * lib/str-kmp.h: Support definable UNITs.
9332         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
9333         needle_len argument.
9334         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
9335         * lib/mbscasestr.c (mbscasestr): Likewise.
9336
9337 2011-01-21  Pádraig Brady <P@draigBrady.com>
9338
9339         malloca-tests: make faster by unsetting MALLOC_PERTURB_
9340         * tests/test-malloca.c (main): Unset the environment variable
9341         to greatly speed up the test.
9342         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
9343         * modules/malloca-tests: Depend on unsetenv.
9344
9345 2011-01-21  Pádraig Brady <P@draigBrady.com>
9346
9347         ignore-value: remove stdint dependency
9348         * lib/ignore-value.h: Remove <stdint.h>
9349         * modules/ignore-value: Remove stdint dependency.
9350
9351 2011-01-21  Jim Meyering  <meyering@redhat.com>
9352
9353         maint.mk: adjust variable name to be consistent with other gl_ vars
9354         * top/maint.mk (gl_public_submodule_commit): Rename the variable
9355         to be lower case.
9356
9357 2011-01-20  Jim Meyering  <meyering@redhat.com>
9358
9359         maint.mk: make "check" depend on public-submodule-commit by default
9360         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
9361
9362 2011-01-20  Bruno Haible  <bruno@clisp.org>
9363
9364         mbfile, mbiter: Complete change from 2008-12-21.
9365         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
9366         * m4/mbiter.m4 (gl_MBITER): Likewise.
9367
9368 2011-01-20  Jim Meyering  <meyering@redhat.com>
9369
9370         init.sh: insert space between each function name and "()"
9371         * tests/init.sh: Make it a little easier to see that a function's
9372         name is "warn_", and not "warn" when looking at the first part of
9373         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
9374
9375 2011-01-20  Jim Meyering  <meyering@redhat.com>
9376
9377         mountlist: clean up code formatting
9378         * lib/mountlist.c (read_file_system_list): Split a long line,
9379         correct bracing style, use NULL in place of "(struct statfs *)0",
9380         don't parenthesize return value, add spaces around "=" and after
9381         ";-in-for-stmt".
9382
9383 2011-01-14  Markus Duft <mduft@gentoo.org>
9384
9385         mountlist: add support for Interix
9386         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
9387         Apply statvfs to all entries of /dev/fs.
9388         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
9389         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
9390
9391 2011-01-20  Jim Meyering  <meyering@redhat.com>
9392
9393         maint.mk: improve the public-submodule-commit rule
9394         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
9395         to suppress printing of its commands... unless V=1.
9396         Add git submodule's --quiet option to suppress printing of e.g.,
9397         "Entering gnulib" output.
9398         "cd" into $(srcdir) before running git submodule.
9399
9400 2011-01-20  Bruno Haible  <bruno@clisp.org>
9401
9402         include_next: Fix bug introduced on 2011-01-18.
9403         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
9404         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
9405         ac_cv_header_... variable if the second argument is not 'check'.
9406         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
9407         gl_NEXT_HEADERS_INTERNAL.
9408
9409 2011-01-20  Bruno Haible  <bruno@clisp.org>
9410
9411         Allow the user to avoid the GNULIB_TEST_* macros.
9412         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
9413         Suggested by Paul Eggert.
9414
9415 2011-01-14  Jim Meyering  <meyering@redhat.com>
9416
9417         bootstrap: avoid failure when there is no .gitmodules file
9418         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
9419         has been assigned to, even when its value is the empty string.
9420         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
9421         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
9422         Reported by John W. Eaton <jwe@gnu.org>.
9423
9424 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
9425
9426         assume <ctype.h>, ..., <time.h> exist
9427         For years gnulib has been assuming the existence of the headers
9428         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
9429         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
9430         them, since they don't appear to be needed.
9431         * README (Portability guidelines): Document this.
9432         * lib/flock.c: Assume <fcntl.h> exists.
9433         * lib/regex_internal.h: Assume <locale.h> exists.
9434         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
9435         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
9436         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
9437         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
9438         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
9439         * m4/regex.m4 (gl_REGEX): Likewise.
9440         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
9441         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
9442         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
9443         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
9444         * tests/test-argp.c: Likewise.
9445         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
9446
9447         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
9448         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
9449         AA_APPLE_UNIVERSAL_BUILD.  See
9450         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
9451         * NEWS: Document this.
9452
9453 2011-01-19  Eric Blake  <eblake@redhat.com>
9454
9455         c-stack: assume stack overflow if SA_SIGINFO unsupported
9456         * lib/c-stack.c (SIGACTION_WORKS): Rename...
9457         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
9458         sigaction will work.
9459         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
9460         behavior match Linux.
9461         * tests/test-c-stack.c (main): Prefer NULL for pointers.
9462
9463         stdbool-tests: accomodate Haiku
9464         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
9465
9466         binary-io: fix O_TEXT on Haiku
9467         * modules/binary-io (Depends-on): Add fcntl-h.
9468         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
9469         than blindly undefining O_TEXT.
9470         Reported by Scott McCreary.
9471
9472 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9473
9474         include_next: do not check for standard headers like stddef.h
9475
9476         I found this problem when modifying Emacs to use gnulib.
9477         I noticed that it added HAVE_STDDEF_H to config.h, even though
9478         gnulib always assumes <stddef.h> exists as per README and this
9479         symbol is unnecessary.
9480         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
9481         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
9482         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
9483         faster for headers like stddef.h that are known to exist.
9484         (gl_CHECK_NEXT_HEADERS): Use it.
9485         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
9486         rather than gl_CHECK_NEXT_HEADERS.
9487         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
9488         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
9489
9490 2011-01-18  Eric Blake  <eblake@redhat.com>
9491
9492         ansi-c++-opt: skip C++ dependency style if C++ is unused
9493         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
9494         tests when we know C++ compilation is not desired.
9495         Reported by Scott McCreary.
9496
9497 2011-01-18  Bruno Haible  <bruno@clisp.org>
9498
9499         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
9500         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
9501         (main): Perform test also when getrlimit and setrlimit don't exist or
9502         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
9503         limiting the address space size using setrlimit, compare the address
9504         space size before and after the the test.
9505         * tests/test-dprintf-posix2.c: Likewise.
9506         * tests/test-fprintf-posix3.sh: Update skip messages.
9507         * tests/test-dprintf-posix2.sh: Likewise.
9508         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
9509         * modules/dprintf-posix-tests (Depends-on): Likewise.
9510         Reported by Bruce Korb <bkorb@gnu.org> and
9511         Gary V. Vaughan <gary@gnu.org>.
9512
9513 2011-01-18  Bruno Haible  <bruno@clisp.org>
9514
9515         get-rusage-as: Improvement for Cygwin.
9516         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
9517         areas that are merely reserved.
9518
9519 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9520
9521         strftime: remove dependencies on multibyte modules
9522
9523         strftime depended on mbrlen, mbsinit, and wchar, but these modules
9524         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
9525         only if __osf__ is defined, and I suspect OSF doesn't need these
9526         other modules.  If my guess is wrong, we'll need to come up with a
9527         variant of strftime that doesn't need the multibyte modules.
9528
9529         I discovered this problem when attempting modify Emacs to use the
9530         strftime module.  With the previous gnulib, this caused Emacs to
9531         need 31 new files, ranging from lib/config.charset to
9532         m4/wint_t.m4.  This was overkill and I expect would be offputting
9533         to the Emacs maintainers.  After this change, only 6 new files are
9534         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
9535         stdbool.m4, and tm_gmtoff.m4.
9536
9537         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
9538         Suggested by Bruno Haible in
9539         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
9540         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
9541         and do not check for wchar.h.
9542         * modules/strftime (Files): Remove m4/mbstate_t.m4.
9543         (Depends-on): Remove mbrlen, mbsinit, wchar.
9544
9545 2011-01-18  Bruno Haible  <bruno@clisp.org>
9546
9547         Tests for module 'get-rusage-as'.
9548         * modules/get-rusage-as-tests: New file.
9549         * tests/test-get-rusage-as.c: New file.
9550
9551         New module 'get-rusage-as'.
9552         * modules/get-rusage-as: New file.
9553         * lib/resource-ext.h: New file.
9554         * lib/get-rusage-as.c: New file.
9555
9556 2011-01-17  Eric Blake  <eblake@redhat.com>
9557
9558         sigaction: relax license from LGPLv3+ to LGPLv2+
9559         * modules/sigaction (License): Relax to LGPLv2+.
9560
9561 2011-01-14  Bruno Haible  <bruno@clisp.org>
9562
9563         filemode: Make function declarations usable in C++ mode.
9564         * lib/filemode.h: Enclose function declarations in extern "C" block.
9565         Reported by John W. Eaton <jwe@gnu.org>.
9566
9567 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
9568
9569         save-cwd: no longer include "xgetcwd.h"
9570         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
9571         This avoids a compilation failure in projects that use save-cwd
9572         without also using the xgetcwd module.
9573
9574 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9575
9576         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
9577         This is so that a program like Emacs, which needs only dtoastr,
9578         does not have to bother with distributing and compiling ftoastr
9579         and ldtoastr.
9580         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
9581         * modules/dtoastr, modules/ldtoastr: New files.
9582         * modules/ftoastr: Now works just for 'float'.
9583         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
9584         (Makefile.am): Remove ftoastr.h (not needed and no effect),
9585         dtoastr.c, ldtoastr.c.
9586
9587 2011-01-11  Jim Meyering  <meyering@redhat.com>
9588
9589         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
9590         There is no need to work around the lack of the fchdir function,
9591         since gnulib can now provide a replacement when required.
9592         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
9593         * modules/save-cwd (Depends-on): Add fchdir.
9594
9595 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9596
9597         openat, save-cwd: avoid xmalloc
9598
9599         This removes a direct (but undocumented) dependency of openat on
9600         xalloc, along with an indirect dependency via save-cwd.  It also
9601         removes a dependency of save-cwd on xgetcwd, and thereby
9602         indirectly on xalloc.  This change causes the openat substitute
9603         to fall back on save_cwd when memory is tight, and for save_cwd to
9604         fail instead of dying when memory is tight, but that's good enough.
9605         Problem and initial idea for fix reported by Bastien Roucaries in
9606         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
9607
9608         * lib/openat-proc.c: Include stdlib.h (for malloc), not
9609         xalloc.h (for xmalloc).
9610         (openat_proc_name): Use malloc, not xmalloc.
9611         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
9612         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
9613
9614         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
9615         This avoids heap allocation for file names whose lengths are in
9616         the range 512..1023, with the upper bound increasing to at most
9617         4031 depending on the platform's PATH_MAX.  (We do not want
9618         pathmax.h here as it might supply a non-constant PATH_MAX.)
9619         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
9620         Perhaps they should be moved to malloca.h?
9621         (OPENAT_BUFFER_SIZE): Use them.
9622
9623 2011-01-10  Bruno Haible  <bruno@clisp.org>
9624
9625         doc: Update users.txt.
9626         * users.txt: Add recutils.
9627
9628 2011-01-09  Karl Berry  <karl@gnu.org>
9629
9630         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
9631
9632         * doc/configmake.texi: New file.
9633         * doc/gnulib.texi: Include it.
9634         * modules/configmake: Move documentation from here.
9635
9636 2011-01-09  Bruno Haible  <bruno@clisp.org>
9637
9638         Update to Unicode 6.0.0.
9639         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
9640         (get_lbp): Update for Unicode 6.0.0.
9641         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
9642         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
9643         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
9644         U+11001, U+11038..U+11046. Remove U+06DE.
9645         (uc_width): Fix bounds of planes.
9646         * tests/uniwidth/test-uc_width2.sh: Same updates as in
9647         lib/uniwidth/width.c.
9648         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
9649         trailing whitespace removed.
9650         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
9651         without comments, but with the original copyright notice.
9652         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
9653         * lib/unicase/ignorable.h: Likewise.
9654         * lib/unicase/tocasefold.h: Likewise.
9655         * lib/unicase/tolower.h: Likewise.
9656         * lib/unicase/totitle.h: Likewise.
9657         * lib/unicase/toupper.h: Likewise.
9658         * lib/unictype/bidi_of.h: Likewise.
9659         * lib/unictype/blocks.h: Likewise.
9660         * lib/unictype/categ_C.h: Likewise.
9661         * lib/unictype/categ_Cn.h: Likewise.
9662         * lib/unictype/categ_L.h: Likewise.
9663         * lib/unictype/categ_Ll.h: Likewise.
9664         * lib/unictype/categ_Lm.h: Likewise.
9665         * lib/unictype/categ_Lo.h: Likewise.
9666         * lib/unictype/categ_Lu.h: Likewise.
9667         * lib/unictype/categ_M.h: Likewise.
9668         * lib/unictype/categ_Mc.h: Likewise.
9669         * lib/unictype/categ_Me.h: Likewise.
9670         * lib/unictype/categ_Mn.h: Likewise.
9671         * lib/unictype/categ_N.h: Likewise.
9672         * lib/unictype/categ_Nd.h: Likewise.
9673         * lib/unictype/categ_No.h: Likewise.
9674         * lib/unictype/categ_P.h: Likewise.
9675         * lib/unictype/categ_Po.h: Likewise.
9676         * lib/unictype/categ_S.h: Likewise.
9677         * lib/unictype/categ_Sc.h: Likewise.
9678         * lib/unictype/categ_Sk.h: Likewise.
9679         * lib/unictype/categ_Sm.h: Likewise.
9680         * lib/unictype/categ_So.h: Likewise.
9681         * lib/unictype/categ_of.h: Likewise.
9682         * lib/unictype/combining.h: Likewise.
9683         * lib/unictype/ctype_alnum.h: Likewise.
9684         * lib/unictype/ctype_alpha.h: Likewise.
9685         * lib/unictype/ctype_graph.h: Likewise.
9686         * lib/unictype/ctype_lower.h: Likewise.
9687         * lib/unictype/ctype_print.h: Likewise.
9688         * lib/unictype/ctype_punct.h: Likewise.
9689         * lib/unictype/ctype_upper.h: Likewise.
9690         * lib/unictype/decdigit.h: Likewise.
9691         * lib/unictype/digit.h: Likewise.
9692         * lib/unictype/numeric.h: Likewise.
9693         * lib/unictype/pr_alphabetic.h: Likewise.
9694         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
9695         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
9696         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
9697         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
9698         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
9699         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
9700         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
9701         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
9702         * lib/unictype/pr_case_ignorable.h: Likewise.
9703         * lib/unictype/pr_cased.h: Likewise.
9704         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
9705         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
9706         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
9707         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
9708         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
9709         * lib/unictype/pr_combining.h: Likewise.
9710         * lib/unictype/pr_composite.h: Likewise.
9711         * lib/unictype/pr_currency_symbol.h: Likewise.
9712         * lib/unictype/pr_decimal_digit.h: Likewise.
9713         * lib/unictype/pr_deprecated.h: Likewise.
9714         * lib/unictype/pr_format_control.h: Likewise.
9715         * lib/unictype/pr_grapheme_base.h: Likewise.
9716         * lib/unictype/pr_grapheme_extend.h: Likewise.
9717         * lib/unictype/pr_grapheme_link.h: Likewise.
9718         * lib/unictype/pr_id_continue.h: Likewise.
9719         * lib/unictype/pr_id_start.h: Likewise.
9720         * lib/unictype/pr_ideographic.h: Likewise.
9721         * lib/unictype/pr_lowercase.h: Likewise.
9722         * lib/unictype/pr_math.h: Likewise.
9723         * lib/unictype/pr_numeric.h: Likewise.
9724         * lib/unictype/pr_other_alphabetic.h: Likewise.
9725         * lib/unictype/pr_other_id_continue.h: Likewise.
9726         * lib/unictype/pr_other_math.h: Likewise.
9727         * lib/unictype/pr_punctuation.h: Likewise.
9728         * lib/unictype/pr_sentence_terminal.h: Likewise.
9729         * lib/unictype/pr_terminal_punctuation.h: Likewise.
9730         * lib/unictype/pr_unassigned_code_value.h: Likewise.
9731         * lib/unictype/pr_unified_ideograph.h: Likewise.
9732         * lib/unictype/pr_uppercase.h: Likewise.
9733         * lib/unictype/pr_xid_continue.h: Likewise.
9734         * lib/unictype/pr_xid_start.h: Likewise.
9735         * lib/unictype/scripts.h: Likewise.
9736         * lib/unictype/scripts_byname.gperf: Likewise.
9737         * lib/unictype/sy_java_ident.h: Likewise.
9738         * lib/unigbrk/gbrkprop.h: Likewise.
9739         * lib/unilbrk/lbrkprop1.h: Likewise.
9740         * lib/unilbrk/lbrkprop2.h: Likewise.
9741         * lib/uninorm/decomposition-table2.h: Likewise.
9742         * lib/uniwbrk/wbrkprop.h: Likewise.
9743         * tests/unicase/test-cased.c: Likewise.
9744         * tests/unicase/test-ignorable.c: Likewise.
9745         * tests/unicase/test-uc_tolower.c: Likewise.
9746         * tests/unicase/test-uc_totitle.c: Likewise.
9747         * tests/unicase/test-uc_toupper.c: Likewise.
9748         * tests/unictype/test-categ_C.c: Likewise.
9749         * tests/unictype/test-categ_Cn.c: Likewise.
9750         * tests/unictype/test-categ_L.c: Likewise.
9751         * tests/unictype/test-categ_Ll.c: Likewise.
9752         * tests/unictype/test-categ_Lm.c: Likewise.
9753         * tests/unictype/test-categ_Lo.c: Likewise.
9754         * tests/unictype/test-categ_Lu.c: Likewise.
9755         * tests/unictype/test-categ_M.c: Likewise.
9756         * tests/unictype/test-categ_Mc.c: Likewise.
9757         * tests/unictype/test-categ_Me.c: Likewise.
9758         * tests/unictype/test-categ_Mn.c: Likewise.
9759         * tests/unictype/test-categ_N.c: Likewise.
9760         * tests/unictype/test-categ_Nd.c: Likewise.
9761         * tests/unictype/test-categ_No.c: Likewise.
9762         * tests/unictype/test-categ_P.c: Likewise.
9763         * tests/unictype/test-categ_Po.c: Likewise.
9764         * tests/unictype/test-categ_S.c: Likewise.
9765         * tests/unictype/test-categ_Sc.c: Likewise.
9766         * tests/unictype/test-categ_Sk.c: Likewise.
9767         * tests/unictype/test-categ_Sm.c: Likewise.
9768         * tests/unictype/test-categ_So.c: Likewise.
9769         * tests/unictype/test-ctype_alnum.c: Likewise.
9770         * tests/unictype/test-ctype_alpha.c: Likewise.
9771         * tests/unictype/test-ctype_graph.c: Likewise.
9772         * tests/unictype/test-ctype_lower.c: Likewise.
9773         * tests/unictype/test-ctype_print.c: Likewise.
9774         * tests/unictype/test-ctype_punct.c: Likewise.
9775         * tests/unictype/test-ctype_upper.c: Likewise.
9776         * tests/unictype/test-decdigit.h: Likewise.
9777         * tests/unictype/test-digit.h: Likewise.
9778         * tests/unictype/test-numeric.h: Likewise.
9779         * tests/unictype/test-pr_alphabetic.c: Likewise.
9780         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
9781         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
9782         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
9783         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
9784         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
9785         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
9786         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
9787         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
9788         * tests/unictype/test-pr_case_ignorable.c: Likewise.
9789         * tests/unictype/test-pr_cased.c: Likewise.
9790         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
9791         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
9792         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
9793         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
9794         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
9795         * tests/unictype/test-pr_combining.c: Likewise.
9796         * tests/unictype/test-pr_composite.c: Likewise.
9797         * tests/unictype/test-pr_currency_symbol.c: Likewise.
9798         * tests/unictype/test-pr_decimal_digit.c: Likewise.
9799         * tests/unictype/test-pr_deprecated.c: Likewise.
9800         * tests/unictype/test-pr_format_control.c: Likewise.
9801         * tests/unictype/test-pr_grapheme_base.c: Likewise.
9802         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
9803         * tests/unictype/test-pr_grapheme_link.c: Likewise.
9804         * tests/unictype/test-pr_id_continue.c: Likewise.
9805         * tests/unictype/test-pr_id_start.c: Likewise.
9806         * tests/unictype/test-pr_ideographic.c: Likewise.
9807         * tests/unictype/test-pr_lowercase.c: Likewise.
9808         * tests/unictype/test-pr_math.c: Likewise.
9809         * tests/unictype/test-pr_numeric.c: Likewise.
9810         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
9811         * tests/unictype/test-pr_other_id_continue.c: Likewise.
9812         * tests/unictype/test-pr_other_math.c: Likewise.
9813         * tests/unictype/test-pr_punctuation.c: Likewise.
9814         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
9815         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
9816         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
9817         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
9818         * tests/unictype/test-pr_uppercase.c: Likewise.
9819         * tests/unictype/test-pr_xid_continue.c: Likewise.
9820         * tests/unictype/test-pr_xid_start.c: Likewise.
9821         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
9822         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
9823         changes.
9824         * lib/unictype/categ_Cc.h: Likewise.
9825         * lib/unictype/categ_Cf.h: Likewise.
9826         * lib/unictype/categ_Co.h: Likewise.
9827         * lib/unictype/categ_Cs.h: Likewise.
9828         * lib/unictype/categ_Lt.h: Likewise.
9829         * lib/unictype/categ_Nl.h: Likewise.
9830         * lib/unictype/categ_Pc.h: Likewise.
9831         * lib/unictype/categ_Pd.h: Likewise.
9832         * lib/unictype/categ_Pe.h: Likewise.
9833         * lib/unictype/categ_Pf.h: Likewise.
9834         * lib/unictype/categ_Pi.h: Likewise.
9835         * lib/unictype/categ_Ps.h: Likewise.
9836         * lib/unictype/categ_Z.h: Likewise.
9837         * lib/unictype/categ_Zl.h: Likewise.
9838         * lib/unictype/categ_Zp.h: Likewise.
9839         * lib/unictype/categ_Zs.h: Likewise.
9840         * lib/unictype/ctype_blank.h: Likewise.
9841         * lib/unictype/ctype_cntrl.h: Likewise.
9842         * lib/unictype/ctype_digit.h: Likewise.
9843         * lib/unictype/ctype_space.h: Likewise.
9844         * lib/unictype/ctype_xdigit.h: Likewise.
9845         * lib/unictype/mirror.h: Likewise.
9846         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
9847         * lib/unictype/pr_bidi_block_separator.h: Likewise.
9848         * lib/unictype/pr_bidi_common_separator.h: Likewise.
9849         * lib/unictype/pr_bidi_control.h: Likewise.
9850         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
9851         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
9852         * lib/unictype/pr_bidi_european_digit.h: Likewise.
9853         * lib/unictype/pr_bidi_pdf.h: Likewise.
9854         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
9855         * lib/unictype/pr_bidi_whitespace.h: Likewise.
9856         * lib/unictype/pr_dash.h: Likewise.
9857         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
9858         * lib/unictype/pr_diacritic.h: Likewise.
9859         * lib/unictype/pr_extender.h: Likewise.
9860         * lib/unictype/pr_hex_digit.h: Likewise.
9861         * lib/unictype/pr_hyphen.h: Likewise.
9862         * lib/unictype/pr_ids_binary_operator.h: Likewise.
9863         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
9864         * lib/unictype/pr_ignorable_control.h: Likewise.
9865         * lib/unictype/pr_iso_control.h: Likewise.
9866         * lib/unictype/pr_join_control.h: Likewise.
9867         * lib/unictype/pr_left_of_pair.h: Likewise.
9868         * lib/unictype/pr_line_separator.h: Likewise.
9869         * lib/unictype/pr_logical_order_exception.h: Likewise.
9870         * lib/unictype/pr_non_break.h: Likewise.
9871         * lib/unictype/pr_not_a_character.h: Likewise.
9872         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
9873         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
9874         * lib/unictype/pr_other_id_start.h: Likewise.
9875         * lib/unictype/pr_other_lowercase.h: Likewise.
9876         * lib/unictype/pr_other_uppercase.h: Likewise.
9877         * lib/unictype/pr_paired_punctuation.h: Likewise.
9878         * lib/unictype/pr_paragraph_separator.h: Likewise.
9879         * lib/unictype/pr_pattern_syntax.h: Likewise.
9880         * lib/unictype/pr_pattern_white_space.h: Likewise.
9881         * lib/unictype/pr_private_use.h: Likewise.
9882         * lib/unictype/pr_quotation_mark.h: Likewise.
9883         * lib/unictype/pr_radical.h: Likewise.
9884         * lib/unictype/pr_soft_dotted.h: Likewise.
9885         * lib/unictype/pr_space.h: Likewise.
9886         * lib/unictype/pr_titlecase.h: Likewise.
9887         * lib/unictype/pr_variation_selector.h: Likewise.
9888         * lib/unictype/pr_white_space.h: Likewise.
9889         * lib/unictype/pr_zero_width.h: Likewise.
9890         * lib/unictype/sy_c_ident.h: Likewise.
9891         * lib/unictype/sy_c_whitespace.h: Likewise.
9892         * lib/unictype/sy_java_whitespace.h: Likewise.
9893         * lib/uninorm/composition-table.gperf: Likewise.
9894         * lib/uninorm/decomposition-table1.h: Likewise.
9895         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
9896         LB8.
9897         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
9898         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
9899         * modules/unictype/*: Bump version number of expected libunistring
9900         version.
9901
9902 2011-01-09  Bruno Haible  <bruno@clisp.org>
9903
9904         Update to Unicode 5.2.0.
9905         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
9906         trailing whitespace removed.
9907
9908 2011-01-09  Bruno Haible  <bruno@clisp.org>
9909
9910         New Unicode character properties, from Unicode 5.2.0.
9911         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
9912         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
9913         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
9914         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
9915         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
9916         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
9917         uc_is_property_cased, uc_is_property_case_ignorable,
9918         uc_is_property_changes_when_lowercased,
9919         uc_is_property_changes_when_uppercased,
9920         uc_is_property_changes_when_titlecased,
9921         uc_is_property_changes_when_casefolded,
9922         uc_is_property_changes_when_casemapped): New declarations.
9923         * lib/unictype/pr_byname.gperf: Add the new properties.
9924         * modules/unictype/property-byname (Depends-on): Depend on the new
9925         properties modules.
9926         * modules/unictype/property-all (Depends-on): Likewise.
9927         * MODULES.html.sh (Unicode string functions): Add
9928         unictype/property-case-ignorable, unictype/property-cased,
9929         unictype/property-changes-when-casefolded,
9930         unictype/property-changes-when-casemapped,
9931         unictype/property-changes-when-lowercased,
9932         unictype/property-changes-when-titlecased,
9933         unictype/property-changes-when-uppercased.
9934
9935         New module 'unictype/property-changes-when-casemapped'.
9936         * modules/unictype/property-changes-when-casemapped: New file.
9937         * lib/unictype/pr_changes_when_casemapped.c: New file.
9938         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
9939         generated by gen-uni-tables.
9940         * modules/unictype/property-changes-when-casemapped-tests: New file.
9941         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
9942         automatically generated by gen-uni-tables.
9943
9944         New module 'unictype/property-changes-when-casefolded'.
9945         * modules/unictype/property-changes-when-casefolded: New file.
9946         * lib/unictype/pr_changes_when_casefolded.c: New file.
9947         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
9948         generated by gen-uni-tables.
9949         * modules/unictype/property-changes-when-casefolded-tests: New file.
9950         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
9951         automatically generated by gen-uni-tables.
9952
9953         New module 'unictype/property-changes-when-titlecased'.
9954         * modules/unictype/property-changes-when-titlecased: New file.
9955         * lib/unictype/pr_changes_when_titlecased.c: New file.
9956         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
9957         generated by gen-uni-tables.
9958         * modules/unictype/property-changes-when-titlecased-tests: New file.
9959         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
9960         automatically generated by gen-uni-tables.
9961
9962         New module 'unictype/property-changes-when-uppercased'.
9963         * modules/unictype/property-changes-when-uppercased: New file.
9964         * lib/unictype/pr_changes_when_uppercased.c: New file.
9965         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
9966         generated by gen-uni-tables.
9967         * modules/unictype/property-changes-when-uppercased-tests: New file.
9968         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
9969         automatically generated by gen-uni-tables.
9970
9971         New module 'unictype/property-changes-when-lowercased'.
9972         * modules/unictype/property-changes-when-lowercased: New file.
9973         * lib/unictype/pr_changes_when_lowercased.c: New file.
9974         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
9975         generated by gen-uni-tables.
9976         * modules/unictype/property-changes-when-lowercased-tests: New file.
9977         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
9978         automatically generated by gen-uni-tables.
9979
9980         New module 'unictype/property-case-ignorable'.
9981         * modules/unictype/property-case-ignorable: New file.
9982         * lib/unictype/pr_case_ignorable.c: New file.
9983         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
9984         by gen-uni-tables.
9985         * modules/unictype/property-case-ignorable-tests: New file.
9986         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
9987         generated by gen-uni-tables.
9988
9989         New module 'unictype/property-cased'.
9990         * modules/unictype/property-cased: New file.
9991         * lib/unictype/pr_cased.c: New file.
9992         * lib/unictype/pr_cased.h: New file, automatically generated by
9993         gen-uni-tables.
9994         * modules/unictype/property-cased-tests: New file.
9995         * tests/unictype/test-pr_cased.c: New file, automatically generated by
9996         gen-uni-tables.
9997
9998 2011-01-09  Bruno Haible  <bruno@clisp.org>
9999
10000         Update to Unicode 5.2.0.
10001         * lib/gen-uni-tables.c (output_predicate, output_category,
10002         output_combclass, output_bidi_category, output_decimal_digit_test,
10003         output_decimal_digit, output_digit_test, output_digit,
10004         output_numeric_test, output_numeric, output_mirror, output_scripts,
10005         output_scripts_byname, output_blocks, output_ident_category): Fix
10006         comment header.
10007         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
10008         get_wbp.
10009         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
10010         items.
10011         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
10012         Changes_When_Lowercased, Changes_When_Uppercased,
10013         Changes_When_Titlecased, Changes_When_Casefolded,
10014         Changes_When_Casemapped.
10015         (is_property_alphabetic, is_property_default_ignorable_code_point):
10016         Update for Unicode 5.2.0.
10017         (is_property_cased, is_property_case_ignorable,
10018         is_property_changes_when_lowercased,
10019         is_property_changes_when_uppercased,
10020         is_property_changes_when_titlecased,
10021         is_property_changes_when_casefolded,
10022         is_property_changes_when_casemapped): New functions.
10023         (output_properties): Output also the properties cased, case_ignorable,
10024         changes_when_lowercased, changes_when_uppercased,
10025         changes_when_titlecased, changes_when_casefolded,
10026         changes_when_casemapped.
10027         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
10028         Unicode TR#11 revision 17 -> 19.
10029         (LBP_CP): New enumeration value.
10030         (LBP_*): Adjust values accordingly.
10031         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10032         TR#14 revision 22 -> 24.
10033         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
10034         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
10035         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10036         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
10037         is_WBP_MIDLETTER.
10038         (output_composition_tables): Allow for 24 bits instead of 16 bits in
10039         the code1 and code2 of each composition rule.
10040         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
10041         * lib/unicase/ignorable.h: Likewise.
10042         * lib/unicase/tocasefold.h: Likewise.
10043         * lib/unicase/tolower.h: Likewise.
10044         * lib/unicase/totitle.h: Likewise.
10045         * lib/unicase/toupper.h: Likewise.
10046         * lib/unictype/bidi_of.h: Likewise.
10047         * lib/unictype/blocks.h: Likewise.
10048         * lib/unictype/categ_C.h: Likewise.
10049         * lib/unictype/categ_Cf.h: Likewise.
10050         * lib/unictype/categ_Cn.h: Likewise.
10051         * lib/unictype/categ_L.h: Likewise.
10052         * lib/unictype/categ_Ll.h: Likewise.
10053         * lib/unictype/categ_Lm.h: Likewise.
10054         * lib/unictype/categ_Lo.h: Likewise.
10055         * lib/unictype/categ_Lu.h: Likewise.
10056         * lib/unictype/categ_M.h: Likewise.
10057         * lib/unictype/categ_Mc.h: Likewise.
10058         * lib/unictype/categ_Mn.h: Likewise.
10059         * lib/unictype/categ_N.h: Likewise.
10060         * lib/unictype/categ_Nd.h: Likewise.
10061         * lib/unictype/categ_Nl.h: Likewise.
10062         * lib/unictype/categ_No.h: Likewise.
10063         * lib/unictype/categ_P.h: Likewise.
10064         * lib/unictype/categ_Pd.h: Likewise.
10065         * lib/unictype/categ_Po.h: Likewise.
10066         * lib/unictype/categ_S.h: Likewise.
10067         * lib/unictype/categ_Sc.h: Likewise.
10068         * lib/unictype/categ_So.h: Likewise.
10069         * lib/unictype/categ_of.h: Likewise.
10070         * lib/unictype/combining.h: Likewise.
10071         * lib/unictype/ctype_alnum.h: Likewise.
10072         * lib/unictype/ctype_alpha.h: Likewise.
10073         * lib/unictype/ctype_graph.h: Likewise.
10074         * lib/unictype/ctype_lower.h: Likewise.
10075         * lib/unictype/ctype_print.h: Likewise.
10076         * lib/unictype/ctype_punct.h: Likewise.
10077         * lib/unictype/ctype_upper.h: Likewise.
10078         * lib/unictype/decdigit.h: Likewise.
10079         * lib/unictype/digit.h: Likewise.
10080         * lib/unictype/numeric.h: Likewise.
10081         * lib/unictype/pr_alphabetic.h: Likewise.
10082         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10083         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10084         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10085         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10086         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10087         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10088         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10089         * lib/unictype/pr_combining.h: Likewise.
10090         * lib/unictype/pr_composite.h: Likewise.
10091         * lib/unictype/pr_currency_symbol.h: Likewise.
10092         * lib/unictype/pr_dash.h: Likewise.
10093         * lib/unictype/pr_decimal_digit.h: Likewise.
10094         * lib/unictype/pr_deprecated.h: Likewise.
10095         * lib/unictype/pr_diacritic.h: Likewise.
10096         * lib/unictype/pr_extender.h: Likewise.
10097         * lib/unictype/pr_grapheme_base.h: Likewise.
10098         * lib/unictype/pr_grapheme_extend.h: Likewise.
10099         * lib/unictype/pr_grapheme_link.h: Likewise.
10100         * lib/unictype/pr_id_continue.h: Likewise.
10101         * lib/unictype/pr_id_start.h: Likewise.
10102         * lib/unictype/pr_ideographic.h: Likewise.
10103         * lib/unictype/pr_ignorable_control.h: Likewise.
10104         * lib/unictype/pr_logical_order_exception.h: Likewise.
10105         * lib/unictype/pr_lowercase.h: Likewise.
10106         * lib/unictype/pr_numeric.h: Likewise.
10107         * lib/unictype/pr_other_alphabetic.h: Likewise.
10108         * lib/unictype/pr_punctuation.h: Likewise.
10109         * lib/unictype/pr_sentence_terminal.h: Likewise.
10110         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10111         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10112         * lib/unictype/pr_unified_ideograph.h: Likewise.
10113         * lib/unictype/pr_uppercase.h: Likewise.
10114         * lib/unictype/pr_xid_continue.h: Likewise.
10115         * lib/unictype/pr_xid_start.h: Likewise.
10116         * lib/unictype/pr_zero_width.h: Likewise.
10117         * lib/unictype/scripts.h: Likewise.
10118         * lib/unictype/scripts_byname.gperf: Likewise.
10119         * lib/unictype/sy_java_ident.h: Likewise.
10120         * lib/unigbrk/gbrkprop.h: Likewise.
10121         * lib/unilbrk/lbrkprop1.h: Likewise.
10122         * lib/unilbrk/lbrkprop2.h: Likewise.
10123         * lib/unilbrk/lbrktables.h: Likewise.
10124         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
10125         LBP_CP. Implement rule LB30.
10126         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
10127         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
10128         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
10129         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
10130         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
10131         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
10132         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
10133         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
10134         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
10135         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
10136         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
10137         bits instead of 16 bits in the code1 and code2 of each composition
10138         rule.
10139         (uc_composition): Update for Unicode 5.2.0.
10140         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
10141         * lib/uninorm/decomposition-table2.h: Likewise.
10142         * lib/uniwbrk/wbrkprop.h: Likewise.
10143         * tests/unicase/test-cased.c: Likewise.
10144         * tests/unicase/test-ignorable.c: Likewise.
10145         * tests/unicase/test-uc_tolower.c: Likewise.
10146         * tests/unicase/test-uc_totitle.c: Likewise.
10147         * tests/unicase/test-uc_toupper.c: Likewise.
10148         * tests/unictype/test-categ_C.c: Likewise.
10149         * tests/unictype/test-categ_Cf.c: Likewise.
10150         * tests/unictype/test-categ_Cn.c: Likewise.
10151         * tests/unictype/test-categ_L.c: Likewise.
10152         * tests/unictype/test-categ_Ll.c: Likewise.
10153         * tests/unictype/test-categ_Lm.c: Likewise.
10154         * tests/unictype/test-categ_Lo.c: Likewise.
10155         * tests/unictype/test-categ_Lu.c: Likewise.
10156         * tests/unictype/test-categ_M.c: Likewise.
10157         * tests/unictype/test-categ_Mc.c: Likewise.
10158         * tests/unictype/test-categ_Mn.c: Likewise.
10159         * tests/unictype/test-categ_N.c: Likewise.
10160         * tests/unictype/test-categ_Nd.c: Likewise.
10161         * tests/unictype/test-categ_Nl.c: Likewise.
10162         * tests/unictype/test-categ_No.c: Likewise.
10163         * tests/unictype/test-categ_P.c: Likewise.
10164         * tests/unictype/test-categ_Pd.c: Likewise.
10165         * tests/unictype/test-categ_Po.c: Likewise.
10166         * tests/unictype/test-categ_S.c: Likewise.
10167         * tests/unictype/test-categ_Sc.c: Likewise.
10168         * tests/unictype/test-categ_So.c: Likewise.
10169         * tests/unictype/test-ctype_alnum.c: Likewise.
10170         * tests/unictype/test-ctype_alpha.c: Likewise.
10171         * tests/unictype/test-ctype_graph.c: Likewise.
10172         * tests/unictype/test-ctype_lower.c: Likewise.
10173         * tests/unictype/test-ctype_print.c: Likewise.
10174         * tests/unictype/test-ctype_punct.c: Likewise.
10175         * tests/unictype/test-ctype_upper.c: Likewise.
10176         * tests/unictype/test-decdigit.h: Likewise.
10177         * tests/unictype/test-digit.h: Likewise.
10178         * tests/unictype/test-numeric.h: Likewise.
10179         * tests/unictype/test-pr_alphabetic.c: Likewise.
10180         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10181         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10182         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
10183         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10184         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10185         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10186         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10187         * tests/unictype/test-pr_combining.c: Likewise.
10188         * tests/unictype/test-pr_composite.c: Likewise.
10189         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10190         * tests/unictype/test-pr_dash.c: Likewise.
10191         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10192         * tests/unictype/test-pr_deprecated.c: Likewise.
10193         * tests/unictype/test-pr_diacritic.c: Likewise.
10194         * tests/unictype/test-pr_extender.c: Likewise.
10195         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10196         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10197         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10198         * tests/unictype/test-pr_id_continue.c: Likewise.
10199         * tests/unictype/test-pr_id_start.c: Likewise.
10200         * tests/unictype/test-pr_ideographic.c: Likewise.
10201         * tests/unictype/test-pr_ignorable_control.c: Likewise.
10202         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
10203         * tests/unictype/test-pr_lowercase.c: Likewise.
10204         * tests/unictype/test-pr_numeric.c: Likewise.
10205         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10206         * tests/unictype/test-pr_punctuation.c: Likewise.
10207         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10208         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10209         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10210         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10211         * tests/unictype/test-pr_uppercase.c: Likewise.
10212         * tests/unictype/test-pr_xid_continue.c: Likewise.
10213         * tests/unictype/test-pr_xid_start.c: Likewise.
10214         * tests/unictype/test-pr_zero_width.c: Likewise.
10215         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10216         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
10217         changed behaviour: line breaking is now disallowed between a letter
10218         or '=' and '('.
10219         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10220         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10221         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
10222         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
10223         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10224         lib/uniwidth/width.c.
10225         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
10226         without comments, but with the original copyright notice.
10227         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10228         changes.
10229         * lib/unictype/categ_Cc.h: Likewise.
10230         * lib/unictype/categ_Co.h: Likewise.
10231         * lib/unictype/categ_Cs.h: Likewise.
10232         * lib/unictype/categ_Lt.h: Likewise.
10233         * lib/unictype/categ_Me.h: Likewise.
10234         * lib/unictype/categ_Pc.h: Likewise.
10235         * lib/unictype/categ_Pe.h: Likewise.
10236         * lib/unictype/categ_Pf.h: Likewise.
10237         * lib/unictype/categ_Pi.h: Likewise.
10238         * lib/unictype/categ_Ps.h: Likewise.
10239         * lib/unictype/categ_Sk.h: Likewise.
10240         * lib/unictype/categ_Sm.h: Likewise.
10241         * lib/unictype/categ_Z.h: Likewise.
10242         * lib/unictype/categ_Zl.h: Likewise.
10243         * lib/unictype/categ_Zp.h: Likewise.
10244         * lib/unictype/categ_Zs.h: Likewise.
10245         * lib/unictype/ctype_blank.h: Likewise.
10246         * lib/unictype/ctype_cntrl.h: Likewise.
10247         * lib/unictype/ctype_digit.h: Likewise.
10248         * lib/unictype/ctype_space.h: Likewise.
10249         * lib/unictype/ctype_xdigit.h: Likewise.
10250         * lib/unictype/mirror.h: Likewise.
10251         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10252         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10253         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10254         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10255         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10256         * lib/unictype/pr_bidi_control.h: Likewise.
10257         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10258         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10259         * lib/unictype/pr_bidi_pdf.h: Likewise.
10260         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10261         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10262         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10263         * lib/unictype/pr_format_control.h: Likewise.
10264         * lib/unictype/pr_hex_digit.h: Likewise.
10265         * lib/unictype/pr_hyphen.h: Likewise.
10266         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10267         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10268         * lib/unictype/pr_iso_control.h: Likewise.
10269         * lib/unictype/pr_join_control.h: Likewise.
10270         * lib/unictype/pr_left_of_pair.h: Likewise.
10271         * lib/unictype/pr_line_separator.h: Likewise.
10272         * lib/unictype/pr_math.h: Likewise.
10273         * lib/unictype/pr_non_break.h: Likewise.
10274         * lib/unictype/pr_not_a_character.h: Likewise.
10275         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10276         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10277         * lib/unictype/pr_other_id_continue.h: Likewise.
10278         * lib/unictype/pr_other_id_start.h: Likewise.
10279         * lib/unictype/pr_other_lowercase.h: Likewise.
10280         * lib/unictype/pr_other_math.h: Likewise.
10281         * lib/unictype/pr_other_uppercase.h: Likewise.
10282         * lib/unictype/pr_paired_punctuation.h: Likewise.
10283         * lib/unictype/pr_paragraph_separator.h: Likewise.
10284         * lib/unictype/pr_pattern_syntax.h: Likewise.
10285         * lib/unictype/pr_pattern_white_space.h: Likewise.
10286         * lib/unictype/pr_private_use.h: Likewise.
10287         * lib/unictype/pr_quotation_mark.h: Likewise.
10288         * lib/unictype/pr_radical.h: Likewise.
10289         * lib/unictype/pr_soft_dotted.h: Likewise.
10290         * lib/unictype/pr_space.h: Likewise.
10291         * lib/unictype/pr_titlecase.h: Likewise.
10292         * lib/unictype/pr_variation_selector.h: Likewise.
10293         * lib/unictype/pr_white_space.h: Likewise.
10294         * lib/unictype/sy_c_ident.h: Likewise.
10295         * lib/unictype/sy_c_whitespace.h: Likewise.
10296         * lib/unictype/sy_java_whitespace.h: Likewise.
10297         * modules/uni*/*: Bump version number of expected libunistring version.
10298         Reported by Simon Josefsson.
10299
10300 2011-01-09  Karl Heuer  <kwzh@gnu.org>
10301
10302         useless-if-before-free: fix typo in --help and make the internal,
10303         automatic version date update process work once again.
10304         --help output contained a NUL character instead of the
10305         backslash-zero that was intended.  Also, the "must lie within
10306         the first 8 lines" line is on line 9, and hence not getting
10307         automatically updated.
10308         * build-aux/useless-if-before-free: Fix the former by adding a
10309         backslash, and the latter by condensing the three lines of what-it-does
10310         to a single line, leaving one line of slack for the future.
10311
10312 2011-01-09  Bruno Haible  <bruno@clisp.org>
10313
10314         uniwidth/width: Fix width of U+1D173..U+1D17A.
10315         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
10316         symbolic_width, output_width_property_test): New functions.
10317         (main): Invoke output_nonspacing_property, output_width_property_test.
10318         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
10319         U+1D173..U+1D17A.
10320         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
10321         1.
10322         * modules/uniwidth/*: Bump version number of expected libunistring
10323         version.
10324         * modules/unilbrk/*: Likewise.
10325
10326 2011-01-08  Bruno Haible  <bruno@clisp.org>
10327
10328         uninorm tests: Preserve copyright of Unicode data file.
10329         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
10330         Mention modifications.
10331
10332 2011-01-08  Bruno Haible  <bruno@clisp.org>
10333
10334         gen-uni-tables: Prepare for Unicode 5.2.0.
10335         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
10336         (debug_output_lbp, output_lbp): Update.
10337
10338 2011-01-08  Bruno Haible  <bruno@clisp.org>
10339
10340         unilbrk: Clarify gen-uni-tables.c code.
10341         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
10342         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
10343         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
10344
10345 2011-01-07  Bruno Haible  <bruno@clisp.org>
10346
10347         strtod: Restore errno when successfully parsing Infinity or NaN.
10348         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
10349         restore the original errno.
10350
10351 2011-01-07  Bruno Haible  <bruno@clisp.org>
10352
10353         remove test: Avoid failure on HP-UX 11.
10354         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
10355
10356 2011-01-07  Bruno Haible  <bruno@clisp.org>
10357
10358         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
10359         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
10360         error code.
10361
10362 2011-01-07  Pádraig Brady <P@draigBrady.com>
10363
10364         ignore-value: fixup comments, and add Eric Blake
10365         as an author since he rewrote the macros.
10366         * lib/ignore-value.h (ignore_value):  State that
10367         we now support aggregates.  Also specify exactly
10368         when the GCC warn_unused_result feature was added.
10369
10370 2011-01-06  Eric Blake  <eblake@redhat.com>
10371
10372         ignore-value: support aggregate types
10373         * lib/ignore-value.h (ignore_value): Provide separate gcc
10374         definition.
10375         * modules/ignore-value-tests: New test module.
10376         * tests/test-ignore-value.c: New test.
10377
10378         maint.mk: improve sc_prohibit_strcmp regex
10379         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
10380         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
10381         definition of STRNEQ.
10382
10383         signal: work around Haiku issue with SIGBUS
10384         * lib/siglist.h: Add comment.
10385         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
10386         strsignal's favoring of SIGSEGV.
10387         * tests/test-signal.c (main): Avoid test failure.
10388         * doc/posix-headers/signal.texi (signal.h): Document the issue.
10389         Reported by Scott McCreary.
10390
10391         maint.mk: add pre-release check to ensure submodule commits are public
10392         * top/maint.mk (public-submodule-commit): New rule.
10393         (submodule-checks): New variable.
10394         (alpha beta stable): Depend on the variable.
10395
10396 2011-01-05  Pádraig Brady <P@draigBrady.com>
10397         and Jim Meyering  <meyering@redhat.com>
10398
10399         ignore-value: make ignore_value more generic; deprecate ignore_ptr
10400         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
10401         (ATTRIBUTE_DEPRECATED): Define.
10402         (_ignore_case): New function.
10403         (ignore_value): New macro, to replace the old function.
10404         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
10405         * modules/ignore-value (Depends-on): Add stdint.
10406
10407 2011-01-04  Eric Blake  <eblake@redhat.com>
10408
10409         doc: regenerate INSTALL
10410         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
10411         @firstparagraphindent support, now that autoconf dropped it.
10412         (INSTALL_PRELUDE): Reinstate old macro.
10413         * doc/install.texi: Resync from autoconf.
10414         * doc/INSTALL: Reflect recent autoconf update.
10415         * doc/INSTALL.ISO: Likewise.
10416         * doc/INSTALL.UTF-8: Likewise.
10417         Reported by Karl Berry.
10418
10419 2011-01-04  Bruce Korb  <address@hidden>
10420
10421         git-version-gen: avoid a sub-shell
10422         * build-aux/git-version-gen: Redirect stderr in `...` via
10423         "exec 2>...", rather than via an added sub-shell.
10424
10425 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
10426
10427         git-version-gen: use (...) rather than sh -c '...'
10428         * build-aux/git-version-gen: Rather than hard-coding a shell's name
10429         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
10430
10431 2011-01-03  Jim Meyering  <meyering@redhat.com>
10432
10433         git-version-gen: convert leading TABs to spaces
10434         * build-aux/git-version-gen: Expand leading TABs.
10435
10436         git-version-gen: handle failed "git rev-list"
10437         * build-aux/git-version-gen: Rather than leaking a "fatal" error
10438         from git and proceeding as if it had succeeded but printed no SHA1
10439         checksums, suppress the diagnostic and handle the failure.
10440         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
10441
10442         git-version-gen: include command name in one more diagnostic
10443         * build-aux/git-version-gen: When the required .tarball-version file
10444         was missing or unreadable, you might see the diagnostic from "cat",
10445         but no trace of the name of the invoking script.  Now, you still see
10446         the diagnostic from cat, but also get one from "git-version-gen: ".
10447         Inspired by a patch from Bruce Korb.
10448
10449         update-copyright: adjust test to match changed code
10450         * tests/test-update-copyright.sh: Change test's expected output
10451         to match new actual output.
10452
10453 2011-01-02  Bruno Haible  <bruno@clisp.org>
10454
10455         getlogin_r: Avoid test failure on HP-UX 11.
10456         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
10457         ERANGE when the second argument is zero.
10458         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
10459         portability problem.
10460
10461 2011-01-02  Bruce Korb  <bkorb@gnu.org>
10462
10463         * build-aux/update-copyright: doc Simon's changes
10464
10465 2011-01-02  Simon Josefsson  <simon@josefsson.org>
10466
10467         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
10468         environment variable.
10469
10470 2011-01-02  Bruno Haible  <bruno@clisp.org>
10471
10472         unigbrk: Avoid gcc warnings.
10473         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
10474         unused variable.
10475         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
10476         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
10477         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
10478         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
10479         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
10480         Change type of first argument to 'const char *'.
10481         (main): Remove unused variable.
10482         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
10483         type of first argument to 'const char *'.
10484         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
10485         Likewise.
10486         (main): Change type of variable 's'.
10487         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
10488         to 'int'.
10489
10490 2011-01-02  Bruno Haible  <bruno@clisp.org>
10491
10492         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
10493         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
10494         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
10495         bug.
10496         * lib/pwrite.c: Undo 2010-12-31 patch.
10497         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
10498
10499 2011-01-02  Bruno Haible  <bruno@clisp.org>
10500
10501         pread: Fix test whether it works.
10502         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
10503
10504 2011-01-02  Bruno Haible  <bruno@clisp.org>
10505
10506         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
10507         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
10508         ends in "6". Don't require a specific month name. Try also the locale
10509         names found on HP-UX 11 and Solaris 7.
10510
10511 2011-01-02  Bruno Haible  <bruno@clisp.org>
10512
10513         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
10514         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
10515         C linkage.
10516         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
10517
10518 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10519
10520         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
10521         for consistency, since the "cluster" term is not used elsewhere.
10522         * lib/unigbrk.in.h: Update name.
10523         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
10524         * lib/unigbrk/u16-grapheme-next.c: Update name.
10525         * lib/unigbrk/u16-grapheme-prev.c: Update name.
10526         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
10527         * lib/unigbrk/u32-grapheme-next.c: Update name.
10528         * lib/unigbrk/u32-grapheme-prev.c: Update name.
10529         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
10530         * lib/unigbrk/u8-grapheme-next.c: Update name.
10531         * lib/unigbrk/u8-grapheme-prev.c: Update name.
10532         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
10533         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
10534         Suggested by Bruno Haible.
10535
10536 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10537
10538         Remove module 'u8-grapheme-len' as too redundant with
10539         'u8-grapheme-next'.
10540         * modules/unigbrk/u8-grapheme-len: Delete file.
10541         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
10542         * lib/unigbrk.in.h: Remove prototype for deleted function.
10543         * lib/unigbrk/u8-grapheme-len.c: Delete file.
10544         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
10545
10546         Remove module 'u16-grapheme-len' as too redundant with
10547         'u16-grapheme-next'.
10548         * modules/unigbrk/u16-grapheme-len: Delete file.
10549         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
10550         * lib/unigbrk.in.h: Remove prototype for deleted function.
10551         * lib/unigbrk/u16-grapheme-len.c: Delete file.
10552         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
10553
10554         Remove module 'u32-grapheme-len' as too redundant with
10555         'u32-grapheme-next'.
10556         * modules/unigbrk/u32-grapheme-len: Delete file.
10557         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
10558         * lib/unigbrk.in.h: Remove prototype for deleted function.
10559         * lib/unigbrk/u32-grapheme-len.c: Delete file.
10560         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
10561
10562         Suggested by Bruno Haible.
10563
10564 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10565
10566         * unigbrk.in.h: Fix typo: "ben" => "been".
10567         Reported by Bruno Haible.
10568
10569 2011-01-01  Jim Meyering  <meyering@redhat.com>
10570
10571         maint: update almost all copyright ranges to include 2011
10572         Run the new "make update-copyright" rule.
10573
10574 2011-01-01  Jim Meyering  <meyering@redhat.com>
10575
10576         maint: update-copyright: exempt doc/INSTALL*
10577         * Makefile (update-copyright): Also exclude doc/INSTALL*,
10578         since they are generated.  Suggested by Bruno Haible.
10579
10580 2011-01-01  Jim Meyering  <meyering@redhat.com>
10581
10582         maint: refine the update-copyright rule
10583         * Makefile (update-copyright): Also exclude any file that includes
10584         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
10585         code that merely generates the comment.
10586
10587 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
10588
10589         New module 'u8-grapheme-len'.
10590         * modules/unigbrk/u8-grapheme-len: New file.
10591         * modules/unigbrk/u8-grapheme-len-tests: New file.
10592         * lib/unigbrk.in.h: Add prototype for new function.
10593         * lib/unigbrk/u8-grapheme-len.c: New file.
10594         * tests/unigbrk/test-u8-grapheme-len.c: New file.
10595
10596         New module 'u16-grapheme-len'.
10597         * modules/unigbrk/u16-grapheme-len: New file.
10598         * modules/unigbrk/u16-grapheme-len-tests: New file.
10599         * lib/unigbrk.in.h: Add prototype for new function.
10600         * lib/unigbrk/u16-grapheme-len.c: New file.
10601         * tests/unigbrk/test-u16-grapheme-len.c: New file.
10602
10603         New module 'u32-grapheme-len'.
10604         * modules/unigbrk/u32-grapheme-len: New file.
10605         * modules/unigbrk/u32-grapheme-len-tests: New file.
10606         * lib/unigbrk.in.h: Add prototype for new function.
10607         * lib/unigbrk/u32-grapheme-len.c: New file.
10608         * tests/unigbrk/test-u32-grapheme-len.c: New file.
10609
10610         New module 'u8-grapheme-next'.
10611         * modules/unigbrk/u8-grapheme-next: New file.
10612         * modules/unigbrk/u8-grapheme-next-tests: New file.
10613         * lib/unigbrk.in.h: Add prototype for new function.
10614         * lib/unigbrk/u8-grapheme-next.c: New file.
10615         * tests/unigbrk/test-u8-grapheme-next.c: New file.
10616
10617         New module 'u16-grapheme-next'.
10618         * modules/unigbrk/u16-grapheme-next: New file.
10619         * modules/unigbrk/u16-grapheme-next-tests: New file.
10620         * lib/unigbrk.in.h: Add prototype for new function.
10621         * lib/unigbrk/u16-grapheme-next.c: New file.
10622         * tests/unigbrk/test-u16-grapheme-next.c: New file.
10623
10624         New module 'u32-grapheme-next'.
10625         * modules/unigbrk/u32-grapheme-next: New file.
10626         * modules/unigbrk/u32-grapheme-next-tests: New file.
10627         * lib/unigbrk.in.h: Add prototype for new function.
10628         * lib/unigbrk/u32-grapheme-next.c: New file.
10629         * tests/unigbrk/test-u32-grapheme-next.c: New file.
10630
10631         New module 'u8-grapheme-prev'.
10632         * modules/unigbrk/u8-grapheme-prev: New file.
10633         * modules/unigbrk/u8-grapheme-prev-tests: New file.
10634         * lib/unigbrk.in.h: Add prototype for new function.
10635         * lib/unigbrk/u8-grapheme-prev.c: New file.
10636         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
10637
10638         New module 'u16-grapheme-prev'.
10639         * modules/unigbrk/u16-grapheme-prev: New file.
10640         * modules/unigbrk/u16-grapheme-prev-tests: New file.
10641         * lib/unigbrk.in.h: Add prototype for new function.
10642         * lib/unigbrk/u16-grapheme-prev.c: New file.
10643         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
10644
10645         New module 'u32-grapheme-prev'.
10646         * modules/unigbrk/u32-grapheme-prev: New file.
10647         * modules/unigbrk/u32-grapheme-prev-tests: New file.
10648         * lib/unigbrk.in.h: Add prototype for new function.
10649         * lib/unigbrk/u32-grapheme-prev.c: New file.
10650         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
10651
10652         New module 'u8-grapheme-breaks'.
10653         * modules/unigbrk/u8-grapheme-breaks: New file.
10654         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
10655         * lib/unigbrk.in.h: Add prototype for new function.
10656         * lib/unigbrk/u8-grapheme-breaks.c: New file.
10657         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
10658
10659         New module 'u16-grapheme-breaks'.
10660         * modules/unigbrk/u16-grapheme-breaks: New file.
10661         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
10662         * lib/unigbrk.in.h: Add prototype for new function.
10663         * lib/unigbrk/u16-grapheme-breaks.c: New file.
10664         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
10665
10666         New module 'u32-grapheme-breaks'.
10667         * modules/unigbrk/u32-grapheme-breaks: New file.
10668         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
10669         * lib/unigbrk.in.h: Add prototype for new function.
10670         * lib/unigbrk/u32-grapheme-breaks.c: New file.
10671         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
10672
10673         New module 'ulc-grapheme-breaks'.
10674         * modules/unigbrk/ulc-grapheme-breaks: New file.
10675         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
10676         * m4/locale-ar.m4: New file.
10677         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
10678         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
10679         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
10680
10681 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
10682
10683         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
10684         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
10685         modified how this file was generated before I initially submitted
10686         the module, but failed to regenerate it.  This meant that several
10687         of the level2 entries were wrong.
10688         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
10689         Remove the division-by-2 that is folded into the table now that
10690         gbrkprop.h has been regenerated properly.  Now -1 entries are
10691         handled correctly.
10692
10693         New module 'unigbrk/uc-gbrk-prop-tests'.
10694         * modules/unigbrk/uc-gbrk-prop-tests: New file.
10695         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
10696         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
10697         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
10698
10699 2011-01-01  Bruno Haible  <bruno@clisp.org>
10700
10701         Avoid use of hexadecimal escapes.
10702         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
10703         instead of hexadecimal escapes.
10704
10705 2011-01-01  Jim Meyering  <meyering@redhat.com>
10706
10707         maint: new rule to update copyright year ranges
10708         * Makefile (update-copyright): New rule.
10709
10710         maint: indent with TABs in Makefile
10711         * Makefile: Expand leading sequences of spaces to TABs
10712
10713         version-etc: update the copyright year it reports
10714         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
10715
10716 2010-12-31  Bruno Haible  <bruno@clisp.org>
10717
10718         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
10719         * lib/isfinite.c (zerof, zerod, zerol): New variables.
10720         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
10721         zero.
10722
10723 2010-12-31  Bruno Haible  <bruno@clisp.org>
10724
10725         pwrite: Work around HP-UX 11.11 bug.
10726         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
10727         works and set REPLACE_PWRITE if not.
10728         * lib/pwrite.c (pwrite): Add an implementation that uses the system
10729         function.
10730         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
10731
10732 2010-12-31  Bruno Haible  <bruno@clisp.org>
10733
10734         pread: Work around HP-UX 11 bugs.
10735         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
10736         and set REPLACE_PREAD if not.
10737         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
10738
10739 2010-12-31  Eric Blake  <eblake@redhat.com>
10740
10741         nl_langinfo: fix YESEXPR on Irix 6.5
10742         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
10743         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
10744         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
10745         it.
10746
10747 2010-12-31  Bruno Haible  <bruno@clisp.org>
10748
10749         iconv: Document HP-UX 11 bug.
10750         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
10751
10752 2010-12-31  Bruno Haible  <bruno@clisp.org>
10753
10754         ldexpl: Fix link error on HP-UX 11.
10755         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
10756         LDEXPL_LIBM, using $ISNANL_LIBM.
10757
10758 2010-12-31  Eric Blake  <eblake@redhat.com>
10759
10760         ftello: avoid compilation failure with SunStudio c89
10761         * lib/ftello.c (ftello): Use lseek, not llseek.
10762
10763         tests: avoid failing coreutils tests on cygwin
10764         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
10765         (create_exe_shims_): Return 0 when skipping.
10766
10767 2010-12-31  Bruno Haible  <bruno@clisp.org>
10768
10769         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
10770         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
10771
10772 2010-12-31  Bruno Haible  <bruno@clisp.org>
10773
10774         waitpid: Fix link error in C++ mode.
10775         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
10776
10777 2010-12-31  Bruno Haible  <bruno@clisp.org>
10778
10779         isnan: Use GCC built-ins when possible.
10780         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
10781         __builtin_isnan.
10782         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
10783         (isnan): Define using GCC built-ins for GCC >= 4.0.
10784
10785 2010-12-31  Bruno Haible  <bruno@clisp.org>
10786
10787         isnand: Fix mistake.
10788         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
10789         __builtin_isnand.
10790
10791 2010-12-31  Bruno Haible  <bruno@clisp.org>
10792
10793         open: Avoid C++ error on HP-UX 11.
10794         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
10795
10796 2010-12-31  Bruno Haible  <bruno@clisp.org>
10797
10798         time_r: Add missing declarations on HP-UX 11.
10799         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
10800         instead of HAVE_LOCALTIME_R.
10801         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
10802         HAVE_LOCALTIME_R always.
10803         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
10804         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
10805         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
10806         HAVE_LOCALTIME_R.
10807         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
10808         * doc/posix-functions/localtime_r.texi: Likewise.
10809
10810 2010-12-29  Eric Blake  <eblake@redhat.com>
10811
10812         mountlist: tweak previous commit
10813         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
10814         Reported by Paul Eggert.
10815
10816         mountlist: fix local drive detection on cygwin
10817         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
10818         that works for cygwin.
10819
10820 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
10821
10822         ftoastr, snprintf: ftoastr + snprintf module
10823         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
10824         since the snprintf module now should be good enough here.
10825         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
10826         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
10827         and gl_MODULE_INDICATOR([snprintf]), but the former enables
10828         GNULIB_SNPRINTF only for the test directory, and the latter
10829         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
10830         seems to suffice by itself.
10831
10832 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
10833
10834         alloca: one step towards thread-safety
10835         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
10836         need for a static variable.  All callers changed.  This does not
10837         make the alloca replacement thread-safe, but it's one step.
10838
10839         tests: minor indenting change
10840         * tests/init.sh: Sync from coreutils housekeeping patch
10841         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
10842         to keep lines within 80 columns.
10843
10844 2010-12-28  Jim Meyering  <meyering@redhat.com>
10845
10846         regex: don't infloop on persistent failing calloc
10847         * lib/regexec.c (build_trtable): Return failure indication upon
10848         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
10849         In glibc, this was fixed for version 2.13:
10850         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
10851
10852 2010-12-28  Bruno Haible  <bruno@clisp.org>
10853             Paul Eggert <eggert@cs.ucla.edu>
10854
10855         linkat: Make implementation robust against system behaviour variations.
10856         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
10857         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
10858         way, and to -2 if it needs a generic runtime test.
10859         * lib/linkat.c (solaris_optimized_link_immediate,
10860         solaris_optimized_link_follow): New functions.
10861         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
10862         (check_same_link): Use it.
10863
10864 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
10865
10866         New module 'unigbrk/base'.
10867         * modules/unigbrk/base: New file.
10868         * lib/unigbrk.in.h: New file.
10869
10870         New module 'unigbrk/uc-gbrk-prop'.
10871         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
10872         * modules/unigbrk/uc-gbrk-prop: New file.
10873         * lib/unigbrk/gbrkprop.h: New file.
10874         * lib/unigbrk/uc-gbrk-prop.c: New file.
10875
10876         New module 'unigbrk/uc-is-grapheme-break'.
10877         * modules/unigbrk/uc-is-grapheme-break: New file.
10878         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
10879         * lib/unigbrk/uc-is-grapheme-break.c: New file.
10880         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
10881         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
10882         * tests/unigbrk/GraphemeBreakTest.txt: New file.
10883
10884         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
10885
10886 2010-12-27  Bruno Haible  <bruno@clisp.org>
10887
10888         linkat test: Avoid failure on Solaris 11 2010-11.
10889         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
10890
10891 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
10892
10893         utimens: work around glibc rounding bug on more platforms
10894         * lib/utimens.c (fdutimens): Work around rounding bug even if
10895         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
10896         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
10897
10898 2010-12-27  Bruno Haible  <bruno@clisp.org>
10899
10900         select tests: Improve comments.
10901         * tests/test-select.c (do_select): Add comments.
10902
10903 2010-12-27  Bruno Haible  <bruno@clisp.org>
10904
10905         select tests: Safer way of handling timeout.
10906         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
10907         at every invocation.
10908
10909 2010-12-27  Bruno Haible  <bruno@clisp.org>
10910
10911         select tests: Use 'bool' where appropriate.
10912         * tests/test-select.c (connect_to_socket): Change argument type to
10913         'bool'.
10914
10915 2010-12-27  Bruno Haible  <bruno@clisp.org>
10916
10917         select tests: Use existing modules.
10918         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
10919         (configure.ac): Don't test for unistd.h.
10920         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
10921         declared in <unistd.h>.
10922
10923 2010-12-27  Bruno Haible  <bruno@clisp.org>
10924
10925         mbrtowc: Work around a Solaris 7 bug.
10926         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
10927         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
10928         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
10929         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
10930         MBRTOWC_NULL_ARG1_BUG.
10931         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
10932         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
10933         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
10934         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
10935
10936 2010-12-27  Jim Meyering  <meyering@redhat.com>
10937
10938         read-file.c: tweak syntax
10939         * lib/read-file.c (fread_file): Remove space after "*" in function
10940         definitions.
10941
10942 2010-12-27  Bruno Haible  <bruno@clisp.org>
10943
10944         times test: Avoid gcc warnings on OSF/1.
10945         * tests/test-times.c (main): Cast printf arguments from clock_t to
10946         'long int'.
10947
10948 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
10949
10950         utimens: work around glibc rounding bug on older Linux kernels
10951         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
10952         on Linux with a glibc whose utimes might not work, then work
10953         around a longstanding glibc bug involving rounding rather than
10954         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
10955         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
10956
10957 2010-12-26  Bruno Haible  <bruno@clisp.org>
10958
10959         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
10960         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
10961         _GL_CXXALIAS_SYS.
10962         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10963
10964 2010-12-26  Bruno Haible  <bruno@clisp.org>
10965
10966         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
10967         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
10968         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
10969         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
10970         looking for the declaration.
10971         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
10972         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
10973         problem.
10974         * doc/posix-functions/inet_pton.texi: Likewise.
10975
10976 2010-12-26  Bruno Haible  <bruno@clisp.org>
10977
10978         arpa_inet: Use the common idioms with C++ support.
10979         * lib/arpa_inet.in.h: Include c++defs.h.
10980         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
10981         support.
10982         * modules/arpa_inet (Depends-on): Add c++defs.
10983         (Makefile.am): Substitute the contents of c++defs.h.
10984         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
10985         * modules/arpa_inet-c++-tests: New file.
10986         * tests/test-arpa_inet-c++.cc: New file.
10987
10988 2010-12-25  Bruno Haible  <bruno@clisp.org>
10989
10990         Fix more C++ link errors on Solaris 8.
10991         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
10992         $(LIB_EACCESS).
10993         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
10994         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
10995         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
10996         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
10997         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
10998
10999 2010-12-25  Bruno Haible  <bruno@clisp.org>
11000
11001         printf-posix: Fix link error when a non-GCC compiler is used.
11002         * lib/stdio.in.h (printf): When not using GCC, override printf
11003         correctly.
11004         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11005
11006 2010-12-25  Bruno Haible  <bruno@clisp.org>
11007
11008         strerror_r-posix: Update doc.
11009         * doc/posix-functions/strerror_r.texi: Update doc about the return
11010         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
11011
11012 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
11013
11014         utimens: simplify the logic of the previous change
11015         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
11016         This should not affect whether the test succeeds or fails.
11017
11018         utimens: configure better on hosts with NFS clock skew
11019         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
11020         uses the clock of the local host.  It might use the clock of the
11021         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
11022         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11023
11024 2010-12-25  Bruno Haible  <bruno@clisp.org>
11025
11026         ptsname test: Avoid failure on Solaris.
11027         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
11028         open a pseudo-terminal; don't use BSD-style ptys.
11029         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
11030
11031 2010-12-25  Bruno Haible  <bruno@clisp.org>
11032
11033         ptsname: Avoid ERANGE failure on some systems.
11034         * lib/ptsname.c (buffer): Increase size.
11035
11036 2010-12-25  Bruno Haible  <bruno@clisp.org>
11037
11038         rename, renameat: Avoid test failures at NFS mounted locations.
11039         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
11040         so that subsequent mkdir calls succeed.
11041
11042 2010-12-25  Bruno Haible  <bruno@clisp.org>
11043
11044         iswblank: Fix C++ link error on Solaris 8.
11045         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
11046         _GL_FUNCDECL_SYS.
11047
11048 2010-12-25  Bruno Haible  <bruno@clisp.org>
11049
11050         unistd: Fix C++ link error on Solaris 8.
11051         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
11052
11053 2010-12-25  Bruno Haible  <bruno@clisp.org>
11054
11055         readlink doc: Mention an old glibc bug.
11056         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
11057
11058 2010-12-25  Bruno Haible  <bruno@clisp.org>
11059
11060         fcntl-h: Fix for use of C++ on glibc systems.
11061         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11062         also on glibc systems in C++ mode.
11063         Reported by Gary V. Vaughan <gary@gnu.org>.
11064
11065 2010-12-25  Bruno Haible  <bruno@clisp.org>
11066
11067         roundl-ieee: Make it work on OSF/1 5.1 with cc.
11068         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
11069
11070 2010-12-25  Bruno Haible  <bruno@clisp.org>
11071
11072         truncl-ieee: Make it work on OSF/1 5.1 with cc.
11073         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
11074         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
11075         test whether truncl works according to ISO C 99 with IEC 60559.
11076         * m4/truncl-ieee.m4: New file.
11077         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
11078         m4/signbit.m4.
11079         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
11080
11081 2010-12-25  Bruno Haible  <bruno@clisp.org>
11082
11083         ceill-ieee: Make it work on OSF/1 5.1 with cc.
11084         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
11085         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
11086         test whether ceill works according to ISO C 99 with IEC 60559.
11087         * m4/ceill-ieee.m4: New file.
11088         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
11089         m4/signbit.m4.
11090         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
11091
11092 2010-12-25  Bruno Haible  <bruno@clisp.org>
11093
11094         Ensure all prerequisites of <wchar.h> are included.
11095         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
11096         before <wchar.h>.
11097         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11098         gl_MBRLEN_NUL_RETVAL): Likewise.
11099         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11100         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
11101         AC_FUNC_MBRTOWC): Likewise.
11102         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11103         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
11104         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11105         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
11106         Likewise.
11107         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11108         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
11109         (gl_WCHAR_H): Improve comments.
11110         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11111
11112 2010-12-25  Bruno Haible  <bruno@clisp.org>
11113
11114         strtok_r: Fix C syntax error in autoconf macro.
11115         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
11116         characters in test program.
11117
11118 2010-12-24  Bruno Haible  <bruno@clisp.org>
11119
11120         ceil, trunc, round: Fix gcc warnings.
11121         * lib/ceil.c (MIN): Undefine before redefining.
11122         * lib/trunc.c (MIN): Likewise.
11123         * lib/round.c (MIN): Likewise.
11124         Include <math.h> first.
11125
11126 2010-12-24  Bruno Haible  <bruno@clisp.org>
11127
11128         select tests: Avoid failures on OSF/1 5.1.
11129         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
11130         failure of closing the last socket; it may fail with ECONNRESET.
11131
11132 2010-12-24  Eric Blake  <eblake@redhat.com>
11133
11134         stdint: avoid HP-UX 10.20 preprocessor bug
11135         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
11136         than #if.
11137         * tests/test-floor2.c (main): Likewise.
11138         Reported by Peter O'Gorman.
11139
11140         pipe: make obsoletion transition easier
11141         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
11142         * modules/pipe (Files): Include revived file.
11143         (Include): Drop reference, to mirror getdate's behavior.
11144
11145 2010-12-24  Bruno Haible  <bruno@clisp.org>
11146
11147         sys_socket: Hide mismatch of declarations on NonStop Kernel.
11148         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
11149         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11150         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11151
11152 2010-12-24  Bruno Haible  <bruno@clisp.org>
11153
11154         gethostname: Ensure declaration on NonStop Kernel.
11155         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
11156         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11157
11158 2010-12-24  Bruno Haible  <bruno@clisp.org>
11159
11160         sys_select: Ensure all necessary types on NonStop Kernel.
11161         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
11162         include <sys/time.h>.
11163         * doc/posix-headers/sys_select.texi: Mention that it's missing on
11164         NonStop Kernel.
11165         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11166
11167 2010-12-24  Bruno Haible  <bruno@clisp.org>
11168
11169         sys_select: Remove unneeded include.
11170         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
11171         have <sys/select.h>.
11172
11173 2010-12-24  Bruno Haible  <bruno@clisp.org>
11174
11175         gethostname: Provide a fallback for HOST_NAME_MAX.
11176         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
11177         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
11178         instead.
11179         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11180
11181 2010-12-24  Bruno Haible  <bruno@clisp.org>
11182
11183         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
11184         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
11185         (SA_RESTART): Likewise.
11186         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11187
11188 2010-12-24  Bruno Haible  <bruno@clisp.org>
11189
11190         signal: Define NSIG.
11191         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
11192         * tests/test-signal.c (nsig): New variable.
11193         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11194
11195 2010-12-24  Bruno Haible  <bruno@clisp.org>
11196
11197         rename, renameat: Avoid test failures on OSF/1 5.1.
11198         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
11199         alternative error codes.
11200         * tests/test-renameat.c (main): Likewise.
11201
11202 2010-12-24  Bruno Haible  <bruno@clisp.org>
11203
11204         *printf: Detect large precisions bug on Solaris 10/SPARC.
11205         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
11206         by Paul Eggert.
11207         * tests/test-snprintf-posix.h (test_function): Add this test code here
11208         too.
11209         * tests/test-sprintf-posix.h (test_function): Likewise.
11210         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11211         * tests/test-vasprintf-posix.c (test_function): Likewise.
11212         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
11213         around by gnulib.
11214         * doc/posix-functions/printf.texi: Likewise.
11215         * doc/posix-functions/snprintf.texi: Likewise.
11216         * doc/posix-functions/sprintf.texi: Likewise.
11217         * doc/posix-functions/vfprintf.texi: Likewise.
11218         * doc/posix-functions/vprintf.texi: Likewise.
11219         * doc/posix-functions/vsnprintf.texi: Likewise.
11220         * doc/posix-functions/vsprintf.texi: Likewise.
11221         * doc/posix-functions/dprintf.texi: Undo last commit.
11222         * doc/posix-functions/vdprintf.texi: Likewise.
11223
11224 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
11225
11226         tests: port test-fdutimensat.c to Solaris 8
11227         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
11228         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
11229         On Solaris 8, it fails with errno == ENOSYS, because there is no
11230         futimens (so it can't use the fd), and there is no lutimens (so it
11231         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
11232
11233         vsnprintf: make more consistent with snprintf; doc fixes
11234
11235         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
11236         the byte count return problem was promoted from the snprintf-posix
11237         to the snprintf module.
11238         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11239         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
11240         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
11241         * tests/test-snprintf.c (main): Check the byte count returned.
11242         * tests/test-vsnprintf.c (main): Likewise.
11243
11244 2010-12-23  Eric Blake  <eblake@redhat.com>
11245
11246         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
11247         * modules/sigpipe (License): Relax license.
11248
11249 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11250
11251         doc: document Solaris printf bug with large float precisions
11252         * doc/posix-functions/dprintf.texi (dprintf):
11253         * doc/posix-functions/fprintf.texi (fprintf):
11254         * doc/posix-functions/printf.texi (printf):
11255         * doc/posix-functions/snprintf.texi (snprintf):
11256         * doc/posix-functions/sprintf.texi (sprintf):
11257         * doc/posix-functions/vdprintf.texi (vdprintf):
11258         * doc/posix-functions/vfprintf.texi (vfprintf):
11259         * doc/posix-functions/vprintf.texi (vprintf):
11260         * doc/posix-functions/vsnprintf.texi (vsnprintf):
11261         * doc/posix-functions/vsprintf.texi (vsprintf):
11262         Mention that these functions mishandle large floating point
11263         precisions on Solaris 10.  The same bug is also present in Solaris
11264         8, and I assume earlier.  This causes "cd gnulib-tests; make
11265         check" to fail on Solaris 8 (and I assume, later) when building
11266         the latest coreutils, in test-vasprintf-posix's call to
11267         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
11268         the wide flavors (e.g., wprintf) so this patch just updates the
11269         documentation for the narrow ones.
11270
11271         test-posixtm.c: add two tests
11272         * tests/test-posixtm.c: Add two tests, to highlight the
11273         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
11274         around this bug; this is merely to document it.
11275
11276 2010-12-22  Bruno Haible  <bruno@clisp.org>
11277
11278         getlogin_r: Work around portability problem on OSF/1.
11279         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
11280         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
11281         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
11282         test for a truncated result.
11283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
11284         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
11285         * modules/getlogin_r (Depends-on): Add memchr.
11286         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
11287
11288 2010-12-22  Bruno Haible  <bruno@clisp.org>
11289
11290         ptsname: Avoid test failure on OSF/1 5.1.
11291         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
11292         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
11293         (same_slave): New function.
11294         (main): Use it to compare ptsname's result with the expected file name.
11295
11296 2010-12-22  Bruno Haible  <bruno@clisp.org>
11297
11298         Port extended stdio modules to HP NonStop Kernel.
11299         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
11300         macros.
11301         * lib/fbufmode.c: Update comments.
11302         * lib/fflush.c: Likewise.
11303         * lib/fpurge.c: Likewise.
11304         * lib/freadable.c: Likewise.
11305         * lib/freadahead.c: Likewise.
11306         * lib/freading.c: Likewise.
11307         * lib/freadptr.c: Likewise.
11308         * lib/freadseek.c: Likewise.
11309         * lib/fseeko.c: Likewise.
11310         * lib/fseterr.c: Likewise.
11311         * lib/fwritable.c: Likewise.
11312         * lib/fwriting.c: Likewise.
11313         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11314
11315 2010-12-22  Bruno Haible  <bruno@clisp.org>
11316
11317         ttyname_r: Work around bug on OSF/1 5.1.
11318         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
11319         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
11320         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
11321         present.
11322         * lib/ttyname_r.c (ttyname_r): Update comments.
11323
11324 2010-12-22  Bruno Haible  <bruno@clisp.org>
11325
11326         round: Implement result sign according to IEEE 754.
11327         * lib/round.c (MIN, MINUS_ZERO): New macros.
11328         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
11329         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
11330         * tests/test-round-ieee.c (main): Likewise.
11331         * tests/test-roundl-ieee.c (main): Likewise.
11332
11333         trunc: Implement result sign according to IEEE 754.
11334         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
11335         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
11336         * tests/test-trunc2.c: Include minus-zero.h.
11337         (MINUS_ZERO): New macro.
11338         (trunc_reference): Keep in sync with lib/trunc.c.
11339         * tests/test-truncf2.c: Include minus-zero.h.
11340         (MINUS_ZERO): New macro.
11341         (truncf_reference): Keep in sync with lib/trunc.c.
11342         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
11343         * tests/test-trunc-ieee.c (main): Likewise.
11344         * tests/test-truncl-ieee.c (main): Likewise.
11345
11346         ceil: Implement result sign according to IEEE 754.
11347         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
11348         (FUNC): Return -0.0 for -1 < x < 0.
11349         * tests/test-ceil2.c: Include minus-zero.h.
11350         (MINUS_ZERO): New macro.
11351         (ceil_reference): Keep in sync with lib/ceil.c.
11352         * tests/test-ceilf2.c: Include minus-zero.h.
11353         (MINUS_ZERO): New macro.
11354         (ceilf_reference): Keep in sync with lib/ceil.c.
11355         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
11356         * tests/test-ceil-ieee.c (main): Likewise.
11357         * tests/test-ceill-ieee.c (main): Likewise.
11358
11359         floor: Implement result sign according to IEEE 754.
11360         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
11361         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
11362         * tests/test-floorf2.c (floorf_reference): Likewise.
11363         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
11364         * tests/test-floor-ieee.c (main): Likewise.
11365         * tests/test-floorl-ieee.c (main): Likewise.
11366
11367 2010-12-22  Bruno Haible  <bruno@clisp.org>
11368
11369         getaddrinfo: Update doc.
11370         * doc/posix-functions/gai_strerror.texi: Return type is also different
11371         on AIX and HP-UX.
11372
11373 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11374
11375         getaddrinfo, inet_ntop: Update doc for Solaris.
11376         * doc/posix-functions/gai_strerror.texi: Return type is also an
11377         issue on Solaris 9 and earlier.
11378         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
11379         on Solaris 10 and earlier.
11380
11381 2010-12-21  Bruno Haible  <bruno@clisp.org>
11382
11383         New module 'roundl-ieee'.
11384         * modules/roundl-ieee: New file.
11385         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
11386         test whether roundl works according to ISO C 99 with IEC 60559.
11387         * m4/roundl-ieee.m4: New file.
11388         * modules/roundl-ieee-tests: New file.
11389         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
11390         * tests/test-roundl.c (main): Remove signbit tests.
11391         * modules/roundl-tests (Depends-on): Remove signbit.
11392         * doc/posix-functions/roundl.texi: Mention the new module.
11393
11394 2010-12-21  Bruno Haible  <bruno@clisp.org>
11395
11396         New module 'truncl-ieee'.
11397         * modules/truncl-ieee: New file.
11398         * modules/truncl-ieee-tests: New file.
11399         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
11400         * tests/test-truncl.c (main): Remove signbit tests.
11401         * modules/truncl-tests (Depends-on): Remove signbit.
11402         * doc/posix-functions/truncl.texi: Mention the new module.
11403
11404 2010-12-21  Bruno Haible  <bruno@clisp.org>
11405
11406         New module 'ceill-ieee'.
11407         * modules/ceill-ieee: New file.
11408         * modules/ceill-ieee-tests: New file.
11409         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
11410         * tests/test-ceill.c (main): Remove signbit tests.
11411         * modules/ceill-tests (Depends-on): Remove signbit.
11412         * doc/posix-functions/ceill.texi: Mention the new module.
11413
11414 2010-12-21  Bruno Haible  <bruno@clisp.org>
11415
11416         New module 'floorl-ieee'.
11417         * modules/floorl-ieee: New file.
11418         * modules/floorl-ieee-tests: New file.
11419         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
11420         * tests/test-floorl.c (main): Remove signbit tests.
11421         * modules/floorl-tests (Depends-on): Remove signbit.
11422         * doc/posix-functions/floorl.texi: Mention the new module.
11423
11424 2010-12-21  Bruno Haible  <bruno@clisp.org>
11425
11426         New module 'round-ieee'.
11427         * modules/round-ieee: New file.
11428         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
11429         whether round works according to ISO C 99 with IEC 60559.
11430         * m4/round-ieee.m4: New file.
11431         * modules/round-ieee-tests: New file.
11432         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
11433         * tests/test-round1.c (main): Remove signbit tests.
11434         * modules/round-tests (Depends-on): Remove 'signbit'.
11435         * doc/posix-functions/round.texi: Mention the new module.
11436
11437 2010-12-21  Bruno Haible  <bruno@clisp.org>
11438
11439         New module 'trunc-ieee'.
11440         * modules/trunc-ieee: New file.
11441         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
11442         whether trunc works according to ISO C 99 with IEC 60559.
11443         * m4/trunc-ieee.m4: New file.
11444         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
11445         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
11446         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
11447         * modules/trunc-ieee-tests: New file.
11448         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
11449         * tests/test-trunc1.c (main): Remove signbit tests.
11450         * modules/trunc-tests (Depends-on): Remove 'signbit'.
11451         * doc/posix-functions/trunc.texi: Mention the new module.
11452
11453 2010-12-21  Bruno Haible  <bruno@clisp.org>
11454
11455         New module 'ceil-ieee'.
11456         * modules/ceil-ieee: New file.
11457         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
11458         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
11459         ISO C 99 with IEC 60559.
11460         * m4/ceil-ieee.m4: New file.
11461         * modules/ceil (Files): Add lib/ceil.c.
11462         (Depends-on): Add 'float'.
11463         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11464         * lib/math.in.h (ceil): New declaration.
11465         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
11466         REPLACE_CEIL.
11467         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
11468         * modules/ceil-ieee-tests: New file.
11469         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
11470         * tests/test-math-c++.cc: Check the signature of 'ceil'.
11471         * doc/posix-functions/ceil.texi: Mention the new module.
11472
11473 2010-12-21  Bruno Haible  <bruno@clisp.org>
11474
11475         New module 'floor-ieee'.
11476         * modules/floor-ieee: New file.
11477         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
11478         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
11479         ISO C 99 with IEC 60559.
11480         * m4/floor-ieee.m4: New file.
11481         * modules/floor (Files): Add lib/floor.c.
11482         (Depends-on): Add 'float'.
11483         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11484         * lib/math.in.h (floor): New declaration.
11485         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
11486         REPLACE_FLOOR.
11487         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
11488         * modules/floor-ieee-tests: New file.
11489         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
11490         * tests/test-math-c++.cc: Check the signature of 'floor'.
11491         * doc/posix-functions/floor.texi: Mention the new module.
11492
11493 2010-12-21  Bruno Haible  <bruno@clisp.org>
11494
11495         New module 'roundf-ieee'.
11496         * modules/roundf-ieee: New file.
11497         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
11498         test whether roundf works according to ISO C 99 with IEC 60559.
11499         * m4/roundf-ieee.m4: New file.
11500         * modules/roundf-ieee-tests: New file.
11501         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
11502         * tests/test-roundf1.c (main): Remove signbit tests.
11503         * modules/roundf-tests (Depends-on): Remove 'signbit'.
11504         * doc/posix-functions/roundf.texi: Mention the new module.
11505
11506 2010-12-21  Bruno Haible  <bruno@clisp.org>
11507
11508         New module 'truncf-ieee'.
11509         * modules/truncf-ieee: New file.
11510         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
11511         test whether truncf works according to ISO C 99 with IEC 60559.
11512         * m4/truncf-ieee.m4: New file.
11513         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
11514         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
11515         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
11516         * modules/truncf-ieee-tests: New file.
11517         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
11518         * tests/test-truncf1.c (main): Remove signbit tests.
11519         * modules/truncf-tests (Depends-on): Remove 'signbit'.
11520         * doc/posix-functions/truncf.texi: Mention the new module.
11521
11522 2010-12-21  Bruno Haible  <bruno@clisp.org>
11523
11524         New module 'ceilf-ieee'.
11525         * modules/ceilf-ieee: New file.
11526         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
11527         test whether ceilf works according to ISO C 99 with IEC 60559.
11528         * m4/ceilf-ieee.m4: New file.
11529         * modules/ceilf-ieee-tests: New file.
11530         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
11531         * tests/test-ceilf1.c (main): Remove signbit tests.
11532         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
11533         * doc/posix-functions/ceilf.texi: Mention the new module.
11534
11535 2010-12-21  Bruno Haible  <bruno@clisp.org>
11536
11537         New module 'floorf-ieee'.
11538         * modules/floorf-ieee: New file.
11539         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
11540         test whether floorf works according to ISO C 99 with IEC 60559.
11541         * m4/floorf-ieee.m4: New file.
11542         * modules/floorf-ieee-tests: New file.
11543         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
11544         * tests/test-floorf1.c (main): Remove signbit tests.
11545         * modules/floorf-tests (Depends-on): Remove 'signbit'.
11546         * doc/posix-functions/floorf.texi: Mention the new module.
11547
11548 2010-12-21  Bruno Haible  <bruno@clisp.org>
11549
11550         Support for minus zero in autoconf macros.
11551         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
11552         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
11553         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
11554         * tests/minus-zero.h: Update comments.
11555
11556 2010-12-21  Bruno Haible  <bruno@clisp.org>
11557
11558         Tests for module 'ceil'.
11559         * modules/ceil-tests: New file.
11560         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
11561         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
11562
11563 2010-12-21  Bruno Haible  <bruno@clisp.org>
11564
11565         Tests for module 'floor'.
11566         * modules/floor-tests: New file.
11567         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
11568         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
11569
11570 2010-12-21  Bruno Haible  <bruno@clisp.org>
11571
11572         math: Fix indentation.
11573         * lib/math.in.h (floorf): Fix indentation.
11574
11575 2010-12-21  Bruno Haible  <bruno@clisp.org>
11576
11577         Fix cross-compilation guesses on Solaris.
11578         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
11579         not match "solaris2.10".
11580         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11581         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
11582         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
11583
11584 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
11585
11586         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
11587         This fixes a problem observed with the latest coreutils snapshot
11588         that caused a test to fail on Solaris 8.  src/csplit.c's call
11589         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
11590         earlier, instead of returning the number of bytes that would have
11591         been generated; this causes csplit to incorrectly report memory
11592         exhaustion.
11593         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
11594         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
11595         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
11596         comments to match.
11597         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
11598         Fix typo in matching older versions of Solaris: "solaris2.10"
11599         is matched by the shell pattern "solaris2.[0-9]*".  This matters
11600         only for guessing while cross-compiling.
11601         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
11602
11603 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
11604
11605         ftoastr: fix comment again
11606         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
11607         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
11608         Also, simplify example a bit by using flags = 0.
11609
11610 2010-12-20  Bruno Haible  <bruno@clisp.org>
11611
11612         round*, trunc*: Update documentation regarding glibc.
11613         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
11614         * doc/posix-functions/round.texi: Likewise.
11615         * doc/posix-functions/roundl.texi: Likewise.
11616         * doc/posix-functions/truncf.texi: Likewise.
11617         * doc/posix-functions/trunc.texi: Likewise.
11618         * doc/posix-functions/truncl.texi: Likewise.
11619
11620 2010-12-20  Bruno Haible  <bruno@clisp.org>
11621
11622         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
11623         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
11624         * doc/posix-functions/round.texi: Likewise.
11625         * doc/posix-functions/roundl.texi: Likewise.
11626
11627 2010-12-20  Bruno Haible  <bruno@clisp.org>
11628
11629         ttyname_r: Add missing declaration on HP-UX 11.
11630         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
11631         HAVE_TTYNAME_R.
11632         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
11633         declared. Set HAVE_TTYNAME_R always.
11634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11635         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
11636         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
11637         HAVE_TTYNAME_R.
11638         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
11639
11640 2010-12-20  Bruno Haible  <bruno@clisp.org>
11641
11642         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
11643         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
11644         * doc/posix-functions/getlogin_r.texi: Likewise.
11645         * tests/test-getlogin.c: Include <errno.h>.
11646         (main): Avoid test failure on HP-UX 11.11.
11647         * tests/test-getlogin_r.c (main): Likewise.
11648
11649 2010-12-20  Bruno Haible  <bruno@clisp.org>
11650
11651         getlogin_r: Add missing declaration on HP-UX 11.
11652         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
11653         declared also when it exists as a function.
11654         * doc/posix-functions/getlogin_r.texi: Document this workaround.
11655
11656 2010-12-20  Bruno Haible  <bruno@clisp.org>
11657
11658         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
11659         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
11660         through wcrtomb.
11661
11662 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
11663
11664         ftoastr: fix comment
11665         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
11666         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
11667
11668 2010-12-19  Bruno Haible  <bruno@clisp.org>
11669
11670         isnan: Ensure it is a macro.
11671         * lib/math.in.h (isnan): Define as a macro if not already a macro.
11672         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
11673         Solaris.
11674
11675 2010-12-19  Bruno Haible  <bruno@clisp.org>
11676
11677         ldexpl test: Fix link error on OSF/1 5.1.
11678         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
11679
11680 2010-12-19  Bruno Haible  <bruno@clisp.org>
11681
11682         wctype: Make it work in C++ mode on OSF/1 5.1.
11683         * lib/wctype.in.h (iswblank): Declare but not define here.
11684         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
11685         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
11686         * modules/wctype (Files): Add lib/iswblank.c.
11687
11688 2010-12-19  Bruno Haible  <bruno@clisp.org>
11689
11690         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
11691         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
11692         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
11693
11694 2010-12-19  Bruno Haible  <bruno@clisp.org>
11695
11696         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
11697         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
11698         _POSIX_PII_SOCKET.
11699         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
11700         * doc/posix-functions/recvfrom.texi: Likewise.
11701         * doc/posix-functions/send.texi: Likewise.
11702         * doc/posix-functions/sendto.texi: Likewise.
11703
11704 2010-12-19  Bruno Haible  <bruno@clisp.org>
11705
11706         tcgetsid: Add missing declaration on OSF/1 5.1.
11707         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
11708         HAVE_TCGETSID.
11709         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
11710         Don't set HAVE_TCGETSID.
11711         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
11712         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
11713         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
11714         HAVE_TCGETSID.
11715         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
11716
11717 2010-12-19  Bruno Haible  <bruno@clisp.org>
11718
11719         stdio: Fix problem with popen() declaration on OSF/1 5.1.
11720         * lib/stdio.in.h: During the include_next statement, let recursive
11721         includes of this file include only the system header file.
11722
11723 2010-12-19  Bruno Haible  <bruno@clisp.org>
11724
11725         iconv_open: Fix regression from 2010-12-04.
11726         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
11727         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
11728
11729 2010-12-19  Bruno Haible  <bruno@clisp.org>
11730
11731         stdbool test: Avoid a gcc warning.
11732         * tests/test-stdbool.c (main): Fail if e1 is false.
11733         Reported by Jim Meyering.
11734
11735 2010-12-19  Jim Meyering  <meyering@redhat.com>
11736
11737         setenv: restore to working order
11738         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
11739         mistakenly removed.
11740         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
11741         HAVE_SETENV.
11742         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
11743         HAVE_SETENV.
11744
11745 2010-12-19  Bruno Haible  <bruno@clisp.org>
11746
11747         Document some different function declarations on OSF/1 5.1.
11748         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
11749         * doc/posix-functions/inet_ntop.texi: Likewise.
11750         * doc/posix-functions/gethostname.texi: Likewise.
11751         * lib/unistd.in.h (gethostname): Update comment.
11752
11753 2010-12-19  Bruno Haible  <bruno@clisp.org>
11754
11755         doc: Mention vasprintf-posix module.
11756         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
11757         the 'vasprintf-posix' module.
11758         * doc/glibc-functions/vasprintf.texi: Likewise.
11759
11760 2010-12-19  Bruno Haible  <bruno@clisp.org>
11761
11762         unsetenv: Add missing declaration on OSF/1 5.1.
11763         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
11764         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
11765         Don't set HAVE_UNSETENV. In the test program, set _BSD.
11766         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
11767         not HAVE_UNSETENV.
11768         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
11769         HAVE_UNSETENV.
11770         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
11771
11772 2010-12-19  Bruno Haible  <bruno@clisp.org>
11773
11774         setenv: Add missing declaration on OSF/1 5.1.
11775         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
11776         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
11777         declared. Don't set HAVE_SETENV.
11778         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
11779         not HAVE_SETENV.
11780         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
11781         HAVE_SETENV.
11782         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
11783
11784 2010-12-19  Bruno Haible  <bruno@clisp.org>
11785
11786         nl_langinfo tests: Avoid gcc warning.
11787         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
11788
11789 2010-12-19  Bruno Haible  <bruno@clisp.org>
11790
11791         mknod: Avoid error in C++ mode on OSF/1 with GCC.
11792         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
11793         _GL_CXXALIAS_SYS.
11794
11795 2010-12-19  Bruno Haible  <bruno@clisp.org>
11796
11797         stdbool: Relax test.
11798         * tests/test-stdbool.c (e): Don't require that casts from a variable's
11799         address to 'bool' work in static initializer, for compilers other than
11800         GCC.
11801
11802 2010-12-19  Bruno Haible  <bruno@clisp.org>
11803
11804         ftello: Add missing declaration on OSF/1 5.1.
11805         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
11806         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
11807         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
11808         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
11809         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
11810
11811 2010-12-19  Bruno Haible  <bruno@clisp.org>
11812
11813         fseeko: Add missing declaration on OSF/1 5.1.
11814         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
11815         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
11816         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
11817         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
11818         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
11819
11820 2010-12-19  Bruno Haible  <bruno@clisp.org>
11821
11822         fchdir: Add missing declaration on OSF/1 5.1.
11823         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
11824         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
11825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
11826         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
11827         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
11828
11829 2010-12-19  Bruno Haible  <bruno@clisp.org>
11830
11831         relocatable-prog-wrapper: Separate from relocatable-prog.
11832         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
11833         uninstall-relocwrapper rule here.
11834         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
11835         Reported by Ian Beckwith <ianb@erislabs.net>.
11836
11837 2010-12-19  Bruno Haible  <bruno@clisp.org>
11838
11839         unistr/u8-mbsnlen: Add missing dependency.
11840         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
11841         Reported by Ian Beckwith <ianb@erislabs.net>.
11842
11843 2010-12-19  Bruno Haible  <bruno@clisp.org>
11844
11845         iconv: Make it possible again to use this module without 'iconv-h'.
11846         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
11847         if it is not defined.
11848         Reported by Ian Beckwith <ianb@erislabs.net>.
11849
11850 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
11851
11852         acl: port to Solaris 8 when copying from tmpfs to ufs
11853         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
11854         error number.  Problem observed on Solaris 8 with latest
11855         coreutils, with "mv A B", where A is on a tmpfs file system and B
11856         is on a ufs file system.  This caused coreutils' mv/part-symlink
11857         test to fail.
11858
11859         tests: set fail=0 at start
11860         * tests/init.sh (setup_): Move fail=0 initialization here ...
11861         (mktempd_): ... from here, so that tests can rely on fail being
11862         set to 0 initially.  This fixes a problem in coreutils; see:
11863         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
11864
11865 2010-12-18  Bruno Haible  <bruno@clisp.org>
11866
11867         memmem-simple: Stylistic changes.
11868         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
11869         Fix preprocessor directive indentation.
11870
11871 2010-12-15  Pádraig Brady <P@draigBrady.com>
11872
11873         memmem, memmem-simple: reorganize and expand empty needle check
11874         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
11875         functional checks to memmem-simple so that one has a fully functional
11876         memmem by using just this module.
11877         Restrict the performance only check to the memmem module.
11878         Also expand the empty needle check to ensure the correct
11879         pointer is returned, not just a non NULL pointer.
11880         * doc/glibc-functions/memmem.texi: Rearrange the portability
11881         documentation to correlate with the rearranged checks.
11882         Clarify exactly how the memmem and memmem-simple modules
11883         relate to each other.
11884
11885 2010-12-15  Pádraig Brady <P@draigBrady.com>
11886             Bruno Haible  <bruno@clisp.org>
11887
11888         Improve cross-compilation guesses for uClibc.
11889         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
11890         that uClibc does not have the glibc bug.
11891         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
11892         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
11893
11894 2010-12-14  Eric Blake  <eblake@redhat.com>
11895
11896         configmake: provide fallbacks for oldest supported autotools
11897         * m4/configmake.m4: New file.
11898         * modules/configmake (Files): Ship it.
11899         (configure.ac): Use it to guarantee fallbacks.
11900
11901 2010-12-13  Pádraig Brady <P@draigBrady.com>
11902
11903         read-file: Improve handling of large files
11904         * lib/read-file.c (fread_file): Minimize realloc()s
11905         for regular files, and better manage sizes around SIZE_MAX.
11906
11907 2010-12-13  Eric Blake  <eblake@redhat.com>
11908
11909         cloexec, fcntl: relax license
11910         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
11911         consent from all contributors.
11912         * modules/fcntl (License): Likewise.
11913
11914 2010-12-10  Bruno Haible  <bruno@clisp.org>
11915
11916         Tests for module 'pipe-posix'.
11917         * modules/pipe-posix-tests: New file.
11918         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
11919
11920 2010-12-10  Bruno Haible  <bruno@clisp.org>
11921
11922         pipe-posix: Make it work in C++ mode.
11923         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
11924         (pipe): Use common idiom, not a macro definition.
11925         * lib/pipe.c: New file.
11926         * m4/pipe.m4: New file.
11927         * modules/pipe-posix (Description): Enhance.
11928         (Files): Add lib/pipe.c, m4/pipe.m4.
11929         (configure.ac): Invoke gl_FUNC_PIPE.
11930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
11931         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
11932         * tests/test-unistd-c++.cc: Check the signature of pipe.
11933
11934 2010-12-10  Bruno Haible  <bruno@clisp.org>
11935
11936         Rename module 'pipe' to 'spawn-pipe'.
11937         * modules/spawn-pipe: New file, renamed from modules/pipe.
11938         (Files, configure.ac, Makefile.am): Update.
11939         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
11940         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
11941         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
11942         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
11943         "spawn-pipe.h" instead of "pipe.h".
11944         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
11945         to gl_SPAWN_PIPE.
11946         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
11947         (Files, Makefile.am): Update.
11948         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
11949         Update.
11950         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
11951         Include "spawn-pipe.h" instead of "pipe.h".
11952         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
11953         * lib/javacomp.c: Likewise.
11954         * lib/javaversion.c: Likewise.
11955         * lib/pipe-filter-gi.c: Likewise.
11956         * lib/pipe-filter-ii.c: Likewise.
11957         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
11958         * modules/javacomp (Depends-on): Likewise.
11959         * modules/javaversion (Depends-on): Likewise.
11960         * modules/pipe-filter-gi (Depends-on): Likewise.
11961         * modules/pipe-filter-ii (Depends-on): Likewise.
11962         * MODULES.html.sh (Executing programs): Update.
11963         * NEWS: Mention the change.
11964
11965 2010-12-10  Eric Blake  <eblake@redhat.com>
11966
11967         pipe-posix: new module
11968         * modules/pipe-posix: New file.
11969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
11970         (gl_UNISTD_H): Check for declaration.
11971         * modules/unistd (Makefile.am): Substitute it.
11972         * lib/unistd.in.h (pipe): Provide it for mingw.
11973         * doc/posix-functions/pipe.texi (pipe): Update documentation.
11974         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
11975
11976 2010-12-07  Bruno Haible  <bruno@clisp.org>
11977
11978         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
11979         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
11980         u8_strcmp_gnu.
11981         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
11982
11983 2010-12-06  Bruno Haible  <bruno@clisp.org>
11984
11985         Update internal documentation.
11986         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
11987
11988 2010-12-04  Bruno Haible  <bruno@clisp.org>
11989
11990         Put more information about failed tests into the test return codes.
11991         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
11992         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
11993         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
11994         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11995         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
11996         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11997         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11998         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
11999         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
12000         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12001         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
12002         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
12003         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12004         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12005         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
12006         returns a bit mask.
12007         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
12008         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
12009         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
12010         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
12011         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12012         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12013         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12014         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
12015         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12016         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12017         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
12018         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12019         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12020         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12021         * m4/link.m4 (gl_FUNC_LINK): Likewise.
12022         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
12023         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
12024         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
12025         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12026         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
12027         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12028         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
12029         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
12030         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12031         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12032         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
12033         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
12034         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12035         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12036         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
12037         gl_PRINTF_PRECISION): Likewise.
12038         * m4/regex.m4 (gl_REGEX): Likewise.
12039         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
12040         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12041         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
12042         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12043         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12044         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12045         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
12046         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
12047         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12048         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12049         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
12050         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
12051         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12052         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
12053         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12054         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12055         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
12056         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12057         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12058         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
12059         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
12060         enumerated value.
12061         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
12062
12063 2010-12-04  Bruno Haible  <bruno@clisp.org>
12064
12065         Update for Solaris 11 2010-11.
12066         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
12067         Express, released in November 2010.
12068
12069 2010-12-04  Bruno Haible  <bruno@clisp.org>
12070
12071         nproc: Relax license.
12072         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
12073         and Paul Eggert.
12074         Requested by Ludovic Courtès <ludo@gnu.org>.
12075
12076 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
12077
12078         utimecmp: fine-grained src to nearby coarse-grained dest
12079
12080         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
12081         and the source is on a file system with higher-resolution time
12082         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
12083         not work, and the time stamps are close together, the algorithm to
12084         determine the exact resolution from the read-back mtime was buggy:
12085         it had a "!=" where it should have had an "==".  This bug has been
12086         in the code ever since it was introduced to gnulib.
12087         Problem reported by Dan Jacobson in
12088         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
12089
12090 2010-11-30  Bruno Haible  <bruno@clisp.org>
12091
12092         strerror_r-posix: Fix autoconf test.
12093         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
12094
12095 2010-11-28  Bruno Haible  <bruno@clisp.org>
12096             Paul Eggert  <eggert@cs.ucla.edu>
12097
12098         Tests for module 'getdomainname'.
12099         * modules/getdomainname-tests: New file.
12100         * tests/test-getdomainname.c: New file, based on
12101         tests/test-gethostname.c.
12102
12103 2010-11-28  Bruno Haible  <bruno@clisp.org>
12104             Paul Eggert  <eggert@cs.ucla.edu>
12105
12106         getdomainname: Use the system function when possible.
12107         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
12108         (getdomainname): Replace if needed. Provide the declaration if it is
12109         missing. Don't use _GL_CXXALIAS_SYS_CAST.
12110         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
12111         (getdomainname): When the system has getdomainname, call the system
12112         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
12113         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
12114         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
12115         found in libnsl. Look for the declaration also in <netdb.h>. Replace
12116         the function if its second argument is of type 'int' or if it is found
12117         in libnsl.
12118         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
12119         <sys/systeminfo.h> and sysinfo().
12120         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
12121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12122         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
12123         HAVE_GETDOMAINNAME.
12124         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
12125         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
12126         * doc/glibc-functions/getdomainname.texi: Document the problems with
12127         the getdomainname declaration.
12128
12129 2010-11-28  Bruno Haible  <bruno@clisp.org>
12130
12131         sys_socket: Ensure ss_family field on AIX.
12132         * lib/sys_socket.in.h (ss_family): New macro definition.
12133         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
12134         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
12135         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
12136         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12137         * modules/sys_socket (Makefile.am): Substitute
12138         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12139         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
12140
12141 2010-11-27  Bruno Haible  <bruno@clisp.org>
12142
12143         readline: Improve configure output.
12144         * m4/readline.m4 (gl_FUNC_READLINE): Make the
12145         "checking for readline..." result understandable.
12146
12147 2010-11-27  Bruno Haible  <bruno@clisp.org>
12148
12149         *printf-posix: Detect a bug on Solaris 10/x86.
12150         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
12151         for floating-point output.
12152         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
12153         directive.
12154         * tests/test-snprintf-posix.h (test_function): Likewise.
12155         * tests/test-sprintf-posix.h (test_function): Likewise.
12156         * tests/test-vasprintf-posix.c (test_function): Likewise.
12157         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
12158         * doc/posix-functions/printf.texi: Likewise.
12159         * doc/posix-functions/snprintf.texi: Likewise.
12160         * doc/posix-functions/sprintf.texi: Likewise.
12161         * doc/posix-functions/vfprintf.texi: Likewise.
12162         * doc/posix-functions/vprintf.texi: Likewise.
12163         * doc/posix-functions/vsnprintf.texi: Likewise.
12164         * doc/posix-functions/vsprintf.texi: Likewise.
12165         * doc/glibc-functions/obstack_printf.texi: Likewise.
12166         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12167
12168 2010-11-27  Bruno Haible  <bruno@clisp.org>
12169
12170         Fix link error when module libunistring-optional is in use.
12171         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
12172         * modules/striconveha-tests (Makefile.am): Likewise.
12173
12174 2010-11-27  Bruno Haible  <bruno@clisp.org>
12175
12176         regex: Mention link dependencies.
12177         * modules/regex (Link): New section.
12178         * modules/rpmatch (Link): Likewise.
12179         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
12180
12181 2010-11-27  Bruno Haible  <bruno@clisp.org>
12182
12183         ftoastr: Fix compilation error on Solaris.
12184         * lib/ftoastr.c: Include <config.h>.
12185
12186 2010-11-27  Bruno Haible  <bruno@clisp.org>
12187
12188         getloadavg: Update documentation.
12189         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
12190
12191 2010-11-27  Bruno Haible  <bruno@clisp.org>
12192
12193         sys_socket: Fix test whether the functions are declared.
12194         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
12195         not <sys/select.h>.
12196
12197 2010-11-27  Bruno Haible  <bruno@clisp.org>
12198
12199         getpass: Make sure to get system declaration on some platforms.
12200         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
12201         gl_USE_SYSTEM_EXTENSIONS.
12202         * modules/getpass (Depends-on): Add extensions.
12203
12204 2010-11-26  Bruno Haible  <bruno@clisp.org>
12205
12206         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
12207         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
12208         'iconv' module is present.
12209         (ICONV_CONST): New macro.
12210         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
12211         ICONV_CONST.
12212         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
12213         set ICONV_CONST.
12214         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
12215         here.
12216         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
12217         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
12218         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
12219         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
12220         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
12221         present.
12222
12223 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
12224
12225         ftoastr: comment fix
12226         * lib/ftoastr.c: "little" -> "little or no" in comment
12227
12228 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
12229
12230         stdint: port to GCC 4.3 + OSX + Octave
12231         On this platform, stdint.h is buggy and defines int64_t to long
12232         long int.  The replacement defined it to long int, causing
12233         problems with C++ style name mangling.  Instead, trust the system
12234         definition if INT64_MAX is defined, and likewise for the unsigned
12235         variant.   Problem reported by Jarno Rajahalme in
12236         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
12237         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
12238         and don't mess with int64_t and INT64_MAX in this case.
12239         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
12240
12241 2010-11-24  Bruno Haible  <bruno@clisp.org>
12242
12243         doc: Corrections regarding MacOS X 10.4 and 10.5.
12244         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
12245         MacOS X.
12246         Reported by Simon Josefsson.
12247
12248 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
12249
12250         Uninstall ".bin" files installed by relocwrapper.
12251         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
12252         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
12253         unless it is already there.
12254
12255 2010-11-21  Bruno Haible  <bruno@clisp.org>
12256
12257         Update for NetBSD 5.0.
12258         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12259         NetBSD; the test fails on NetBSD 5.0.
12260         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12261         about NetBSD.
12262
12263 2010-11-21  Bruno Haible  <bruno@clisp.org>
12264
12265         Update for HP-UX 11.23 and HP-UX 11.31.
12266         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
12267         HP-UX.
12268
12269 2010-11-21  Bruno Haible  <bruno@clisp.org>
12270
12271         Update for MacOS X 10.5.
12272         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12273         MacOS X; the test fails on MacOS X 10.5.8.
12274         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12275         about MacOS X.
12276
12277 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
12278
12279         bootstrap: add bootstrap_sync option.
12280         See discussion at
12281         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
12282         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
12283         * build-aux/bootstrap: Accept --bootstrap-sync to update
12284         bootstrap if it is not identical to the local gnulib's
12285         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
12286         enable this by default.  Accept --no-bootstrap-sync to disable
12287         it.
12288
12289 2010-11-20  Bruno Haible  <bruno@clisp.org>
12290
12291         Ensure that <features.h> is included before __GLIBC__ is tested.
12292         * lib/printf-parse.h: Include <features.h>.
12293         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
12294         Reported by Mike Frysinger <vapier@gentoo.org>.
12295
12296         Ensure that <features.h> is included before __GLIBC__ is tested.
12297         * lib/wchar.in.h: Include <features.h>.
12298         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
12299         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
12300         Reported by Mike Frysinger <vapier@gentoo.org>.
12301
12302         Ensure that <features.h> is included before __GLIBC__ is tested.
12303         * lib/arpa_inet.in.h: Include <features.h>.
12304         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
12305         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
12306         Reported by Mike Frysinger <vapier@gentoo.org>.
12307
12308         Ensure that <features.h> is included before __GLIBC__ is tested.
12309         * build-aux/link-warning.h: Include <features.h>.
12310         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
12311         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
12312         Reported by Mike Frysinger <vapier@gentoo.org>.
12313
12314         Ensure that <features.h> is included before __GLIBC__ is tested.
12315         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
12316         Reported by Mike Frysinger <vapier@gentoo.org>.
12317
12318 2010-11-20  Bruno Haible  <bruno@clisp.org>
12319
12320         memmem: Fix autoconf test.
12321         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
12322
12323 2010-11-20  Bruno Haible  <bruno@clisp.org>
12324
12325         Port to uClibc.
12326         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
12327         * lib/fcntl.in.h: Likewise.
12328         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
12329         * lib/mbrtowc.c (mbrtowc): Likewise.
12330         * lib/relocatable.c (find_shared_library_fullname): Likewise.
12331         * lib/strerror_r.c: Likewise.
12332         * lib/unistr/u8-strnlen.c: Likewise.
12333         * lib/vasnprintf.c (decimal_point_char): Likewise.
12334         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
12335         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
12336         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
12337         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
12338         * tests/test-sigaction.c (handler, main): Likewise.
12339         * lib/freading.h: Treat uClibc like a non-glibc platform.
12340         * lib/freading.c: Likewise.
12341         * lib/gettext.h: Likewise.
12342         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
12343         Likewise.
12344         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
12345         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
12346         * lib/propername.c (proper_name_utf8): Likewise.
12347         * lib/spawn.in.h: Likewise.
12348         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
12349         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
12350         mem_cd_iconveh_internal): Likewise.
12351         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
12352         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
12353         strstr, strcasestr): Likewise.
12354         * lib/unicodeio.c (unicode_to_mb): Likewise.
12355         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
12356         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
12357         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
12358         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
12359         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
12360         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
12361         * lib/unistr/u8-stpncpy.c: Likewise.
12362         * lib/vasnprintf.c (VASNPRINTF): Likewise.
12363         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
12364         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12365         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12366         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
12367         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
12368         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
12369         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
12370         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
12371         Likewise.
12372         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12373         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12374         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
12375         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12376         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12377         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12378         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12379         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
12380         * tests/test-getopt.h (OPTIND_MIN): Likewise.
12381         * tests/test-striconveha.c (main): Likewise.
12382         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12383         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
12384         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
12385         * doc/posix-functions/getline.texi: Likewise.
12386         Reported by Mike Frysinger <vapier@gentoo.org>.
12387
12388 2010-11-20  Bruno Haible  <bruno@clisp.org>
12389
12390         nproc: Fix condition.
12391         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
12392         HAVE_PTHREAD_AFFINITY_NP.
12393
12394 2010-11-20  Bruno Haible  <bruno@clisp.org>
12395
12396         Fix a comment.
12397         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
12398
12399 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
12400
12401         ftoastr: don't assume snprintf
12402         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
12403         Implement a subset of snprintf here, by using sprintf safely.
12404         * modules/ftoastr (Depends-on): Remove snprintf.
12405
12406 2010-11-19  Jim Meyering  <meyering@redhat.com>
12407
12408         test-rename.h: fix compilation failure
12409         * tests/test-rename.h (test_rename): Add omitted "}".
12410
12411 2010-11-17  Jim Meyering  <meyering@redhat.com>
12412
12413         maint.mk: add a URL discussing the no-@acronym policy
12414         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
12415
12416 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
12417
12418         ftoastr: depend on snprintf, improve comments
12419         * lib/ftoastr.c: Also mention Loitsch's draft.
12420         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
12421         needed in the current implementation, but it might simplify
12422         speeding up the code later.
12423         * modules/ftoastr: Depend on snprintf; this improves portability.
12424         Suggested by Bruno Haible in the same email.
12425
12426         ftoastr: port to hosts lacking strtof and strtold
12427         Problem reported by Bruno Haible in
12428         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
12429         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
12430         environment and strtold (and presumably strtof) are not available.
12431         * modules/ftoastr (Files): Add m4/c-strtod.m4.
12432         (configure.ac): Require gl_C99_STRTOLD.
12433
12434 2010-11-18  Bruno Haible  <bruno@clisp.org>
12435
12436         c-strtold: Avoid link error on AIX 7.
12437         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
12438         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
12439         (gl_C_STRTOLD): Test whether strtold_l exists.
12440         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12441
12442 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
12443
12444         intprops: new macro INT_BITS_STRLEN_BOUND
12445         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
12446         ftoastr.h.  This exposes an internal of intprops.h that was formerly
12447         not exposed.  Also, it uses a slightly tighter bound than before;
12448         though this makes no practical difference, we might as well be as
12449         tight as we easily can.
12450
12451         ftoastr: new module, for lossless conversion of floats to short strings
12452         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
12453         * modules/ftoastr: New files.
12454
12455 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
12456
12457         bootstrap: port to Solaris sed
12458         * build-aux/bootstrap (get_version): Port to Solaris sed.
12459         See Ralf Wildenhues's note in
12460         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
12461
12462 2010-11-14  Jim Meyering  <meyering@redhat.com>
12463
12464         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
12465         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
12466         and move definition closer to sole use.
12467
12468 2010-11-13  Jim Meyering  <meyering@redhat.com>
12469
12470         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
12471         Now we require at least autoconf-2.59, which means the work-around
12472         is no longer needed.
12473         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
12474         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12475         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
12476         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
12477         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12478
12479 2010-11-13  Bruno Haible  <bruno@clisp.org>
12480
12481         rename, renameat: Avoid test failures at NFS mounted locations.
12482         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
12483         functions.
12484         (test_rename): Use assert_nonexistent.
12485         * tests/test-rename.c: Include <dirent.h>.
12486         * tests/test-renameat.c: Likewise.
12487         Reported by Gary V. Vaughan <gary@gnu.org>.
12488
12489         rename, renameat: Document Linux bug with NFS
12490         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
12491         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
12492         * doc/posix-functions/renameat.texi: Likewise.
12493         Suggested by Eric Blake.
12494
12495 2010-11-13  Bruno Haible  <bruno@clisp.org>
12496
12497         rename test: Add comments.
12498         * tests/test-rename.h (test_rename): Add structure and comments.
12499
12500 2010-11-13  Eric Blake  <eblake@redhat.com>
12501
12502         maintainer-makefile: cover a few more files
12503         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
12504         scripts generated within C files, for libvirt.
12505
12506 2010-11-13  Bruno Haible  <bruno@clisp.org>
12507
12508         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
12509         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
12510         character, return the number of bytes that belong together, not always
12511         1.
12512         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
12513         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
12514         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
12515         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
12516         number of bytes of an invalid character.
12517         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
12518         (main): Invoke it.
12519         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
12520         results.
12521         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
12522         malformed byte sequences.
12523         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
12524         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
12525         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
12526         Reported by Ben Pfaff and Paolo Bonzini.
12527
12528 2010-11-13  Bruno Haible  <bruno@clisp.org>
12529
12530         openat: Work around glibc bug with fchownat() and empty file names.
12531         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
12532         (gl_FUNC_FCHOWNAT): Invoke it.
12533         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
12534         * doc/posix-functions/fchownat.texi: Document the glibc bug.
12535         Reported by Gary V. Vaughan <gary@gnu.org>.
12536
12537 2010-11-13  Bruno Haible  <bruno@clisp.org>
12538
12539         openat: Ensure autoconf macro ordering.
12540         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
12541         gl_USE_SYSTEM_EXTENSIONS.
12542         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
12543
12544 2010-11-13  Bruno Haible  <bruno@clisp.org>
12545
12546         Update comments.
12547         * lib/unistr/u8-check.c: Update file name in comments.
12548         * lib/unistr/u8-mblen.c: Likewise.
12549         * lib/unistr/u8-prev.c: Likewise.
12550         * lib/unistr/u8-strmblen.c: Likewise.
12551         * lib/unistr/u8-strmbtouc.c: Likewise.
12552
12553 2010-11-13  Jim Meyering  <meyering@redhat.com>
12554
12555         tests: avoid test failure on Solaris 10 due to lack of PATH export
12556         * tests/test-update-copyright.sh: Don't forget to export PATH.
12557
12558         init.sh: ensure that IFS is defined, just in case...
12559         * tests/init.sh (setup_): Ensure that IFS is defined,
12560         so that saving and restoring it works as expected.  This
12561         appears to be useful at least for an old version of dash
12562         from a long time ago (RH 6).  See here for details:
12563         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
12564
12565         maint.mk: tighten "test a == b" check
12566         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
12567         test to files that contain something like #!/bin/sh.
12568         Without this, coreutils would get two false positives in
12569         the comments of C source files.
12570
12571 2010-11-12  Eric Blake  <eblake@redhat.com>
12572
12573         bootstrap: fix typo in previous attempt
12574         * build-aux/bootstrap (buildreq): Correct the grouping.
12575         Reported by Paul Eggert.
12576
12577         maintainer-makefile: prohibit test x == x
12578         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
12579         Based on a report by Matthias Bolte.
12580
12581         bootstrap: allow FreeBSD gzip
12582         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
12583         which has no '.' and goes to stderr.
12584         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
12585         Reported by Matthias Bolte.
12586
12587         maintainer-makefile: check for i18n setup
12588         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
12589         will likely work.
12590
12591 2010-11-12  Bruno Haible  <bruno@clisp.org>
12592
12593         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
12594         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
12595         * lib/nanosleep.c (nanosleep): Likewise.
12596
12597 2010-11-11  Bruno Haible  <bruno@clisp.org>
12598
12599         fcntl-h: Fix for use of C++ on glibc systems.
12600         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
12601         also on glibc systems in C++ mode.
12602         Reported by Gary V. Vaughan <gary@gnu.org>.
12603
12604 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12605
12606         mknod: avoid false failure with dash
12607         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
12608
12609 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
12610
12611         unlink: Fix "is it should" typo in diagnostic.
12612         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
12613         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
12614
12615 2010-11-11  Bruno Haible  <bruno@clisp.org>
12616
12617         Tests for module 'strerror_r-posix'.
12618         * modules/strerror_r-posix-tests: New file.
12619         * tests/test-strerror_r.c: New file.
12620         * tests/test-string-c++.cc: Check the signature of strerror_r.
12621
12622         New module 'strerror_r-posix'.
12623         * lib/string.in.h (strerror_r): New declaration.
12624         * lib/strerror_r.c: New file.
12625         * m4/strerror_r.m4: New file.
12626         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
12627         of strerror_r.
12628         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
12629         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
12630         * modules/strerror_r-posix: New file.
12631         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
12632         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
12633         * doc/posix-functions/strerror_r.texi: Mention the new module and the
12634         portability problems.
12635
12636 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
12637
12638         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
12639         line is also considered for output. Quoted function name in shell
12640         command, so temporary files for functions like MyClass::operator()
12641         are removed correctly without errors.
12642
12643 2010-11-09  Bruno Haible  <bruno@clisp.org>
12644
12645         * doc/posix-functions/strerror.texi: List more failing platforms.
12646
12647         * doc/posix-functions/strerror.texi: Add a comment.
12648
12649 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
12650
12651         fdopendir: fix bug on MacOS X when low on file descriptors
12652
12653         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
12654         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
12655         All callers changed.
12656         (fdopendir): Invoke save_cwd at the top level, not after using
12657         multiple dup() calls to use up file descriptors.  Then retry
12658         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
12659         less than the maximum number of open file descriptors, because
12660         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
12661         on Mac OS X 10.6.4 for tar 1.24
12662         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
12663         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
12664         and for tar 1.25
12665         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
12666
12667 2010-11-07  Bruno Haible  <bruno@clisp.org>
12668
12669         vasnprintf: Support I flag on glibc systems.
12670         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
12671         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
12672         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
12673         snprintf function.
12674         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
12675         glibc systems.
12676         * tests/test-vasnprintf-posix3.c: New file.
12677         * modules/vasnprintf-posix-tests (Files): Add it.
12678         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
12679
12680 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12681
12682         [html] Fix copy/paste bug: Use unique name for compiler warnings.
12683         * MODULES.html.sh: For compiler warnings, use name
12684         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
12685
12686 2010-11-05  Eric Blake  <eblake@redhat.com>
12687
12688         ceil, floor: avoid spurious failure with icc
12689         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
12690         [denormals-as-zero] when optimizing without -mieee-fp option.
12691         * tests/test-floorf2.c (floorf_reference): Likewise.
12692         * tests/test-ceilf1.c (dummy): New function.
12693         (main): Use it to outsmart icc's optimization.
12694         * tests/test-floorf1.c (dummy, main): Likewise.
12695
12696         tests: require working signbit
12697         * modules/ceilf-tests (Depends-on): Add signbit.
12698         * modules/ceill-tests (Depends-on): Likewise.
12699         * modules/floorf-tests (Depends-on): Likewise.
12700         * modules/floorl-tests (Depends-on): Likewise.
12701         * modules/round-tests (Depends-on): Likewise.
12702         * modules/roundf-tests (Depends-on): Likewise.
12703         * modules/roundl-tests (Depends-on): Likewise.
12704         * modules/trunc-tests (Depends-on): Likewise.
12705         * modules/truncf-tests (Depends-on): Likewise.
12706         * modules/truncl-tests (Depends-on): Likewise.
12707
12708         strtod: work around icc bug
12709         * lib/strtod.c (minus_zero): Define to working value.
12710         (strtod): Use it to avoid icc bug.
12711
12712         copysign: enhance tests
12713         * modules/copysign-tests (Files): Add minus-zero.h.
12714         * tests/test-copysign.c (main): Also test zeros.
12715
12716 2010-11-04  Eric Blake  <eblake@redhat.com>
12717
12718         ceil, floor, round, trunc: enhance tests of -0
12719         * tests/test-ceilf1.c (main): Ensure correct sign of result.
12720         * tests/test-ceill.c (main): Likewise.
12721         * tests/test-floorf1.c (main): Likewise.
12722         * tests/test-floorl.c (main): Likewise.
12723         * tests/test-round1.c (main): Likewise.
12724         * tests/test-roundf1.c (main): Likewise.
12725         * tests/test-roundl.c (main): Likewise.
12726         * tests/test-trunc1.c (main): Likewise.
12727         * tests/test-truncf1.c (main): Likewise.
12728         * tests/test-truncl.c (main): Likewise.
12729
12730 2010-11-04  Eric Blake  <eblake@redhat.com>
12731
12732         frexp, tests: work around ICC bug with -zero
12733         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
12734         works with more compilers.
12735         * tests/minus-zero.h: New file.
12736         * modules/ceilf-tests (Files): Include it.
12737         * modules/ceill-tests (Files): Likewise.
12738         * modules/floorf-tests (Files): Likewise.
12739         * modules/floorl-tests (Files): Likewise.
12740         * modules/frexp-nolibm-tests (Files): Likewise.
12741         * modules/frexp-tests (Files): Likewise.
12742         * modules/frexpl-nolibm-tests (Files): Likewise.
12743         * modules/frexpl-tests (Files): Likewise.
12744         * modules/isnan-tests (Files): Likewise.
12745         * modules/isnand-nolibm-tests (Files): Likewise.
12746         * modules/isnand-tests (Files): Likewise.
12747         * modules/isnanf-nolibm-tests (Files): Likewise.
12748         * modules/isnanf-tests (Files): Likewise.
12749         * modules/isnanl-nolibm-tests (Files): Likewise.
12750         * modules/isnanl-tests (Files): Likewise.
12751         * modules/round-tests (Files): Likewise.
12752         * modules/roundf-tests (Files): Likewise.
12753         * modules/roundl-tests (Files): Likewise.
12754         * modules/ldexpl-tests (Files): Likewise.
12755         * modules/signbit-tests (Files): Likewise.
12756         * modules/snprintf-posix-tests (Files): Likewise.
12757         * modules/sprintf-posix-tests (Files): Likewise.
12758         * modules/strtod-tests (Files): Likewise.
12759         * modules/trunc-tests (Files): Likewise.
12760         * modules/truncf-tests (Files): Likewise.
12761         * modules/truncl-tests (Files): Likewise.
12762         * modules/vsnprintf-posix-tests (Files): Likewise.
12763         * modules/vsprintf-posix-tests (Files): Likewise.
12764         * modules/vasnprintf-posix-tests (Files): Likewise.
12765         * modules/vasprintf-posix-tests (Files): Likewise.
12766         * tests/test-ceilf1.c (main): Use it.
12767         * tests/test-ceill.c (main): Likewise.
12768         * tests/test-floorf1.c (main): Likewise.
12769         * tests/test-floorl.c (main): Likewise.
12770         * tests/test-frexp.c (main): Likewise.
12771         * tests/test-frexpl.c (main): Likewise.
12772         * tests/test-isnan.c (main): Likewise.
12773         * tests/test-isnand.h (main): Likewise.
12774         * tests/test-isnanf.h (main): Likewise.
12775         * tests/test-isnanl.h (main): Likewise.
12776         * tests/test-ldexpl.c (main): Likewise.
12777         * tests/test-round.c (main): Likewise.
12778         * tests/test-roundf.c (main): Likewise.
12779         * tests/test-roundl.c (main): Likewise.
12780         * tests/test-signbit.c (test_signbitf, test_signbitd)
12781         (test_signbitl): Likewise.
12782         * tests/test-snprintf-posix.h (test_function): Likewise.
12783         * tests/test-sprintf-posix.h (test_function): Likewise.
12784         * tests/test-strtod.c (main): Likewise.
12785         * tests/test-trunc1.c (main): Likewise.
12786         * tests/test-truncf1.c (main): Likewise.
12787         * tests/test-truncl.c (main): Likewise.
12788
12789         isnanl: work around icc bug
12790         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
12791
12792 2010-11-03  Eric Blake  <eblake@redhat.com>
12793
12794         tests: fix compiler warnings
12795         * tests/test-getopt.h (test_getopt): Fix condition.
12796         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12797         * tests/test-pipe2.c (main): Likewise.
12798         * tests/test-quotearg-simple.c (main): Avoid icc warning.
12799
12800         utimens: fix broken m4 test
12801         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
12802
12803 2010-10-28  Bruno Haible  <bruno@clisp.org>
12804
12805         posix_spawn*, getdtablesize: Relax license.
12806         * modules/posix_spawn (License): Change to LGPLv2+.
12807         * modules/posix_spawnp (License): Likewise.
12808         * modules/posix_spawn-internal (License): Likewise.
12809         * modules/posix_spawnattr_init (License): Likewise.
12810         * modules/posix_spawnattr_getflags (License): Likewise.
12811         * modules/posix_spawnattr_setflags (License): Likewise.
12812         * modules/posix_spawnattr_getpgroup (License): Likewise.
12813         * modules/posix_spawnattr_setpgroup (License): Likewise.
12814         * modules/posix_spawnattr_getschedparam (License): Likewise.
12815         * modules/posix_spawnattr_setschedparam (License): Likewise.
12816         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
12817         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
12818         * modules/posix_spawnattr_getsigdefault (License): Likewise.
12819         * modules/posix_spawnattr_setsigdefault (License): Likewise.
12820         * modules/posix_spawnattr_getsigmask (License): Likewise.
12821         * modules/posix_spawnattr_setsigmask (License): Likewise.
12822         * modules/posix_spawnattr_destroy (License): Likewise.
12823         * modules/posix_spawn_file_actions_init (License): Likewise.
12824         * modules/posix_spawn_file_actions_addclose (License): Likewise.
12825         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
12826         * modules/posix_spawn_file_actions_addopen (License): Likewise.
12827         * modules/posix_spawn_file_actions_destroy (License): Likewise.
12828         * modules/getdtablesize (License): Likewise.
12829         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
12830
12831 2010-10-26  Bruno Haible  <bruno@clisp.org>
12832
12833         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
12834         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
12835         Cygwin and mingw.
12836         Suggested by Eric Blake.
12837
12838 2010-10-26  Bruno Haible  <bruno@clisp.org>
12839
12840         stdio: Work around compilation error due to renameat() on Solaris 10.
12841         * lib/stdio.in.h: Include <unistd.h> on Solaris.
12842         * lib/renameat.c: Don't include <unistd.h> here.
12843         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
12844         Reported by Paul Eggert and Eric Blake.
12845
12846 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
12847
12848         renameat: port to Solaris 10, which declares renameat in unistd.h
12849
12850         * lib/renameat.c: Include unistd.h before stdio.h, because
12851         Solaris 10 declares renameat in unistd.h.  Problem encountered
12852         when building GNU tar 1.24 on Solaris 10.
12853
12854 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12855
12856         fdopendir: fix C89 compilation
12857         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
12858         compilers.
12859
12860 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
12861
12862         inttostr: simplify by removing unnecessary redundancy
12863         * lib/anytostr.c: Don't include verify.h.
12864         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
12865         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
12866         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
12867         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
12868         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
12869         Likewise.
12870         * modules/inttostr (Depends-on): Remove 'verify'.
12871
12872 2010-10-23  Bruno Haible  <bruno@clisp.org>
12873
12874         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
12875         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
12876         Reported by Eric Blake.
12877
12878 2010-10-23  Bruno Haible  <bruno@clisp.org>
12879
12880         Tests: Fix LOCALE_JA on MirBSD 10.
12881         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
12882         to an UTF-8 locale.
12883         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
12884         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
12885         Reported by Eric Blake.
12886
12887 2010-10-21  Bruno Haible  <bruno@clisp.org>
12888
12889         nl_langinfo test: Avoid test failure on NetBSD 5.
12890         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
12891         Reported by Eric Blake.
12892
12893 2010-10-21  Eric Blake  <eblake@redhat.com>
12894
12895         c-stack: work around libsigsegv 2.8 bug
12896         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
12897         overflow on at least PowerPC64.
12898
12899 2010-10-17  Bruno Haible  <bruno@clisp.org>
12900
12901         userspec: Drop redundant file.
12902         * modules/userspec (Files): Remove lib/inttostr.h.
12903
12904 2010-10-17  Bruno Haible  <bruno@clisp.org>
12905
12906         nl_langinfo tests: Silence some warnings.
12907         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
12908         Reported by Jim Meyering.
12909
12910 2010-10-17  Bruno Haible  <bruno@clisp.org>
12911
12912         Make use of GCC's attribute __alloc_size__.
12913         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
12914         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
12915         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
12916         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
12917         __alloc_size__.
12918         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
12919         Suggested by Jim Meyering.
12920
12921 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
12922
12923         bootstrap: anchor .gitignore entries.
12924         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
12925         with...
12926         (insert_vc_ignore): ... this new function, which prepends `/' to
12927         all .gitignore entries before passing them to
12928         insert_sorted_if_absent.
12929
12930 2010-10-16  Bruno Haible  <bruno@clisp.org>
12931
12932         nextafter: Fix configure check.
12933         * modules/nextafter (configure.ac): Correct expected prototype.
12934
12935 2010-10-16  Bruno Haible  <bruno@clisp.org>
12936
12937         termios: Update documentation.
12938         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
12939
12940 2010-10-16  Bruno Haible  <bruno@clisp.org>
12941
12942         tests: Make them compile with TinyCC.
12943         * tests/test-strstr.c (main): Remove parentheses around array
12944         initializer.
12945
12946 2010-10-15  Eric Blake  <eblake@redhat.com>
12947
12948         ignore-value: make header idempotent
12949         * lib/ignore-value.h: Add double-inclusion guards.
12950         Reported by Stefan Berger.
12951
12952 2010-10-15  Jim Meyering  <meyering@redhat.com>
12953
12954         GNUmakefile: handle "stable" target, not "major"
12955         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
12956         lists in maint.mk and announce-gen.  Without this, "make stable"
12957         would fail to ensure that $(VERSION) is up to date.
12958
12959 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
12960
12961         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
12962         & co.
12963
12964 2010-10-14  Bruno Haible  <bruno@clisp.org>
12965
12966         vasnprintf: Don't set errno to 0.
12967         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
12968         block that sets it to 0.
12969         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
12970
12971 2010-10-14  Bruno Haible  <bruno@clisp.org>
12972
12973         socketlib: Fix.
12974         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
12975         gl_PREREQ_SYS_H_WINSOCK2.
12976         Reported by Ian Beckwith <ianb@erislabs.net>.
12977
12978 2010-10-13  Jim Meyering  <meyering@redhat.com>
12979
12980         test-select-stdin.c: avoid warn_unused_result warnings
12981         * tests/test-select-stdin.c: Include "macros.h".
12982         ASSERT that read and fflush succeed.
12983
12984 2010-10-13  Jim Meyering  <meyering@redhat.com>
12985
12986         git-version-gen: do require git-VC'd files in cwd
12987         * build-aux/git-version-gen: Reject a git version string
12988         if there are no commits associated with the current directory.
12989         This avoids an unlikely false-positive (unrelated dir whose parent
12990         repository also contains a tag matching v*), as pointed out
12991         by Giuseppe Scrivano in
12992         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
12993
12994 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
12995
12996         argv-iter: omit nonconforming declaration
12997         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
12998         enum arg_iter_err declaration, which doesn't conform to C99.
12999         Solaris 10 cc warns about this.
13000
13001 2010-10-13  Eric Blake  <eblake@redhat.com>
13002
13003         termios: fix compilation on mingw
13004         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
13005         (gl_TERMIOS_H): Adjust it on mingw.
13006         * modules/termios (Makefile.am): Substitute new key.
13007         * lib/termios.in.h (includes): Make include_next conditional.
13008         * doc/posix-headers/termios.texi (termios.h): Update
13009         documentation.
13010         Reported by Daniel P. Berrange.
13011
13012 2010-10-13  Jim Meyering  <meyering@redhat.com>
13013
13014         git-version-gen: don't require that .git/ be in the current dir
13015         * build-aux/git-version-gen: Adjust this script so that it works
13016         when run from any working directory beneath the top-level .git/-
13017         containing directory.  Inspired by a patch from Giuseppe Scrivano,
13018         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
13019
13020         test-select: avoid warn_unused_result warnings
13021         * tests/test-select.c: Include "macros.h".
13022         ASSERT that each call to read, write, and pipe succeeds.
13023         While not technically required, also check each "close".
13024         * modules/select-tests (Files): Add tests/macros.h.
13025
13026         test-symlinkat: remove declaration of unused local
13027         * tests/test-symlinkat.c (main): Remove unused local, "buf".
13028
13029         test-inttostr: avoid shadowing warnings
13030         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
13031         and use malloc rather than the stack for the same reason as
13032         mentioned in the comment justifying the other allocation.
13033
13034 2010-10-11  Bruno Haible  <bruno@clisp.org>
13035
13036         stdlib: Allow multiple gnulib generated replacements to coexist.
13037         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
13038         Reported by Sam Steingold <sds@gnu.org>.
13039
13040 2010-10-11  Jim Meyering  <meyering@redhat.com>
13041
13042         fix a documentation typo
13043         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
13044
13045 2010-10-11  Eric Blake  <eblake@redhat.com>
13046
13047         futimens: work around Solaris 11 bug
13048         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
13049         * tests/test-futimens.h (test_futimens): Enhance, rather than
13050         weaken test.
13051         * doc/posix-functions/futimens.texi (futimens): Document the bug.
13052
13053 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
13054
13055         Indentation.
13056         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
13057         higher-level operators more to the left.
13058
13059 2010-10-11  Jim Meyering  <meyering@redhat.com>
13060
13061         test-futimens: avoid unwarranted test failure on Solaris 5.11
13062         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
13063         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
13064         because it tries to dereference the NULL name argument.
13065
13066 2010-10-11  Bruno Haible  <bruno@clisp.org>
13067
13068         Indentation.
13069         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
13070         indentation.
13071
13072 2010-10-11  Jim Meyering  <meyering@redhat.com>
13073
13074         spawn.in.h: make indentation consistent with parentheses
13075         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
13076         Make indentation consistent with parentheses.
13077
13078 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
13079
13080         Fix mismatched parens in previous commit
13081         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
13082         parens.
13083
13084 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
13085
13086         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
13087
13088         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
13089         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
13090         * lib/malloca.c: Include "verify.h".
13091         (verify1): Remove, replacing with a verify call.
13092         * lib/relocwrapper.c (verify1): Likewise.
13093         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
13094         Likewise.
13095         * modules/malloca (Depends-on): Add 'verify'.
13096         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
13097         * modules/vasnprintf (Depends-on): Add 'verify'.
13098         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
13099         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13100         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13101         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13102         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13103         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13104         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13105
13106         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
13107
13108         Formerly the style was sometimes 2*X - 1, because the C standard
13109         was wrongly thought to disallow ?: in integral constant expressions.
13110         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
13111         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
13112         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13113         * lib/stdint.in.h (_verify_intmax_size): Likewise.
13114         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
13115         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
13116         verify that time_t cannot be floating.
13117
13118 2010-10-08  Eric Blake  <eblake@redhat.com>
13119
13120         time: enforce recent POSIX ruling that time_t is integral
13121         * lib/time.in.h (__time_t_must_be_integral): Detect any
13122         problematic systems, allowing the rest of gnulib to assume POSIX.
13123
13124 2010-10-08  Jim Meyering  <meyering@redhat.com>
13125
13126         fdopendir: fix a bug on systems lacking openat and /proc support
13127         OpenBSD 4.7 is one such system.  The most noticeable effect was
13128         failure of any application making nontrivial use of fts: rm, du,
13129         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
13130           ./rm: traversal failed: `a': Bad file descriptor
13131         Debugging that, you see that even though FD 6 was closed just
13132         prior to the opendir call in fd_clone_opendir, its resulting
13133         dir->dd_fd was 8, rather than the expected value of 6:
13134
13135         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
13136         93                close (fd);
13137         (gdb) n
13138         94                dir = fd_clone_opendir (dupfd);
13139         (gdb) n
13140         95                saved_errno = errno;
13141         (gdb) p dir->dd_fd
13142         $11 = 8
13143
13144         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
13145         The problem is that on OpenBSD, fd_clone_opendir has to resort
13146         to using the old-style save/restore CWD mechanism, due to its
13147         lack of openat/proc support, and *that* would steal the FD (6)
13148         that opendir was supposed to use.
13149
13150         The fix is to squirrel away the desired FD so that save_cwd uses a
13151         different one, and then free the dest FD right before calling opendir.
13152         That guarantees opendir will use the required file descriptor.
13153
13154         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
13155
13156 2010-10-08  Bruno Haible  <bruno@clisp.org>
13157
13158         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
13159         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
13160
13161 2010-10-08  Bruno Haible  <bruno@clisp.org>
13162
13163         nanosleep: Make replacement POSIX compliant.
13164         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
13165         is out of range.
13166         Reported by Jim Meyering.
13167
13168 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13169
13170         bootstrap: add hook for altering gnulib.mk, for Bison
13171         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
13172         the Bison bootstrapping process can rewrite file names and variables
13173         in this file before later parts of 'bootstrap' use the file.
13174         Bison wants to include lib/gnulib.mk from the top-level makefile,
13175         so it needs the file names in this file to be relative to the top
13176         level, not relative to lib; plus it needs variable names to be
13177         rewritten.
13178         (slurp): Use the new function.
13179
13180         bootstrap: reformat for readability
13181         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
13182
13183 2010-10-08  Eric Blake  <eblake@redhat.com>
13184
13185         docs: update cygwin progress
13186         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
13187         1.7.7.
13188         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
13189         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
13190         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
13191         * doc/posix-functions/carg.texi (carg): Likewise.
13192         * doc/posix-functions/cargf.texi (cargf): Likewise.
13193         * doc/posix-functions/casin.texi (casin): Likewise.
13194         * doc/posix-functions/casinf.texi (casinf): Likewise.
13195         * doc/posix-functions/casinh.texi (casinh): Likewise.
13196         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
13197         * doc/posix-functions/catan.texi (catan): Likewise.
13198         * doc/posix-functions/catanf.texi (catanf): Likewise.
13199         * doc/posix-functions/catanh.texi (catanh): Likewise.
13200         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
13201         * doc/posix-functions/ccos.texi (ccos): Likewise.
13202         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
13203         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
13204         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
13205         * doc/posix-functions/cexp.texi (cexp): Likewise.
13206         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
13207         * doc/posix-functions/cimag.texi (cimag): Likewise.
13208         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
13209         * doc/posix-functions/clog.texi (clog): Likewise.
13210         * doc/posix-functions/clogf.texi (clogf): Likewise.
13211         * doc/posix-functions/conj.texi (conj): Likewise.
13212         * doc/posix-functions/conjf.texi (conjf): Likewise.
13213         * doc/posix-functions/cpow.texi (cpow): Likewise.
13214         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
13215         * doc/posix-functions/cproj.texi (cproj): Likewise.
13216         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
13217         * doc/posix-functions/creal.texi (creal): Likewise.
13218         * doc/posix-functions/crealf.texi (crealf): Likewise.
13219         * doc/posix-functions/csin.texi (csin): Likewise.
13220         * doc/posix-functions/csinf.texi (csinf): Likewise.
13221         * doc/posix-functions/csinh.texi (csinh): Likewise.
13222         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
13223         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
13224         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
13225         * doc/posix-functions/ctan.texi (ctan): Likewise.
13226         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
13227         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
13228         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
13229         * doc/posix-headers/complex.texi (complex.h): Likewise.
13230
13231 2010-10-07  Jim Meyering  <meyering@redhat.com>
13232
13233         parse-datetime: avoid compilation failure on OpenBSD 4.7
13234         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
13235         This works around a compilation failure on OpenBSD 4.7:
13236         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
13237
13238 2010-10-07  Eric Blake  <eblake@redhat.com>
13239
13240         docs: update cygwin progress
13241         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
13242         1.7.6.
13243         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13244         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
13245         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
13246         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
13247         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
13248         Likewise.
13249         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
13250         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
13251         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
13252         Likewise.
13253         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
13254         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
13255         Likewise.
13256         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
13257         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
13258         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
13259         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
13260         Likewise.
13261         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
13262         Likewise.
13263         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
13264
13265         docs: update parse-datetime history
13266         * doc/parse-datetime.texi (Authors of parse_datetime): Better
13267         documentation of this function's history and alternatives.
13268
13269         cygwin: use more robust version check
13270         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
13271         exclude an eventual cygwin 1.9.1.
13272         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13273         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13274         (gl_FUNC_STRCASESTR): Likewise.
13275         Reported by Bruno Haible.
13276
13277 2010-10-06  Bruno Haible  <bruno@clisp.org>
13278
13279         string, sys_select: Avoid #including large headers unless necessary.
13280         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
13281         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
13282         OSF/1, BeOS, Haiku.
13283         Reported by Jim Meyering.
13284
13285 2010-10-05  Eric Blake  <eblake@redhat.com>
13286
13287         memmem, strstr, strcasestr: fix bug with long periodic needle
13288         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
13289         periodic needle having false positive.
13290         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
13291         and cygwin 1.7.7.
13292         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
13293         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13294         (gl_FUNC_STRCASESTR): Likewise.
13295         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13296         * tests/test-memmem.c (main): Expose the bug.
13297         * tests/test-strcasestr.c (main): Likewise.
13298         * tests/test-strstr.c (main): Likewise.
13299         * tests/test-c-strcasestr.c (main): Likewise.
13300         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
13301         * doc/posix-functions/strstr.texi (strstr): Likewise.
13302         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13303         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
13304
13305 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13306
13307         parse-datetime: do some more renaming
13308         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
13309         parse_datetime, not get_date.  Mention the renaming.
13310         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
13311         in comments.
13312         * m4/bison.m4: Likewise.
13313
13314 2010-10-05  Eric Blake  <eblake@redhat.com>
13315
13316         parse-datetime: better name than get_date
13317         * NEWS: Reword the deprecation notice.
13318         * modules/get_date: Rename to modules/parse-datetime.
13319         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
13320         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
13321         * lib/get_date.y: Rename to lib/parse-datetime.y.
13322         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
13323         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
13324         * doc/getdate.texi: Provide fallback wrapper.
13325         * lib/getdate.h: Move guts, and wrap...
13326         * lib/parse-datetime.h: ...new file.
13327         * lib/parse-datetime.y (get_date): Rename...
13328         (parse_datetime): ...to this.
13329         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
13330         (gl_PARSE_DATETIME): ...to this.
13331         * doc/posix-functions/getdate.texi (get_date): Provide fallback
13332         documentation.
13333         * modules/getdate (Files): Provide fallback docs and header.
13334         (Notice, Depends-on): Update references.
13335         * tests/test-parse-datetime.c: Likewise.
13336         * DEPENDENCIES: Likewise.
13337         * MODULES.html.sh (Date and time <time.h>): Likewise.
13338         * doc/parse-datetime.texi (Date input formats)
13339         (Authors of parse_datetime): Likewise.
13340         * modules/parse-datetime (Files, configure.ac, Makefile.am)
13341         (Include): Likewise.
13342         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
13343         * gnulib-tool: Likewise.
13344         * m4/bison.m4 (gl_BISON): Likewise.
13345         Suggested by Bruno Haible.
13346
13347 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13348
13349         more ports to Solaris tr, which needs [] around ranges
13350         * gnulib-tool: Solaris tr needs [] around ranges.
13351         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13352         * tests/test-pipe-filter-gi1.c (main): Likewise.
13353         * tests/test-pipe-filter-ii1.c (main): Likewise.
13354
13355 2010-10-05  Eric Blake  <eblake@redhat.com>
13356
13357         bootstrap: fix Solaris regression
13358         * build-aux/bootstrap (check_versions): Solaris tr still needs []
13359         around ranges.
13360         Reported by Pádraig Brady.
13361
13362         bootstrap: work with pkg-config
13363         * build-aux/bootstrap (check_versions): Also transliterate - in
13364         prerequisite name.
13365         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
13366         prerequisites that were already found, to avoid confusion.
13367         Reported by Justin Clift.
13368
13369         faccessat: remove unused wrappers
13370         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
13371         presence of these wrappers dragged in -lgen on Solaris.
13372         Reported by Clemens Brogi; fix suggested by Paul Eggert.
13373
13374 2010-10-05  Jim Meyering  <meyering@redhat.com>
13375
13376         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
13377         * Makefile (sc_pragma_columns): New syntax-check rule.
13378
13379 2010-10-04  Bruno Haible  <bruno@clisp.org>
13380
13381         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
13382         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
13383         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
13384         Reported by Bruce Korb and Eric Blake.
13385
13386 2010-10-04  Bruno Haible  <bruno@clisp.org>
13387
13388         threadlib: Make option --with-libpth-prefix work.
13389         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
13390         use $LIBPTH, not just -lpth.
13391
13392 2010-10-04  Bruno Haible  <bruno@clisp.org>
13393
13394         Avoid line length limitation from HP NonStop system header files.
13395         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
13396         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
13397         * lib/ctype.in.h: Likewise.
13398         * lib/dirent.in.h: Likewise.
13399         * lib/errno.in.h: Likewise.
13400         * lib/fcntl.in.h: Likewise.
13401         * lib/float.in.h: Likewise.
13402         * lib/getopt.in.h: Likewise.
13403         * lib/iconv.in.h: Likewise.
13404         * lib/inttypes.in.h: Likewise.
13405         * lib/langinfo.in.h: Likewise.
13406         * lib/locale.in.h: Likewise.
13407         * lib/math.in.h: Likewise.
13408         * lib/netdb.in.h: Likewise.
13409         * lib/netinet_in.in.h: Likewise.
13410         * lib/poll.in.h: Likewise.
13411         * lib/pthread.in.h: Likewise.
13412         * lib/pty.in.h: Likewise.
13413         * lib/sched.in.h: Likewise.
13414         * lib/se-selinux.in.h: Likewise.
13415         * lib/search.in.h: Likewise.
13416         * lib/signal.in.h: Likewise.
13417         * lib/spawn.in.h: Likewise.
13418         * lib/stdarg.in.h: Likewise.
13419         * lib/stddef.in.h: Likewise.
13420         * lib/stdint.in.h: Likewise.
13421         * lib/stdio.in.h: Likewise.
13422         * lib/stdlib.in.h: Likewise.
13423         * lib/string.in.h: Likewise.
13424         * lib/strings.in.h: Likewise.
13425         * lib/sys_file.in.h: Likewise.
13426         * lib/sys_ioctl.in.h: Likewise.
13427         * lib/sys_select.in.h: Likewise.
13428         * lib/sys_socket.in.h: Likewise.
13429         * lib/sys_stat.in.h: Likewise.
13430         * lib/sys_time.in.h: Likewise.
13431         * lib/sys_times.in.h: Likewise.
13432         * lib/sys_utsname.in.h: Likewise.
13433         * lib/sys_wait.in.h: Likewise.
13434         * lib/sysexits.in.h: Likewise.
13435         * lib/termios.in.h: Likewise.
13436         * lib/time.in.h: Likewise.
13437         * lib/unistd.in.h: Likewise.
13438         * lib/wchar.in.h: Likewise.
13439         * lib/wctype.in.h: Likewise.
13440         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
13441         * modules/ctype (Makefile.am): Likewise.
13442         * modules/dirent (Makefile.am): Likewise.
13443         * modules/errno (Makefile.am): Likewise.
13444         * modules/fcntl-h (Makefile.am): Likewise.
13445         * modules/float (Makefile.am): Likewise.
13446         * modules/getopt-posix (Makefile.am): Likewise.
13447         * modules/iconv-h (Makefile.am): Likewise.
13448         * modules/inttypes (Makefile.am): Likewise.
13449         * modules/langinfo (Makefile.am): Likewise.
13450         * modules/locale (Makefile.am): Likewise.
13451         * modules/math (Makefile.am): Likewise.
13452         * modules/netdb (Makefile.am): Likewise.
13453         * modules/netinet_in (Makefile.am): Likewise.
13454         * modules/poll-h (Makefile.am): Likewise.
13455         * modules/pthread (Makefile.am): Likewise.
13456         * modules/pty (Makefile.am): Likewise.
13457         * modules/sched (Makefile.am): Likewise.
13458         * modules/search (Makefile.am): Likewise.
13459         * modules/selinux-h (Makefile.am): Likewise.
13460         * modules/signal (Makefile.am): Likewise.
13461         * modules/spawn (Makefile.am): Likewise.
13462         * modules/stdarg (Makefile.am): Likewise.
13463         * modules/stddef (Makefile.am): Likewise.
13464         * modules/stdint (Makefile.am): Likewise.
13465         * modules/stdio (Makefile.am): Likewise.
13466         * modules/stdlib (Makefile.am): Likewise.
13467         * modules/string (Makefile.am): Likewise.
13468         * modules/strings (Makefile.am): Likewise.
13469         * modules/sys_file (Makefile.am): Likewise.
13470         * modules/sys_ioctl (Makefile.am): Likewise.
13471         * modules/sys_select (Makefile.am): Likewise.
13472         * modules/sys_socket (Makefile.am): Likewise.
13473         * modules/sys_stat (Makefile.am): Likewise.
13474         * modules/sys_time (Makefile.am): Likewise.
13475         * modules/sys_times (Makefile.am): Likewise.
13476         * modules/sys_utsname (Makefile.am): Likewise.
13477         * modules/sys_wait (Makefile.am): Likewise.
13478         * modules/sysexits (Makefile.am): Likewise.
13479         * modules/termios (Makefile.am): Likewise.
13480         * modules/time (Makefile.am): Likewise.
13481         * modules/unistd (Makefile.am): Likewise.
13482         * modules/wchar (Makefile.am): Likewise.
13483         * modules/wctype (Makefile.am): Likewise.
13484
13485 2010-10-04  Bruno Haible  <bruno@clisp.org>
13486
13487         read-file tests: Avoid a test failure on NonStop Kernel.
13488         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
13489         a regular file.
13490         Reported by Joachim Schmitz <schmitz@hp.com>.
13491
13492 2010-10-03  Bruno Haible  <bruno@clisp.org>
13493
13494         gnulib-tool: Fixes for --create-testdir with --libtool.
13495         * gnulib-tool (func_get_automake_snippet): Don't augment
13496         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
13497         an executable.
13498         (func_create_testdir): Handle module 'alloca' like func_import.
13499         Reported by Bruce Korb <bruce.korb@gmail.com>.
13500
13501 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
13502
13503         Avoid some lines longer than 80 characters.
13504         * lib/stdint.in.h: Break long comment lines.
13505         * lib/math.in.h: Likewise.
13506         (_GL_NUM_UINT_WORDS): New macro, for readability.
13507         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
13508         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
13509         * lib/stdlib.in.h: Likewise.
13510         * lib/spawn.in.h: Likewise.
13511         * lib/sys_socket.in.h: Update an URL.
13512         * lib/sys_stat.in.h: Break long line.
13513
13514 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
13515
13516         Improve pmccabe2html.
13517         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
13518         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
13519         when the sources change. Remove the line in the HTML about "Used
13520         ranges" (which implied that there might be other unused ranges),
13521         rename "Resume" to "Summary" (easier to understand for more users).
13522         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
13523         styles, and some unnecessary blank lines.
13524
13525 2010-10-03  Bruno Haible  <bruno@clisp.org>
13526             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13527
13528         acl: Add support for ACLs on NonStop Kernel.
13529         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
13530         Check whether the function aclsort() exists.
13531         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
13532         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
13533         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13534         (acl_nontrivial [HAVE_ACLSORT]: New function.
13535         (file_has_acl): Implement for NonStop Kernel.
13536         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13537         (qset_acl): Implement for NonStop Kernel.
13538         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
13539         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13540         (main): Implement for NonStop Kernel.
13541         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
13542         Kernel. Handle this flavor.
13543         * tests/test-set-mode-acl.sh: Likewise.
13544         * tests/test-copy-acl.sh: Likewise.
13545         * tests/test-copy-file.sh: Likewise.
13546
13547 2010-10-03  Bruno Haible  <bruno@clisp.org>
13548
13549         Info about ACLs on NonStop Kernel.
13550         * doc/acl-resources.txt: Add info about NonStop Kernel.
13551         References by Joachim Schmitz <schmitz@hp.com>.
13552
13553 2010-10-02  Bruno Haible  <bruno@clisp.org>
13554
13555         Define missing EDQUOT on NonStop Kernel.
13556         * lib/errno.in.h (EDQUOT): Assign a value if missing.
13557         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
13558         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
13559         missing.
13560         * doc/posix-headers/errno.texi: Mention the NSK bug.
13561         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
13562         Reported by Joachim Schmitz <schmitz@hp.com>.
13563
13564 2010-10-02  Bruno Haible  <bruno@clisp.org>
13565
13566         Update doc for POSIX:2008.
13567         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
13568         Update URL of POSIX specification.
13569
13570 2010-10-02  Bruno Haible  <bruno@clisp.org>
13571
13572         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
13573         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
13574         from gnulib, not from Automake.
13575
13576 2010-10-02  Bruno Haible  <bruno@clisp.org>
13577
13578         New module 'system-posix'.
13579         * modules/system-posix: New file.
13580         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
13581         module is present.
13582         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
13583         GNULIB_SYSTEM_POSIX.
13584         * modules/stdlib (Depends-on): Remove sys_wait.
13585         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
13586         * doc/posix-functions/system.texi: Mention the new module.
13587         * doc/posix-headers/stdlib.texi: Likewise.
13588         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
13589         define test_sys_wait_macros to a no-op.
13590         Reported by Sam Steingold <sds@gnu.org>.
13591
13592 2010-09-30  Bruno Haible  <bruno@clisp.org>
13593
13594         More renaming from 'getdate' to 'get_date'.
13595         * doc/get_date.texi: Renamed from doc/getdate.texi.
13596         * modules/get_date (Files): Update.
13597         * MODULES.html.sh (Date and time <time.h>): Update.
13598         * DEPENDENCIES: Update.
13599         * gnulib-tool: Update comment.
13600         * m4/bison.m4 (gl_BISON): Likewise.
13601         * m4/get_date.m4 (gl_GET_DATE): Likewise.
13602
13603 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
13604
13605         bootstrap: support ACLOCAL_FLAGS during aclocal
13606         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
13607         can add additional -I dir for third-party .m4 files.
13608
13609 2010-09-30  Eric Blake  <eblake@redhat.com>
13610
13611         bootstrap: use glibtoolize on MacOS
13612         * build-aux/bootstrap (check_versions): Convert libtool into
13613         libtoolize.
13614         (tool search): Move libtool check earlier, and look for
13615         glibtoolize for MacOS.
13616         (gnulib_tool_options): Auto-add --libtool when appropriate.
13617         Reported by Justin Clift.
13618
13619         poll: fix typo that broke test on MacOS
13620         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
13621         Reported by Justin Clift.
13622
13623         getdate: rename to get_date
13624         Note: getdate.h is not renamed, to minimize client impact.
13625         * modules/getdate: Mark obsolete.  Move old contents...
13626         * modules/get_date: ...to new module name.
13627         * modules/getdate-tests: Move...
13628         * modules/get_date-tests: ...here.
13629         * m4/getdate.m4: Move...
13630         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
13631         * lib/getdate.y: Move...
13632         * lib/get_date.y: ...here.
13633         * tests/test-getdate.c: Move...
13634         * tests/test-get_date.c: ...here.
13635         * doc/posix-functions/getdate.texi (getdate): Update name.
13636         * NEWS: Mention the change.
13637
13638 2010-09-29  Bruno Haible  <bruno@clisp.org>
13639
13640         Separate the module 'waitpid' from the module 'sys_wait'.
13641         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
13642         present.
13643         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
13644         gl_MODULE_INDICATOR_FOR_TESTS.
13645         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
13646         * modules/sys_wait (Depends-on): Remove waitpid.
13647         (Makefile.am): Substitute GNULIB_WAITPID.
13648         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
13649         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
13650         signature only if the 'waitpid' module is present.
13651         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
13652         * NEWS: Mention the change.
13653         * modules/grantpt (Depends-on): Add waitpid.
13654         * modules/wait-process (Depends-on): Likewise.
13655
13656 2010-09-29  Bruno Haible  <bruno@clisp.org>
13657
13658         More tests for module 'sys_wait'.
13659         * modules/sys_wait-c++-tests: New file.
13660         * tests/test-sys_wait-c++.cc: New file.
13661         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
13662         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13663
13664 2010-09-29  Bruno Haible  <bruno@clisp.org>
13665
13666         New module 'waitpid'.
13667         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
13668         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
13669         Don't include <process.h>.
13670         (waitpid): Declare only, using modern idiom.
13671         * m4/waitpid.m4: New file.
13672         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
13673         * modules/waitpid: New file.
13674         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
13675         (Makefile.am): Update.
13676         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13677
13678 2010-09-28  Bruno Haible  <bruno@clisp.org>
13679
13680         poll: Assume ANSI C.
13681         * lib/poll.c (poll): Use an ANSI C declaration.
13682
13683 2010-09-28  Bruno Haible  <bruno@clisp.org>
13684
13685         poll-h: Create poll.h on all platforms.
13686         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
13687         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
13688         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
13689         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
13690         (gl_REPLACE_POLL_H): Don't set POLL_H.
13691         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
13692         * modules/poll-h (Depends-on): Add include_next.
13693         (Makefile.am): Create poll.h unconditionally. Substitute also
13694         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
13695
13696 2010-09-28  Bruno Haible  <bruno@clisp.org>
13697
13698         Tests for module 'poll-h'.
13699         * modules/poll-h-c++-tests: New file.
13700         * tests/test-poll-h-c++.cc: New file.
13701
13702         Tests for module 'poll-h'.
13703         * modules/poll-h-tests: New file.
13704         * tests/test-poll-h.c: New file.
13705
13706 2010-09-28  Bruno Haible  <bruno@clisp.org>
13707
13708         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
13709         * modules/poll-h (Depends-on): Add 'extensions'.
13710
13711 2010-09-28  Bruno Haible  <bruno@clisp.org>
13712
13713         New module 'poll-h'.
13714         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
13715         (poll): Use modern idiom.
13716         * modules/poll-h: New file.
13717         * modules/poll (Files): Remove lib/poll.in.h.
13718         (Depends-on): Add poll-h.
13719         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
13720         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
13721         * m4/poll_h.m4: New file.
13722         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
13723         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
13724         and invoke gl_REPLACE_POLL_H.
13725         * lib/poll.c: Use common idiom.
13726         * tests/test-poll.c: Likewise.
13727         * doc/posix-headers/poll.texi: Mention the poll-h module.
13728         Suggested by Eric Blake.
13729
13730 2010-09-26  Bruno Haible  <bruno@clisp.org>
13731
13732         sys_wait: Implement WSTOPSIG.
13733         * lib/sys_wait.in.h (WSTOPSIG): New macro.
13734         Reported by Simon Josefsson.
13735
13736 2010-09-26  Simon Josefsson  <simon@josefsson.org>
13737
13738         stdlib, sys_wait: Avoid compilation error on mingw.
13739         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
13740
13741 2010-09-26  Bruno Haible  <bruno@clisp.org>
13742
13743         stdlib tests: Avoid code duplication.
13744         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
13745         * modules/sys_wait-tests (Files): Likewise.
13746         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
13747         * tests/test-stdlib.c: Include test-sys_wait.h.
13748         (main): Invoke test_sys_wait_macros.
13749         * tests/test-sys_wait.c: Include test-sys_wait.h.
13750         (main): Invoke test_sys_wait_macros.
13751
13752 2010-09-25  Simon Josefsson  <simon@josefsson.org>
13753
13754         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
13755         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
13756         sure Windows sockets are working before calling getaddrinfo.
13757         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
13758         * doc/gnulib.texi (Windows sockets): Fix typo.
13759
13760 2010-09-25  Bruno Haible  <bruno@clisp.org>
13761
13762         Tests for module 'regex-quote'.
13763         * modules/regex-quote-tests: New file.
13764         * tests/test-regex-quote.c: New file.
13765
13766         New module 'regex-quote'.
13767         * lib/regex-quote.h: New file.
13768         * lib/regex-quote.c: New file.
13769         * modules/regex-quote: New file.
13770         Suggested by Reuben Thomas <rrt@sc3d.org>.
13771
13772 2010-09-24  Bruno Haible  <bruno@clisp.org>
13773
13774         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
13775         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
13776
13777 2010-09-23  Bruno Haible  <bruno@clisp.org>
13778
13779         setenv: Relax license.
13780         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
13781         Blake.
13782         Requested by Eric Blake.
13783
13784 2010-09-22  Bruno Haible  <bruno@clisp.org>
13785
13786         termios: Relax license.
13787         * modules/termios (License): Change to LGPLv2+.
13788         Requested by Eric Blake.
13789
13790 2010-09-22  Bruno Haible  <bruno@clisp.org>
13791
13792         threadlib: Allow the package to change the default to 'no'.
13793         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
13794         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
13795         Reported by Paul Eggert.
13796
13797 2010-09-22  Pádraig Brady  <P@draigbrady.com>
13798             Bruno Haible  <bruno@clisp.org>
13799
13800         Fix endless loop in mbmemcasecoll.
13801         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
13802         byte.
13803         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
13804
13805 2010-09-22  Bruno Haible  <bruno@clisp.org>
13806
13807         Tests for module 'memcoll'.
13808         * modules/memcoll-tests: New file.
13809         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
13810
13811         memcoll, xmemcoll: Clarify size vs. length.
13812         * modules/memcoll.c (memcoll0): Clarify specification.
13813         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
13814         passed to collate_error.
13815
13816 2010-09-22  Bruno Haible  <bruno@clisp.org>
13817
13818         Tests for module 'memcasecmp'.
13819         * modules/memcasecmp-tests: New file.
13820         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
13821
13822 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
13823
13824         * lib/pthread.in.h: Add split double-inclusion guard, and include
13825         system <pthread.h> if there is one.  Use @@-style as in other
13826         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
13827         pthread.h doesn't.
13828         (pthread_mutexattr_destroy, pthread_mutexattr_init):
13829         (pthread_mutexattr_settype, pthread_mutex_trylock):
13830         New static inline functions, if there's no system <pthread.h>.
13831         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
13832         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
13833         Approximate with mutexes if the system lacks spinlocks, as in
13834         MacOS.
13835         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
13836         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
13837         @@-style.  Check for spinlocks separately.
13838         (gl_PTHREAD_DEFAULTS): New macro.
13839         * modules/pthread: Redo to use a more typical style for in.h files.
13840
13841 2010-09-21  Eric Blake  <eblake@redhat.com>
13842
13843         net_if: enhance tests
13844         * tests/test-net_if.c (main): Move signature checks earlier.
13845         Print failures to stderr.
13846         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
13847         Document the bug that we do not yet fix.
13848
13849 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
13850
13851         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
13852         about gnulib, not GSS.
13853
13854 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
13855
13856         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
13857         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
13858         for Emacs.
13859         * build-aux/pmccabe2html: Make Makefile.am example code more
13860         cut-and-paste friendly.
13861
13862 2010-09-21  Simon Josefsson  <simon@josefsson.org>
13863
13864         * tests/test-net_if.c: New file.
13865         * modules/net_if-tests: New file.
13866
13867 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
13868
13869         pthread: add pthread_spin_destroy
13870         * lib/pthread.in.h (pthread_spin_destroy): New function.
13871
13872 2010-09-19  Bruno Haible  <bruno@clisp.org>
13873
13874         gnulib-tool: Fix --help output.
13875         * gnulib-tool (func_usage): Fix help message.
13876         Reported by Reuben Thomas <rrt@sc3d.org>.
13877
13878 2010-09-18  Jim Meyering  <meyering@redhat.com>
13879
13880         maint.mk: avoid unexpanded \n in two diagnostics
13881         * top/maint.mk (sc_prohibit_always_true_header_tests):
13882         Don't use a literal \n in a halt=... assignment.  It would not be
13883         expanded, and the two \n bytes would appear in the diagnostic output
13884         rather than the desired newline.  Use halt=$$(printf ... instead.
13885         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
13886
13887 2010-09-18  Bruno Haible  <bruno@clisp.org>
13888
13889         netinet_in: Doc tweak.
13890         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
13891         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13892
13893 2010-09-18  Jim Meyering  <meyering@redhat.com>
13894
13895         init.sh: correct an outdated comment
13896         * tests/init.sh (create_exe_shims_):  s/function/alias/
13897
13898         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
13899         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
13900         a file named "*.exe" is removed between the glob expansion and the
13901         processing of that oddly named file.
13902
13903 2010-09-17  Eric Blake  <eblake@redhat.com>
13904
13905         mirbsd: add some more support
13906         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
13907         in BSD family.
13908         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
13909         devices as OpenBSD.
13910         * m4/host-os.m4 (mirbsd): Add MirBSD.
13911
13912         tests: fix unportable assumption on sys/wait.h
13913         * tests/test-sys_wait.c (main): Relax test.
13914         * tests/test-stdlib.c (main): Likewise.
13915
13916         init.sh: accomodate directory with no .exes
13917         * tests/init.sh: Accomodate directory containing only scripts.
13918
13919         tests: avoid compiler warning
13920         * tests/test-stdlib.c (main): Use the variable.
13921
13922         fdutimens, fdutimensat: update signature, again
13923         * lib/utimens.h (gl_futimens): Delete, and move signature...
13924         (fdutimens): ...here.
13925         (fdutimensat): Rearrange signature.
13926         (lutimensat): Rename variable for clarity.
13927         * lib/fdutimensat.c (fdutimensat): Update signature.
13928         * lib/utimens.c (fdutimens): Likewise.
13929         (gl_futimens): Delete.
13930         (utimens, lutimens): Update callers.
13931         * lib/futimens.c (futimens): Likewise.
13932         * tests/test-fdutimensat.c: Likewise.
13933         * tests/test-utimens.c: Likewise.
13934         * tests/test-futimens.h: Update comment.
13935         * NEWS: Mention this.
13936         Suggested by Paul Eggert.
13937
13938 2010-09-17  Bruno Haible  <bruno@clisp.org>
13939
13940         Take over the maintenance of some older macros from Autoconf.
13941         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
13942         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
13943         GNU Autoconf.
13944         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
13945         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
13946
13947 2010-09-17  Eric Blake  <eblake@redhat.com>
13948
13949         fdutimensat: drop atflag validation
13950         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
13951         with valid fd, to close a race scenario where futimens is
13952         unsupported and FILE was replaced by a symlink.
13953         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
13954         accordingly.
13955         Suggested by Paul Eggert.
13956
13957 2010-09-16  Bruno Haible  <bruno@clisp.org>
13958
13959         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
13960         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
13961
13962 2010-09-16  Bruno Haible  <bruno@clisp.org>
13963
13964         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
13965         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
13966         login_tty exists.
13967         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13968
13969 2010-09-16  Bruno Haible  <bruno@clisp.org>
13970
13971         login_tty: Make the replacement code work on BSD systems.
13972         * lib/login_tty.c: Include <sys/ioctl.h>.
13973         (login_tty): Use ioctl TIOCSCTTY when available.
13974         * modules/login_tty (Depends-on): Add sys_ioctl.
13975         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13976
13977 2010-09-16  Bruno Haible  <bruno@clisp.org>
13978
13979         login_tty: Stricter unit test.
13980         * modules/login_tty-tests (Depends-on): Add tcgetsid.
13981         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
13982         and tcgetsid() after login_tty.
13983         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13984
13985 2010-09-16  Bruno Haible  <bruno@clisp.org>
13986
13987         New module 'tcgetsid'.
13988         * lib/tcgetsid.c: New file.
13989         * m4/tcgetsid.m4: New file.
13990         * modules/tcgetsid: New file.
13991         * modules/termios (Depends-on): Add c++defs, warn-on-use.
13992         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
13993         GNULIB_TCGETSID, HAVE_TCGETSID.
13994         * lib/termios.in.h: Include <sys/types.h>.
13995         (tcgetsid): New declaration.
13996         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
13997         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
13998         * doc/posix-functions/tcgetsid.texi: Mention the new module.
13999         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
14000
14001 2010-09-16  Bruno Haible  <bruno@clisp.org>
14002
14003         Tests for module 'termios'.
14004         * modules/termios-c++-tests: New file.
14005         * modules/termios-tests: New file.
14006         * tests/test-termios-c++.cc: New file.
14007         * tests/test-termios.c: New file.
14008
14009         New module 'termios'.
14010         * modules/termios: New file.
14011         * lib/termios.in.h: New file.
14012         * m4/termios_h.m4: New file.
14013         * doc/posix-headers/termios.texi: Mention the new module.
14014
14015 2010-09-16  Eric Blake  <eblake@redhat.com>
14016
14017         fdutimensat: add an atflag parameter
14018         * lib/fdutimensat.c (fdutimensat): Add new parameter.
14019         * lib/utimens.h (fdutimensat): Update prototype.
14020         * tests/test-fdutimensat.c: Adjust test to match.
14021         * NEWS: Document the change.
14022         Suggested by Paul Eggert.
14023
14024 2010-09-16  Bruno Haible  <bruno@clisp.org>
14025
14026         Fix typos in comments.
14027         * lib/striconveh.h: Fix typo in comment.
14028         * lib/login_tty.c (login_tty): Likewise.
14029
14030 2010-09-15  Bruno Haible  <bruno@clisp.org>
14031
14032         stdlib: clarify MirBSD WEXITSTATUS bug
14033         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
14034         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14035
14036 2010-09-15  Eric Blake  <eblake@redhat.com>
14037
14038         stdlib: work around MirBSD WEXITSTATUS bug
14039         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
14040         * modules/stdlib (Depends-on): Add sys_wait.
14041         * tests/test-sys_wait.c (main): Enhance test.
14042         * tests/test-stdlib.c (main): Likewise.
14043         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
14044
14045         docs: mention MacOS issue with WEXITSTATUS(constant)
14046         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
14047         issue.
14048         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14049
14050         strnlen: add tests
14051         * modules/strnlen-tests: New file.
14052         * tests/test-strnlen.c: Likewise.
14053
14054 2010-09-14  Bruno Haible  <bruno@clisp.org>
14055
14056         unistr/base: Avoid link errors when module 'libunistring' is also used.
14057         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
14058         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
14059         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
14060         Declare also when HAVE_LIBUNISTRING is set.
14061         Reported by Pádraig Brady <P@draigbrady.com>.
14062
14063 2010-09-14  Eric Blake  <eblake@redhat.com>
14064
14065         test-rawmemchr: make more robust
14066         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
14067         (Depends-on, configure.ac): Add needed prerequisites to use it.
14068         * modules/memchr-tests (Files, Depends-on, configure.ac):
14069         Likewise, to avoid implicit reliance on memchr module prereqs.
14070         * tests/test-memchr.c (main): Ensure proper masking.
14071         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
14072         reads.
14073
14074         memchr: detect glibc Alpha bug
14075         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
14076         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
14077         Alpha.
14078         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
14079         * tests/test-memchr.c (main): Enhance test.
14080         Reported by Nelson H. F. Beebe.
14081
14082 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14083
14084         fts, getcwd, glob: audit for dirfd returning -1
14085         * lib/fts.c (opendir): Remove #define; no longer used.
14086         (opendirat): New arg PDIR_FD.  All callers changed.
14087         (fts_build, _opendir2): Use new opendirat to avoid the need for
14088         dirfd, or for checking whether dirfd returns a negative value.
14089         Don't use opendir; always use openat followed by fdopendir.
14090         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
14091         it.
14092         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
14093         returns -1 here.
14094         * modules/fts (Depends-on): Remove dirfd.
14095         * modules/getcwd (Depends-on): Likewise.
14096
14097 2010-09-13  Eric Blake  <eblake@redhat.com>
14098
14099         float: fix broken MirBSD header
14100         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
14101         * doc/posix-headers/float.texi (float.h): Document it.
14102
14103 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14104
14105         fts: use O_NOFOLLOW to avoid race condition when opening a directory
14106         * lib/fts.c (opendirat): New arg extra_flags.
14107         (__opendir2): Use it to avoid following symlinks when opening
14108         a directory, if symlinks are not supposed to be followed.  See
14109         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
14110
14111         fdopendir: preserve argument fd before returning
14112         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
14113         (fdopendir_with_dup, fd_clone_opendir): New static functions.
14114         (fdopendir): Use them, arranging for FD to be open to the same
14115         directory that it was when it started.  (It might be temporarily
14116         closed while fdopendir is running, so this not thread- or
14117         signal-safe.)  Be careful to do the right thing even when file
14118         descriptors are scarce and dup fails with errno == EMFILE.  See
14119         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
14120
14121 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
14122
14123         regex: Pass the system regex if its only problem is 32-bit regoff_t.
14124         * NEWS: Document change.
14125         * m4/regex.m4: Disable test for regoff_t size.
14126
14127 2010-09-13  Jim Meyering  <meyering@redhat.com>
14128
14129         fts: don't operate on an invalid file descriptor after failed dup
14130         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
14131         negative file descriptor.
14132
14133 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
14134
14135         savedir: add streamsavedir, deprecate fdsavedir
14136         * NEWS: Mention deprecation of fdsavedir.
14137         * lib/savedir.c (streamsavedir): New extern function, whose name
14138         ends in "savedir" to be consistent with the others.  This differs
14139         from savedirstream in that it doesn't close its argument.  The
14140         next version of GNU tar will use this instead of fdsavedir, to
14141         avoid some race conditions and conserve file descriptors.
14142         (savedirstream): Reimplement as a wrapper around streamsavedir.
14143         (fdsavedir): Add a comment deprecating this function.  As far as
14144         I know, only GNU tar used it, and GNU tar doesn't need it any more.
14145         * lib/savedir.h (streamsavedir): New decl.
14146         (fdsavedir): Add a comment deprecating this.
14147
14148 2010-09-10  Bruno Haible  <bruno@clisp.org>
14149
14150         langinfo: Fix last commit.
14151         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
14152         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
14153         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14154
14155 2010-09-10  Bruno Haible  <bruno@clisp.org>
14156
14157         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
14158         * lib/progreloc.c (O_EXEC): Define fallback.
14159
14160 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
14161
14162         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
14163         * NEWS: Document recent changes to fcntl-h.
14164         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
14165         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
14166         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
14167         Similarly for O_SEARCH; this last was already true, but not documented.
14168         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
14169         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
14170         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
14171         Likewise.
14172         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
14173         is zero, not whether it is defined.
14174         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
14175         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
14176         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
14177
14178 2010-09-10  Bruno Haible  <bruno@clisp.org>
14179
14180         langinfo, nl_langinfo: Fix for IRIX 5.3.
14181         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
14182         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
14183         HAVE_LANGINFO_YESEXPR.
14184         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
14185         HAVE_LANGINFO_YESEXPR.
14186         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
14187         HAVE_LANGINFO_T_FMT_AMPM is 0.
14188         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
14189         HAVE_LANGINFO_YESEXPR is 0.
14190         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
14191         NOEXPR.
14192         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
14193         * doc/posix-functions/nl_langinfo.texi: Likewise.
14194         Reported by Eric Blake.
14195
14196 2010-09-10  Bruno Haible  <bruno@clisp.org>
14197
14198         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
14199         * doc/glibc-functions/login_tty.texi: Mention the include file problem
14200         on FreeBSD 8.0 and OpenBSD 4.6.
14201         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
14202         * m4/pty_h.m4 (gl_PTY_H): Likewise.
14203         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
14204         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
14205         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
14206         ac_includes_default.
14207         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14208
14209 2010-09-09  Eric Blake  <eblake@redhat.com>
14210
14211         strsignal: work around NetBSD bug
14212         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
14213         * lib/string.in.h (includes): Likewise.
14214         * doc/posix-functions/strsignal.texi (strsignal): Document the
14215         bug.
14216         Reported by Nelson H. F. Beebe.
14217
14218         gnulib-tool: work with NetBSD /bin/sh
14219         * gnulib-tool (func_cache_var, func_cache_lookup_module)
14220         (func_get_description, func_get_comment, func_get_status)
14221         (func_get_notice, func_get_applicability, func_get_filelist)
14222         (func_get_dependencies, func_get_autoconf_early_snippet)
14223         (func_get_autoconf_snippet, func_get_automake_snippet)
14224         (func_get_include_directive, func_get_link_directive)
14225         (func_get_license, func_get_maintainer, func_import): Avoid
14226         shell syntax errors from parsing syntax extensions.
14227
14228 2010-09-09  Bruno Haible  <bruno@clisp.org>
14229
14230         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14231         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
14232         a reliable way to determine whether the 'alias' command works.
14233
14234 2010-09-08  Jim Meyering  <meyering@redhat.com>
14235
14236         init.sh: penalize a set-x-impaired shell; don't disqualify it
14237         * tests/init.sh: Too many shells corrupt application stderr when
14238         you set -x, so we can't afford to disqualify them, since at least
14239         on Irix-6.5, that would disqualify all bourne shells.
14240         Instead, use a two-pass approach.
14241         On the first pass, try to find a shell that meets the stricter
14242         condition that set -x does not corrupt stderr.
14243         If no shell meets the stricter condition, retest each candidate
14244         shell, but without that extra condition.  Finally, when
14245         VERBOSE=yes is requested and set -x might cause trouble, simply
14246         issue a warning and refrain from enabling debug output.
14247
14248 2010-09-08  Eric Blake  <eblake@redhat.com>
14249
14250         unsetenv: fix OpenBSD bug
14251         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
14252         * doc/posix-functions/unsetenv.texi (unsetenv): Update
14253         documentation.
14254         Reported by Jim Meyering.
14255
14256         strtod: work around IRIX 6.5 bug
14257         * lib/strtod.c (strtod): Reparse number on shorter string if
14258         exponent parse was invalid.
14259         * tests/test-strtod.c (main): Add check for "0x1p 2".
14260         Reported by Tom G. Christensen.
14261
14262         getopt: optimize previous patch
14263         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
14264         empty variable.  Speed up awk script.
14265         Reported by Paolo Bonzini.
14266
14267 2010-09-08  Jim Meyering  <meyering@redhat.com>
14268
14269         test.sh: disqualify shells for which set -x corrupts stderr
14270         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
14271         and OpenBSD 4.7.  They make it so with "set -x", environment settings
14272         appear in stderr output.  For example, this command:
14273             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
14274         prints "P=1" on those two systems:
14275
14276 2010-09-08  Bruno Haible  <bruno@clisp.org>
14277
14278         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14279         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
14280         commands, because some shells ignore redirections when there is an
14281         error in the command lookup.
14282         Reported by Eric Blake.
14283
14284 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
14285
14286         * lib/regex.h: Fix a mention of `regex_compile' (should be
14287         `re_compile_pattern').
14288         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
14289         (re_set_registers): Correct name of parameter in comment.
14290
14291         * doc/regex.texi: Add documentation for missing syntax flags.
14292         Remove commented-out documentation of defunct syntax option
14293         RE_NO_EMPTY_ALTS.
14294         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
14295         Add documentation of re_set_registers.
14296         Document trick to re-use a pattern buffer by setting fastmap manually.
14297         Update documentation of struct re_pattern_buffer per public members.
14298         Uncomment documentation of equivalence class operators and
14299         collating symbol operators, since they are now implemented,
14300         Explain leftmost-longest matching in relation to alternatives.
14301         Tidy documentation of substring matching.
14302         Remove POSIX documentation, which is done better in
14303         glibc, and refer the reader there. Keep BSD API documentation, as
14304         that is not readily available elsewhere.
14305
14306 2010-09-07  Eric Blake  <eblake@redhat.com>
14307
14308         getopt: handle POSIXLY_CORRECT set but not exported
14309         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
14310         export state of POSIXLY_CORRECT, due to bash set -o posix.
14311         Reported by Dustin J. Mitchell.
14312
14313 2010-09-05  Bruno Haible  <bruno@clisp.org>
14314
14315         gnulib-tool: Highlight the changed options.
14316         * gnulib-tool (func_usage): Display the --import, --add-import,
14317         --remove-import explanations in bold font.
14318
14319 2010-09-06  Karl Berry  <karl@gnu.org>
14320
14321         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
14322
14323 2010-09-05  Bruno Haible  <bruno@clisp.org>
14324
14325         uniwidth/width: Update comment.
14326         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
14327         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
14328
14329 2010-09-05  Bruno Haible  <bruno@clisp.org>
14330
14331         isinf, isnan: Relax license.
14332         * modules/isinf (License): Change from GPL to LGPL, with consent from
14333         Ben Pfaff.
14334         * modules/isnan (License): Likewise.
14335         Requested by Ludovic Courtès.
14336
14337 2010-09-04  Bruno Haible  <bruno@clisp.org>
14338
14339         gnulib-tool: Help migration from --import to --add-import or --update.
14340         * gnulib-tool: Emit a verbose error message when --import is used
14341         without any module name.
14342
14343 2010-09-04  Bruno Haible  <bruno@clisp.org>
14344
14345         Update doc about gnulib-tool.
14346         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
14347         'gnulib-tool --update' in more detail.
14348         Reported by Eric Blake.
14349
14350 2010-09-04  Bruno Haible  <bruno@clisp.org>
14351
14352         gnulib-tool: Change --import. New options --add/remove-import.
14353         * gnulib-tool: New options --add-import, --remove-import.
14354         (func_usage): Document them.
14355         (have_associative): Define always.
14356         (func_import): In import mode, don't merge the specified settings with
14357         the cached settings. Implement remove-import mode.
14358         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
14359         Explain when to use them versus --import.
14360         (Simple update): Use --add-import instead of --import.
14361         * NEWS: Mention the change.
14362
14363 2010-09-04  Bruno Haible  <bruno@clisp.org>
14364
14365         * doc/gnulib-tool.texi (Initial import): Update paragraph about
14366         separate gnulib.mk.
14367
14368 2010-09-04  Bruno Haible  <bruno@clisp.org>
14369
14370         gnulib-tool: Don't talk about CVS any more.
14371         * gnulib-tool (func_usage, func_import): Write "version control"
14372         instead of CVS.
14373
14374 2010-09-04  Jim Meyering  <meyering@redhat.com>
14375
14376         maint.mk: avoid obscure sc_copyright_check failure in coreutils
14377         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
14378         false positives (whose names may be ill-chosen) when searching
14379         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
14380         would cause a false-positive.
14381
14382         avoid coreutils "make distcheck" failure
14383         Coreutils tests with an absolute build directory name that contains
14384         a space.  Not quoting this directory name caused a failure.
14385         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
14386         * tests/test-vc-list-files-cvs.sh: Likewise.
14387
14388 2010-09-04  Bruno Haible  <bruno@clisp.org>
14389
14390         gnulib-tool: Avoid error when run in a package without Makefile.am.
14391         * gnulib-tool: When collecting the m4dirs in a package that does not
14392         have a Makefile.am, eliminate those directories that contain no
14393         gnulib-cache.m4. Fix expression that counts these directories.
14394
14395 2010-09-04  Bruno Haible  <bruno@clisp.org>
14396
14397         update-copyright test: Improve output when perl is missing or too old.
14398         * tests/test-update-copyright.sh: Move test of Perl version down after
14399         the test whether Perl exists. Provide an explanation relating Perl's
14400         error message to Automake's SKIP: message.
14401
14402 2010-09-04  Bruno Haible  <bruno@clisp.org>
14403
14404         Don't augment PATH in TESTS_ENVIRONMENT.
14405         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
14406         set abs_aux_dir instead of augmenting PATH.
14407         * modules/vc-list-files-tests (Makefile.am): Likewise.
14408         * tests/test-update-copyright.sh: Augment PATH here.
14409         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
14410         path_prepend_.
14411         * tests/test-vc-list-files-git.sh: Likewise.
14412
14413 2010-09-04  Jim Meyering  <meyering@redhat.com>
14414
14415         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
14416         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
14417
14418 2010-09-04  Bruno Haible  <bruno@clisp.org>
14419
14420         strdup: Fix compilation error in C++ mode.
14421         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
14422         the macro.
14423
14424 2010-09-04  Bruno Haible  <bruno@clisp.org>
14425
14426         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
14427         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
14428         macro into a function.
14429         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14430
14431 2010-09-04  Bruno Haible  <bruno@clisp.org>
14432
14433         Set PATH_SEPARATOR the same way autoconf does.
14434         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
14435         the value of PATH_SEPARATOR the same way autoconf-generated configure
14436         scripts do.
14437         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
14438         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
14439
14440 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14441
14442         Set PATH_SEPARATOR the same way autoconf does.
14443         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
14444         the same way autoconf-generated configure scripts do.
14445         * posix-modules: Likewise.
14446
14447 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
14448
14449         hash: fix safe_hasher const typo
14450         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
14451         const; otherwise, there is a type error later.
14452
14453 2010-09-02  Jim Meyering  <meyering@redhat.com>
14454
14455         test-update-copyright.sh: require perl 5.8.0
14456         * tests/test-update-copyright.sh: Require 5.8.0,
14457         which Tom G. Christensen has confirmed is adequate,
14458         while 5.6.1 is not.
14459
14460 2010-09-02  Eric Blake  <eblake@redhat.com>
14461
14462         tests: init.sh improvements for re-exec'ing with zsh
14463         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
14464         -vx through shell re-exec.
14465         Reported by Tom G. Christensen.
14466
14467         wctype: fix typo in previous commit
14468         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
14469         Reported by Ludovic Courtès.
14470
14471 2010-09-02  Jim Meyering  <meyering@redhat.com>
14472
14473         test-update-copyright.sh: skip test if Perl is too old
14474         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
14475         Reported by Tom G. Christensen.
14476
14477 2010-09-02  Bruno Haible  <bruno@clisp.org>
14478
14479         wctype: Avoid compilation error on IRIX 6.5.30.
14480         * lib/wctype.in.h (iswblank): Declare with a replacement if
14481         REPLACE_ISWBLANK is set.
14482         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
14483         declared. Set REPLACE_ISWBLANK.
14484         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
14485         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
14486         * doc/posix-headers/wctype.texi: Likewise.
14487         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14488
14489 2010-09-01  Bruno Haible  <bruno@clisp.org>
14490
14491         New module 'socketlib'.
14492         * modules/socketlib: New file.
14493         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
14494         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
14495         * modules/sockets (Depends-on): Add socketlib.
14496         Suggested by Sam Steingold <sds@gnu.org>.
14497
14498 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14499
14500         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
14501
14502         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
14503         when one needs search access to a directory but not read access.
14504         On systems where it is available, it works in some cases where
14505         O_RDONLY does not, namely on directories that are searchable but
14506         not readable, and which need only to be searchable.  If O_SEARCH
14507         is not available, fall back to the traditional method of using
14508         O_RDONLY.
14509
14510         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
14511         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
14512         when opening a directory that needs only to be searchable.
14513         * lib/chdir-safer.c (chdir_no_follow): Likewise.
14514         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
14515         * lib/openat-proc.c (openat_proc_name): Likewise.
14516         * lib/openat.c (openat_needs_fchdir): Likewise.
14517         * lib/save-cwd.c (save_cwd): Likewise.
14518         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
14519
14520 2010-08-28  Bruno Haible  <bruno@clisp.org>
14521
14522         New module 'host-cpu-c-abi'.
14523         * modules/host-cpu-c-abi: New file.
14524         * m4/host-cpu-c-abi.m4: New file, based on part of
14525         clisp/src/m4/general.m4.
14526         Requested by Sam Steingold <sds@gnu.org>.
14527
14528 2010-08-31  Eric Blake  <eblake@redhat.com>
14529         and Jim Meyering  <meyering@redhat.com>
14530
14531         hash: factor, and guard against misbehaving hasher function
14532         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
14533         of table->hasher's return value.  Also protect against a hash value
14534         so large that adding it to table->bucket results in a NULL pointer.
14535         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
14536         Use it in place of open-coded check-and-abort.
14537
14538 2010-08-30  Bruno Haible  <bruno@clisp.org>
14539
14540         hash: silence spurious clang warning
14541         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
14542         Reported by Eric Blake.
14543
14544 2010-08-30  Eric Blake  <eblake@redhat.com>
14545
14546         strstr, memmem, strcasestr: avoid leaked shell message
14547         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
14548         FreeBSD.
14549         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14550         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14551
14552         tests: silence clang warning
14553         * tests/test-malloca.c (do_allocation): Avoid dead store.
14554
14555 2010-08-29  Bruno Haible  <bruno@clisp.org>
14556
14557         gettext: Fix recent mistake.
14558         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
14559
14560 2010-08-29  Bruno Haible  <bruno@clisp.org>
14561
14562         selinux-h: Offer a --without-selinux option.
14563         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
14564         --without-selinux was specified, skip all tests and define
14565         HAVE_SELINUX_SELINUX_H to 0.
14566         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
14567         set LIB_SELINUX to empty.
14568         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
14569         gl_LIBSELINUX. If --without-selinux was specified, replace
14570         selinux/context.h.
14571         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
14572
14573 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14574             Bruno Haible  <bruno@clisp.org>
14575
14576         Make the module 'realloc-gnu' work again on AIX and OSF/1.
14577         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
14578         of HAVE_REALLOC.
14579         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
14580         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
14581         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
14582         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
14583
14584 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14585             Bruno Haible  <bruno@clisp.org>
14586
14587         Make the module 'calloc-gnu' work again on AIX and OSF/1.
14588         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
14589         HAVE_CALLOC.
14590         * lib/xmalloc.c: Update accordingly.
14591         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
14592         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
14593         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
14594
14595 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14596             Bruno Haible  <bruno@clisp.org>
14597
14598         Make the module 'malloc-gnu' work again on AIX and OSF/1.
14599         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
14600         HAVE_MALLOC.
14601         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
14602         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
14603         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
14604
14605 2010-08-29  Bruno Haible  <bruno@clisp.org>
14606
14607         Update modules list.
14608         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
14609         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
14610         (String handling <string.h>): Add astrxfrm.
14611         (File system functions): Add readlinkat.
14612
14613 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14614
14615         Tests for module 'realloc-gnu'.
14616         * modules/realloc-gnu-tests: New file.
14617         * tests/test-realloc-gnu.c: New file.
14618
14619         Tests for module 'calloc-gnu'.
14620         * modules/calloc-gnu-tests: New file.
14621         * tests/test-calloc-gnu.c: New file.
14622
14623         Tests for module 'malloc-gnu'.
14624         * modules/malloc-gnu-tests: New file.
14625         * tests/test-malloc-gnu.c: New file.
14626
14627 2010-08-28  Bruno Haible  <bruno@clisp.org>
14628
14629         Rename module 'realloc' -> 'realloc-gnu'.
14630         * modules/realloc-gnu: New file, copied from modules/realloc.
14631         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
14632         obsolete.
14633         * modules/mgetgroups (Depends-on): Update.
14634         * doc/posix-functions/realloc.texi: Update.
14635         * NEWS: Mention the change.
14636
14637         Rename module 'calloc' -> 'calloc-gnu'.
14638         * modules/calloc-gnu: New file, copied from modules/calloc.
14639         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
14640         obsolete.
14641         * doc/posix-functions/calloc.texi: Update.
14642         * NEWS: Mention the change.
14643
14644         Rename module 'malloc' -> 'malloc-gnu'.
14645         * modules/malloc-gnu: New file, copied from modules/malloc.
14646         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
14647         obsolete.
14648         * modules/argp (Depends-on): Update.
14649         * modules/regex (Depends-on): Update.
14650         * doc/posix-functions/malloc.texi: Update.
14651         * NEWS: Mention the change.
14652
14653 2010-08-28  Eric Blake  <eblake@redhat.com>
14654
14655         pread, pwrite: add missing dependency
14656         * modules/pread (Depends-on): Add extensions.
14657         * modules/pwrite (Depends-on): Likewise.
14658
14659 2010-08-28  Bruno Haible  <bruno@clisp.org>
14660
14661         unistr/u*-strchr: Fix tests dependencies.
14662         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
14663         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
14664         Reported by Ian Beckwith <ianb@erislabs.net>.
14665
14666 2010-08-28  Bruno Haible  <bruno@clisp.org>
14667
14668         read-file: Don't occupy too much unused memory.
14669         * lib/read-file.c (fread_file): Shrink the buffer at the end.
14670
14671 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
14672             Eric Blake  <eblake@redhat.com>
14673             Bruno Haible  <bruno@clisp.org>
14674
14675         read-file: Avoid memory reallocations with regular files.
14676         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
14677         (fread_file): With regular files, use the remaining length as the
14678         initial buffer size.  Check against overflow.
14679         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
14680         sys_stat.
14681
14682 2010-08-28  Bruno Haible  <bruno@clisp.org>
14683
14684         ftello: Relax license.
14685         * modules/ftello (License): Relax to LGPLv2+.
14686         Reported by Eric Blake.
14687
14688 2010-08-28  Bruno Haible  <bruno@clisp.org>
14689
14690         Avoid relocwrapper link errors due to gnulib replacement functions.
14691         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
14692         function.
14693         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14694
14695 2010-08-28  Bruno Haible  <bruno@clisp.org>
14696
14697         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
14698         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
14699         defined.
14700         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
14701         Suggested by Eric Blake.
14702
14703 2010-08-28  Bruno Haible  <bruno@clisp.org>
14704
14705         sys_socket, netdb: Ensure socklen_t gets defined.
14706         * modules/sys_socket (Depends-on): Add socklen.
14707         * modules/netdb (Depends-on): Likewise.
14708         * modules/getaddrinfo (Depends-on): Remove socklen.
14709         * modules/getsockopt (Depends-on): Likewise.
14710         * modules/setsockopt (Depends-on): Likewise.
14711         * tests/test-sys_socket.c: Check that socklen_t is defined.
14712         * tests/test-netdb.c: Likewise.
14713         * m4/socklen.m4: Update comments.
14714         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14715
14716 2010-08-27  Eric Blake  <eblake@redhat.com>
14717
14718         login_tty: add missing dependency
14719         * modules/login_tty (Depends-on): Add pty.
14720
14721 2010-08-26  Eric Blake  <eblake@redhat.com>
14722
14723         lib-symbol-versions: fix m4 quoting
14724         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
14725         format for AC_LINK_IFELSE.
14726
14727         glob: fix compile test
14728         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
14729
14730         btowc: fix missing file
14731         * modules/btowc (Files): Also ship locale-fr.m4.
14732
14733         lseek: fix link test
14734         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
14735         AC_LINK_IFELSE.
14736
14737         include_next: silence autoconf 2.68 warning
14738         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
14739         AC_COMPILE_IFELSE as special.
14740         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
14741         autoconf < 2.68.
14742
14743         acl: fix compilation test
14744         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
14745         AC_COMPILE_IFELSE.
14746
14747 2010-08-26  Bruno Haible  <bruno@clisp.org>
14748
14749         Modernize AC_TRY_RUN invocations.
14750         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
14751         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
14752         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
14753         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
14754         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
14755         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
14756         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14757         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14758         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14759         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14760         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
14761         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14762         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14763         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14764         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
14765         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
14766         gl_MBRLEN_NUL_RETVAL): Likewise.
14767         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14768         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
14769         Likewise.
14770         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14771         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14772         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14773         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14774         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
14775         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
14776         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
14777         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
14778         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
14779         Likewise.
14780         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
14781         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
14782         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14783         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
14784         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14785         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
14786         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14787         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
14788         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14789         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14790
14791 2010-08-26  Bruno Haible  <bruno@clisp.org>
14792
14793         Modernize AC_TRY_LINK invocations.
14794         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
14795         AC_TRY_LINK.
14796         * m4/argp.m4 (gl_ARGP): Likewise.
14797         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
14798         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
14799         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
14800         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
14801         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
14802         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
14803         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
14804         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14805         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14806         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
14807         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14808         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
14809         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
14810         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14811         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
14812         * m4/hostent.m4 (gl_HOSTENT): Likewise.
14813         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14814         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
14815         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
14816         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
14817         Likewise.
14818         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
14819         Likewise.
14820         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
14821         Likewise.
14822         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
14823         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
14824         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
14825         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
14826         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
14827         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
14828         * m4/servent.m4 (gl_SERVENT): Likewise.
14829         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14830         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
14831         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
14832         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
14833         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
14834         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14835         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14836         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14837         * modules/tsearch-tests (configure.ac): Likewise.
14838
14839 2010-08-26  Bruno Haible  <bruno@clisp.org>
14840
14841         Modernize AC_TRY_COMPILE invocations.
14842         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
14843         AC_TRY_COMPILE.
14844         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
14845         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
14846         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
14847         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
14848         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
14849         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
14850         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
14851         * m4/lock.m4 (gl_LOCK): Likewise.
14852         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
14853         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
14854         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
14855         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
14856         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
14857         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
14858         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
14859         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
14860         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
14861         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
14862         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
14863         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
14864         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
14865         extraneous semicolon.
14866
14867 2010-08-26  Jim Meyering  <meyering@redhat.com>
14868
14869         stat-time: relax license LGPL
14870         * modules/stat-time (License): Change from GPL to LGPL,
14871         with consent from all contributors, for use in libguile.
14872         Requested by Ludovic Courtès.
14873
14874 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
14875
14876         poll: return immediately on POLLHUP.
14877         * lib/poll.c (poll): Always set timeout before wait_timeout is
14878         computed.
14879
14880 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14881
14882         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
14883         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
14884         rmdir ("dir/.//"), unlinkat.
14885
14886 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
14887
14888         stdbool: avoid spurious failure with modern xlc
14889         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
14890
14891 2010-08-24  Bruno Haible  <bruno@clisp.org>
14892
14893         getloadavg: simplify code
14894         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
14895         gl_have_func. Update comments.
14896
14897 2010-08-24  Eric Blake  <eblake@redhat.com>
14898
14899         getloadavg: don't define SVR4 on cygwin
14900         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
14901         only define SVR4 when -lkvm is required.
14902         Reported by Yaakov Selkowitz.
14903
14904 2010-08-24  Bruno Haible  <bruno@clisp.org>
14905
14906         priv-set: fix comment
14907         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
14908
14909 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
14910
14911         priv-set: fix comments
14912         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
14913         to match code, as suggested by David Bartley in:
14914         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
14915
14916 2010-08-23  Eric Blake  <eblake@redhat.com>
14917
14918         stdbool: avoid rejecting clang
14919         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
14920         * tests/test-stdbool.c: Enable more tests if using the system
14921         <stdbool.h> instead of the gnulib replacement.
14922         (main): Move xlc bug test to a runtime test for all compilers.
14923         Reported by Anders Kaseorg.
14924
14925         argz: fix shell quoting issue
14926         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
14927         Reported by Charles Wilson.
14928
14929 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
14930             Erik Faye-Lund <kusmabite@gmail.com>
14931
14932         poll, select: handle ERROR_BROKEN_PIPE.
14933         * lib/poll.c (win32_compute_revents): Return POLLHUP when
14934         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
14935         * lib/select.c (win32_compute_revents): Do not mark a pipe
14936         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
14937
14938 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
14939
14940         fts: allow compilation with C++
14941         * lib/fts_.h: Specify extern "C" linkage with C++.
14942
14943 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14944
14945         Fix gnulib-tool sed script de-commentation for AIX sed.
14946         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
14947         sed.
14948
14949 2010-08-17  Eric Blake  <eblake@redhat.com>
14950
14951         test-stddef: test for (some) offsetof bugs
14952         * tests/test-stddef.c: Enhance test to ensure correct type of
14953         offsetof.
14954         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
14955         that we are not fixing at this time.
14956
14957 2010-08-15  Bruno Haible  <bruno@clisp.org>
14958
14959         stpncpy: Allow stpncpy to be defined as a macro.
14960         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
14961         if it's already correctly declared.
14962         * lib/string.in.h (stpncpy): Undefine before redefining.
14963         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
14964
14965 2010-08-14  Bruno Haible  <bruno@clisp.org>
14966
14967         Rename module 'memxfrm' to 'amemxfrm'.
14968         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
14969         (amemxfrm): Renamed from memxfrm.
14970         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
14971         (amemxfrm): Renamed from memxfrm.
14972         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
14973         * NEWS: Mention the change.
14974         * MODULES.html.sh (String handling <string.h>): Update.
14975         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
14976         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
14977         * lib/unicase/u16-casexfrm.c: Likewise.
14978         * lib/unicase/u32-casexfrm.c: Likewise.
14979         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
14980         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
14981         * lib/uninorm/u16-normxfrm.c: Likewise.
14982         * lib/uninorm/u32-normxfrm.c: Likewise.
14983         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
14984         memxfrm.
14985         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
14986         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
14987         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
14988         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
14989         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
14990         Suggested by Paul Eggert.
14991
14992 2010-08-14  Bruno Haible  <bruno@clisp.org>
14993
14994         Tests for module 'astrxfrm'.
14995         * modules/astrxfrm-tests: New file.
14996         * tests/test-astrxfrm.c: New file.
14997
14998         New module 'astrxfrm'.
14999         * lib/astrxfrm.h: New file.
15000         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
15001         * modules/astrxfrm: New file.
15002
15003 2010-08-14  Reuben Thomas <rrt@sc3d.org>
15004
15005         regex: Tweak doc.
15006         * doc/regex.texi (Overview): Don't mention regex.c.
15007         (GNU Regular Expression Compiling): Likewise.
15008         (Match-end-of-line Operator): Mention 'not_eol'.
15009
15010 2010-08-14  Brian Gough  <bjg@gnu.org>
15011             Bruno Haible  <bruno@clisp.org>
15012
15013         git-merge-changelog: add doc relating to use with bzr and hg.
15014         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
15015
15016 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
15017
15018         pthread: fix pthread.h creation for srcdir != builddir
15019         * modules/pthread (Makefile.am): Fix the rule to work also in a
15020         non-srcdir build.
15021
15022 2010-08-13  Karl Berry  <karl@gnu.org>
15023
15024         * doc/regex.texi (Predefined Syntaxes): @smallexample.
15025         * doc/posix-*/*: force line break before @url of POSIX
15026         specifications.
15027         Suggested by Werner Lemberg.
15028
15029 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15030
15031         strtod: fix const diagnostic
15032         * lib/strtod.c (strtod): Don't assign const char * to char *,
15033         as this elicits a warning from GCC when warnings are enabled.
15034
15035 2010-08-10  Pádraig Brady <P@draigbrady.com>
15036         and Eric Blake  <eblake@redhat.com>
15037
15038         copy-acl: ignore ENOTSUP on HP-UX
15039         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
15040         so that it is available for HP-UX.
15041         * lib/copy-acl.c (qcopy_acl): Use it.
15042         Reported by Patrick M. Callahan.
15043
15044 2010-08-10  Eric Blake  <eblake@redhat.com>
15045
15046         open, chown: relax license
15047         * modules/open (License): Change to LGPLv2+, with consent by all
15048         authors, for use in augeas.
15049         * modules/chown (License): Likewise.
15050         * modules/lchown (Likewise): Likewise.
15051         Requested by Adam Stokes.
15052
15053 2010-08-09  Karl Berry  <karl@gnu.org>
15054
15055         * build-aux/ar-lib: new file, import from Automake.
15056         * config/srclist.txt: autocheck for updates.
15057
15058 2010-08-09  Eric Blake  <eblake@redhat.com>
15059
15060         readlinkat: adjust client modules
15061         * modules/areadlinkat (Depends-on): Use readlinkat, not
15062         symlinkat.
15063         * modules/areadlinkat-with-size (Depends-on): Likewise.
15064
15065         mknod: be more vocal about danger of running tests as root
15066         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
15067         root, since that is just asking for problems.
15068         Suggested by Bruno Haible, based on a report by Rainer Tammer.
15069
15070         readlinkat: split into its own module
15071         * modules/symlinkat: Split readlinkat...
15072         * modules/readlinkat: ...into separate module.
15073         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
15074         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
15075         * lib/symlinkat.c (readlinkat): Move...
15076         * lib/readlinkat.c: ...into new file.
15077         * modules/symlinkat-tests: Split readlinkat test...
15078         * modules/readlinkat-tests: ...into separate module.
15079         * tests/test-symlinkat.c: Split...
15080         * tests/test-readlinkat.c: ...into new file.
15081         * NEWS: Document the split.
15082         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15083         * lib/unistd.in.h (readlinkat): Likewise.
15084         Suggested by Bruno Haible.
15085
15086 2010-08-08  Bruno Haible  <bruno@clisp.org>
15087
15088         memxfrm: Speed up.
15089         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
15090         that usually only one call to strxfrm is necessary for each string
15091         part.
15092         Reported by Paul Eggert <eggert@cs.ucla.edu>.
15093
15094 2010-08-07  Karl Berry  <karl@gnu.org>
15095
15096         * doc/posix-headers/limits.texi,
15097         * doc/posix-functions/malloc.texi,
15098         * doc/posix-functions/strsignal.texi: missing @item.
15099         * doc/ld-version-script.texi: spurious leading i.
15100         * doc/regex.texi (Interval Operators): no commas inside @var.
15101
15102 2010-08-01  Bruno Haible  <bruno@clisp.org>
15103
15104         Integrate the regex documentation.
15105         * doc/gnulib.texi: Define 'cn' index.
15106         (Regular expressions): New a chapter that includes regex.texi and
15107         regexprops-generic.texi.
15108         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
15109         syntax.
15110
15111         Whitespace cleanup.
15112         * doc/regex.texi: Remove trailing spaces.
15113
15114         Add regex documentation.
15115         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
15116         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
15117         Written by Kathy A. Hargreaves and Karl Berry.
15118
15119 2010-08-01  Bruno Haible  <bruno@clisp.org>
15120
15121         link: Update documentation.
15122         * doc/posix-functions/link.texi: Update regarding Solaris.
15123
15124 2010-07-31  Bruno Haible  <bruno@clisp.org>
15125
15126         Update modules list.
15127         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
15128         (String handling <string.h>): Add memcmp2, memxfrm.
15129         (Container data structures): Add xlist, xsublist, xoset.
15130         (Core language properties): Add alignof, unused-parameter.
15131         (Process control, Numeric conversion functions <stdlib.h>): Renamed
15132         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
15133         (Unibyte characters <ctype.h>): New section.
15134         (String handling <string.h>): New section.
15135         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
15136         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
15137         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
15138         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
15139         tan, tanh, tanl, y0, y1, yn.
15140         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
15141         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
15142         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
15143         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
15144         unlockpt, vdprintf, vdprintf-posix.
15145         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
15146         (File system functions): Add concat-filename, sys_file, sys_ioctl,
15147         xconcat-filename.
15148         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
15149         getdtablesize, pipe2, pipe2-safer.
15150         (Security): New section.
15151         (Networking functions): Add accept4.
15152         (Signal handling): Add sigpipe.
15153         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
15154         mbmemcasecoll.
15155         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
15156         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
15157         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
15158         pipe-filter-ii.
15159         (Misc): Add argp-version-etc, login_tty, parse-duration.
15160
15161 2010-07-31  Bruno Haible  <bruno@clisp.org>
15162
15163         Improve doc in MODULES.html.
15164         * modules/linkat (Description): Add the word "function".
15165         * modules/mkfifo (Description): Likewise.
15166         * modules/mknod (Description): Likewise.
15167         * modules/remove (Description): Likewise.
15168         * modules/renameat (Description): Likewise.
15169         * modules/stat (Description): Likewise.
15170         * modules/symlink (Description): Likewise.
15171         * modules/unlink (Description): Likewise.
15172
15173 2010-07-31  Bruno Haible  <bruno@clisp.org>
15174
15175         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
15176         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
15177         option --enable/disable-c++ instead of --enable/disable-cxx.
15178         * NEWS: Mention the change.
15179
15180 2010-07-31  Bruno Haible  <bruno@clisp.org>
15181
15182         readlink, areadlink: Relax test a bit.
15183         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
15184         alternative to ENOTDIR.
15185         * tests/test-areadlink.h (test_areadlink): Likewise.
15186         Reported by Rainer Tammer.
15187
15188 2010-07-31  Bruno Haible  <bruno@clisp.org>
15189
15190         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
15191         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
15192         character, perform the search using U_STRCHR.
15193         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
15194         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
15195         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
15196         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
15197         Suggested by Paolo Bonzini.
15198
15199 2010-07-31  Bruno Haible  <bruno@clisp.org>
15200
15201         unistr/u*-strstr: Fix dependencies.
15202         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
15203         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
15204         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
15205
15206 2010-07-31  Bruno Haible  <bruno@clisp.org>
15207
15208         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
15209         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
15210         the beginning of the loop.
15211         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
15212         cases in 'switch' statement.
15213
15214         unistr/u8-strchr: Fix several bugs.
15215         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
15216         the string. When not found, return NULL, not a pointer near the end.
15217
15218         More tests for unistr/u8-strchr.
15219         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
15220         that the function does not read past the first occurrence of the byte
15221         being searched.
15222         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
15223         * tests/unistr/test-u16-strchr.c (main): New function.
15224         * tests/unistr/test-u32-strchr.c (main): New function.
15225
15226 2010-07-31  Bruno Haible  <bruno@clisp.org>
15227
15228         posix-modules: Ignore backup files of documentation files.
15229         * posix-modules: grep only through files named *.texi.
15230
15231 2010-07-31  Bruno Haible  <bruno@clisp.org>
15232
15233         symlinkat: Fix documentation.
15234         * doc/posix-functions/readlinkat.texi: Fix module name.
15235
15236 2010-07-31  Bruno Haible  <bruno@clisp.org>
15237
15238         fchownat: Replace also when chown has the trailing slash bug.
15239         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
15240         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
15241         introduced on 2010-04-10.
15242         Reported by Rainer Tammer.
15243
15244 2010-07-31  Bruno Haible  <bruno@clisp.org>
15245
15246         linkat: Work around AIX 7.1 bug.
15247         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
15248         whether linkat handles trailing slash correctly. If not, replace linkat
15249         and define LINKAT_TRAILING_SLASH_BUG.
15250         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
15251         check whether (fd1,file1) points to a directory if file1 or file2 ends
15252         in a slash. Code taken from lib/link.c.
15253         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
15254         Reported by Rainer Tammer.
15255
15256 2010-07-31  Bruno Haible  <bruno@clisp.org>
15257
15258         Correctly determine whether pow is available in libc on AIX 7 with xlc.
15259         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
15260         This disables an xlc optimization that was causing wrong test results.
15261         Reported by Rainer Tammer.
15262
15263 2010-07-31  Bruno Haible  <bruno@clisp.org>
15264
15265         iconv: Work around AIX 6.1..7.1 bug.
15266         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
15267         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
15268         cross-compiling, guess no on all versions of AIX.
15269         Reported by Rainer Tammer.
15270
15271 2010-07-31  Bruno Haible  <bruno@clisp.org>
15272
15273         readlink: Relax test a bit.
15274         * tests/test-readlink.h (test_readlink): Allow different errno value
15275         when readlink is called with a file name that ends in / and refers to
15276         a file.
15277         Suggested by Eric Blake.
15278         Reported by Rainer Tammer.
15279
15280 2010-07-31  Bruno Haible  <bruno@clisp.org>
15281
15282         copysign: Does not require -lm on glibc systems.
15283         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
15284         gl_COMMON_DOUBLE_MATHFUNC.
15285         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
15286
15287 2010-07-31  Bruno Haible  <bruno@clisp.org>
15288
15289         duplocale: Work around AIX 7.1 bug.
15290         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
15291         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
15292         * lib/duplocale.c (rpl_duplocale): Update comment.
15293         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
15294         Reported by Rainer Tammer.
15295
15296 2010-07-30  Bruno Haible  <bruno@clisp.org>
15297
15298         dirfd: Avoid link error on AIX 7.1.
15299         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
15300         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
15301         exist, set REPLACE_DIRFD.
15302         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
15303         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
15304         * doc/posix-functions/dirfd.texi: Update.
15305         Reported by Rainer Tammer.
15306
15307 2010-07-30  Eric Blake  <eblake@redhat.com>
15308
15309         strtod: next round of AIX fixes
15310         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
15311         exponent.
15312         * tests/test-strtod.c (main): Enhance tests.
15313         * doc/posix-functions/strtod.texi (strtod): Document next bug.
15314         Reported by Rainer Tammer.
15315
15316         futimens: fix configure check
15317         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
15318         Reported by Bruno Haible.
15319
15320 2010-07-30  Bruno Haible  <bruno@clisp.org>
15321
15322         getline: Update regarding AIX.
15323         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
15324         Reported by Rainer Tammer.
15325
15326 2010-07-30  Bruno Haible  <bruno@clisp.org>
15327
15328         wcwidth: Drop replacement on AIX 7.
15329         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
15330         AIX 7.
15331         Reported by Rainer Tammer.
15332
15333 2010-07-30  Bruno Haible  <bruno@clisp.org>
15334
15335         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
15336         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
15337         a 'char *'.
15338         Reported by Rainer Tammer.
15339
15340 2010-07-30  Bruno Haible  <bruno@clisp.org>
15341
15342         unlink: Update regarding AIX.
15343         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
15344         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
15345         Reported by Rainer Tammer.
15346
15347 2010-07-30  Bruno Haible  <bruno@clisp.org>
15348
15349         symlink: Update regarding AIX.
15350         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
15351         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
15352         Reported by Rainer Tammer.
15353
15354 2010-07-30  Bruno Haible  <bruno@clisp.org>
15355
15356         strndup: Update regarding AIX.
15357         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
15358         AIX 7.
15359         Reported by Rainer Tammer.
15360
15361 2010-07-30  Bruno Haible  <bruno@clisp.org>
15362
15363         stat: Update regarding AIX.
15364         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
15365         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
15366         Reported by Rainer Tammer.
15367
15368 2010-07-30  Bruno Haible  <bruno@clisp.org>
15369
15370         truncl: Fix autoconf test.
15371         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
15372         whether truncl works.
15373         Reported by Rainer Tammer.
15374
15375 2010-07-30  Bruno Haible  <bruno@clisp.org>
15376
15377         round: Update regarding AIX.
15378         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
15379         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
15380         Reported by Rainer Tammer.
15381
15382 2010-07-30  Bruno Haible  <bruno@clisp.org>
15383
15384         rename: Update regarding AIX.
15385         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
15386         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
15387         Reported by Rainer Tammer.
15388
15389 2010-07-30  Bruno Haible  <bruno@clisp.org>
15390
15391         printf.m4: Update regarding AIX.
15392         * m4/printf.m4: Update comments regarding AIX.
15393         Reported by Rainer Tammer.
15394
15395 2010-07-30  Bruno Haible  <bruno@clisp.org>
15396
15397         iconv: Update regarding AIX.
15398         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
15399         AIX 7.
15400         Reported by Rainer Tammer.
15401
15402 2010-07-30  Bruno Haible  <bruno@clisp.org>
15403
15404         getopt: Update regarding AIX.
15405         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
15406         no on AIX.
15407         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
15408         Reported by Rainer Tammer.
15409
15410 2010-07-30  Bruno Haible  <bruno@clisp.org>
15411
15412         ldexpl; Update regarding AIX.
15413         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
15414         on AIX 7.
15415         Reported by Rainer Tammer.
15416
15417 2010-07-30  Bruno Haible  <bruno@clisp.org>
15418
15419         frexpl: Update regarding AIX.
15420         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
15421         on AIX 7.
15422         Reported by Rainer Tammer.
15423
15424 2010-07-30  Bruno Haible  <bruno@clisp.org>
15425
15426         open, fopen: Update regarding AIX.
15427         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
15428         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
15429         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
15430         * doc/posix-functions/fopen.texi: Likewise.
15431         Reported by Rainer Tammer.
15432
15433 2010-07-30  Bruno Haible  <bruno@clisp.org>
15434
15435         chown: Update doc regarding AIX.
15436         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
15437         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
15438         Reported by Rainer Tammer.
15439
15440 2010-07-30  Eric Blake  <eblake@redhat.com>
15441
15442         strtod: fix bug in replacement function on AIX
15443         * lib/strtod.c (strtod): Special case broken "0x" parse in
15444         underlying strtod.
15445         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
15446         * doc/posix-functions/strtod.texi (strtod): Likewise.
15447         Reported by Rainer Tammer.
15448
15449 2010-07-30  Bruno Haible  <bruno@clisp.org>
15450
15451         mbrlen: Fix cross-compilation guess for AIX.
15452         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
15453         guess. Leftover from 2008-12-22.
15454
15455 2010-07-30  Bruno Haible  <bruno@clisp.org>
15456
15457         mbrtowc: Fix cross-compilation guess for AIX.
15458         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
15459         guess. Leftover from 2008-12-21.
15460
15461 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
15462
15463         init.sh: work around trap limitation of some shells
15464         * tests/init.sh (setup_): Move exit trap outside of shell function.
15465
15466 2010-07-29  Eric Blake  <eblake@redhat.com>
15467
15468         strtod: aid debugging
15469         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
15470         understanding why strtod is rejected.
15471
15472 2010-07-28  Bruno Haible  <bruno@clisp.org>
15473
15474         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
15475         * lib/unistr/u8-chr.c: Include <string.h>.
15476         * tests/unistr/test-u8-chr.c: Likewise.
15477         * tests/unistr/test-u16-chr.c: Likewise.
15478         * tests/unistr/test-u32-chr.c: Likewise.
15479         * tests/unistr/test-u8-strchr.c: Likewise.
15480         * tests/unistr/test-u16-strchr.c: Likewise.
15481         * tests/unistr/test-u32-strchr.c: Likewise.
15482         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
15483         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
15484         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
15485         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
15486
15487 2010-07-28  Bruno Haible  <bruno@clisp.org>
15488
15489         Use spaces for indentation, not tabs.
15490         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
15491
15492 2010-07-27  Bruno Haible  <bruno@clisp.org>
15493
15494         mbspcasecmp: Fix function specification.
15495         * lib/string.in.h (mbspcasecmp): Fix specification comment.
15496         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
15497         Reported by Eric Blake <eblake@redhat.com>.
15498
15499 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
15500
15501         timespec: use cast and not conditional, as truncation isn't possible
15502         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
15503         instead of a conditional.  Comment about the situation in more detail.
15504         This undoes most of the 2009-10-29 patch.
15505
15506 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
15507
15508         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
15509         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
15510         * lib/unistr/u8-strchr.c: Likewise.
15511         * modules/unistr/u8-chr: Depend on memchr.
15512
15513         unistr/u*-strchr: add tests
15514         * modules/unistr/u8-strchr-tests: New file.
15515         * modules/unistr/u16-strchr-tests: New file.
15516         * modules/unistr/u32-strchr-tests: New file.
15517         * tests/unistr/test-strchr.h: New file.
15518         * tests/unistr/test-u8-strchr.c: New file.
15519         * tests/unistr/test-u16-strchr.c: New file.
15520         * tests/unistr/test-u32-strchr.c: New file.
15521
15522         unistr/u*-chr: test multibyte sequences more
15523         * tests/unistr/test-chr.h: Do complete testing of the characters in the
15524         test vector.
15525         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
15526         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
15527         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
15528
15529         unistr/u*-chr: test multibyte sequences
15530         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
15531
15532         unistr/u*-chr: prepare for multibyte tests
15533         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
15534         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
15535         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
15536         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
15537         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
15538         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
15539
15540 2010-07-18  Bruno Haible  <bruno@clisp.org>
15541
15542         unistr/u8-strchr: Optimize non-ASCII argument case.
15543         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
15544         because the first byte often matches anyway.
15545         Reported by Pádraig Brady <P@draigbrady.com>.
15546
15547 2010-07-15  Karl Berry  <karl@gnu.org>
15548
15549         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
15550
15551 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
15552
15553         getcwd: on Solaris, work better if ancestors are inaccessible
15554         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
15555         buffer and size, try again with a large buffer.  This works better
15556         on Solaris, since its getcwd succeeds even if the path to the root
15557         is inaccessible, and this is helpful in common cases such as .zfs
15558         hidden directories.  Problem reported by J Chapman Flack in
15559         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
15560         Use system getcwd if it's declared, not merely if it's partly
15561         working; use the partly-working test only to avoid needless effort
15562         if the system getcwd fails.
15563         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
15564         comment that was already obsolete and is now even more obsolete.
15565         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
15566         now might call strdup.
15567
15568 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
15569
15570         pthread: Add enough so that coreutils/src/sort.c compiles.
15571         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
15572         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
15573         gnulib. Include <sched.h> and <time.h>, as per POSIX.
15574         Include <sys/types.h>, in case it defines pthread_t.
15575         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
15576         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
15577         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
15578         (pthread_rwlockattr_t, pthread_spinlock_t):
15579         New typedefs, if HAVE_PTHREAD_T is not defined.
15580         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
15581         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
15582         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
15583         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
15584         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
15585         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
15586         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
15587         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
15588         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
15589         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
15590         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
15591         New macros.
15592         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
15593         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
15594         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
15595         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
15596         (pthread_spin_unlock): New dummy functions.
15597         (pthread_create): Return EAGAIN; don't set errno.
15598         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
15599         require AC_C_INLINE.
15600         * modules/pthread (Depends-on): Add sched, time.
15601         (pthread.h): Use AM_V_GEN.
15602
15603 2010-07-13  Bruno Haible  <bruno@clisp.org>
15604
15605         striconveh: Don't malloc memory if the result buffer is sufficient.
15606         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
15607         buffer if its size is sufficient.
15608         Reported by Ludovic Courtès <ludo@gnu.org>.
15609
15610 2010-07-13  Bruno Haible  <bruno@clisp.org>
15611
15612         strtod: Add safety check.
15613         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
15614
15615 2010-07-12  Bruno Haible  <bruno@clisp.org>
15616
15617         Unify tests that set gl_cv_func_ldexpl_no_libm.
15618         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
15619         gl_FUNC_LDEXPL.
15620         (gl_FUNC_LDEXPL): Invoke it.
15621         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15622
15623 2010-07-12  Bruno Haible  <bruno@clisp.org>
15624
15625         Unify tests that set gl_cv_func_ldexp_no_libm.
15626         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
15627         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
15628         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
15629         (configure.ac): Simply invoke gl_FUNC_LDEXP.
15630         * modules/strtod (Files): Add m4/ldexp.m4.
15631
15632 2010-07-12  Bruno Haible  <bruno@clisp.org>
15633
15634         Unify tests that set gl_cv_func_frexpl_no_libm.
15635         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
15636         gl_FUNC_FREXPL_NO_LIBM.
15637         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
15638         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15639
15640 2010-07-12  Bruno Haible  <bruno@clisp.org>
15641
15642         Unify tests that set gl_cv_func_frexp_no_libm.
15643         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
15644         gl_FUNC_FREXP_NO_LIBM.
15645         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
15646         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
15647
15648 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
15649
15650         memcoll: clarify sizes versus lengths, document better, and tweak perf
15651         * lib/memcoll.c (strcoll_loop, memcoll0):
15652         Improve quality of descriptive comments.  Name variables
15653         consistently as to whether they are lengths (which do not include
15654         terminating null) versus sizes (which do).
15655         * lib/xmemcoll.c (xmemcoll0): Likewise.
15656         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
15657         returned when s1size == 0; this is easier to compile and saves
15658         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
15659
15660 2010-07-12  Bruno Haible  <bruno@clisp.org>
15661
15662         Tests for module '_Exit'.
15663         * modules/_Exit-tests: New file.
15664         * tests/test-_Exit.sh: New file.
15665         * tests/test-_Exit.c: New file.
15666
15667         New module '_Exit'.
15668         * lib/stdlib.in.h (__attribute__): New macro.
15669         (_Exit): New declaration.
15670         * lib/_Exit.c: New file.
15671         * m4/_Exit.m4: New file.
15672         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
15673         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
15674         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
15675         * modules/_Exit: New file.
15676         * tests/test-stdlib-c++.cc (_Exit): Check signature.
15677         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
15678
15679 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
15680
15681         strtod: make it more-accurate typically, and don't require libm
15682         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
15683         Include limits.h.  Don't include string.h.
15684         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
15685         (locale_isspace): New function, so that no casts are needed to
15686         check whether *s is a space.
15687         (ldexp): Provide an unused dummy if not available.
15688         (scale_radix_exp, parse_number, underlying_strtod): New functions.
15689         (strtod): Use them.  This implementation prefers to use the
15690         underlying strtod if available, falling back on our own code
15691         only to fix known bugs.  This is more likely to produce an
15692         accurate result.  Also, it avoids the use of libm functions.
15693         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
15694         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
15695         was absent, but it caused a test failure with coreutils.
15696         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
15697         with libm.
15698         * modules/strtod (Makefile.am, Link): libm is no longer needed.
15699         * modules/strtod-tests (Makefile.am): Likewise.
15700
15701 2010-07-11  Pádraig Brady  <P@draigBrady.com>
15702             Bruno Haible  <bruno@clisp.org>
15703
15704         unistr/u8-strchr: Optimize ASCII argument case.
15705         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
15706
15707 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
15708
15709         (x)memcoll: minor tweaks
15710         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
15711         is after the type that it qualifies.
15712         (memcoll0): Likewise.
15713         * lib/memcoll.h (memcoll0): Likewise.
15714         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
15715         * lib/xmemcoll.h (xmemcoll0): Likewise.
15716         * lib/memcoll.c (memcoll0): Correct the comment.  This function
15717         differs from memcoll in that the NUL byte is part of the argument.
15718         Omit the abort-checks, as performance is a real issue here.  Plus,
15719         the checks were wrong anyway (an off-by-one error).  Omit local
15720         variable 'diff', as it's a bit clearer that way.
15721         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
15722         no longer needed.
15723
15724 2010-07-08  Chen Guo <chenguo4@yahoo.com>
15725
15726         (x)memcoll: speedup when input is known to be NUL delimited
15727         * lib/memcoll.c: Include stdlib.
15728         (memcoll0): New function.
15729         (strcoll_loop): New function, refactored for use in both memcoll
15730         and memcoll0.
15731         * lib/memcoll.h (memcoll0): Add prototype.
15732         * lib/xmemcoll.c (xmemcoll0): New function.
15733         (collate_error): New function, refactored for use in both xmemcoll
15734         and xmemcoll0.
15735         * lib/xmemcoll.h (xmemcoll0): Add prototype.
15736         * m4/memcoll.m4: add inline invocation.
15737
15738 2010-07-06  Pádraig Brady  <P@draigBrady.com>
15739
15740         * build-aux/bootstrap: Remove any local translations
15741         from the translation project synchronization directory,
15742         so that local only translations are not distributed.
15743
15744 2010-07-04  Bruno Haible  <bruno@clisp.org>
15745
15746         fsusage: Clarify which code applies to which platforms.
15747         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
15748         platform.
15749         * lib/fsusage.c (get_fs_usage): Likewise.
15750
15751 2010-07-04  Bruno Haible  <bruno@clisp.org>
15752
15753         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
15754         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
15755         Reported by Martin Lambers <marlam@marlam.de>.
15756
15757 2010-07-04  Jim Meyering  <meyering@redhat.com>
15758
15759         hash: once again explicitly disallow insertion of NULL
15760         * lib/hash.c (hash_insert0): Reinstate just-removed test:
15761         inserting a NULL pointer cannot work with these functions.
15762         Add a comment with details.
15763         This reverts part of the 2010-07-01 commit, 5bef1a35
15764         "hash: extend module to deal with non-pointer keys".
15765
15766 2010-07-01  Bruno Haible  <bruno@clisp.org>
15767
15768         stdbool: Update doc.
15769         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
15770         Info from Christian Weisgerber <naddy@mips.inka.de>.
15771
15772 2010-07-01  Jim Meyering  <meyering@redhat.com>
15773
15774         hash: extend module to deal with non-pointer keys
15775         * lib/hash.c (hash_insert0): New interface, much like hash_insert
15776         but that allows insertion of non-pointer entries.
15777         Do not disallow an ENTRY value of NULL.
15778         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
15779         * lib/hash.h (hash_insert0): Declare.
15780
15781 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15782
15783         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
15784         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
15785         not present (i.e. with autoconf 2.59 and when using gettextize, not
15786         gnulib), require AC_GNU_SOURCE instead.
15787
15788 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
15789
15790         idpriv-drop: Fix tests.
15791         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
15792         not to the test-idpriv-droptemp program.
15793
15794 2010-06-29  Bruno Haible  <bruno@clisp.org>
15795
15796         string: Fix syntax error with g++ 2.96.
15797         * lib/string.in.h (__pure__): Remove definition.
15798         (_GL_ATTRIBUTE_PURE): New macro.
15799         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
15800         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
15801         Reported by Christian Weisgerber <naddy@mips.inka.de>.
15802
15803 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
15804
15805         unitypes: Fix bug introduced on 2010-05-18.
15806         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
15807
15808 2010-06-22  Eric Blake  <eblake@redhat.com>
15809
15810         memmem: slight optimization
15811         * lib/str-two-way.h (critical_factorization): Update comments.
15812         Reduce work during factorization phase.
15813         Reported by Carlos Bueno <carlos@bueno.org>.
15814
15815 2010-06-21  Bruno Haible  <bruno@clisp.org>
15816
15817         Fix HAVE_CALLOC_POSIX misnomer.
15818         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
15819         !HAVE_CALLOC_POSIX.
15820         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
15821         HAVE_CALLOC_POSIX.
15822         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
15823         instead of HAVE_CALLOC_POSIX.
15824         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
15825         HAVE_CALLOC_POSIX.
15826
15827         Use modern idiom for calloc() replacement.
15828         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
15829         AC_FUNC_CALLOC.
15830         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
15831         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
15832         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
15833         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
15834         (gl_REPLACE_CALLOC): New macro.
15835
15836 2010-06-21  Bruno Haible  <bruno@clisp.org>
15837
15838         Fix HAVE_REALLOC_POSIX misnomer.
15839         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
15840         !HAVE_REALLOC_POSIX.
15841         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
15842         HAVE_REALLOC_POSIX.
15843         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
15844         instead of HAVE_REALLOC_POSIX.
15845         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
15846         HAVE_REALLOC_POSIX.
15847
15848         Use modern idiom for realloc() replacement.
15849         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
15850         AC_FUNC_REALLOC.
15851         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
15852         Autoconf's AC_FUNC_REALLOC.
15853         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
15854         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
15855         (gl_REPLACE_REALLOC): New macro.
15856         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
15857
15858 2010-06-21  Bruno Haible  <bruno@clisp.org>
15859
15860         Fix HAVE_MALLOC_POSIX misnomer.
15861         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
15862         !HAVE_MALLOC_POSIX.
15863         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
15864         HAVE_MALLOC_POSIX.
15865         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
15866         instead of HAVE_MALLOC_POSIX.
15867         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
15868         HAVE_MALLOC_POSIX.
15869
15870         Use modern idiom for malloc() replacement.
15871         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
15872         AC_FUNC_MALLOC.
15873         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
15874         Autoconf's AC_FUNC_MALLOC.
15875         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
15876         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
15877         (gl_REPLACE_MALLOC): New macro.
15878         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
15879
15880 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
15881
15882         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
15883         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
15884         This macro takes 3 arguments, not 4.
15885
15886 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
15887
15888         ipv6: fix detection under mingw
15889         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
15890         in6_addr.
15891
15892 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
15893
15894         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
15895         that strtod() works when cross-compiling to a glibc version known
15896         to work.
15897
15898 2010-06-15  Bruno Haible  <bruno@clisp.org>
15899
15900         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
15901
15902 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
15903
15904         select: Correct timeout.
15905         * lib/select.c (rpl_select): Compute wait_timeout correctly.
15906
15907 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15908
15909         git-version-gen: init shell var to avoid env var influence
15910         * build-aux/git-version-gen (v): Init shell var to empty.
15911
15912 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
15913
15914         priv-set: Don't assume that priv.h exists merely because getppriv does.
15915         See Jan Andersen's bug report about AIX 5L in
15916         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
15917         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
15918         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
15919         * lib/priv-set.h: Likewise.
15920         * tests/test-priv-set.c: Likewise.
15921
15922 2010-06-13  Bruno Haible  <bruno@clisp.org>
15923
15924         relocatable: Make it easier to test whether to install wrappers.
15925         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
15926         RELOCATABLE_VIA_WRAPPER.
15927
15928 2010-06-13  Bruno Haible  <bruno@clisp.org>
15929
15930         gnulib-tool: Display specified modules and dependencies differently.
15931         * gnulib-tool (func_show_module_list): New function.
15932         (func_import, func_create_testdir): Invoke it.
15933         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
15934
15935 2010-06-13  Bruno Haible  <bruno@clisp.org>
15936
15937         gnulib-tool: Align code of func_import and func_create_testdir.
15938         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
15939         specified_modules.
15940
15941 2010-06-12  Jim Meyering  <meyering@redhat.com>
15942
15943         test-inttostr: avoid spurious failure on Solaris 9
15944         * tests/test-inttostr.c (main): Skip the test when snprintf fails
15945         to accept "%ju".  Reported by Bruno Haible.
15946
15947 2010-06-11  Jim Meyering  <meyering@redhat.com>
15948
15949         test-sys_socket: mark variables as used more readably
15950         * tests/test-sys_socket.c (main): Mark otherwise unused variables
15951         as "used" explicitly via (void) statement casts.  This is more
15952         readable than using them in an artificial return expression.
15953         Suggestion from Bruno Haible.
15954
15955 2010-06-11  Bruno Haible  <bruno@clisp.org>
15956
15957         Avoid some more warnings from "gcc -Wwrite-strings".
15958         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
15959         to 'const char *'.
15960         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
15961         * tests/test-c-strcasestr.c (main): Likewise.
15962         * tests/test-mbscasestr1.c (main): Likewise.
15963         * tests/test-mbscasestr2.c (main): Likewise.
15964         * tests/test-memmem.c (main): Likewise.
15965         * tests/test-strstr.c (main): Likewise.
15966         * tests/test-strcasestr.c (main): Likewise.
15967
15968 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15969
15970         init.sh: change framework_failure_ to fail with status 99, not 1
15971         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
15972         automake's parallel-tests rule that this is an unexpected failure,
15973         even if the test is listed in XFAIL_TESTS.
15974
15975 2010-06-11  Jim Meyering  <meyering@redhat.com>
15976
15977         test-inttostr: avoid warnings about 4-6KB literal strings
15978         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
15979         Include "macros.h", for its definition of ASSERT.
15980         (CK): s/assert/ASSERT/
15981         * modules/inttostr-tests (Files): Add macros.h.
15982
15983         init.sh: don't use $ME_ or skip_ before they are defined
15984         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
15985         their first uses.  Also hoist their companions: warn_, fail_,
15986         framework_failure_, $stderr_fileno.  Prompted by a patch from
15987         Stefano Lattarini.
15988
15989         test-sys_socket: avoid set-but-not-used warnings from gcc
15990         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
15991         avoid warning about set-but-not-used variables.
15992
15993         test-xvasprintf: avoid 'const' discard warnings
15994         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
15995         "const" when assigning from literal strings.
15996         (test_xasprintf): Add "void" in function argument list to placate
15997         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
15998
15999         tests: avoid compilation warnings in argmatch and exclude tests...
16000         in packages that define ARGMATCH_DIE_DECL, like coreutils.
16001         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
16002         Since it always exits, declare with the "noreturn" attribute.
16003         * tests/test-argmatch.c: Likewise.
16004
16005         tests: avoid 'const' discard warnings in mbsstr tests
16006         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
16007         * tests/test-mbsstr2.c (main): Likewise.
16008
16009         test-verify: avoid warning from gcc's -Wmissing-declarations
16010         * tests/test-verify.c (function): Declare to be static.
16011
16012         test-inttostr.c: include <string.h> for use of strcmp
16013         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
16014
16015         test-linkat: avoid failed assertion on "other" architectures
16016         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
16017         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
16018         sparc: https://bugs.launchpad.net/bugs/591968
16019
16020 2010-06-11  Jim Meyering  <meyering@redhat.com>
16021
16022         printf.m4: avoid autoconf's "Expanded Before Required" warning
16023         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
16024         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
16025         autoconf warning.
16026
16027 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
16028
16029         Replacement header templates are now named with ".in", not "_".
16030         * doc/gnulib-intro.texi: Correct.
16031
16032 2010-06-10  Jim Meyering  <meyering@redhat.com>
16033
16034         inttostr-tests: depend on snprintf, not snprintf-posix
16035         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
16036         snprintf-posix, to avoid this aclocal failure:
16037           missing file gnulib-tests/vasnprintf.c
16038           configure.ac:45: error: expected source file, required through \
16039           AC_LIBSOURCES, not found
16040
16041 2010-06-10  Jim Meyering  <meyering@redhat.com>
16042
16043         inttostr: add a new function, inttostr, and tests
16044         The namesake function was not available.  The existence of the
16045         template file, inttostr.c makes its addition nontrivial.
16046         * lib/anytostr.c: Rename from inttostr.c.
16047         (anytostr): Rename from inttostr.
16048         * lib/inttostr.c: New file.
16049         * modules/inttostr (Files): Add anytostr.c.
16050         (Makefile.am): Set lib_SOURCES instead of ...
16051         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
16052         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
16053         * lib/offtostr.c: Likewise.
16054         * lib/uinttostr.c: Likewise.
16055         * lib/umaxtostr.c: Likewise.
16056         * modules/inttostr-tests: New file.
16057         * tests/test-inttostr.c: New file.  Test these functions.
16058
16059 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
16060             Bruno Haible  <bruno@clisp.org>
16061
16062         Add "Extending Gnulib" chapter to manual.
16063         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
16064         chapter.
16065         (Extending Gnulib): New chapter.
16066         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
16067         chapter.
16068
16069 2010-06-09  Bruno Haible  <bruno@clisp.org>
16070
16071         Avoid relocwrapper link errors due to gnulib replacement functions.
16072         * lib/areadlink.c: Use the system's malloc, realloc functions.
16073         (areadlink): Set errno to ENOMEM explicitly.
16074         * modules/areadlink (Depends-on): Remove malloc-posix.
16075         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16076
16077 2010-06-09  Bruno Haible  <bruno@clisp.org>
16078
16079         Avoid relocwrapper link errors due to gnulib replacement functions.
16080         * lib/canonicalize-lgpl.c: Use the system's malloc function.
16081         * lib/malloca.c: Likewise.
16082         * lib/relocatable.c: Likewise.
16083         * lib/progreloc.c: Use the system's malloc, sprintf functions.
16084         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
16085         * lib/setenv.c: Use the system's malloc, realloc functions.
16086         * lib/strerror.c: Use the system's sprintf function.
16087         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16088
16089 2010-06-04  Bruno Haible  <bruno@clisp.org>
16090
16091         Prefer documented low-level autoconf macro names.
16092         * m4/lib-link.m4: Use m4_translit instead of translit.
16093         * m4/environ.m4: Likewise.
16094         * m4/mathfunc.m4: Likewise.
16095         * m4/onceonly.m4: Likewise.
16096         * m4/stdint.m4: Likewise.
16097         Suggested by Eric Blake.
16098
16099 2010-06-04  Martin Lambers  <marlam@marlam.de>
16100             Bruno Haible  <bruno@clisp.org>
16101
16102         havelib: Allow library names with '+' characters.
16103         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
16104         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
16105
16106 2010-06-09  Bruno Haible  <bruno@clisp.org>
16107
16108         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
16109         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
16110         realloc failed.
16111
16112 2010-06-08  Peter Simons  <simons@cryp.to>
16113
16114         maint.mk: make the news-check rule more configurable
16115         * top/maint.mk (news-check-lines-spec): New variable.
16116         (news-check): Use "sed -n 1,10p" in place of "head".
16117
16118 2010-06-07  Jim Meyering  <meyering@redhat.com>
16119
16120         do-release-commit-and-tag: fix typo in --help
16121         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
16122
16123         regex: avoid new dead-code warning with gcc-4.6.0
16124         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
16125         if-block containing a while-loop.  It's been unused for at least
16126         5 years.
16127
16128 2010-06-05  Bruno Haible  <bruno@clisp.org>
16129
16130         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
16131         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
16132
16133 2010-06-04  Bruno Haible  <bruno@clisp.org>
16134
16135         Update to GNU gettext 0.18.1.
16136         * modules/gettext (configure.ac): Require gettext infrastructure from
16137         version 0.18.1.
16138
16139 2010-06-03  Bruno Haible  <bruno@clisp.org>
16140
16141         Don't use AC_LIBOBJ with file names in subdirectories.
16142         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
16143         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
16144         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
16145         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
16146         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
16147         gl_LIBUNISTRING_LIBSOURCE.
16148         (Makefile.am): Augment lib_SOURCES here, conditionally.
16149         * NEWS: Drop requirement for Automake option 'subdir-objects'.
16150
16151 2010-06-03  Bruno Haible  <bruno@clisp.org>
16152
16153         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
16154         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
16155         expansion does not end with a newline.
16156         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
16157         unnecessary newline.
16158
16159 2010-06-03  Bruno Haible  <bruno@clisp.org>
16160
16161         Reduce dependencies.
16162         * tests/test-quotearg.h: New file, extracted from
16163         tests/test-quotearg.c.
16164         * tests/test-quotearg-simple.c: New file, extracted from
16165         tests/test-quotearg.c.
16166         * tests/test-quotearg.c: Don't include <ctype.h>.
16167         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
16168         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
16169         use_quote_double_quotes, use_quotearg_colon): Moved to
16170         tests/test-quotearg.h.
16171         (results_g, flag_results, custom_quotes, custom_results): Moved
16172         to tests/test-quotearg-simple.c.
16173         (main): Moved the part that does not depend on gettext to
16174         tests/test-quotearg-simple.c. Return 77 if the test cannot be
16175         performed.
16176         * modules/quotearg-simple: New file.
16177         * modules/quotearg-simple-tests: New file.
16178         * modules/quotearg (Depends-on): Add quotearg-simple.
16179         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
16180         (Files): Add tests/test-quotearg.h.
16181         Reported by Paolo Bonzini.
16182
16183 2010-06-03  Bruno Haible  <bruno@clisp.org>
16184
16185         Reduce dependencies.
16186         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
16187
16188 2010-06-03  Bruno Haible  <bruno@clisp.org>
16189
16190         time: Undefine more broken macros.
16191         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
16192         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
16193         Reported by Eric Blake.
16194
16195 2010-06-03  Bruno Haible  <bruno@clisp.org>
16196
16197         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
16198         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
16199         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
16200         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
16201         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
16202         Reported by Ludovic Courtès <ludo@gnu.org>.
16203
16204 2010-06-02  Eric Blake  <eblake@redhat.com>
16205
16206         time: work with mingw + pthreads-win32 library
16207         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
16208         if timespec is defined only in pthread.h.
16209         * modules/time (Makefile.am): Substitute it.
16210         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
16211         <pthread.h>, when needed.
16212         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
16213         from the library.
16214
16215 2010-05-31  Bruno Haible  <bruno@clisp.org>
16216
16217         Avoid expanding two macros in the wrong order.
16218         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
16219         gl_LIBUNISTRING if it is defined.
16220         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
16221         autoconf >= 2.64.
16222         Reported by Ludovic Courtès <ludo@gnu.org>.
16223
16224 2010-05-27  Jim Meyering  <meyering@redhat.com>
16225
16226         maint.mk: also prohibit "#undef" of always-defined symbols
16227         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
16228         Allow more than one space before the symbol name.
16229         (sc_prohibit_always-defined_macros): Use grep's -E, now that
16230         the regexp uses alternation.
16231
16232 2010-05-26  Eric Blake  <eblake@redhat.com>
16233
16234         maint.mk: avoid echo -e
16235         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
16236         Convert all uses of echo -* to printf.
16237         Reported by Matthias Bolte.
16238
16239 2010-05-25  Bruno Haible  <bruno@clisp.org>
16240
16241         Update to GNU gettext 0.18, part 2.
16242         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
16243         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
16244
16245 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16246
16247         Add missing include in test-pwrite.c.
16248         * tests/test-pwrite.c: Include string.h, for strcmp.
16249
16250 2010-05-24  Bruno Haible  <bruno@clisp.org>
16251
16252         * NEWS: Mention requirement for Automake option 'subdir-objects'.
16253
16254 2010-05-24  Bruno Haible  <bruno@clisp.org>
16255
16256         Don't use conversion with transliteration in u{8,16,32}_strcoll.
16257         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
16258         iconveh_error argument.
16259         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
16260         U_STRCONV_TO_LOCALE.
16261         * lib/unistr/u16-strcoll.c: Likewise.
16262         * lib/unistr/u32-strcoll.c: Likewise.
16263         * modules/unistr/u8-strcoll (Depends-on): Add
16264         uniconv/u8-strconv-to-enc, localcharset. Remove
16265         uniconv/u8-strconv-to-locale.
16266         (configure.ac): Bump version number.
16267         * modules/unistr/u16-strcoll (Depends-on): Add
16268         uniconv/u16-strconv-to-enc, localcharset. Remove
16269         uniconv/u16-strconv-to-locale.
16270         (configure.ac): Bump version number.
16271         * modules/unistr/u32-strcoll (Depends-on): Add
16272         uniconv/u32-strconv-to-enc, localcharset. Remove
16273         uniconv/u32-strconv-to-locale.
16274         (configure.ac): Bump version number.
16275
16276 2010-05-24  Bruno Haible  <bruno@clisp.org>
16277
16278         Avoid a test failure on NetBSD 5.0.
16279         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
16280         an iconv() bug.
16281
16282 2010-05-24  Bruno Haible  <bruno@clisp.org>
16283
16284         Adjust #include directive style.
16285         * modules/regex (Includes): Recommend to write <regex.h>.
16286
16287 2010-05-24  Bruno Haible  <bruno@clisp.org>
16288
16289         regex: Don't require alloca.
16290         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
16291         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
16292         only inside if (0).
16293
16294 2010-05-23  Jim Meyering  <meyering@redhat.com>
16295
16296         test-renameat.c: include <sys/stat.h>
16297         * tests/test-renameat.c: Include <sys/stat.h>; required for
16298         definition of S_IS* macros.
16299
16300 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
16301
16302         Update maintainer documentation for 'relocatable-prog' module.
16303         * doc/relocatable-maint.texi: Update.
16304         Comments by Bruno Haible.
16305
16306 2010-05-23  Bruno Haible  <bruno@clisp.org>
16307
16308         git-merge-changelog: Enable --split-merged-entry by default.
16309         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
16310         (usage): Don't mention this option any more.
16311         Reported by Ralf Wildenhues.
16312
16313 2010-05-23  Jim Meyering  <meyering@redhat.com>
16314
16315         test-pwrite: do not leave behind a test file named "out"
16316         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
16317         The trivial-looking use of init.sh is really necessary.
16318         It ensures that the temporary file, "out", is created in
16319         a temporary directory, and removed upon termination.
16320         * tests/test-pwrite.sh: Re-add file.
16321         * modules/pwrite-tests: Reference it.
16322
16323 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16324
16325         Fix output redirection buglet in init.sh.
16326         * tests/init.sh: Fix redirection of stderr.
16327
16328 2010-05-20  Simon Josefsson  <simon@josefsson.org>
16329
16330         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
16331
16332 2010-05-17  Simon Josefsson  <simon@josefsson.org>
16333
16334         * modules/valgrind-tests: New file.
16335         * m4/valgrind-tests.m4: New file.
16336         * doc/valgrind-tests.texi: New file.
16337         * doc/gnulib.texi (Running self-tests under valgrind): New
16338         section.
16339
16340 2010-05-19  Bruno Haible  <bruno@clisp.org>
16341
16342         Clean up dead code in recent commit.
16343         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
16344         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
16345         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
16346         Suggested by Paolo Bonzini.
16347
16348 2010-05-19  Bruno Haible  <bruno@clisp.org>
16349
16350         Avoid valgrind error reports from libunistring.
16351         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
16352         * modules/libunistring (Files): Add it.
16353         * modules/libunistring-optional (Files): Likewise.
16354
16355 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
16356             Bruno Haible  <bruno@clisp.org>
16357
16358         New module 'libunistring-optional'.
16359         * modules/libunistring-optional: New file.
16360         * m4/libunistring-base.m4: New file.
16361         * m4/libunistring-optional.m4: New file.
16362         * lib/unicase.in.h: Renamed from lib/unicase.h.
16363         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
16364         * lib/unictype.in.h: Renamed from lib/unictype.h.
16365         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
16366         * lib/uniname.in.h: Renamed from lib/uniname.h.
16367         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
16368         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
16369         * lib/unistr.in.h: Renamed from lib/unistr.h.
16370         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
16371         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
16372         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
16373         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
16374         gl_LIBUNISTRING. If the library was found, determine the installed
16375         version and set LIBUNISTRING_VERSION.
16376         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
16377         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
16378         handle a configuration option --with-included-libunistring.
16379         * modules/libunistring (Files): Add m4/absolute-header.m4.
16380         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
16381         Add m4/libunistring-base.m4.
16382         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16383         (Makefile.am): Build unicase.h from unicase.in.h.
16384         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
16385         Add m4/libunistring-base.m4.
16386         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16387         (Makefile.am): Build uniconv.h from uniconv.in.h.
16388         * modules/unictype/base (Files): Use unictype.in.h instead of
16389         unictype.h. Add m4/libunistring-base.m4.
16390         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16391         (Makefile.am): Build unictype.h from unictype.in.h.
16392         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
16393         Add m4/libunistring-base.m4.
16394         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16395         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
16396         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
16397         Add m4/libunistring-base.m4.
16398         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16399         (Makefile.am): Build uniname.h from uniname.in.h.
16400         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
16401         Add m4/libunistring-base.m4.
16402         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16403         (Makefile.am): Build uninorm.h from uninorm.in.h.
16404         * modules/unistdio/base (Files): Use unistdio.in.h instead of
16405         unistdio.h. Add m4/libunistring-base.m4.
16406         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16407         (Makefile.am): Build unistdio.h from unistdio.in.h.
16408         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
16409         Add m4/libunistring-base.m4.
16410         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16411         (Makefile.am): Build unistr.h from unistr.in.h.
16412         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
16413         Add m4/libunistring-base.m4.
16414         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16415         (Makefile.am): Build unitypes.h from unitypes.in.h.
16416         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
16417         Add m4/libunistring-base.m4.
16418         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16419         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
16420         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
16421         uniwidth.h. Add m4/libunistring-base.m4.
16422         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16423         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
16424         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
16425         instead of augmenting lib_SOURCES.
16426         * modules/unicase/empty-suffix-context: Likewise.
16427         * modules/unicase/locale-language: Likewise.
16428         * modules/unicase/tolower: Likewise.
16429         * modules/unicase/totitle: Likewise.
16430         * modules/unicase/toupper: Likewise.
16431         * modules/unicase/u8-casecmp: Likewise.
16432         * modules/unicase/u8-casecoll: Likewise.
16433         * modules/unicase/u8-casefold: Likewise.
16434         * modules/unicase/u8-casexfrm: Likewise.
16435         * modules/unicase/u8-ct-casefold: Likewise.
16436         * modules/unicase/u8-ct-tolower: Likewise.
16437         * modules/unicase/u8-ct-totitle: Likewise.
16438         * modules/unicase/u8-ct-toupper: Likewise.
16439         * modules/unicase/u8-is-cased: Likewise.
16440         * modules/unicase/u8-is-casefolded: Likewise.
16441         * modules/unicase/u8-is-lowercase: Likewise.
16442         * modules/unicase/u8-is-titlecase: Likewise.
16443         * modules/unicase/u8-is-uppercase: Likewise.
16444         * modules/unicase/u8-prefix-context: Likewise.
16445         * modules/unicase/u8-suffix-context: Likewise.
16446         * modules/unicase/u8-tolower: Likewise.
16447         * modules/unicase/u8-totitle: Likewise.
16448         * modules/unicase/u8-toupper: Likewise.
16449         * modules/unicase/u16-casecmp: Likewise.
16450         * modules/unicase/u16-casecoll: Likewise.
16451         * modules/unicase/u16-casefold: Likewise.
16452         * modules/unicase/u16-casexfrm: Likewise.
16453         * modules/unicase/u16-ct-casefold: Likewise.
16454         * modules/unicase/u16-ct-tolower: Likewise.
16455         * modules/unicase/u16-ct-totitle: Likewise.
16456         * modules/unicase/u16-ct-toupper: Likewise.
16457         * modules/unicase/u16-is-cased: Likewise.
16458         * modules/unicase/u16-is-casefolded: Likewise.
16459         * modules/unicase/u16-is-lowercase: Likewise.
16460         * modules/unicase/u16-is-titlecase: Likewise.
16461         * modules/unicase/u16-is-uppercase: Likewise.
16462         * modules/unicase/u16-prefix-context: Likewise.
16463         * modules/unicase/u16-suffix-context: Likewise.
16464         * modules/unicase/u16-tolower: Likewise.
16465         * modules/unicase/u16-totitle: Likewise.
16466         * modules/unicase/u16-toupper: Likewise.
16467         * modules/unicase/u32-casecmp: Likewise.
16468         * modules/unicase/u32-casecoll: Likewise.
16469         * modules/unicase/u32-casefold: Likewise.
16470         * modules/unicase/u32-casexfrm: Likewise.
16471         * modules/unicase/u32-ct-casefold: Likewise.
16472         * modules/unicase/u32-ct-tolower: Likewise.
16473         * modules/unicase/u32-ct-totitle: Likewise.
16474         * modules/unicase/u32-ct-toupper: Likewise.
16475         * modules/unicase/u32-is-cased: Likewise.
16476         * modules/unicase/u32-is-casefolded: Likewise.
16477         * modules/unicase/u32-is-lowercase: Likewise.
16478         * modules/unicase/u32-is-titlecase: Likewise.
16479         * modules/unicase/u32-is-uppercase: Likewise.
16480         * modules/unicase/u32-prefix-context: Likewise.
16481         * modules/unicase/u32-suffix-context: Likewise.
16482         * modules/unicase/u32-tolower: Likewise.
16483         * modules/unicase/u32-totitle: Likewise.
16484         * modules/unicase/u32-toupper: Likewise.
16485         * modules/unicase/ulc-casecmp: Likewise.
16486         * modules/unicase/ulc-casecoll: Likewise.
16487         * modules/unicase/ulc-casexfrm: Likewise.
16488         * modules/uniconv/u8-conv-from-enc: Likewise.
16489         * modules/uniconv/u8-conv-to-enc: Likewise.
16490         * modules/uniconv/u8-strconv-from-enc: Likewise.
16491         * modules/uniconv/u8-strconv-from-locale: Likewise.
16492         * modules/uniconv/u8-strconv-to-enc: Likewise.
16493         * modules/uniconv/u8-strconv-to-locale: Likewise.
16494         * modules/uniconv/u16-conv-from-enc: Likewise.
16495         * modules/uniconv/u16-conv-to-enc: Likewise.
16496         * modules/uniconv/u16-strconv-from-enc: Likewise.
16497         * modules/uniconv/u16-strconv-from-locale: Likewise.
16498         * modules/uniconv/u16-strconv-to-enc: Likewise.
16499         * modules/uniconv/u16-strconv-to-locale: Likewise.
16500         * modules/uniconv/u32-conv-from-enc: Likewise.
16501         * modules/uniconv/u32-conv-to-enc: Likewise.
16502         * modules/uniconv/u32-strconv-from-enc: Likewise.
16503         * modules/uniconv/u32-strconv-from-locale: Likewise.
16504         * modules/uniconv/u32-strconv-to-enc: Likewise.
16505         * modules/uniconv/u32-strconv-to-locale: Likewise.
16506         * modules/unictype/bidicategory-byname: Likewise.
16507         * modules/unictype/bidicategory-name: Likewise.
16508         * modules/unictype/bidicategory-of: Likewise.
16509         * modules/unictype/bidicategory-test: Likewise.
16510         * modules/unictype/block-list: Likewise.
16511         * modules/unictype/block-test: Likewise.
16512         * modules/unictype/category-C: Likewise.
16513         * modules/unictype/category-Cc: Likewise.
16514         * modules/unictype/category-Cf: Likewise.
16515         * modules/unictype/category-Cn: Likewise.
16516         * modules/unictype/category-Co: Likewise.
16517         * modules/unictype/category-Cs: Likewise.
16518         * modules/unictype/category-L: Likewise.
16519         * modules/unictype/category-Ll: Likewise.
16520         * modules/unictype/category-Lm: Likewise.
16521         * modules/unictype/category-Lo: Likewise.
16522         * modules/unictype/category-Lt: Likewise.
16523         * modules/unictype/category-Lu: Likewise.
16524         * modules/unictype/category-M: Likewise.
16525         * modules/unictype/category-Mc: Likewise.
16526         * modules/unictype/category-Me: Likewise.
16527         * modules/unictype/category-Mn: Likewise.
16528         * modules/unictype/category-N: Likewise.
16529         * modules/unictype/category-Nd: Likewise.
16530         * modules/unictype/category-Nl: Likewise.
16531         * modules/unictype/category-No: Likewise.
16532         * modules/unictype/category-P: Likewise.
16533         * modules/unictype/category-Pc: Likewise.
16534         * modules/unictype/category-Pd: Likewise.
16535         * modules/unictype/category-Pe: Likewise.
16536         * modules/unictype/category-Pf: Likewise.
16537         * modules/unictype/category-Pi: Likewise.
16538         * modules/unictype/category-Po: Likewise.
16539         * modules/unictype/category-Ps: Likewise.
16540         * modules/unictype/category-S: Likewise.
16541         * modules/unictype/category-Sc: Likewise.
16542         * modules/unictype/category-Sk: Likewise.
16543         * modules/unictype/category-Sm: Likewise.
16544         * modules/unictype/category-So: Likewise.
16545         * modules/unictype/category-Z: Likewise.
16546         * modules/unictype/category-Zl: Likewise.
16547         * modules/unictype/category-Zp: Likewise.
16548         * modules/unictype/category-Zs: Likewise.
16549         * modules/unictype/category-and: Likewise.
16550         * modules/unictype/category-and-not: Likewise.
16551         * modules/unictype/category-byname: Likewise.
16552         * modules/unictype/category-name: Likewise.
16553         * modules/unictype/category-none: Likewise.
16554         * modules/unictype/category-of: Likewise.
16555         * modules/unictype/category-or: Likewise.
16556         * modules/unictype/category-test: Likewise.
16557         * modules/unictype/combining-class: Likewise.
16558         * modules/unictype/ctype-alnum: Likewise.
16559         * modules/unictype/ctype-alpha: Likewise.
16560         * modules/unictype/ctype-blank: Likewise.
16561         * modules/unictype/ctype-cntrl: Likewise.
16562         * modules/unictype/ctype-digit: Likewise.
16563         * modules/unictype/ctype-graph: Likewise.
16564         * modules/unictype/ctype-lower: Likewise.
16565         * modules/unictype/ctype-print: Likewise.
16566         * modules/unictype/ctype-punct: Likewise.
16567         * modules/unictype/ctype-space: Likewise.
16568         * modules/unictype/ctype-upper: Likewise.
16569         * modules/unictype/ctype-xdigit: Likewise.
16570         * modules/unictype/decimal-digit: Likewise.
16571         * modules/unictype/digit: Likewise.
16572         * modules/unictype/mirror: Likewise.
16573         * modules/unictype/numeric: Likewise.
16574         * modules/unictype/property-alphabetic: Likewise.
16575         * modules/unictype/property-ascii-hex-digit: Likewise.
16576         * modules/unictype/property-bidi-arabic-digit: Likewise.
16577         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
16578         * modules/unictype/property-bidi-block-separator: Likewise.
16579         * modules/unictype/property-bidi-boundary-neutral: Likewise.
16580         * modules/unictype/property-bidi-common-separator: Likewise.
16581         * modules/unictype/property-bidi-control: Likewise.
16582         * modules/unictype/property-bidi-embedding-or-override: Likewise.
16583         * modules/unictype/property-bidi-eur-num-separator: Likewise.
16584         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
16585         * modules/unictype/property-bidi-european-digit: Likewise.
16586         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
16587         * modules/unictype/property-bidi-left-to-right: Likewise.
16588         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
16589         * modules/unictype/property-bidi-other-neutral: Likewise.
16590         * modules/unictype/property-bidi-pdf: Likewise.
16591         * modules/unictype/property-bidi-segment-separator: Likewise.
16592         * modules/unictype/property-bidi-whitespace: Likewise.
16593         * modules/unictype/property-byname: Likewise.
16594         * modules/unictype/property-combining: Likewise.
16595         * modules/unictype/property-composite: Likewise.
16596         * modules/unictype/property-currency-symbol: Likewise.
16597         * modules/unictype/property-dash: Likewise.
16598         * modules/unictype/property-decimal-digit: Likewise.
16599         * modules/unictype/property-default-ignorable-code-point: Likewise.
16600         * modules/unictype/property-deprecated: Likewise.
16601         * modules/unictype/property-diacritic: Likewise.
16602         * modules/unictype/property-extender: Likewise.
16603         * modules/unictype/property-format-control: Likewise.
16604         * modules/unictype/property-grapheme-base: Likewise.
16605         * modules/unictype/property-grapheme-extend: Likewise.
16606         * modules/unictype/property-grapheme-link: Likewise.
16607         * modules/unictype/property-hex-digit: Likewise.
16608         * modules/unictype/property-hyphen: Likewise.
16609         * modules/unictype/property-id-continue: Likewise.
16610         * modules/unictype/property-id-start: Likewise.
16611         * modules/unictype/property-ideographic: Likewise.
16612         * modules/unictype/property-ids-binary-operator: Likewise.
16613         * modules/unictype/property-ids-trinary-operator: Likewise.
16614         * modules/unictype/property-ignorable-control: Likewise.
16615         * modules/unictype/property-iso-control: Likewise.
16616         * modules/unictype/property-join-control: Likewise.
16617         * modules/unictype/property-left-of-pair: Likewise.
16618         * modules/unictype/property-line-separator: Likewise.
16619         * modules/unictype/property-logical-order-exception: Likewise.
16620         * modules/unictype/property-lowercase: Likewise.
16621         * modules/unictype/property-math: Likewise.
16622         * modules/unictype/property-non-break: Likewise.
16623         * modules/unictype/property-not-a-character: Likewise.
16624         * modules/unictype/property-numeric: Likewise.
16625         * modules/unictype/property-other-alphabetic: Likewise.
16626         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
16627         * modules/unictype/property-other-grapheme-extend: Likewise.
16628         * modules/unictype/property-other-id-continue: Likewise.
16629         * modules/unictype/property-other-id-start: Likewise.
16630         * modules/unictype/property-other-lowercase: Likewise.
16631         * modules/unictype/property-other-math: Likewise.
16632         * modules/unictype/property-other-uppercase: Likewise.
16633         * modules/unictype/property-paired-punctuation: Likewise.
16634         * modules/unictype/property-paragraph-separator: Likewise.
16635         * modules/unictype/property-pattern-syntax: Likewise.
16636         * modules/unictype/property-pattern-white-space: Likewise.
16637         * modules/unictype/property-private-use: Likewise.
16638         * modules/unictype/property-punctuation: Likewise.
16639         * modules/unictype/property-quotation-mark: Likewise.
16640         * modules/unictype/property-radical: Likewise.
16641         * modules/unictype/property-sentence-terminal: Likewise.
16642         * modules/unictype/property-soft-dotted: Likewise.
16643         * modules/unictype/property-space: Likewise.
16644         * modules/unictype/property-terminal-punctuation: Likewise.
16645         * modules/unictype/property-test: Likewise.
16646         * modules/unictype/property-titlecase: Likewise.
16647         * modules/unictype/property-unassigned-code-value: Likewise.
16648         * modules/unictype/property-unified-ideograph: Likewise.
16649         * modules/unictype/property-uppercase: Likewise.
16650         * modules/unictype/property-variation-selector: Likewise.
16651         * modules/unictype/property-white-space: Likewise.
16652         * modules/unictype/property-xid-continue: Likewise.
16653         * modules/unictype/property-xid-start: Likewise.
16654         * modules/unictype/property-zero-width: Likewise.
16655         * modules/unictype/scripts: Likewise.
16656         * modules/unictype/syntax-c-ident: Likewise.
16657         * modules/unictype/syntax-c-whitespace: Likewise.
16658         * modules/unictype/syntax-java-ident: Likewise.
16659         * modules/unictype/syntax-java-whitespace: Likewise.
16660         * modules/unilbrk/u8-possible-linebreaks: Likewise.
16661         * modules/unilbrk/u8-width-linebreaks: Likewise.
16662         * modules/unilbrk/u16-possible-linebreaks: Likewise.
16663         * modules/unilbrk/u16-width-linebreaks: Likewise.
16664         * modules/unilbrk/u32-possible-linebreaks: Likewise.
16665         * modules/unilbrk/u32-width-linebreaks: Likewise.
16666         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
16667         * modules/unilbrk/ulc-width-linebreaks: Likewise.
16668         * modules/uniname/uniname: Likewise.
16669         * modules/uninorm/canonical-decomposition: Likewise.
16670         * modules/uninorm/composition: Likewise.
16671         * modules/uninorm/decomposing-form: Likewise.
16672         * modules/uninorm/decomposition: Likewise.
16673         * modules/uninorm/filter: Likewise.
16674         * modules/uninorm/nfc: Likewise.
16675         * modules/uninorm/nfd: Likewise.
16676         * modules/uninorm/nfkc: Likewise.
16677         * modules/uninorm/nfkd: Likewise.
16678         * modules/uninorm/u8-normalize: Likewise.
16679         * modules/uninorm/u8-normcmp: Likewise.
16680         * modules/uninorm/u8-normcoll: Likewise.
16681         * modules/uninorm/u8-normxfrm: Likewise.
16682         * modules/uninorm/u16-normalize: Likewise.
16683         * modules/uninorm/u16-normcmp: Likewise.
16684         * modules/uninorm/u16-normcoll: Likewise.
16685         * modules/uninorm/u16-normxfrm: Likewise.
16686         * modules/uninorm/u32-normalize: Likewise.
16687         * modules/uninorm/u32-normcmp: Likewise.
16688         * modules/uninorm/u32-normcoll: Likewise.
16689         * modules/uninorm/u32-normxfrm: Likewise.
16690         * modules/unistdio/u8-asnprintf: Likewise.
16691         * modules/unistdio/u8-asprintf: Likewise.
16692         * modules/unistdio/u8-snprintf: Likewise.
16693         * modules/unistdio/u8-sprintf: Likewise.
16694         * modules/unistdio/u8-u8-asnprintf: Likewise.
16695         * modules/unistdio/u8-u8-asprintf: Likewise.
16696         * modules/unistdio/u8-u8-snprintf: Likewise.
16697         * modules/unistdio/u8-u8-sprintf: Likewise.
16698         * modules/unistdio/u8-u8-vasnprintf: Likewise.
16699         * modules/unistdio/u8-u8-vasprintf: Likewise.
16700         * modules/unistdio/u8-u8-vsnprintf: Likewise.
16701         * modules/unistdio/u8-u8-vsprintf: Likewise.
16702         * modules/unistdio/u8-vasnprintf: Likewise.
16703         * modules/unistdio/u8-vasprintf: Likewise.
16704         * modules/unistdio/u8-vsnprintf: Likewise.
16705         * modules/unistdio/u8-vsprintf: Likewise.
16706         * modules/unistdio/u16-asnprintf: Likewise.
16707         * modules/unistdio/u16-asprintf: Likewise.
16708         * modules/unistdio/u16-snprintf: Likewise.
16709         * modules/unistdio/u16-sprintf: Likewise.
16710         * modules/unistdio/u16-u16-asnprintf: Likewise.
16711         * modules/unistdio/u16-u16-asprintf: Likewise.
16712         * modules/unistdio/u16-u16-snprintf: Likewise.
16713         * modules/unistdio/u16-u16-sprintf: Likewise.
16714         * modules/unistdio/u16-u16-vasnprintf: Likewise.
16715         * modules/unistdio/u16-u16-vasprintf: Likewise.
16716         * modules/unistdio/u16-u16-vsnprintf: Likewise.
16717         * modules/unistdio/u16-u16-vsprintf: Likewise.
16718         * modules/unistdio/u16-vasnprintf: Likewise.
16719         * modules/unistdio/u16-vasprintf: Likewise.
16720         * modules/unistdio/u16-vsnprintf: Likewise.
16721         * modules/unistdio/u16-vsprintf: Likewise.
16722         * modules/unistdio/u32-asnprintf: Likewise.
16723         * modules/unistdio/u32-asprintf: Likewise.
16724         * modules/unistdio/u32-snprintf: Likewise.
16725         * modules/unistdio/u32-sprintf: Likewise.
16726         * modules/unistdio/u32-u32-asnprintf: Likewise.
16727         * modules/unistdio/u32-u32-asprintf: Likewise.
16728         * modules/unistdio/u32-u32-snprintf: Likewise.
16729         * modules/unistdio/u32-u32-sprintf: Likewise.
16730         * modules/unistdio/u32-u32-vasnprintf: Likewise.
16731         * modules/unistdio/u32-u32-vasprintf: Likewise.
16732         * modules/unistdio/u32-u32-vsnprintf: Likewise.
16733         * modules/unistdio/u32-u32-vsprintf: Likewise.
16734         * modules/unistdio/u32-vasnprintf: Likewise.
16735         * modules/unistdio/u32-vasprintf: Likewise.
16736         * modules/unistdio/u32-vsnprintf: Likewise.
16737         * modules/unistdio/u32-vsprintf: Likewise.
16738         * modules/unistdio/ulc-asnprintf: Likewise.
16739         * modules/unistdio/ulc-asprintf: Likewise.
16740         * modules/unistdio/ulc-fprintf: Likewise.
16741         * modules/unistdio/ulc-snprintf: Likewise.
16742         * modules/unistdio/ulc-sprintf: Likewise.
16743         * modules/unistdio/ulc-vasnprintf: Likewise.
16744         * modules/unistdio/ulc-vasprintf: Likewise.
16745         * modules/unistdio/ulc-vfprintf: Likewise.
16746         * modules/unistdio/ulc-vsnprintf: Likewise.
16747         * modules/unistdio/ulc-vsprintf: Likewise.
16748         * modules/unistr/u8-check: Likewise.
16749         * modules/unistr/u8-chr: Likewise.
16750         * modules/unistr/u8-cmp: Likewise.
16751         * modules/unistr/u8-cmp2: Likewise.
16752         * modules/unistr/u8-cpy: Likewise.
16753         * modules/unistr/u8-cpy-alloc: Likewise.
16754         * modules/unistr/u8-endswith: Likewise.
16755         * modules/unistr/u8-mblen: Likewise.
16756         * modules/unistr/u8-mbsnlen: Likewise.
16757         * modules/unistr/u8-mbtouc: Likewise.
16758         * modules/unistr/u8-mbtouc-unsafe: Likewise.
16759         * modules/unistr/u8-mbtoucr: Likewise.
16760         * modules/unistr/u8-move: Likewise.
16761         * modules/unistr/u8-next: Likewise.
16762         * modules/unistr/u8-prev: Likewise.
16763         * modules/unistr/u8-set: Likewise.
16764         * modules/unistr/u8-startswith: Likewise.
16765         * modules/unistr/u8-stpcpy: Likewise.
16766         * modules/unistr/u8-stpncpy: Likewise.
16767         * modules/unistr/u8-strcat: Likewise.
16768         * modules/unistr/u8-strchr: Likewise.
16769         * modules/unistr/u8-strcmp: Likewise.
16770         * modules/unistr/u8-strcoll: Likewise.
16771         * modules/unistr/u8-strcpy: Likewise.
16772         * modules/unistr/u8-strcspn: Likewise.
16773         * modules/unistr/u8-strdup: Likewise.
16774         * modules/unistr/u8-strlen: Likewise.
16775         * modules/unistr/u8-strmblen: Likewise.
16776         * modules/unistr/u8-strmbtouc: Likewise.
16777         * modules/unistr/u8-strncat: Likewise.
16778         * modules/unistr/u8-strncmp: Likewise.
16779         * modules/unistr/u8-strncpy: Likewise.
16780         * modules/unistr/u8-strnlen: Likewise.
16781         * modules/unistr/u8-strpbrk: Likewise.
16782         * modules/unistr/u8-strrchr: Likewise.
16783         * modules/unistr/u8-strspn: Likewise.
16784         * modules/unistr/u8-strstr: Likewise.
16785         * modules/unistr/u8-strtok: Likewise.
16786         * modules/unistr/u8-to-u16: Likewise.
16787         * modules/unistr/u8-to-u32: Likewise.
16788         * modules/unistr/u8-uctomb: Likewise.
16789         * modules/unistr/u16-check: Likewise.
16790         * modules/unistr/u16-chr: Likewise.
16791         * modules/unistr/u16-cmp: Likewise.
16792         * modules/unistr/u16-cmp2: Likewise.
16793         * modules/unistr/u16-cpy: Likewise.
16794         * modules/unistr/u16-cpy-alloc: Likewise.
16795         * modules/unistr/u16-endswith: Likewise.
16796         * modules/unistr/u16-mblen: Likewise.
16797         * modules/unistr/u16-mbsnlen: Likewise.
16798         * modules/unistr/u16-mbtouc: Likewise.
16799         * modules/unistr/u16-mbtouc-unsafe: Likewise.
16800         * modules/unistr/u16-mbtoucr: Likewise.
16801         * modules/unistr/u16-move: Likewise.
16802         * modules/unistr/u16-next: Likewise.
16803         * modules/unistr/u16-prev: Likewise.
16804         * modules/unistr/u16-set: Likewise.
16805         * modules/unistr/u16-startswith: Likewise.
16806         * modules/unistr/u16-stpcpy: Likewise.
16807         * modules/unistr/u16-stpncpy: Likewise.
16808         * modules/unistr/u16-strcat: Likewise.
16809         * modules/unistr/u16-strchr: Likewise.
16810         * modules/unistr/u16-strcmp: Likewise.
16811         * modules/unistr/u16-strcoll: Likewise.
16812         * modules/unistr/u16-strcpy: Likewise.
16813         * modules/unistr/u16-strcspn: Likewise.
16814         * modules/unistr/u16-strdup: Likewise.
16815         * modules/unistr/u16-strlen: Likewise.
16816         * modules/unistr/u16-strmblen: Likewise.
16817         * modules/unistr/u16-strmbtouc: Likewise.
16818         * modules/unistr/u16-strncat: Likewise.
16819         * modules/unistr/u16-strncmp: Likewise.
16820         * modules/unistr/u16-strncpy: Likewise.
16821         * modules/unistr/u16-strnlen: Likewise.
16822         * modules/unistr/u16-strpbrk: Likewise.
16823         * modules/unistr/u16-strrchr: Likewise.
16824         * modules/unistr/u16-strspn: Likewise.
16825         * modules/unistr/u16-strstr: Likewise.
16826         * modules/unistr/u16-strtok: Likewise.
16827         * modules/unistr/u16-to-u32: Likewise.
16828         * modules/unistr/u16-to-u8: Likewise.
16829         * modules/unistr/u16-uctomb: Likewise.
16830         * modules/unistr/u32-check: Likewise.
16831         * modules/unistr/u32-chr: Likewise.
16832         * modules/unistr/u32-cmp: Likewise.
16833         * modules/unistr/u32-cmp2: Likewise.
16834         * modules/unistr/u32-cpy: Likewise.
16835         * modules/unistr/u32-cpy-alloc: Likewise.
16836         * modules/unistr/u32-endswith: Likewise.
16837         * modules/unistr/u32-mblen: Likewise.
16838         * modules/unistr/u32-mbsnlen: Likewise.
16839         * modules/unistr/u32-mbtouc: Likewise.
16840         * modules/unistr/u32-mbtouc-unsafe: Likewise.
16841         * modules/unistr/u32-mbtoucr: Likewise.
16842         * modules/unistr/u32-move: Likewise.
16843         * modules/unistr/u32-next: Likewise.
16844         * modules/unistr/u32-prev: Likewise.
16845         * modules/unistr/u32-set: Likewise.
16846         * modules/unistr/u32-startswith: Likewise.
16847         * modules/unistr/u32-stpcpy: Likewise.
16848         * modules/unistr/u32-stpncpy: Likewise.
16849         * modules/unistr/u32-strcat: Likewise.
16850         * modules/unistr/u32-strchr: Likewise.
16851         * modules/unistr/u32-strcmp: Likewise.
16852         * modules/unistr/u32-strcoll: Likewise.
16853         * modules/unistr/u32-strcpy: Likewise.
16854         * modules/unistr/u32-strcspn: Likewise.
16855         * modules/unistr/u32-strdup: Likewise.
16856         * modules/unistr/u32-strlen: Likewise.
16857         * modules/unistr/u32-strmblen: Likewise.
16858         * modules/unistr/u32-strmbtouc: Likewise.
16859         * modules/unistr/u32-strncat: Likewise.
16860         * modules/unistr/u32-strncmp: Likewise.
16861         * modules/unistr/u32-strncpy: Likewise.
16862         * modules/unistr/u32-strnlen: Likewise.
16863         * modules/unistr/u32-strpbrk: Likewise.
16864         * modules/unistr/u32-strrchr: Likewise.
16865         * modules/unistr/u32-strspn: Likewise.
16866         * modules/unistr/u32-strstr: Likewise.
16867         * modules/unistr/u32-strtok: Likewise.
16868         * modules/unistr/u32-to-u16: Likewise.
16869         * modules/unistr/u32-to-u8: Likewise.
16870         * modules/unistr/u32-uctomb: Likewise.
16871         * modules/uniwbrk/u8-wordbreaks: Likewise.
16872         * modules/uniwbrk/u16-wordbreaks: Likewise.
16873         * modules/uniwbrk/u32-wordbreaks: Likewise.
16874         * modules/uniwbrk/ulc-wordbreaks: Likewise.
16875         * modules/uniwbrk/wordbreak-property: Likewise.
16876         * modules/uniwidth/u8-strwidth: Likewise.
16877         * modules/uniwidth/u8-width: Likewise.
16878         * modules/uniwidth/u16-strwidth: Likewise.
16879         * modules/uniwidth/u16-width: Likewise.
16880         * modules/uniwidth/u32-strwidth: Likewise.
16881         * modules/uniwidth/u32-width: Likewise.
16882         * modules/uniwidth/width: Likewise.
16883         * modules/unicase/cased-tests (Makefile.am): Link all test programs
16884         with $(LIBUNISTRING).
16885         * modules/unicase/ignorable-tests: Likewise.
16886         * modules/unicase/locale-language-tests: Likewise.
16887         * modules/unicase/tolower-tests: Likewise.
16888         * modules/unicase/totitle-tests: Likewise.
16889         * modules/unicase/toupper-tests: Likewise.
16890         * modules/unicase/u8-casecmp-tests: Likewise.
16891         * modules/unicase/u8-casecoll-tests: Likewise.
16892         * modules/unicase/u8-casefold-tests: Likewise.
16893         * modules/unicase/u8-is-cased-tests: Likewise.
16894         * modules/unicase/u8-is-casefolded-tests: Likewise.
16895         * modules/unicase/u8-is-lowercase-tests: Likewise.
16896         * modules/unicase/u8-is-titlecase-tests: Likewise.
16897         * modules/unicase/u8-is-uppercase-tests: Likewise.
16898         * modules/unicase/u8-tolower-tests: Likewise.
16899         * modules/unicase/u8-totitle-tests: Likewise.
16900         * modules/unicase/u8-toupper-tests: Likewise.
16901         * modules/unicase/u16-casecmp-tests: Likewise.
16902         * modules/unicase/u16-casecoll-tests: Likewise.
16903         * modules/unicase/u16-casefold-tests: Likewise.
16904         * modules/unicase/u16-is-cased-tests: Likewise.
16905         * modules/unicase/u16-is-casefolded-tests: Likewise.
16906         * modules/unicase/u16-is-lowercase-tests: Likewise.
16907         * modules/unicase/u16-is-titlecase-tests: Likewise.
16908         * modules/unicase/u16-is-uppercase-tests: Likewise.
16909         * modules/unicase/u16-tolower-tests: Likewise.
16910         * modules/unicase/u16-totitle-tests: Likewise.
16911         * modules/unicase/u16-toupper-tests: Likewise.
16912         * modules/unicase/u32-casecmp-tests: Likewise.
16913         * modules/unicase/u32-casecoll-tests: Likewise.
16914         * modules/unicase/u32-casefold-tests: Likewise.
16915         * modules/unicase/u32-is-cased-tests: Likewise.
16916         * modules/unicase/u32-is-casefolded-tests: Likewise.
16917         * modules/unicase/u32-is-lowercase-tests: Likewise.
16918         * modules/unicase/u32-is-titlecase-tests: Likewise.
16919         * modules/unicase/u32-is-uppercase-tests: Likewise.
16920         * modules/unicase/u32-tolower-tests: Likewise.
16921         * modules/unicase/u32-totitle-tests: Likewise.
16922         * modules/unicase/u32-toupper-tests: Likewise.
16923         * modules/unicase/ulc-casecmp-tests: Likewise.
16924         * modules/unicase/ulc-casecoll-tests: Likewise.
16925         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
16926         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
16927         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
16928         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
16929         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
16930         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
16931         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
16932         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
16933         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
16934         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
16935         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
16936         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
16937         * modules/unictype/bidicategory-byname-tests: Likewise.
16938         * modules/unictype/bidicategory-name-tests: Likewise.
16939         * modules/unictype/bidicategory-of-tests: Likewise.
16940         * modules/unictype/bidicategory-test-tests: Likewise.
16941         * modules/unictype/block-list-tests: Likewise.
16942         * modules/unictype/block-of-tests: Likewise.
16943         * modules/unictype/block-test-tests: Likewise.
16944         * modules/unictype/category-C-tests: Likewise.
16945         * modules/unictype/category-Cc-tests: Likewise.
16946         * modules/unictype/category-Cf-tests: Likewise.
16947         * modules/unictype/category-Cn-tests: Likewise.
16948         * modules/unictype/category-Co-tests: Likewise.
16949         * modules/unictype/category-Cs-tests: Likewise.
16950         * modules/unictype/category-L-tests: Likewise.
16951         * modules/unictype/category-Ll-tests: Likewise.
16952         * modules/unictype/category-Lm-tests: Likewise.
16953         * modules/unictype/category-Lo-tests: Likewise.
16954         * modules/unictype/category-Lt-tests: Likewise.
16955         * modules/unictype/category-Lu-tests: Likewise.
16956         * modules/unictype/category-M-tests: Likewise.
16957         * modules/unictype/category-Mc-tests: Likewise.
16958         * modules/unictype/category-Me-tests: Likewise.
16959         * modules/unictype/category-Mn-tests: Likewise.
16960         * modules/unictype/category-N-tests: Likewise.
16961         * modules/unictype/category-Nd-tests: Likewise.
16962         * modules/unictype/category-Nl-tests: Likewise.
16963         * modules/unictype/category-No-tests: Likewise.
16964         * modules/unictype/category-P-tests: Likewise.
16965         * modules/unictype/category-Pc-tests: Likewise.
16966         * modules/unictype/category-Pd-tests: Likewise.
16967         * modules/unictype/category-Pe-tests: Likewise.
16968         * modules/unictype/category-Pf-tests: Likewise.
16969         * modules/unictype/category-Pi-tests: Likewise.
16970         * modules/unictype/category-Po-tests: Likewise.
16971         * modules/unictype/category-Ps-tests: Likewise.
16972         * modules/unictype/category-S-tests: Likewise.
16973         * modules/unictype/category-Sc-tests: Likewise.
16974         * modules/unictype/category-Sk-tests: Likewise.
16975         * modules/unictype/category-Sm-tests: Likewise.
16976         * modules/unictype/category-So-tests: Likewise.
16977         * modules/unictype/category-Z-tests: Likewise.
16978         * modules/unictype/category-Zl-tests: Likewise.
16979         * modules/unictype/category-Zp-tests: Likewise.
16980         * modules/unictype/category-Zs-tests: Likewise.
16981         * modules/unictype/category-and-not-tests: Likewise.
16982         * modules/unictype/category-and-tests: Likewise.
16983         * modules/unictype/category-byname-tests: Likewise.
16984         * modules/unictype/category-name-tests: Likewise.
16985         * modules/unictype/category-none-tests: Likewise.
16986         * modules/unictype/category-of-tests: Likewise.
16987         * modules/unictype/category-or-tests: Likewise.
16988         * modules/unictype/category-test-withtable-tests: Likewise.
16989         * modules/unictype/combining-class-tests: Likewise.
16990         * modules/unictype/ctype-alnum-tests: Likewise.
16991         * modules/unictype/ctype-alpha-tests: Likewise.
16992         * modules/unictype/ctype-blank-tests: Likewise.
16993         * modules/unictype/ctype-cntrl-tests: Likewise.
16994         * modules/unictype/ctype-digit-tests: Likewise.
16995         * modules/unictype/ctype-graph-tests: Likewise.
16996         * modules/unictype/ctype-lower-tests: Likewise.
16997         * modules/unictype/ctype-print-tests: Likewise.
16998         * modules/unictype/ctype-punct-tests: Likewise.
16999         * modules/unictype/ctype-space-tests: Likewise.
17000         * modules/unictype/ctype-upper-tests: Likewise.
17001         * modules/unictype/ctype-xdigit-tests: Likewise.
17002         * modules/unictype/decimal-digit-tests: Likewise.
17003         * modules/unictype/digit-tests: Likewise.
17004         * modules/unictype/mirror-tests: Likewise.
17005         * modules/unictype/numeric-tests: Likewise.
17006         * modules/unictype/property-alphabetic-tests: Likewise.
17007         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
17008         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
17009         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
17010         * modules/unictype/property-bidi-block-separator-tests: Likewise.
17011         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
17012         * modules/unictype/property-bidi-common-separator-tests: Likewise.
17013         * modules/unictype/property-bidi-control-tests: Likewise.
17014         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
17015         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
17016         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
17017         * modules/unictype/property-bidi-european-digit-tests: Likewise.
17018         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
17019         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
17020         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
17021         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
17022         * modules/unictype/property-bidi-pdf-tests: Likewise.
17023         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
17024         * modules/unictype/property-bidi-whitespace-tests: Likewise.
17025         * modules/unictype/property-byname-tests: Likewise.
17026         * modules/unictype/property-combining-tests: Likewise.
17027         * modules/unictype/property-composite-tests: Likewise.
17028         * modules/unictype/property-currency-symbol-tests: Likewise.
17029         * modules/unictype/property-dash-tests: Likewise.
17030         * modules/unictype/property-decimal-digit-tests: Likewise.
17031         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
17032         * modules/unictype/property-deprecated-tests: Likewise.
17033         * modules/unictype/property-diacritic-tests: Likewise.
17034         * modules/unictype/property-extender-tests: Likewise.
17035         * modules/unictype/property-format-control-tests: Likewise.
17036         * modules/unictype/property-grapheme-base-tests: Likewise.
17037         * modules/unictype/property-grapheme-extend-tests: Likewise.
17038         * modules/unictype/property-grapheme-link-tests: Likewise.
17039         * modules/unictype/property-hex-digit-tests: Likewise.
17040         * modules/unictype/property-hyphen-tests: Likewise.
17041         * modules/unictype/property-id-continue-tests: Likewise.
17042         * modules/unictype/property-id-start-tests: Likewise.
17043         * modules/unictype/property-ideographic-tests: Likewise.
17044         * modules/unictype/property-ids-binary-operator-tests: Likewise.
17045         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
17046         * modules/unictype/property-ignorable-control-tests: Likewise.
17047         * modules/unictype/property-iso-control-tests: Likewise.
17048         * modules/unictype/property-join-control-tests: Likewise.
17049         * modules/unictype/property-left-of-pair-tests: Likewise.
17050         * modules/unictype/property-line-separator-tests: Likewise.
17051         * modules/unictype/property-logical-order-exception-tests: Likewise.
17052         * modules/unictype/property-lowercase-tests: Likewise.
17053         * modules/unictype/property-math-tests: Likewise.
17054         * modules/unictype/property-non-break-tests: Likewise.
17055         * modules/unictype/property-not-a-character-tests: Likewise.
17056         * modules/unictype/property-numeric-tests: Likewise.
17057         * modules/unictype/property-other-alphabetic-tests: Likewise.
17058         * modules/unictype/property-other-default-ignorable-code-point-tests:
17059         Likewise.
17060         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
17061         * modules/unictype/property-other-id-continue-tests: Likewise.
17062         * modules/unictype/property-other-id-start-tests: Likewise.
17063         * modules/unictype/property-other-lowercase-tests: Likewise.
17064         * modules/unictype/property-other-math-tests: Likewise.
17065         * modules/unictype/property-other-uppercase-tests: Likewise.
17066         * modules/unictype/property-paired-punctuation-tests: Likewise.
17067         * modules/unictype/property-paragraph-separator-tests: Likewise.
17068         * modules/unictype/property-pattern-syntax-tests: Likewise.
17069         * modules/unictype/property-pattern-white-space-tests: Likewise.
17070         * modules/unictype/property-private-use-tests: Likewise.
17071         * modules/unictype/property-punctuation-tests: Likewise.
17072         * modules/unictype/property-quotation-mark-tests: Likewise.
17073         * modules/unictype/property-radical-tests: Likewise.
17074         * modules/unictype/property-sentence-terminal-tests: Likewise.
17075         * modules/unictype/property-soft-dotted-tests: Likewise.
17076         * modules/unictype/property-space-tests: Likewise.
17077         * modules/unictype/property-terminal-punctuation-tests: Likewise.
17078         * modules/unictype/property-test-tests: Likewise.
17079         * modules/unictype/property-titlecase-tests: Likewise.
17080         * modules/unictype/property-unassigned-code-value-tests: Likewise.
17081         * modules/unictype/property-unified-ideograph-tests: Likewise.
17082         * modules/unictype/property-uppercase-tests: Likewise.
17083         * modules/unictype/property-variation-selector-tests: Likewise.
17084         * modules/unictype/property-white-space-tests: Likewise.
17085         * modules/unictype/property-xid-continue-tests: Likewise.
17086         * modules/unictype/property-xid-start-tests: Likewise.
17087         * modules/unictype/property-zero-width-tests: Likewise.
17088         * modules/unictype/scripts-tests: Likewise.
17089         * modules/unictype/syntax-c-ident-tests: Likewise.
17090         * modules/unictype/syntax-c-whitespace-tests: Likewise.
17091         * modules/unictype/syntax-java-ident-tests: Likewise.
17092         * modules/unictype/syntax-java-whitespace-tests: Likewise.
17093         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
17094         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
17095         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
17096         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
17097         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
17098         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
17099         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
17100         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
17101         * modules/uniname/uniname-tests: Likewise.
17102         * modules/uninorm/canonical-decomposition-tests: Likewise.
17103         * modules/uninorm/compat-decomposition-tests: Likewise.
17104         * modules/uninorm/composition-tests: Likewise.
17105         * modules/uninorm/decomposing-form-tests: Likewise.
17106         * modules/uninorm/decomposition-tests: Likewise.
17107         * modules/uninorm/filter-tests: Likewise.
17108         * modules/uninorm/nfc-tests: Likewise.
17109         * modules/uninorm/nfd-tests: Likewise.
17110         * modules/uninorm/nfkc-tests: Likewise.
17111         * modules/uninorm/nfkd-tests: Likewise.
17112         * modules/uninorm/u8-normcmp-tests: Likewise.
17113         * modules/uninorm/u8-normcoll-tests: Likewise.
17114         * modules/uninorm/u16-normcmp-tests: Likewise.
17115         * modules/uninorm/u16-normcoll-tests: Likewise.
17116         * modules/uninorm/u32-normcmp-tests: Likewise.
17117         * modules/uninorm/u32-normcoll-tests: Likewise.
17118         * modules/unistdio/u8-asnprintf-tests: Likewise.
17119         * modules/unistdio/u8-vasnprintf-tests: Likewise.
17120         * modules/unistdio/u8-vasprintf-tests: Likewise.
17121         * modules/unistdio/u8-vsnprintf-tests: Likewise.
17122         * modules/unistdio/u8-vsprintf-tests: Likewise.
17123         * modules/unistdio/u16-asnprintf-tests: Likewise.
17124         * modules/unistdio/u16-vasnprintf-tests: Likewise.
17125         * modules/unistdio/u16-vasprintf-tests: Likewise.
17126         * modules/unistdio/u16-vsnprintf-tests: Likewise.
17127         * modules/unistdio/u16-vsprintf-tests: Likewise.
17128         * modules/unistdio/u32-asnprintf-tests: Likewise.
17129         * modules/unistdio/u32-vasnprintf-tests: Likewise.
17130         * modules/unistdio/u32-vasprintf-tests: Likewise.
17131         * modules/unistdio/u32-vsnprintf-tests: Likewise.
17132         * modules/unistdio/u32-vsprintf-tests: Likewise.
17133         * modules/unistdio/ulc-asnprintf-tests: Likewise.
17134         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
17135         * modules/unistdio/ulc-vasprintf-tests: Likewise.
17136         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
17137         * modules/unistdio/ulc-vsprintf-tests: Likewise.
17138         * modules/unistr/u8-check-tests: Likewise.
17139         * modules/unistr/u8-chr-tests: Likewise.
17140         * modules/unistr/u8-cmp-tests: Likewise.
17141         * modules/unistr/u8-cmp2-tests: Likewise.
17142         * modules/unistr/u8-cpy-alloc-tests: Likewise.
17143         * modules/unistr/u8-cpy-tests: Likewise.
17144         * modules/unistr/u8-mblen-tests: Likewise.
17145         * modules/unistr/u8-mbsnlen-tests: Likewise.
17146         * modules/unistr/u8-mbtouc-tests: Likewise.
17147         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
17148         * modules/unistr/u8-mbtoucr-tests: Likewise.
17149         * modules/unistr/u8-move-tests: Likewise.
17150         * modules/unistr/u8-next-tests: Likewise.
17151         * modules/unistr/u8-prev-tests: Likewise.
17152         * modules/unistr/u8-set-tests: Likewise.
17153         * modules/unistr/u8-stpcpy-tests: Likewise.
17154         * modules/unistr/u8-stpncpy-tests: Likewise.
17155         * modules/unistr/u8-strcat-tests: Likewise.
17156         * modules/unistr/u8-strcmp-tests: Likewise.
17157         * modules/unistr/u8-strcoll-tests: Likewise.
17158         * modules/unistr/u8-strcpy-tests: Likewise.
17159         * modules/unistr/u8-strdup-tests: Likewise.
17160         * modules/unistr/u8-strlen-tests: Likewise.
17161         * modules/unistr/u8-strmblen-tests: Likewise.
17162         * modules/unistr/u8-strmbtouc-tests: Likewise.
17163         * modules/unistr/u8-strncat-tests: Likewise.
17164         * modules/unistr/u8-strncmp-tests: Likewise.
17165         * modules/unistr/u8-strncpy-tests: Likewise.
17166         * modules/unistr/u8-strnlen-tests: Likewise.
17167         * modules/unistr/u8-to-u16-tests: Likewise.
17168         * modules/unistr/u8-to-u32-tests: Likewise.
17169         * modules/unistr/u8-uctomb-tests: Likewise.
17170         * modules/unistr/u16-check-tests: Likewise.
17171         * modules/unistr/u16-chr-tests: Likewise.
17172         * modules/unistr/u16-cmp-tests: Likewise.
17173         * modules/unistr/u16-cmp2-tests: Likewise.
17174         * modules/unistr/u16-cpy-alloc-tests: Likewise.
17175         * modules/unistr/u16-cpy-tests: Likewise.
17176         * modules/unistr/u16-mblen-tests: Likewise.
17177         * modules/unistr/u16-mbsnlen-tests: Likewise.
17178         * modules/unistr/u16-mbtouc-tests: Likewise.
17179         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
17180         * modules/unistr/u16-mbtoucr-tests: Likewise.
17181         * modules/unistr/u16-move-tests: Likewise.
17182         * modules/unistr/u16-next-tests: Likewise.
17183         * modules/unistr/u16-prev-tests: Likewise.
17184         * modules/unistr/u16-set-tests: Likewise.
17185         * modules/unistr/u16-stpcpy-tests: Likewise.
17186         * modules/unistr/u16-stpncpy-tests: Likewise.
17187         * modules/unistr/u16-strcat-tests: Likewise.
17188         * modules/unistr/u16-strcmp-tests: Likewise.
17189         * modules/unistr/u16-strcoll-tests: Likewise.
17190         * modules/unistr/u16-strcpy-tests: Likewise.
17191         * modules/unistr/u16-strdup-tests: Likewise.
17192         * modules/unistr/u16-strlen-tests: Likewise.
17193         * modules/unistr/u16-strmblen-tests: Likewise.
17194         * modules/unistr/u16-strmbtouc-tests: Likewise.
17195         * modules/unistr/u16-strncat-tests: Likewise.
17196         * modules/unistr/u16-strncmp-tests: Likewise.
17197         * modules/unistr/u16-strncpy-tests: Likewise.
17198         * modules/unistr/u16-strnlen-tests: Likewise.
17199         * modules/unistr/u16-to-u32-tests: Likewise.
17200         * modules/unistr/u16-to-u8-tests: Likewise.
17201         * modules/unistr/u16-uctomb-tests: Likewise.
17202         * modules/unistr/u32-check-tests: Likewise.
17203         * modules/unistr/u32-chr-tests: Likewise.
17204         * modules/unistr/u32-cmp-tests: Likewise.
17205         * modules/unistr/u32-cmp2-tests: Likewise.
17206         * modules/unistr/u32-cpy-alloc-tests: Likewise.
17207         * modules/unistr/u32-cpy-tests: Likewise.
17208         * modules/unistr/u32-mblen-tests: Likewise.
17209         * modules/unistr/u32-mbsnlen-tests: Likewise.
17210         * modules/unistr/u32-mbtouc-tests: Likewise.
17211         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
17212         * modules/unistr/u32-mbtoucr-tests: Likewise.
17213         * modules/unistr/u32-move-tests: Likewise.
17214         * modules/unistr/u32-next-tests: Likewise.
17215         * modules/unistr/u32-prev-tests: Likewise.
17216         * modules/unistr/u32-set-tests: Likewise.
17217         * modules/unistr/u32-stpcpy-tests: Likewise.
17218         * modules/unistr/u32-stpncpy-tests: Likewise.
17219         * modules/unistr/u32-strcat-tests: Likewise.
17220         * modules/unistr/u32-strcmp-tests: Likewise.
17221         * modules/unistr/u32-strcoll-tests: Likewise.
17222         * modules/unistr/u32-strcpy-tests: Likewise.
17223         * modules/unistr/u32-strdup-tests: Likewise.
17224         * modules/unistr/u32-strlen-tests: Likewise.
17225         * modules/unistr/u32-strmblen-tests: Likewise.
17226         * modules/unistr/u32-strmbtouc-tests: Likewise.
17227         * modules/unistr/u32-strncat-tests: Likewise.
17228         * modules/unistr/u32-strncmp-tests: Likewise.
17229         * modules/unistr/u32-strncpy-tests: Likewise.
17230         * modules/unistr/u32-strnlen-tests: Likewise.
17231         * modules/unistr/u32-to-u16-tests: Likewise.
17232         * modules/unistr/u32-to-u8-tests: Likewise.
17233         * modules/unistr/u32-uctomb-tests: Likewise.
17234         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
17235         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
17236         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
17237         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
17238         * modules/uniwidth/u8-strwidth-tests: Likewise.
17239         * modules/uniwidth/u8-width-tests: Likewise.
17240         * modules/uniwidth/u16-strwidth-tests: Likewise.
17241         * modules/uniwidth/u16-width-tests: Likewise.
17242         * modules/uniwidth/u32-strwidth-tests: Likewise.
17243         * modules/uniwidth/u32-width-tests: Likewise.
17244         * modules/uniwidth/width-tests: Likewise.
17245
17246 2010-05-18  Richard Jones  <rjones@redhat.com>
17247
17248         doc: users.txt: list hivex
17249         * users.txt: Add hivex.
17250
17251 2010-05-18  Richard Jones  <rjones@redhat.com>
17252
17253         doc: users.txt: list febootstrap
17254         * users.txt: Add febootstrap.
17255
17256 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
17257
17258         bootstrap: fix an error when gnulib is not used as a git submodule
17259         * build-aux/bootstrap (gnulib_path): If its length is zero then
17260         assign "gnulib" to it.
17261         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
17262
17263 2010-05-16  Bruno Haible  <bruno@clisp.org>
17264
17265         Avoid autoconf warnings about AM_ICONV.
17266         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
17267         2.64.
17268
17269 2010-05-16  Bruno Haible  <bruno@clisp.org>
17270
17271         absolute-header: Make the macro usable in more situations.
17272         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
17273         from gl_ABSOLUTE_HEADER.
17274         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
17275
17276 2010-05-16  James Youngman  <jay@gnu.org>
17277
17278         doc: update users.txt
17279         * users.txt: Add CSSC.
17280
17281 2010-05-16  Jim Meyering  <meyering@redhat.com>
17282
17283         init.sh: fix an error in the previous change; add more comments
17284         * tests/init.sh: Compare exit code in loop against 9, not 2.
17285         Patch by Bruno Haible.
17286         Make the two tests more similar by adding an empty "then" clause.
17287         Add comments.
17288
17289         init.sh: avoid unnecessary shell re-exec
17290         * tests/init.sh: Improve the re-exec-required check to first test the
17291         current shell.  If it passes the test, do not search for a shell that
17292         does pass, and do not re-exec.  This test is particularly contorted to
17293         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
17294         of $(...) evokes a syntax error and causes immediate shell exit with
17295         status 2.  Bruno Haible reported that the re-exec made it impossible
17296         to single-step through any init.sh-using script.
17297
17298 2010-05-16  Bruno Haible  <bruno@clisp.org>
17299
17300         Fix collision between gnulib's and libintl's printf replacements.
17301         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
17302         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
17303         (printf): When using GNU C, map the __printf__ function to rpl_printf
17304         via __asm__. When not using GNU C, define rpl_printf instead of
17305         __printf__.
17306         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
17307         commit.
17308         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
17309         commit.
17310         * m4/asm-underscore.m4: New file.
17311         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
17312         * modules/stdio (Files): Add m4/asm-underscore.m4.
17313         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
17314         Reported by Ben Pfaff.
17315
17316 2010-05-16  Bruno Haible  <bruno@clisp.org>
17317
17318         verify: Avoid skipping the test on openSUSE 11.0.
17319         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
17320
17321 2010-05-13  Bruno Haible  <bruno@clisp.org>
17322
17323         Avoid useless warnings from G++.
17324         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
17325         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
17326         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17327
17328 2010-05-11  Jim Meyering  <meyering@redhat.com>
17329
17330         maint.mk: tweak preceding change
17331         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
17332         regexps tighter by anchoring at EOL, and make the new group "shy"
17333         for slightly decreased overhead.
17334
17335 2010-05-11  Eric Blake  <eblake@redhat.com>
17336
17337         maint.mk: gnulib doesn't guarantee NSIG
17338         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
17339
17340 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17341
17342         test-pwrite.c: Remove unused variable declaration.
17343         * tests/test-pwrite.c (main): Remove read_buf declaration.
17344
17345         Remove useless test-pwrite.sh file.
17346         * tests/test-pwrite.sh: Delete file.
17347         * modules/pwrite-tests: Remove references.
17348         Reported by Bruno Haible.
17349
17350 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17351
17352         init.sh: fix a typo
17353         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
17354
17355 2010-05-10  Jim Meyering  <meyering@redhat.com>
17356
17357         maint.mk: avoid using a temporary file in the always-defined-macros check
17358         * top/maint.mk (.re-defmac): Remove rule.
17359         (gl_trap_): Remove definition.
17360         (sc_prohibit_always-defined_macros): Rewrite not to create and
17361         depend on a temporary file.  Instead, depend on GNU grep's ability
17362         to read a list of regular expressions from stdin when given "-f -".
17363
17364 2010-05-09  Bruno Haible  <bruno@clisp.org>
17365
17366         Update to GNU gettext 0.18, part 1.
17367         * m4/gettext.m4: Update to GNU gettext 0.18.
17368         * m4/intl.m4: Likewise.
17369         * m4/po.m4: Likewise.
17370         * modules/gettext (Files): Add m4/fcntl-o.m4.
17371         (configure.ac): Require gettext infrastructure from version 0.18.
17372
17373 2010-05-09  Jim Meyering  <meyering@redhat.com>
17374
17375         init.sh: enable MALLOC_PERTURB_
17376         * tests/init.sh: Enable glibc's malloc-perturbing option.
17377
17378         maint.mk: improve sc_cross_check_PATH_usage_in_tests
17379         With my recent change in init.sh from the two-line form:
17380             -#   : ${srcdir=.}
17381             -#   . "$srcdir/init.sh"; path_prepend_ .
17382             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
17383         I noticed that using the one-line form would cause this test
17384         to fail with a false-positive, or to stop working altogether,
17385         depending on whether help-version changed or all the tests did.
17386         * top/maint.mk (_hv_regex): Remove this definition.
17387         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
17388         (_hv_regex_strong): Use a stronger regex to check for conformance.
17389         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
17390         Give a separate diagnostic for lack of conforming use.
17391
17392         maint.mk: prohibit definition of symbols defined by gnulib
17393         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
17394         definition of symbols defined by gnulib.
17395
17396 2010-05-09  Bruno Haible  <bruno@clisp.org>
17397
17398         acl: Avoid test failure on Cygwin-hosted mingw.
17399         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
17400
17401 2010-05-09  Bruno Haible  <bruno@clisp.org>
17402
17403         error: Use system's fcntl function.
17404         * lib/error.c (fcntl): Undefine.
17405
17406 2010-05-09  Jim Meyering  <meyering@redhat.com>
17407
17408         verify: adjust formatting to be more consistent
17409         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
17410         argument-list '('s, and after one comma.
17411
17412 2010-05-09  Bruno Haible  <bruno@clisp.org>
17413
17414         error: More reliable output on mingw.
17415         * lib/error.c: Include <windows.h>.
17416         (is_open): New function.
17417         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
17418         defined.
17419
17420 2010-05-09  Bruno Haible  <bruno@clisp.org>
17421
17422         vasnprintf: Fix syntax errors in libintl build on mingw.
17423         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
17424         pad_ourselves and prec_ourselves after use.
17425
17426 2010-05-08  Bruno Haible  <bruno@clisp.org>
17427
17428         * lib/config.charset: Update comments for Cygwin 1.7.
17429         * lib/localcharset.c: Likewise.
17430
17431 2010-05-07  Jim Meyering  <meyering@redhat.com>
17432
17433         init.sh: improve comments
17434         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
17435         . "${srcdir=.}/init.sh"; path_prepend_ .
17436         Add a note about path_prepend_ and the alternative of using
17437         TESTS_ENVIRONMENT.
17438
17439 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
17440
17441         exclude: Unescape hashed patterns in wildcard mode.
17442         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
17443         to the hash list.
17444         * tests/test-exclude8.sh: New test case.
17445         * modules/exclude-tests: Add new test.
17446
17447 2010-05-05  Eric Blake  <eblake@redhat.com>
17448
17449         verify: automate tests
17450         * modules/verify-tests: New module.
17451         * tests/test-verify.sh: New file.
17452         * tests/test-verify.c: Guard each negative test with a unique id.
17453         Also avoid warning about unused left hand of comma expressions.
17454
17455 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17456
17457         Further improvements to verify.h, suggested by Eric Blake.
17458         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
17459         the GL_* versions, to avoid collision with OpenGL.
17460         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
17461         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
17462         than testing merely whether it's defined.
17463
17464         Modify verify.h to pacify gcc -Wredundant_decls.
17465         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
17466         These use the prefix "GL_" since they're likely to be useful elsewhere.
17467         We may need to break them out into a different .h file.
17468         (__COUNTER__): Define to 0 if the compiler doesn't support it.
17469         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
17470         of verify_function__.
17471
17472 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
17473
17474         Tests for module pwrite.
17475         * modules/pwrite-tests: New file.
17476         * tests/test-pwrite.sh: New file.
17477         * tests/test-pwrite.c: New file.
17478
17479         New module pwrite.
17480         * lib/unistd.in.h (pwrite): New declaration.
17481         * lib/pwrite.c: New file, from glibc with modifications.
17482         * m4/pwrite.m4: New file.
17483         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
17484         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
17485         REPLACE_PWRITE.
17486         * modules/pwrite: New file.
17487         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
17488         REPLACE_PWRITE.
17489         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
17490         * doc/posix-functions/pwrite.texi: Mention the new module.
17491
17492 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
17493
17494         pread: Update documentation.
17495         * doc/posix-functions/pread.texi: Mention the 'pread' module.
17496
17497 2010-05-04  Eric Blake  <eblake@redhat.com>
17498
17499         docs: update cygwin progress
17500         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
17501         this bug.
17502         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
17503         Added in cygwin 1.7.2.
17504         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
17505         Likewise.
17506         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
17507         Likewise.
17508         * doc/glibc-functions/dup3.texi (dup3): Likewise.
17509         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
17510         * doc/glibc-functions/accept4.texi (accept4): Likewise.
17511         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
17512         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
17513         Mention nproc module.
17514         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
17515         bug in cygwin 1.7.5 addition.
17516         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
17517         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
17518         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
17519         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
17520         1.7.5.
17521         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
17522         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
17523         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
17524         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
17525         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
17526         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
17527         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
17528         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
17529         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
17530         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
17531         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
17532         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
17533         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
17534         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
17535         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
17536         Likewise.
17537         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
17538         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
17539         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
17540         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
17541         Likewise.
17542         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
17543         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
17544         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
17545         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
17546         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
17547         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
17548         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
17549         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
17550         Likewise.
17551         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
17552         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
17553         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
17554         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
17555         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
17556         Likewise.
17557         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
17558         Likewise.
17559         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
17560         Likewise.
17561         * doc/glibc-functions/xdrrec_endofrecord.texi
17562         (xdrrec_endofrecord): Likewise.
17563         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
17564         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
17565         Likewise.
17566         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
17567         Likewise.
17568
17569 2010-05-04  Jim Meyering  <meyering@redhat.com>
17570
17571         gendocs.sh: make its "-s FILE" option more useful
17572         * build-aux/gendocs.sh: When honoring the -s FILE option, update
17573         $PACKAGE to reflect the probably-different basename of "FILE".
17574
17575 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
17576
17577         bootstrap: don't ignore download_po_files failure
17578         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
17579         failure.
17580
17581 2010-05-03  Jim Meyering  <meyering@redhat.com>
17582
17583         maint.mk: allow to pass options to gendocs.sh
17584         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
17585         (gendocs_options_): New overridable variable.
17586
17587         gnu-web-doc-update: don't ignore configure or build failure
17588         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
17589
17590         announce-gen: backslash-escape '@'s in --help output
17591         * build-aux/announce-gen: Fix syntax errors.
17592
17593         maint.mk, announce-gen: allow project-specific announcement mail headers
17594         * top/maint.mk (translation_project_): Define default.
17595         (announcement_Cc_, announcement_mail_headers_): Likewise.
17596         (announcement): Invoke announce-gen with new --mail-headers option.
17597         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
17598
17599         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
17600         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
17601         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
17602         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
17603         line in the "err2" output file when running "make check" in verbose
17604         mode (i.e., with set -x enabled).
17605
17606 2010-05-03  Bruno Haible  <bruno@clisp.org>
17607
17608         wctob: Fix for weird platforms.
17609         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
17610         argument value.
17611
17612 2010-05-03  Jim Meyering  <meyering@redhat.com>
17613
17614         maint.mk: prohibit unwarranted use of <strings.h>
17615         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
17616         strings.h in a file that does not also use strcasecmp, strncasecmp,
17617         ffs or ffsll.
17618
17619         maint.mk: remove obsolete comments
17620         * top/maint.mk: Remove stale, commented-out rules.
17621
17622 2010-05-02  Bruno Haible  <bruno@clisp.org>
17623
17624         wcwidth: Declare also when it's aliased.
17625         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
17626         macro.
17627
17628 2010-05-02  Bruno Haible  <bruno@clisp.org>
17629
17630         Fix regression from 2010-04-25.
17631         * gnulib-tool (func_modules_transitive_closure): Check the status of
17632         all modules, not only of the tests that are of the form foo-tests where
17633         foo is a module.
17634
17635 2010-05-02  Bruno Haible  <bruno@clisp.org>
17636
17637         wctob: Work around nasty Cygwin 1.7.2 bug.
17638         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
17639         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
17640
17641 2010-05-01  Bruno Haible  <bruno@clisp.org>
17642
17643         fpurge: Sharper test.
17644         * tests/test-fpurge.c (main): Add one more ftell check.
17645         * modules/fpurge-tests (Depends-on): Add ftell.
17646         Suggested by Eric Blake.
17647
17648 2010-05-01  Bruno Haible  <bruno@clisp.org>
17649
17650         ftello: Another test.
17651         * tests/test-ftello3.c: New file.
17652         * modules/ftello-tests (Files): Add it.
17653         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
17654         MOSTLYCLEANFILES.
17655
17656         ftell: Another test.
17657         * tests/test-ftell3.c: New file.
17658         * modules/ftell-tests (Files): Add it.
17659         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
17660         MOSTLYCLEANFILES.
17661
17662 2010-05-01  Bruno Haible  <bruno@clisp.org>
17663
17664         ftell, ftello: Work around Solaris bug.
17665         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
17666         * lib/ftello.c: Include stdio-impl.h.
17667         (ftello): On Solaris, when _IOWRT is set, compute the result without
17668         looking at _IOREAD.
17669         * modules/ftello (Files): Add lib/stdio-impl.h.
17670         * doc/posix-functions/ftell.texi: Mention Solaris bug.
17671         * doc/posix-functions/ftello.texi: Likewise.
17672         Reported by Eric Blake.
17673
17674 2010-05-01  Bruno Haible  <bruno@clisp.org>
17675
17676         freading: Adapt to special meaning of _IOREAD flag on Solaris.
17677         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
17678         the _IOWRT flag is also set.
17679
17680 2010-05-01  Bruno Haible  <bruno@clisp.org>
17681
17682         Fix doc about a HP-UX stdio bug.
17683         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
17684         * doc/posix-functions/ftello.texi: Likewise.
17685
17686 2010-05-01  Bruno Haible  <bruno@clisp.org>
17687
17688         lseek test: Fix failure on Solaris.
17689         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
17690         output.
17691
17692 2010-04-30  Jim Meyering  <meyering@redhat.com>
17693
17694         bootstrap: don't ignore failure to generate po*/Makevars
17695         * build-aux/bootstrap (with_gettext): Don't ignore failure
17696         to create po/Makevars or runtime-po/Makevars.
17697
17698 2010-04-29  Eric Blake  <eblake@redhat.com>
17699
17700         headers: relax license to LGPLv2+
17701         * modules/fcntl-h (License): Relax license.
17702         * modules/getopt-posix (License): Likewise.
17703         * modules/locale (License): Likewise.
17704         * modules/math (License): Likewise.
17705         * modules/pty (License): Likewise.
17706         * modules/sched (License): Likewise.
17707         * modules/search (License): Likewise.
17708         * modules/spawn (License): Likewise.
17709         * modules/stdarg (License): Likewise.
17710         * modules/sysexits (License): Likewise.
17711
17712 2010-04-29  Jim Meyering  <meyering@redhat.com>
17713
17714         inttypes: relax license to LGPLv2+
17715         * modules/inttypes (License): Relax license.
17716
17717 2010-04-29  Simon Josefsson  <simon@josefsson.org>
17718
17719         * top/maint.mk (indent): Run twice to produce idempotent results.
17720
17721 2010-04-28  Bruno Haible  <bruno@clisp.org>
17722
17723         getdate: Generate getdate.c in the source directory.
17724         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
17725         MOSTLYCLEANFILES.
17726         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
17727
17728 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
17729
17730         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
17731         is not declared as a const *; avoid warnings in that case.
17732
17733 2010-04-28  Eric Blake  <eblake@redhat.com>
17734
17735         canonicalize-lgpl: avoid compiler warning
17736         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
17737         declaration' / 'extraneous semicolon' warning with some compilers.
17738         Reported by Andreas Gruenbacher.
17739
17740 2010-04-28  Jim Meyering  <meyering@redhat.com>
17741
17742         init.sh: ensure a more reliable exit status when exiting via trap
17743         * tests/init.sh (setup_): Don't rely on $? in signal handler.
17744         Inspired by patches from Dmitry V. Levin.
17745         Also trap on signal 3 (SIGQUIT).
17746
17747 2010-04-27  Bruno Haible  <bruno@clisp.org>
17748
17749         Update doc about utimes().
17750         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
17751         'utimens' module.
17752         Reported by Andreas Gruenbacher <agruen@suse.de>.
17753
17754 2010-04-27  Eric Blake  <eblake@redhat.com>
17755
17756         full-read, full-write: relax license
17757         * modules/full-read (License): Drop to LGPLv2+.
17758         * modules/full-write (License): Likewise.
17759         * modules/safe-read (License): Likewise.
17760         * modules/safe-write (License): Likewise.
17761
17762         pthread: mention library for linking
17763         * modules/pthread (Link): Mention $(LIB_PTHREAD).
17764
17765 2010-04-27  Jim Meyering  <meyering@redhat.com>
17766
17767         maint.mk: fix a bug introduced in last change
17768         * top/maint.mk (gl_assured_headers_): Now that all names are on
17769         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
17770         is not anchored to end of word, it should be adequate.
17771
17772         maint.mk: avoid side-effect in latest syntax-check
17773         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
17774         to run commands via $(shell...), and hence to incur cost only when
17775         the new rule is actually run.
17776
17777         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
17778         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
17779         and use that to create a regexp used to detect all #if HAVE_..._H uses.
17780         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
17781         (gl_assured_headers_, az_, AZ_): Define.
17782         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
17783
17784 2010-04-26  Jim Meyering  <jim@meyering.net>
17785             Bruno Haible  <bruno@clisp.org>
17786
17787         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
17788         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
17789         Prompted by an exchange with Gilles Espinasse.
17790
17791 2010-04-26  Jim Meyering  <meyering@redhat.com>
17792
17793         git-version-gen: aesthetic tweak
17794         * build-aux/git-version-gen: Use "$nl" rather than a literal,
17795         so that the command remains on a single line.
17796
17797 2010-04-26  Eric Blake  <eblake@redhat.com>
17798
17799         git-version-gen: allow use on EBCDIC hosts
17800         * build-aux/git-version-gen (dirty): Use literal rather than tying
17801         ourselves to ascii.
17802         Reported by Steve Goetze.
17803
17804 2010-04-25  Bruno Haible  <bruno@clisp.org>
17805
17806         netdb: Add support for GNULIB_POSIXCHECK.
17807         * lib/netdb.in.h: Include warn-on-use.h.
17808         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
17809         functions are used when GNULIB_POSIXCHECK is defined and the
17810         getaddrinfo module is not in use.
17811         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
17812         freeaddrinfo, gai_strerror, getnameinfo are declared.
17813         * modules/netdb (Depends-on): Add warn-on-use.
17814         (Makefile.am): Include warn-on-use.h in netdb.h.
17815
17816 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
17817
17818         build: avoid "make check" failure without .git/ directory
17819         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
17820         there is no .git/ directory.
17821
17822 2010-04-25  Bruno Haible  <bruno@clisp.org>
17823
17824         ptsname: Fix misuse of ttyname_r.
17825         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
17826         of errno.
17827
17828 2010-04-25  Bruno Haible  <bruno@clisp.org>
17829
17830         ttyname_r: Make it work on Solaris 10.
17831         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
17832         if the system function has the POSIX declaration. Test whether the
17833         function fails if the buffer is less than 128 bytes large.
17834         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
17835         system's ttyname_r function. Provide a reasonably large buffer.
17836         * modules/ttyname_r (Depends-on): Add extensions.
17837         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
17838
17839 2010-04-25  Bruno Haible  <bruno@clisp.org>
17840
17841         Use the 'extensions' module for some more functions on Solaris.
17842         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
17843         module.
17844         * doc/posix-functions/ctime_r.texi: Likewise.
17845         * doc/posix-functions/getgrgid_r.texi: Likewise.
17846         * doc/posix-functions/getgrnam_r.texi: Likewise.
17847         * doc/posix-functions/getpwnam_r.texi: Likewise.
17848         * doc/posix-functions/getpwuid_r.texi: Likewise.
17849         * doc/posix-functions/readdir_r.texi: Likewise.
17850         * doc/posix-functions/sigwait.texi: Likewise.
17851         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
17852         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
17853
17854 2010-04-25  Bruno Haible  <bruno@clisp.org>
17855
17856         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
17857         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
17858         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
17859         * lib/ttyname_r.c: Include <limits.h>.
17860         (ttyname_r): Define using the system's ttyname_r function, if it exists
17861         and not on Solaris.
17862         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
17863         set.
17864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
17865         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
17866         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
17867         Reported by Simon Josefsson.
17868
17869 2010-04-25  Bruno Haible  <bruno@clisp.org>
17870
17871         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
17872         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
17873         * doc/posix-functions/ctime_r.texi: Likewise.
17874         * doc/posix-functions/getgrgid_r.texi: Likewise.
17875         * doc/posix-functions/getgrnam_r.texi: Likewise.
17876         * doc/posix-functions/getlogin_r.texi: Likewise.
17877         * doc/posix-functions/getpwnam_r.texi: Likewise.
17878         * doc/posix-functions/getpwuid_r.texi: Likewise.
17879         * doc/posix-functions/readdir_r.texi: Likewise.
17880         * doc/posix-functions/sigwait.texi: Likewise.
17881         * doc/posix-functions/ttyname_r.texi: Likewise.
17882         Reported by Simon Josefsson.
17883
17884 2010-04-25  Bruno Haible  <bruno@clisp.org>
17885
17886         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
17887         * gnulib-tool (func_usage): Document that --with-*-tests options apply
17888         also to --create-testdir.
17889         (func_acceptable): Don't consider the status of *-tests modules here.
17890         (func_modules_transitive_closure): Consider it here, before including a
17891         test module.
17892         (func_import, func_create_testdir): Set inc_all_direct_tests,
17893         inc_all_indirect_tests.
17894         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
17895         --create-testdir and --create-megatestdir.
17896
17897 2010-04-25  Bruno Haible  <bruno@clisp.org>
17898
17899         gnulib-tool: Add --without-*-tests options.
17900         * gnulib-tool (func_usage): Document the --without-*-tests options.
17901         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
17902         excl_unportable_tests): New variables.
17903         Fail if they are specified with --import or --update.
17904         (func_acceptable): Respect the excl_*_tests variables.
17905         (func_import): Set the excl_*_tests variables to empty.
17906
17907 2010-04-25  Simon Josefsson  <simon@josefsson.org>
17908             Bruno Haible  <bruno@clisp.org>
17909
17910         Work around a MacOS X 10.4 bug with openpty.
17911         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
17912         * tests/test-openpty.c (main): Close the master side explicitly.
17913
17914 2010-04-25  Bruno Haible  <bruno@clisp.org>
17915
17916         strnlen: Fix a C++ test error on MacOS X and Solaris.
17917         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
17918         the function is not declared.
17919         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
17920         Simon Josefsson.
17921
17922 2010-04-24  Bruno Haible  <bruno@clisp.org>
17923
17924         Avoid a gcc warning.
17925         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
17926         of correct type for %08lx directive.
17927         Reported by Eric Blake.
17928
17929 2010-04-24  Bruno Haible  <bruno@clisp.org>
17930
17931         vasnprintf: Correct errno value in case of out-of-memory.
17932         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
17933         or sprintf. Use the errno value from SNPRINTF or sprintf.
17934         Reported by Ian Beckwith <ianb@erislabs.net>.
17935
17936 2010-04-24  Bruno Haible  <bruno@clisp.org>
17937
17938         ansi-c++-opt: Find correct compiler when cross-compiling.
17939         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
17940         AC_CHECK_PROGS.
17941         Reported by Simon Josefsson.
17942
17943 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
17944
17945         vc-list-files: Add support for subversion
17946         * build-aux/vc-list-files: Use "svn list" to generate the list of
17947         files controlled by subversion.
17948
17949 2010-04-23  Jim Meyering  <meyering@redhat.com>
17950
17951         vc-list-files tests: convert to use init.sh
17952         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
17953         path_prepend_.
17954         Use Exit, not exit.
17955         Use skip_ rather than open coding it.
17956         Remove trap set-up and compare definitions.
17957         * tests/test-vc-list-files-git.sh: Likewise.
17958         * modules/vc-list-files-tests (Files): Add tests/init.sh.
17959
17960 2010-04-22  Simon Josefsson  <simon@josefsson.org>
17961
17962         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
17963         backup files.
17964
17965 2010-04-21  Simon Josefsson  <simon@josefsson.org>
17966
17967         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
17968
17969 2010-04-20  Eric Blake  <eblake@redhat.com>
17970
17971         tests: be robust to ignored SIGPIPE
17972         * tests/test-select-in.sh: Consume all output.
17973         * tests/test-lseek.sh: Check correct exit status, while avoiding
17974         EPIPE.
17975
17976 2010-04-20  Simon Josefsson  <simon@josefsson.org>
17977             Bruno Haible  <bruno@clisp.org>
17978
17979         visibility: Don't use -fvisibility if it leads to a warning.
17980         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
17981         yes, don't pretend that visibility works if it leads to a warning.
17982         Reported by Mike Gran <spk121@yahoo.com>.
17983
17984 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
17985
17986         * build-aux/bootstrap: Use "git -h" for testing for supported options
17987         instead of "git --help".  The short-form option only shows a summary,
17988         and doesn't layout the full man page.  Grep for the full option name
17989         in the summary, too.
17990
17991 2010-04-19  Bruno Haible  <bruno@clisp.org>
17992
17993         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
17994         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
17995         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
17996         mention of RELOCATABLE_STRIP.
17997         Reported by Sylvain Beucler <beuc@beuc.net>.
17998
17999 2010-04-19  Bruno Haible  <bruno@clisp.org>
18000
18001         * lib/diffseq.h: Fix typo in comment.
18002         Reported by Eric Blake.
18003
18004 2010-04-19  Bruno Haible  <bruno@clisp.org>
18005
18006         ioctl: Move autoconf macro to a .m4 file.
18007         * m4/ioctl.m4: New file, extracted from modules/ioctl.
18008         * modules/ioctl (Files): Add it.
18009         (configure.ac): Simply invoke gl_FUNC_IOCTL.
18010         Reported by Ian Beckwith <ianb@erislabs.net>.
18011
18012 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
18013             Bruno Haible  <bruno@clisp.org>
18014
18015         diffseq: Accommodate use-case with abstract arrays.
18016         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
18017         is not defined.
18018         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
18019         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
18020
18021 2010-04-18  Bruno Haible  <bruno@clisp.org>
18022
18023         * doc/posix-headers/stdbool.texi: More precise wording.
18024
18025 2010-04-17  Jim Meyering  <meyering@redhat.com>
18026
18027         maint.mk: use gnu-style indentation in an embedded perl script
18028         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
18029         Rename variable: s/two/last_two_bytes/
18030
18031 2010-04-16  Eric Blake  <eblake@redhat.com>
18032
18033         test-stdbool: skip test that fails with Solaris CC
18034         * tests/test-stdbool.c (f): Skip test that causes compilation
18035         error under buggy C++ compiler.
18036         * lib/stdbool.in.h: Document the limitation.
18037         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
18038
18039         setenv: allow compilation with C++
18040         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
18041         register keyword.
18042
18043         stdint: allow test to pass with C++
18044         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
18045
18046         getopt: allow compilation with C++
18047         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
18048         struct.
18049         * lib/getopt.c (_getopt_internal_r): Use correct type.
18050         Reported by Dagobert Michelson, via Joel E. Denny.
18051
18052 2010-04-16  Bruno Haible  <bruno@clisp.org>
18053
18054         Override netdb.h always.
18055         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
18056         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
18057         Reported by Ludovic Courtès <ludo@gnu.org>.
18058
18059 2010-04-15  Bruno Haible  <bruno@clisp.org>
18060
18061         openpty: Fix mistake from 2010-03-21.
18062         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
18063         Reported by Simon Josefsson.
18064
18065 2010-04-15  Eric Blake  <eblake@redhat.com>
18066
18067         test-forkpty: fix expected signature
18068         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
18069         Reported by Simon Josefsson.
18070
18071 2010-04-15  Jim Meyering  <meyering@redhat.com>
18072
18073         maint.mk: texinfo_suffix_re_: correct the default regexp
18074         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
18075
18076         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
18077         make it configurable via texinfo_suffix_re_.
18078
18079 2010-04-14  Eric Blake  <eblake@redhat.com>
18080
18081         strtok_r: relax license to LGPLv2+
18082         * modules/strtok_r (License): Relax license.
18083         Reported by Matthias Bolte.
18084
18085 2010-04-14  Simon Josefsson  <simon@josefsson.org>
18086
18087         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
18088         version 1.4.4 by default instead of requiring the libgcrypt
18089         version used during build.  This makes it possible to use the
18090         application with older but still binary compatible libgcrypt
18091         versions.
18092
18093 2010-04-13  Eric Blake  <eblake@redhat.com>
18094
18095         getopt-gnu: match recent glibc fixes and posix ruling
18096         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
18097         '+' handling, when requesting extensions.
18098         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
18099         'W;' handling.
18100         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
18101         * doc/posix-functions/getopt.texi (getopt): Document this.
18102         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18103         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18104         Likewise.
18105
18106         getopt: merge bug fixes from glibc
18107         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
18108         diagnostics.  Honor '+:' correctly.  Reject ';'.
18109
18110         getopt-posix: detect MacOS bug
18111         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
18112         optind when missing a required argument.
18113         * doc/posix-functions/getopt.texi (getopt): Document the bug.
18114         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18115         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18116         Likewise.
18117
18118         getopt-posix: avoid spurious failure on Solaris
18119         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
18120         an indicator that setting optind=1 is sufficient for reset.
18121
18122         getopt-posix: avoid spurious failure on FreeBSD
18123         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
18124         in POSIX mode, since the m4 test uses it.
18125
18126         gnulib-tool: silence warning on BSD sh
18127         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
18128
18129 2010-04-13  Jim Meyering  <meyering@redhat.com>
18130
18131         doc: users.txt: GNU patch now uses gnulib
18132         * users.txt: Add patch.
18133
18134 2010-04-12  Jim Meyering  <meyering@redhat.com>
18135
18136         maint.mk: generate more concise timing data for syntax-check rules
18137         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
18138         " done" from each line that reports a syntax-check test duration.
18139
18140 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
18141
18142         git-version-gen: use "git update-index..." rather than "git status"
18143         * build-aux/git-version-gen: Use git update-index --refresh, not
18144         "git status".  With some versions of git, "git status" would fail
18145         to update the index and result in an unwarranted "-dirty" suffix.
18146
18147 2010-04-11  Jim Meyering  <meyering@redhat.com>
18148
18149         openat: correct formatting (no semantic change)
18150         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
18151         Suggested by Bruno Haible.
18152
18153 2010-04-11  Bruno Haible  <bruno@clisp.org>
18154
18155         Stricter declaration checking in testdirs.
18156         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18157         If for_tests is true, augment AM_CPPFLAGS to define
18158         GNULIB_STRICT_CHECKING.
18159         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
18160         GNULIB_STRICT_CHECKING is defined, verify that the function is
18161         declared.
18162
18163 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
18164             Bruno Haible  <bruno@clisp.org>
18165
18166         libunistring: Improve configure output.
18167         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
18168         Don't say "consider installing GNU libunistring" when checking again
18169         with libiconv.
18170
18171 2010-04-11  Bruno Haible  <bruno@clisp.org>
18172
18173         libunistring: Correct value of $LTLIBUNISTRING.
18174         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
18175         correct the value of $LTLIBUNISTRING.
18176
18177 2010-04-11  Bruno Haible  <bruno@clisp.org>
18178
18179         havelib: Add static libraries to LIBS in the right order.
18180         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
18181         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
18182
18183 2010-04-11  Bruno Haible  <bruno@clisp.org>
18184
18185         libunistring: Detect libunistring also when it depends on libiconv.
18186         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
18187         the second AC_LIB_HAVE_LINKFLAGS invocation.
18188
18189 2010-04-11  James Youngman  <jay@gnu.org>
18190
18191         close-stream: declare local scalars to be "const"
18192         * lib/close-stream.c (close_stream): Make boolean variables const
18193         to document the fact that we set but do not change them.
18194
18195 2010-04-11  Bruno Haible  <bruno@clisp.org>
18196
18197         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
18198
18199 2010-04-11  Jim Meyering  <meyering@redhat.com>
18200
18201         maint.mk: don't include dist-check.mk
18202         * top/maint.mk: Remove bogus include directive.
18203
18204         maint.mk: improve empty-line-at-EOF check
18205         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
18206         solution, rather than tail+Perl-based one.  The latter would read
18207         a few kilobytes from the end of each file, and did not handle empty
18208         files properly.
18209
18210         maint.mk: print the elapsed time for each syntax-check rule
18211         * top/maint.mk (sc_m_rules_): Save start time in a file.
18212         (sc_z_rules_): New rules: remove temp file and print elapsed time.
18213         (local-check): Interpose the .z rules
18214
18215 2010-04-11  Jim Meyering  <meyering@redhat.com>
18216
18217         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
18218         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
18219         empty file with one that ends in an empty line.
18220
18221 2010-04-10  Bruno Haible  <bruno@clisp.org>
18222
18223         mkdir: Make it work on mingw64.
18224         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
18225         * lib/mkdir.c: Update comment.
18226         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
18227
18228 2010-04-10  Bruno Haible  <bruno@clisp.org>
18229
18230         Don't override improved macro from newer autoconf.
18231         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
18232         autoconf >= 2.62.
18233         Reported by Joel E. Denny <jdenny@clemson.edu>.
18234
18235 2010-04-10  Jim Meyering  <meyering@redhat.com>
18236
18237         maint.mk: new syntax-check rule: prohibit empty lines at end of file
18238         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
18239
18240         maint.mk: correct a diagnostic
18241         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
18242         in diagnostic; now use $prohibit.
18243
18244 2010-04-10  Bruno Haible  <address@hidden>
18245
18246         fchownat: Fix a C++ test error on Solaris 8.
18247         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
18248         the function does not exist.
18249
18250 2010-04-10  Bruno Haible  <bruno@clisp.org>
18251
18252         vasnprintf: Add more tests.
18253         * tests/test-vasnprintf-posix.c: Include <errno.h>.
18254         (test_function): Test converting an invalid wide string.
18255
18256         vasnprintf: Correct handling of unconvertible wide string arguments.
18257         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
18258         VASNPRINTF.
18259         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
18260         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
18261         smaller than the expected maximum need for the directive. Set errno to
18262         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
18263         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
18264         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
18265         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
18266         * modules/vasnprintf (Files): Add m4/printf.m4.
18267         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18268
18269 2010-04-10  Bruno Haible  <bruno@clisp.org>
18270
18271         vasnprintf: Fix crash in %ls directive.
18272         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
18273         string is passed as argument to %ls, with no precision and no width.
18274         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18275
18276 2010-04-10  Bruno Haible  <bruno@clisp.org>
18277
18278         vasnprintf: Fix multiple test failures on mingw.
18279         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
18280         _snprintf, or snwprintf, not _snwprintf.
18281
18282 2010-04-10  Bruno Haible  <bruno@clisp.org>
18283
18284         write: Fix a C++ test error on mingw.
18285         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
18286
18287 2010-04-10  Bruno Haible  <bruno@clisp.org>
18288
18289         vasnprintf test: Reduce code duplication.
18290         * tests/test-vasnprintf.c (test_function): New function, extracted from
18291         test_vasnprintf.
18292         (test_vasnprintf, test_asnprintf): Invoke it.
18293
18294 2010-04-10  Bruno Haible  <bruno@clisp.org>
18295
18296         strnlen: Fix warning in C++ mode on MacOS X.
18297         * lib/string.in.h (strnlen): Use the modern idiom.
18298         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
18299         defining strnlen as a macro already in <config.h>.
18300         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18301         REPLACE_STRNLEN.
18302         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
18303         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18304
18305 2010-04-08  James Youngman  <jay@gnu.org>
18306
18307         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
18308         the example.
18309
18310 2010-04-09  Jim Meyering  <meyering@redhat.com>
18311
18312         maint.mk: print better diagnostic when there is no $(_hv_file)
18313         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
18314         announce that when $(_hv_file) (aka help-version) does not exist.
18315
18316         init.sh: run tr in the "C" locale to avoid multibyte interpretation
18317         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
18318         not try to interpret its random input bytes.  Jarno Rajahalme reported
18319         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
18320         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
18321         (mktempd_): Likewise, just in case.
18322
18323         ftruncate: add two years to projected module removal date: 2012
18324         * m4/ftruncate.m4: Adjust comments.
18325
18326         ftruncate: mark module as obsolete; even MinGW provides it, now
18327         * modules/ftruncate (Status): Obsolete.
18328         (Notice): Say that.
18329         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
18330         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
18331
18332 2010-04-08  Bruno Haible  <bruno@clisp.org>
18333
18334         Fix side effects from tests-related modules.
18335         * modules/dprintf-posix (Comment): New section.
18336         * modules/fprintf-posix (Comment): Likewise.
18337         * modules/obstack-printf-posix (Comment): Likewise.
18338         * modules/printf-posix (Comment): Likewise.
18339         * modules/snprintf-posix (Comment): Likewise.
18340         * modules/sprintf-posix (Comment): Likewise.
18341         * modules/vasnprintf-posix (Comment): Likewise.
18342         * modules/vasprintf-posix (Comment): Likewise.
18343         * modules/vdprintf-posix (Comment): Likewise.
18344         * modules/vfprintf-posix (Comment): Likewise.
18345         * modules/vprintf-posix (Comment): Likewise.
18346         * modules/vsnprintf-posix (Comment): Likewise.
18347         * modules/vsprintf-posix (Comment): Likewise.
18348         * modules/xprintf-posix (Comment): Likewise.
18349         * modules/xvasprintf-posix (Comment): Likewise.
18350         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
18351         * modules/floorf-tests (Depends-on): Likewise.
18352         * modules/round-tests (Depends-on): Likewise.
18353         * modules/roundf-tests (Depends-on): Likewise.
18354         * modules/trunc-tests (Depends-on): Likewise.
18355         * modules/truncf-tests (Depends-on): Likewise.
18356         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
18357         'fprintf-posix' module is not present.
18358         * tests/test-floorf2.c (check): Likewise.
18359         * tests/test-trunc2.c (check): Likewise.
18360         * tests/test-truncf2.c (check): Likewise.
18361         * tests/test-round2.c (equal): Likewise.
18362         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18363
18364 2010-04-07  Karl Berry  <karl@gnu.org>
18365
18366         * config/srclist.txt,
18367         * config/srclistvars.sh,
18368         * config/srclist-update: doc fixes.
18369
18370 2010-04-07  Jim Meyering  <meyering@redhat.com>
18371
18372         maint.mk: add a PATH crosschecking syntax-check rule
18373         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
18374         Useful if you use a test like the one in help-version (coreutils,
18375         diffutils, grep, gzip) that ensures $(VERSION) matches what is
18376         printed by prog --version.
18377
18378 2010-04-06  Bruno Haible  <bruno@clisp.org>
18379
18380         Fix link error on mingw.
18381         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
18382         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
18383
18384 2010-04-06  Bruno Haible  <bruno@clisp.org>
18385
18386         Assume rmdir exists.
18387         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
18388
18389 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
18390
18391         doc: update users.txt
18392         * users.txt: Add gcal.
18393
18394 2010-04-06  Jim Meyering  <meyering@redhat.com>
18395
18396         init.sh: simply unset TMPDIR rather than risking env -i
18397         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
18398         although it probably works fine on all Unix-based systems, some
18399         systems (Cygwin?) cannot tolerate a totally cleared environment.
18400         Suggestion from Eric Blake.
18401
18402 2010-04-06  Jim Meyering  <meyering@redhat.com>
18403
18404         init.sh: portability fix: use env's POSIX-specified -i option not -u
18405         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
18406         than unportable env -u.  Solaris 5.11's env lacks support for -u.
18407
18408 2010-04-05  Bruno Haible  <bruno@clisp.org>
18409
18410         btowc: Work around Cygwin 1.7.2 bug.
18411         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
18412         does not map NUL to 0.
18413         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
18414
18415 2010-04-05  Bruno Haible  <bruno@clisp.org>
18416
18417         Make the multithread modules work on Cygwin 1.7.2.
18418         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
18419         imported symbols can be declared weak, so that it returns "no" on
18420         Cygwin 1.7.2.
18421
18422 2010-04-05  Bruno Haible  <bruno@clisp.org>
18423
18424         Use the module 'strncat'.
18425         * modules/unistr/u8-strncat (Depends-on): Add strncat.
18426
18427         Tests for module 'strncat'.
18428         * modules/strncat-tests: New file.
18429         * tests/test-strncat.c: New file.
18430
18431         New module 'strncat'.
18432         * lib/string.in.h (strncat): New declaration.
18433         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
18434         * m4/strncat.m4: New file, based on m4/memchr.m4.
18435         * modules/strncat: New file.
18436         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
18437         is declared.
18438         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
18439         REPLACE_STRNCAT.
18440         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
18441         REPLACE_STRNCAT.
18442         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
18443         module.
18444         * tests/test-string-c++.cc: Check signature of strncat.
18445
18446 2010-04-05  Jim Meyering  <meyering@redhat.com>
18447
18448         xstrtoumax-tests: convert to use init.sh
18449         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
18450         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18451         Use Exit, not exit.
18452         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18453
18454         xstrtoimax-tests: convert to use init.sh
18455         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
18456         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18457         Use Exit, not exit.
18458         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18459
18460 2010-04-05  Bruno Haible  <bruno@clisp.org>
18461
18462         sys_socket: Avoid #define replacements in C++ mode.
18463         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
18464         warning to the function if possible, rather than #defining the symbol
18465         to a dysfunctional alias.
18466
18467 2010-04-05  Bruno Haible  <bruno@clisp.org>
18468
18469         fseeko: Fix C++ test error on mingw.
18470         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
18471         gl_FUNC_FSEEKO.
18472         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
18473         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
18474         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
18475         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
18476
18477 2010-04-05  Bruno Haible  <bruno@clisp.org>
18478
18479         duplocale: Improve test output.
18480         * tests/test-duplocale.c (main): Print reason for skipped test.
18481
18482 2010-04-05  Bruno Haible  <bruno@clisp.org>
18483
18484         Assume rmdir exists.
18485         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
18486         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
18487
18488 2010-04-05  Bruno Haible  <bruno@clisp.org>
18489
18490         Fix link error on Solaris 8 with cc.
18491         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
18492
18493 2010-04-05  Bruno Haible  <bruno@clisp.org>
18494
18495         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
18496         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
18497
18498 2010-04-05  Bruno Haible  <bruno@clisp.org>
18499
18500         vasprintf: Update documentation.
18501         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
18502
18503 2010-04-05  Bruno Haible  <bruno@clisp.org>
18504
18505         ptsname: Improve test.
18506         * tests/test-ptsname.c (main): Also try the various master names of BSD
18507         systems.
18508
18509 2010-04-05  Bruno Haible  <bruno@clisp.org>
18510
18511         memchr: Avoid a possible C++ test error.
18512         * lib/string.in.h (memchr): Provide declaration if function is missing.
18513         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
18514         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
18515         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
18516         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
18517
18518 2010-04-05  Bruno Haible  <bruno@clisp.org>
18519
18520         strtok_r: Improve idiom.
18521         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
18522         AC_LIBOBJ is used.
18523
18524 2010-04-05  Bruno Haible  <bruno@clisp.org>
18525
18526         strdup: Improve idiom.
18527         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
18528         AC_LIBOBJ is used.
18529         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
18530         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
18531         when AC_LIBOBJ is used.
18532
18533 2010-04-05  Bruno Haible  <bruno@clisp.org>
18534
18535         mbsinit, mbrtowc, wcrtomb: Improve idioms.
18536         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
18537         don't set REPLACE_MBSINIT to 1.
18538         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
18539         don't set REPLACE_MBRTOWC to 1.
18540         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
18541         exist, don't set REPLACE_MBSRTOWCS to 1.
18542         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
18543         exist, don't set REPLACE_MBSNRTOWCS to 1.
18544         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
18545         don't set REPLACE_WCRTOMB to 1.
18546         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
18547         exist, don't set REPLACE_WCSRTOMBS to 1.
18548         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
18549         exist, don't set REPLACE_WCSNRTOMBS to 1.
18550
18551 2010-04-05  Bruno Haible  <bruno@clisp.org>
18552
18553         ldexpl: Improve idiom.
18554         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
18555         make sure to set HAVE_DECL_LDEXPL to 0.
18556
18557 2010-04-05  Jim Meyering  <meyering@redhat.com>
18558
18559         xstrtol-tests: convert to use init.sh
18560         * modules/xstrtol-tests (Files): Add tests/init.sh.
18561         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18562         Use Exit, not exit.
18563         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18564
18565         atexit-tests: convert to use init.sh
18566         * modules/atexit-tests (Files): Add tests/init.sh.
18567         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18568         Use Exit, not exit.
18569         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18570
18571         init.sh: fix typo
18572         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
18573
18574         init.sh: make it easier for a test script to write to the tty, ...
18575         when using automake's parallel-tests mode.
18576         * tests/init.sh (stderr_fileno_): Define overridable variable.
18577         (warn_): New function, to use it.
18578         (fail_, skip_, framework_failure_): Use warn_.
18579
18580 2010-04-04  Bruno Haible  <bruno@clisp.org>
18581
18582         btowc: Avoid warning.
18583         * lib/btowc.c: Include <stdlib.h>.
18584         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
18585
18586 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
18587             Bruno Haible  <bruno@clisp.org>
18588
18589         wchar: Port to NetBSD 1.5.
18590         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
18591         * lib/wctype.in.h (WEOF): Likewise.
18592
18593 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
18594             Bruno Haible  <bruno@clisp.org>
18595
18596         Port extended stdio to NetBSD 1.5.
18597         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
18598         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
18599         older.
18600
18601 2010-04-04  Bruno Haible  <bruno@clisp.org>
18602
18603         string: Remove unused substitution.
18604         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
18605         HAVE_DECL_STRERROR.
18606         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
18607
18608 2010-04-04  Bruno Haible  <bruno@clisp.org>
18609
18610         strtod: Avoid a possible C++ test error.
18611         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
18612         set REPLACE_STRTOD.
18613
18614 2010-04-04  Bruno Haible  <bruno@clisp.org>
18615
18616         strerror: Update documentation.
18617         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
18618
18619 2010-04-04  Bruno Haible  <bruno@clisp.org>
18620
18621         stdio: Fix some C++ test errors on Solaris 8 with GCC.
18622         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
18623         _GL_CXXALIAS_SYS_CAST.
18624
18625 2010-04-04  Bruno Haible  <bruno@clisp.org>
18626
18627         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
18628         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
18629         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
18630         REPLACE_FREXPL to 1.
18631         * doc/posix-functions/frexpl.texi: Update documentation.
18632
18633 2010-04-04  Bruno Haible  <bruno@clisp.org>
18634
18635         math: Fix some C++ test errors on Solaris 8 and Cygwin.
18636         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
18637
18638 2010-04-04  Bruno Haible  <bruno@clisp.org>
18639
18640         Implement nanosleep for native Windows.
18641         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
18642
18643 2010-04-04  Bruno Haible  <bruno@clisp.org>
18644
18645         math: Fix some C++ test errors on Solaris 8.
18646         * lib/math.in.h (truncf, trunc): Use simpler idiom.
18647
18648 2010-04-04  Bruno Haible  <bruno@clisp.org>
18649
18650         math: Fix some C++ test errors on Cygwin.
18651         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
18652         truncl): Provide declaration if the system does not have it.
18653         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
18654         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
18655         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
18656         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
18657         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
18658         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
18659         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
18660         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
18661         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
18662         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
18663         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
18664         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
18665         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
18666         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
18667         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
18668         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
18669         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
18670         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
18671         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
18672         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
18673         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
18674         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
18675
18676 2010-04-04  Bruno Haible  <bruno@clisp.org>
18677
18678         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
18679         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
18680         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
18681         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
18682         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
18683         * m4/isinf.m4 (gl_ISINF): Likewise.
18684         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18685
18686 2010-04-04  Bruno Haible  <bruno@clisp.org>
18687
18688         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
18689         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
18690
18691 2010-04-04  Bruno Haible  <bruno@clisp.org>
18692
18693         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
18694         * modules/tmpfile (configure.ac): Update.
18695
18696         tmpfile: Fix C++ test error on mingw.
18697         * lib/stdio.in.h (tmpfile): New declaration.
18698         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
18699         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
18700         * modules/tmpfile (Depends-on): Add stdio.
18701         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
18702         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
18703         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
18704         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
18705         REPLACE_TMPFILE.
18706         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
18707
18708 2010-04-04  Bruno Haible  <bruno@clisp.org>
18709
18710         ioctl: Fix C++ test error on mingw.
18711         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
18712         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
18713         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
18714
18715 2010-04-03  Bruno Haible  <bruno@clisp.org>
18716
18717         wcwidth: Fix C++ test error on mingw.
18718         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
18719         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
18720         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
18721
18722 2010-04-03  Bruno Haible  <bruno@clisp.org>
18723
18724         nanosleep: Fix C++ test error on mingw.
18725         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
18726         * lib/time.in.h (nanosleep): Use modern idiom.
18727         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
18728         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
18729         REPLACE_NANOSLEEP to 1.
18730         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
18731         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
18732
18733 2010-04-03  Bruno Haible  <bruno@clisp.org>
18734
18735         strptime: Fix C++ test error on mingw.
18736         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
18737         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
18738         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
18739         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
18740         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
18741         not REPLACE_STRPTIME.
18742         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
18743         REPLACE_STRPTIME.
18744
18745 2010-04-03  Bruno Haible  <bruno@clisp.org>
18746
18747         timegm: Fix C++ test error on mingw.
18748         * lib/time.in.h (timegm): Use modern idiom.
18749         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
18750         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
18751         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
18752         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
18753
18754 2010-04-03  Bruno Haible  <bruno@clisp.org>
18755
18756         timegm: Assume declaration if function exists.
18757         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
18758         if it exists. Don't clobber ac_cv_func_timegm.
18759
18760 2010-04-03  Bruno Haible  <bruno@clisp.org>
18761
18762         time_r: Fix C++ test error on mingw.
18763         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
18764         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
18765         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
18766         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
18767         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
18768
18769 2010-04-03  Bruno Haible  <bruno@clisp.org>
18770
18771         time_r: Minor updates.
18772         * modules/time_r (Description): Mention the provided functions.
18773         * lib/time_r.c: Don't include <string.h>.
18774         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
18775         * doc/posix-functions/localtime_r.texi: Likewise.
18776
18777 2010-04-03  Bruno Haible  <bruno@clisp.org>
18778
18779         time: Fix regression introduced on 2010-03-08.
18780         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
18781         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
18782
18783 2010-04-03  Jim Meyering  <meyering@redhat.com>
18784
18785         maint.mk: don't silently disable project-specific syntax-check rules
18786         * top/maint.mk (_prohibit_regexp): Define, to help people realize
18787         that they need to convert their project-specific syntax-check rules
18788         to use the new _sc_search_regexp.
18789
18790 2010-04-03  Bruno Haible  <bruno@clisp.org>
18791
18792         fchdir: Fix regression introduced on 2010-03-08.
18793         * lib/unistd.in.h (fchdir): Fix declaration.
18794         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
18795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
18796         REPLACE_FCHDIR.
18797         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
18798         REPLACE_FCHDIR.
18799
18800 2010-04-03  Bruno Haible  <bruno@clisp.org>
18801
18802         getpagesize: Fix C++ test error on mingw.
18803         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
18804         system does not declare the function.
18805         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
18806         declared.
18807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18808         HAVE_DECL_GETPAGESIZE.
18809         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
18810
18811 2010-04-03  Bruno Haible  <bruno@clisp.org>
18812
18813         stdio: Make C++ tests work on mingw.
18814         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
18815         does not declare the function.
18816
18817 2010-04-03  Bruno Haible  <bruno@clisp.org>
18818
18819         ftello: Fix C++ test error on mingw.
18820         * lib/stdio.in.h (ftello): Use modern idiom.
18821         * lib/ftello.c (ftello): Renamed from rpl_ftello.
18822         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
18823         is missing and that it needs to be replaced.
18824         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
18825         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
18826         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
18827
18828 2010-04-03  Bruno Haible  <bruno@clisp.org>
18829
18830         fseeko: Fix C++ test error on mingw.
18831         * lib/stdio.in.h (fseeko): Use modern idiom.
18832         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
18833         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
18834         is missing and that it needs to be replaced.
18835         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
18836         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
18837         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
18838
18839 2010-04-03  Bruno Haible  <bruno@clisp.org>
18840
18841         mkstemp: Fix C++ test error on mingw.
18842         * lib/stdlib.in.h (mkstemp): Use modern idiom.
18843         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
18844         function is missing and that it needs to be replaced.
18845         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
18846         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
18847
18848 2010-04-03  Bruno Haible  <bruno@clisp.org>
18849
18850         stpncpy: Fix C++ test error on mingw.
18851         * lib/string.in.h (stpncpy): Use modern idiom.
18852         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
18853         function is missing and that it needs to be replaced.
18854         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18855         REPLACE_STPNCPY.
18856         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
18857
18858 2010-04-03  Bruno Haible  <bruno@clisp.org>
18859
18860         sys_stat: Fix C++ test error on mingw.
18861         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
18862         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
18863
18864 2010-04-03  Bruno Haible  <bruno@clisp.org>
18865
18866         pty: Update doc.
18867         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
18868
18869 2010-04-03  Bruno Haible  <bruno@clisp.org>
18870
18871         unistd: Fix C++ test error on mingw.
18872         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
18873
18874 2010-04-03  Bruno Haible  <bruno@clisp.org>
18875
18876         Update doc regarding mingw.
18877         * doc/glibc-functions/openpty.texi: Update regarding mingw.
18878         * doc/glibc-functions/login_tty.texi: Likewise.
18879         * doc/glibc-functions/forkpty.texi: Likewise.
18880
18881 2010-04-03  Bruno Haible  <bruno@clisp.org>
18882
18883         stdlib: Avoid compilation failure of c-strtold on mingw.
18884         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
18885
18886 2010-04-03  Bruno Haible  <bruno@clisp.org>
18887
18888         locale: Make C++ tests work on Cygwin and mingw.
18889         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
18890         cannot provide the function.
18891         Reported by Simon Josefsson.
18892
18893 2010-04-03  Bruno Haible  <bruno@clisp.org>
18894
18895         localename: Port to MacOS X 10.6.
18896         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
18897         memory layout of the locales in MacOS X 10.6 as well.
18898         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
18899
18900 2010-04-02  Bruno Haible  <bruno@clisp.org>
18901
18902         gnulib-tool: Ensure that long-running tests are executed last.
18903         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
18904         running tests after the one for the other tests.
18905
18906 2010-04-02  Bruno Haible  <bruno@clisp.org>
18907
18908         gnulib-tool: Ensure the tests in the main directory are executed first.
18909         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
18910         start with the current directory.
18911
18912 2010-04-02  Bruno Haible  <bruno@clisp.org>
18913
18914         Tests for module 'havelib', moved here from GNU gettext.
18915         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
18916         modifications.
18917         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
18918         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
18919         with modifications.
18920         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
18921         modifications.
18922         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
18923         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
18924         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
18925         with modifications.
18926         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
18927         with modifications.
18928         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
18929         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
18930         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
18931         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
18932         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
18933         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
18934         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
18935         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
18936         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
18937         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
18938         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
18939         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
18940         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
18941         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
18942         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
18943         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
18944         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
18945         with modifications.
18946         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
18947         with modifications.
18948         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
18949         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
18950         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
18951         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
18952         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
18953         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
18954         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
18955         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
18956         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
18957         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
18958         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
18959         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
18960         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
18961         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
18962         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
18963         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
18964         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
18965         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
18966         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
18967         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
18968         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
18969         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
18970         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
18971         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
18972         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
18973         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
18974         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
18975         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
18976         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
18977         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
18978         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
18979         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
18980         * tests/havelib/rpathx/rpathx.c: New file, from
18981         gettext/autoconf-lib-link.
18982         * tests/havelib/rpathx/Makefile.am: New file, from
18983         gettext/autoconf-lib-link.
18984         * tests/havelib/rpathx/configure.ac: New file, from
18985         gettext/autoconf-lib-link with modifications.
18986         * tests/havelib/rpathy/rpathy.c: New file, from
18987         gettext/autoconf-lib-link.
18988         * tests/havelib/rpathy/Makefile.am: New file, from
18989         gettext/autoconf-lib-link.
18990         * tests/havelib/rpathy/configure.ac: New file, from
18991         gettext/autoconf-lib-link with modifications.
18992         * tests/havelib/rpathz/rpathz.c: New file, from
18993         gettext/autoconf-lib-link.
18994         * tests/havelib/rpathz/Makefile.am: New file, from
18995         gettext/autoconf-lib-link.
18996         * tests/havelib/rpathz/configure.ac: New file, from
18997         gettext/autoconf-lib-link with modifications.
18998         * tests/havelib/rpathlx/usex.c: New file, from
18999         gettext/autoconf-lib-link.
19000         * tests/havelib/rpathlx/Makefile.am: New file, from
19001         gettext/autoconf-lib-link.
19002         * tests/havelib/rpathlx/configure.ac: New file, from
19003         gettext/autoconf-lib-link with modifications.
19004         * tests/havelib/rpathly/usey.c: New file, from
19005         gettext/autoconf-lib-link.
19006         * tests/havelib/rpathly/Makefile.am: New file, from
19007         gettext/autoconf-lib-link.
19008         * tests/havelib/rpathly/configure.ac: New file, from
19009         gettext/autoconf-lib-link with modifications.
19010         * tests/havelib/rpathlz/usez.c: New file, from
19011         gettext/autoconf-lib-link.
19012         * tests/havelib/rpathlz/Makefile.am: New file, from
19013         gettext/autoconf-lib-link.
19014         * tests/havelib/rpathlz/configure.ac: New file, from
19015         gettext/autoconf-lib-link with modifications.
19016         * tests/havelib/rpathlyx/usey.c: New file, from
19017         gettext/autoconf-lib-link.
19018         * tests/havelib/rpathlyx/Makefile.am: New file, from
19019         gettext/autoconf-lib-link.
19020         * tests/havelib/rpathlyx/configure.ac: New file, from
19021         gettext/autoconf-lib-link with modifications.
19022         * tests/havelib/rpathlzyx/usez.c: New file, from
19023         gettext/autoconf-lib-link.
19024         * tests/havelib/rpathlzyx/Makefile.am: New file, from
19025         gettext/autoconf-lib-link.
19026         * tests/havelib/rpathlzyx/configure.ac: New file, from
19027         gettext/autoconf-lib-link with modifications.
19028         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
19029         with modifications.
19030
19031 2010-04-02  Bruno Haible  <bruno@clisp.org>
19032
19033         gnulib-tool: Create distributed built sources also for the tests.
19034         * gnulib-tool (func_create_testdir): Also generate distributed built
19035         sources in the tests directory.
19036
19037 2010-04-02  Bruno Haible  <bruno@clisp.org>
19038
19039         gnulib-tool: Obey user's environment variables.
19040         * gnulib-tool (func_create_testdir): When creating built sources,
19041         respect the environment variables for autoconf, automake, etc. given by
19042         the user.
19043
19044 2010-04-02  Bruno Haible  <bruno@clisp.org>
19045
19046         gnulib-tool: Provide the value of --m4-base to modules.
19047         * gnulib-tool (func_import, func_create_testdir): Emit a definition
19048         of gl_m4_base.
19049
19050 2010-04-02  Eric Blake  <eblake@redhat.com>
19051
19052         maint.mk: fix some fallout
19053         * NEWS: Document the incompatible change, and its effect on cfg.mk.
19054         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
19055
19056 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19057
19058         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
19059         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
19060         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
19061         (sc_cast_of_x_alloc_return_value): Likewise.
19062         (sc_cast_of_alloca_return_value): Likewise.
19063         (sc_space_tab): Likewise.
19064         (sc_prohibit_atoi_atof): Likewise.
19065         (sc_prohibit_magic_number_exit): Likewise.
19066         (sc_error_exit_success): Likewise.
19067         (sc_file_system): Likewise.
19068         (sc_prohibit_have_config_h): Likewise.
19069         (sc_require_config_h): Likewise.
19070         (sc_prohibit_HAVE_MBRTOWC): Likewise.
19071         (sc_obsolete_symbols): Likewise.
19072         (sc_changelog): Likewise.
19073         (sc_program_name): Likewise.
19074         (sc_the_the): Likewise.
19075         (sc_trailing_blank): Likewise.
19076         (sc_two_space_separator_in_usage): Likewise.
19077         (sc_useless_cpp_parens): Likewise.
19078         (sc_GPL_version): Likewise.
19079         (sc_GFDL_version): Likewise.
19080         (sc_texinfo_acronym): Likewise.
19081         (sc_prohibit_cvs_keyword): Likewise.
19082         (sc_prohibit_stat_st_blocks): Likewise.
19083         (sc_prohibit_S_IS_definition): Likewise.
19084         (sc_redundant_const): Likewise.
19085         (sc_makefile_TAB_only_indentation): Likewise.
19086         (sc_m4_quote_check): Likewise.
19087         (sc_makefile_path_separator_check): Likewise.
19088         (sc_copyright_check): Likewise.
19089         (sc_Wundef_boolean): Likewise.
19090         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19091
19092         maint.mk: match 0 or more whitespace-before-function-call '('
19093         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
19094         that have zero or two-and-more spaces between the function name
19095         and the open parenthesis.
19096         (sc_error_message_warn_fatal): Likewise.
19097         (sc_error_message_uppercase): Likewise.
19098         (sc_error_message_period): Likewise.
19099
19100 2010-03-31  Eric Blake  <eblake@redhat.com>
19101
19102         maint.mk: check for [ as well as test
19103         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
19104         Based on a libvirt report by Matthias Bolte.
19105
19106         gnumakefile: don't squelch _version output
19107         * top/GNUmakefile (_version): Create one-shot dependency rather
19108         than using $(shell) when version must be regenerated.
19109         (_autoreconf): Run verbosely, by default.
19110
19111         sys_time: avoid compiler warnings
19112         * lib/sys_time.in.h (includes): Ensure gcc pragma is
19113         unconditional, fixing regression from 2010-03-29.
19114         Reported by Simon Josefsson.
19115
19116 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19117
19118         maint.mk: s/_header_without_use/_sc_header_without_use/
19119         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
19120         (sc_prohibit_assert_without_use): Use the new name.
19121         (sc_prohibit_close_stream_without_use): Likewise.
19122         (sc_prohibit_getopt_without_use): Likewise.
19123         (sc_prohibit_quotearg_without_use): Likewise.
19124         (sc_prohibit_quote_without_use): Likewise.
19125         (sc_prohibit_long_options_without_use): Likewise.
19126         (sc_prohibit_inttostr_without_use): Likewise.
19127         (sc_prohibit_ignore_value_without_use): Likewise.
19128         (sc_prohibit_error_without_use): Likewise.
19129         (sc_prohibit_xalloc_without_use): Likewise.
19130         (sc_prohibit_hash_without_use): Likewise.
19131         (sc_prohibit_hash_pjw_without_use): Likewise.
19132         (sc_prohibit_safe_read_without_use): Likewise.
19133         (sc_prohibit_argmatch_without_use): Likewise.
19134         (sc_prohibit_canonicalize_without_use): Likewise.
19135         (sc_prohibit_root_dev_ino_without_use): Likewise.
19136         (sc_prohibit_openat_without_use): Likewise.
19137         (sc_prohibit_c_ctype_without_use): Likewise.
19138         (sc_prohibit_signal_without_use): Likewise.
19139         (sc_prohibit_intprops_without_use): Likewise.
19140
19141 2010-03-30  Eric Blake  <eblake@redhat.com>
19142
19143         maint: improve module indicators
19144         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
19145         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
19146         columns, and avoid extra macro expansion.
19147
19148         fdopendir: work around FreeBSD bug
19149         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
19150         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
19151         * modules/dirent (Makefile.am): Substitute it.
19152         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
19153         declaration.
19154         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
19155         fix.
19156         Reported by Christian Weisgerber <naddy@mips.inka.de>.
19157
19158 2010-03-29  Bruno Haible  <bruno@clisp.org>
19159
19160         Emit #pragma system_header after the inclusion guard, not before.
19161         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
19162         guard that spans the entire file, not before. This enables an
19163         optimization in GCC's preprocessor.
19164         * lib/ctype.in.h: Likewise.
19165         * lib/dirent.in.h: Likewise.
19166         * lib/errno.in.h: Likewise.
19167         * lib/float.in.h: Likewise.
19168         * lib/getopt.in.h: Likewise.
19169         * lib/iconv.in.h: Likewise.
19170         * lib/langinfo.in.h: Likewise.
19171         * lib/locale.in.h: Likewise.
19172         * lib/math.in.h: Likewise.
19173         * lib/netdb.in.h: Likewise.
19174         * lib/netinet_in.in.h: Likewise.
19175         * lib/pty.in.h: Likewise.
19176         * lib/sched.in.h: Likewise.
19177         * lib/se-selinux.in.h: Likewise.
19178         * lib/search.in.h: Likewise.
19179         * lib/spawn.in.h: Likewise.
19180         * lib/stdarg.in.h: Likewise.
19181         * lib/stdint.in.h: Likewise.
19182         * lib/string.in.h: Likewise.
19183         * lib/strings.in.h: Likewise.
19184         * lib/sys_file.in.h: Likewise.
19185         * lib/sys_ioctl.in.h: Likewise.
19186         * lib/sys_time.in.h: Likewise.
19187         * lib/sys_times.in.h: Likewise.
19188         * lib/sys_utsname.in.h: Likewise.
19189         * lib/sys_wait.in.h: Likewise.
19190         * lib/sysexits.in.h: Likewise.
19191         * lib/wctype.in.h: Likewise.
19192
19193 2010-03-28  James Youngman  <jay@gnu.org>
19194
19195         save-cwd: don't leak a file descriptor when the caller execs.
19196         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
19197         saved file descriptor.
19198         * modules/save-cwd (Depends-on): Depend on cloexec.
19199
19200 2010-03-29  Bruno Haible  <bruno@clisp.org>
19201
19202         Remove vestiges of fts-lgpl module.
19203         * lib/fts_.h: Assume GNULIB_FTS is 1.
19204         * lib/fts.c: Likewise.
19205         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19206
19207 2010-03-28  Bruno Haible  <bruno@clisp.org>
19208
19209         Fix definition of tests witness macro.
19210         * gnulib-tool (func_import): Fix definition of witness macro.
19211
19212 2010-03-28  Bruno Haible  <bruno@clisp.org>
19213
19214         Fix ioctl's protoype on glibc systems.
19215         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
19216         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
19217         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
19218         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
19219         signature. If not, arrange to replace the ioctl function.
19220         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
19221         REPLACE_IOCTL.
19222         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
19223         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
19224         Reported by Ludovic Courtès <ludo@gnu.org>.
19225
19226 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
19227
19228         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
19229         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
19230         made it so grep -r --include=GLOB* ... did not work.
19231
19232 2010-03-26  Jim Meyering  <meyering@redhat.com>
19233             Eric Blake  <eblake@redhat.com>
19234
19235         maint.mk: prohibit use of test's -o and -a operators
19236         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
19237
19238 2010-03-28  Bruno Haible  <bruno@clisp.org>
19239
19240         Remove unused GNULIB_XYZ macro definitions.
19241         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
19242         invocation.
19243
19244 2010-03-28  Bruno Haible  <bruno@clisp.org>
19245
19246         Mark privileged tests modules.
19247         * modules/idpriv-drop-tests (Status): New section.
19248         * modules/idpriv-droptemp-tests (Status): New section.
19249
19250 2010-03-28  Bruno Haible  <bruno@clisp.org>
19251
19252         Split C++ tests into separate tests modules.
19253         * modules/dirent-c++-tests: New file, extracted from
19254         modules/dirent-tests.
19255         * modules/dirent-tests: Depend on it.
19256         * modules/fcntl-h-c++-tests: New file, extracted from
19257         modules/fcntl-h-tests.
19258         * modules/fcntl-h-tests: Depend on it.
19259         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
19260         * modules/glob-tests: Depend on it.
19261         * modules/iconv-h-c++-tests: New file, extracted from
19262         modules/iconv-h-tests.
19263         * modules/iconv-h-tests: Depend on it.
19264         * modules/langinfo-c++-tests: New file, extracted from
19265         modules/langinfo-tests.
19266         * modules/langinfo-tests: Depend on it.
19267         * modules/locale-c++-tests: New file, extracted from
19268         modules/locale-tests.
19269         * modules/locale-tests: Depend on it.
19270         * modules/math-c++-tests: New file, extracted from modules/math-tests.
19271         * modules/math-tests: Depend on it.
19272         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
19273         * modules/pty-tests: Depend on it.
19274         * modules/search-c++-tests: New file, extracted from
19275         modules/search-tests.
19276         * modules/search-tests: Depend on it.
19277         * modules/signal-c++-tests: New file, extracted from
19278         modules/signal-tests.
19279         * modules/signal-tests: Depend on it.
19280         * modules/spawn-c++-tests: New file, extracted from
19281         modules/spawn-tests.
19282         * modules/spawn-tests: Depend on it.
19283         * modules/stdio-c++-tests: New file, extracted from
19284         modules/stdio-tests.
19285         * modules/stdio-tests: Depend on it.
19286         * modules/stdlib-c++-tests: New file, extracted from
19287         modules/stdlib-tests.
19288         * modules/stdlib-tests: Depend on it.
19289         * modules/string-c++-tests: New file, extracted from
19290         modules/string-tests.
19291         * modules/string-tests: Depend on it.
19292         * modules/sys_ioctl-c++-tests: New file, extracted from
19293         modules/sys_ioctl-tests.
19294         * modules/sys_ioctl-tests: Depend on it.
19295         * modules/sys_select-c++-tests: New file, extracted from
19296         modules/sys_select-tests.
19297         * modules/sys_select-tests: Depend on it.
19298         * modules/sys_socket-c++-tests: New file, extracted from
19299         modules/sys_socket-tests.
19300         * modules/sys_socket-tests: Depend on it.
19301         * modules/sys_stat-c++-tests: New file, extracted from
19302         modules/sys_stat-tests.
19303         * modules/sys_stat-tests: Depend on it.
19304         * modules/sys_time-c++-tests: New file, extracted from
19305         modules/sys_time-tests.
19306         * modules/sys_time-tests: Depend on it.
19307         * modules/time-c++-tests: New file, extracted from modules/time-tests.
19308         * modules/time-tests: Depend on it.
19309         * modules/unistd-c++-tests: New file, extracted from
19310         modules/unistd-tests.
19311         * modules/unistd-tests: Depend on it.
19312         * modules/wchar-c++-tests: New file, extracted from
19313         modules/wchar-tests.
19314         * modules/wchar-tests: Depend on it.
19315         * modules/wctype-c++-tests: New file, extracted from
19316         modules/wctype-tests.
19317         * modules/wctype-tests: Depend on it.
19318         Reported by Simon Josefsson.
19319
19320 2010-03-28  Bruno Haible  <bruno@clisp.org>
19321
19322         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
19323         * gnulib-tool (func_exists_module): New function, extracted from
19324         func_verify_module.
19325         (func_verify_module): Use it.
19326         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
19327         'foo' only if 'foo' exists.
19328         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
19329         module.
19330
19331 2010-03-28  Bruno Haible  <bruno@clisp.org>
19332
19333         gnulib-tool: Add support for special categories of tests.
19334         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
19335         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
19336         (func_usage): Document them.
19337         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
19338         inc_unportable_tests, inc_all_tests): New variables.
19339         (func_acceptable): Consider these variables.
19340         (func_modules_transitive_closure): Make it work when the 'Status' field
19341         consists of multiple words.
19342         (func_import): Store and restore the values of inc_cxx_tests,
19343         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
19344         inc_all_tests in gnulib-comp.m4.
19345         (func_create_testdir): Set inc_all_tests to true.
19346         * doc/gnulib.texi (Extra tests modules): New section.
19347         Suggested by Jim Meyering.
19348
19349 2010-03-28  Bruno Haible  <bruno@clisp.org>
19350
19351         ansi-c++-opt: Allow turning off the C++ build by default.
19352         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
19353         gl_CXX_CHOICE_DEFAULT_NO is defined.
19354         Requested by Eric Blake.
19355
19356 2010-03-28  Bruno Haible  <bruno@clisp.org>
19357
19358         unistd: Avoid #define replacements in C++ mode.
19359         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
19360         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
19361         setsockopt, shutdown, select): In C++, attach a warning to the function
19362         if possible, rather than #defining the symbol to a dysfunctional alias.
19363         Reported by John W. Eaton <jwe@gnu.org>.
19364
19365 2010-03-28  Bruno Haible  <bruno@clisp.org>
19366
19367         Fix link errors on mingw.
19368         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
19369         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
19370         $(LIBSOCKET).
19371         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
19372         $(LIBSOCKET).
19373
19374 2010-03-28  Bruno Haible  <bruno@clisp.org>
19375             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19376
19377         lib-ignore: Determine different options for different compilers.
19378         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
19379         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
19380         Add comments.
19381         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
19382         * NEWS: Mention the change.
19383
19384 2010-03-27  Bruno Haible  <bruno@clisp.org>
19385
19386         Remove unused GNULIB_XYZ macro definitions.
19387         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19388         * modules/fseek (configure.ac): Likewise.
19389         * modules/ioctl (configure.ac): Likewise.
19390         * modules/open (configure.ac): Likewise.
19391         * modules/stdlib-safer (configure.ac): Likewise.
19392
19393 2010-03-27  Bruno Haible  <bruno@clisp.org>
19394
19395         Add a remark about certain modules.
19396         * modules/malloc (Comment): New section.
19397         * modules/realloc (Comment): Likewise.
19398         * modules/sigpipe (Comment): Likewise.
19399
19400 2010-03-27  Bruno Haible  <bruno@clisp.org>
19401
19402         Resolve conflict between the two kinds of module indicators.
19403         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
19404         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
19405         * modules/canonicalize (configure.ac): Invoke
19406         gl_MODULE_INDICATOR_FOR_TESTS.
19407         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
19408         GNULIB_XYZ.
19409         * tests/test-dirent-c++.cc: Likewise.
19410         * tests/test-dirent-safer.c: Likewise.
19411         * tests/test-dup2.c: Likewise.
19412         * tests/test-fchdir.c: Likewise.
19413         * tests/test-fcntl-h-c++.cc: Likewise.
19414         * tests/test-getopt.c: Likewise.
19415         * tests/test-getopt.h: Likewise.
19416         * tests/test-langinfo-c++.cc: Likewise.
19417         * tests/test-locale-c++.cc: Likewise.
19418         * tests/test-math-c++.cc: Likewise.
19419         * tests/test-pty-c++.cc: Likewise.
19420         * tests/test-search-c++.cc: Likewise.
19421         * tests/test-signal-c++.cc: Likewise.
19422         * tests/test-spawn-c++.cc: Likewise.
19423         * tests/test-stdio-c++.cc: Likewise.
19424         * tests/test-stdlib-c++.cc: Likewise.
19425         * tests/test-string-c++.cc: Likewise.
19426         * tests/test-sys_ioctl-c++.cc: Likewise.
19427         * tests/test-sys_select-c++.cc: Likewise.
19428         * tests/test-sys_socket-c++.cc: Likewise.
19429         * tests/test-sys_stat-c++.cc: Likewise.
19430         * tests/test-sys_time-c++.cc: Likewise.
19431         * tests/test-time-c++.cc: Likewise.
19432         * tests/test-unistd-c++.cc: Likewise.
19433         * tests/test-wchar-c++.cc: Likewise.
19434         * tests/uninorm/test-u8-nfc.c: Likewise.
19435         * tests/uninorm/test-u8-nfd.c: Likewise.
19436         * tests/uninorm/test-u8-nfkc.c: Likewise.
19437         * tests/uninorm/test-u8-nfkd.c: Likewise.
19438         * tests/uninorm/test-u16-nfc.c: Likewise.
19439         * tests/uninorm/test-u16-nfd.c: Likewise.
19440         * tests/uninorm/test-u16-nfkc.c: Likewise.
19441         * tests/uninorm/test-u16-nfkd.c: Likewise.
19442         * tests/uninorm/test-u32-nfc.c: Likewise.
19443         * tests/uninorm/test-u32-nfc-big.c: Likewise.
19444         * tests/uninorm/test-u32-nfd.c: Likewise.
19445         * tests/uninorm/test-u32-nfd-big.c: Likewise.
19446         * tests/uninorm/test-u32-nfkc.c: Likewise.
19447         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
19448         * tests/uninorm/test-u32-nfkd.c: Likewise.
19449         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
19450         * tests/uninorm/test-u32-normalize-big.c: Likewise.
19451
19452 2010-03-27  Bruno Haible  <bruno@clisp.org>
19453
19454         Distinguish two kinds of module indicators.
19455         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
19456         gl_MODULE_INDICATOR.
19457         (gl_MODULE_INDICATOR): New macro.
19458         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
19459         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
19460         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
19461         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
19462         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
19463         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
19464         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
19465         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
19466         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
19467         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
19468         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
19469         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
19470         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
19471         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
19472         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
19473         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
19474         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
19475         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
19476         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
19477         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
19478         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
19479         * modules/cloexec (configure.ac): Likewise.
19480         * modules/getopt-gnu (configure.ac): Likewise.
19481         * modules/uninorm/u8-normalize (configure.ac): Likewise.
19482         * modules/uninorm/u16-normalize (configure.ac): Likewise.
19483         * modules/uninorm/u32-normalize (configure.ac): Likewise.
19484         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
19485
19486 2010-03-27  Bruno Haible  <bruno@clisp.org>
19487
19488         New module description field 'Comment'.
19489         * gnulib-tool: New option --extract-comment.
19490         (func_usage): Document it.
19491         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
19492         (func_get_comment): New function.
19493         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
19494
19495 2010-03-27  Bruno Haible  <bruno@clisp.org>
19496
19497         Addendum to 2010-02-07 commit.
19498         * gnulib-tool (func_usage): Document --extract-applicability option.
19499
19500 2010-03-27  Bruno Haible  <bruno@clisp.org>
19501
19502         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
19503         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
19504         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
19505         rather than link errors.
19506
19507 2010-03-27  Bruno Haible  <bruno@clisp.org>
19508
19509         Avoid side effects from tests-related modules on the compilation of lib.
19510         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
19511         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
19512         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
19513         parameter. Emit into AM_CPPFLAGS a definition of the designated C
19514         macro.
19515         (func_import): Define a witness macro. Assign it a value that depends
19516         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
19517         tests-related modules.
19518         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
19519         Reported by Jim Meyering.
19520
19521 2010-03-27  Bruno Haible  <bruno@clisp.org>
19522
19523         Factorize common .m4 code.
19524         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
19525         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
19526         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
19527         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
19528         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
19529         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
19530         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
19531         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
19532         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
19533         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
19534         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
19535         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
19536         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
19537         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
19538         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
19539         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
19540         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
19541         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
19542         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
19543         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
19544         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
19545         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
19546         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
19547         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
19548         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
19549         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
19550         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
19551         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
19552         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
19553         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
19554         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
19555         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
19556
19557 2010-03-27  Bruno Haible  <bruno@clisp.org>
19558
19559         Fix a compilation error on Cygwin with g++ >= 4.3.
19560         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
19561         if it is undefined or if we alias it to chmod.
19562         (lstat): Don't warn about the use of this function if it is undefined
19563         or if we alias it to stat.
19564         Reported by Simon Josefsson.
19565
19566 2010-03-27  Bruno Haible  <bruno@clisp.org>
19567
19568         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
19569         * modules/getlogin (configure.ac): Update.
19570
19571         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
19572         * modules/getlogin_r (configure.ac): Update.
19573
19574         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
19575         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
19576         * modules/inet_ntop (configure.ac): Update.
19577
19578         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
19579         * modules/inet_pton (configure.ac): Update.
19580
19581         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
19582         * modules/mbslen (configure.ac): Update.
19583
19584         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
19585         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
19586         * modules/forkpty (configure.ac): Update.
19587         * modules/openpty (configure.ac): Update.
19588
19589 2010-03-26  Simon Josefsson  <simon@josefsson.org>
19590
19591         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
19592         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
19593
19594 2010-03-25  Eric Blake  <eblake@redhat.com>
19595
19596         maint: use pragma consistently across replacement headers
19597         * lib/ctype.in.h (system_header): Hoist for consistent placement.
19598         * lib/dirent.in.h (system_header): Likewise.
19599         * lib/errno.in.h (system_header): Likewise.
19600         * lib/float.in.h (system_header): Likewise.
19601         * lib/getopt.in.h (system_header): Likewise.
19602         * lib/iconv.in.h (system_header): Likewise.
19603         * lib/inttypes.in.h (system_header): Likewise.
19604         * lib/langinfo.in.h (system_header): Likewise.
19605         * lib/locale.in.h (system_header): Likewise.
19606         * lib/math.in.h (system_header): Likewise.
19607         * lib/netdb.in.h (system_header): Likewise.
19608         * lib/netinet_in.in.h (system_header): Likewise.
19609         * lib/pty.in.h (system_header): Likewise.
19610         * lib/sched.in.h (system_header): Likewise.
19611         * lib/se-selinux.in.h (system_header): Likewise.
19612         * lib/search.in.h (system_header): Likewise.
19613         * lib/spawn.in.h (system_header): Likewise.
19614         * lib/stdarg.in.h (system_header): Likewise.
19615         * lib/stdint.in.h (system_header): Likewise.
19616         * lib/string.in.h (system_header): Likewise.
19617         * lib/strings.in.h (system_header): Likewise.
19618         * lib/sys_file.in.h (system_header): Likewise.
19619         * lib/sys_ioctl.in.h (system_header): Likewise.
19620         * lib/sys_socket.in.h (system_header): Likewise.
19621         * lib/sys_times.in.h (system_header): Likewise.
19622         * lib/sys_utsname.in.h (system_header): Likewise.
19623         * lib/sys_wait.in.h (system_header): Likewise.
19624         * lib/sysexits.in.h (system_header): Likewise.
19625         * lib/unistd.in.h (system_header): Likewise.
19626         * lib/wctype.in.h (system_header): Likewise.
19627
19628         arpa/inet: fix mingw compilation warning
19629         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
19630         Reported by Matthew Bolte.
19631
19632 2010-03-25  Bruno Haible  <bruno@clisp.org>
19633
19634         Avoid collision between gnulib wrapper and libintl wrapper.
19635         * lib/printf.c (printf): Don't define if a printf wrapper is already
19636         defined in intl/printf.c.
19637         Reported by Michel Boaventura <michel@michelboaventura.com>.
19638
19639 2010-03-25  Bruno Haible  <bruno@clisp.org>
19640
19641         Use ANSI C.
19642         * lib/readutmp.h (getutent): Provide ANSI C prototype.
19643
19644 2010-03-25  Bruno Haible  <bruno@clisp.org>
19645
19646         Minor formatting changes.
19647         * lib/acosl.c: Insert space before function argument list.
19648         * lib/argz.c: Likewise.
19649         * lib/asinl.c: Likewise.
19650         * lib/expl.c: Likewise.
19651         * lib/gen-uni-tables.c: Likewise.
19652         * lib/gettext.h: Likewise.
19653         * lib/glthread/lock.h: Likewise.
19654         * lib/tanl.c: Likewise.
19655         * lib/uniname/uniname.c: Likewise.
19656         * tests/test-idpriv-drop.c: Likewise.
19657         * tests/test-idpriv-droptemp.c: Likewise.
19658         * tests/test-lock.c: Likewise.
19659         * tests/test-tls.c: Likewise.
19660         * lib/argp-help.c: Insert space before function-like macro argument
19661         list.
19662         * lib/memcmp.c: Likewise.
19663         * tests/test-base64.c: Likewise.
19664         * lib/localename.c: Insert space before sizeof's argument list.
19665         * lib/safe-alloc.h: Likewise.
19666         * lib/file-set.h: Insert space before macro argument list.
19667         * tests/test-argp.c: Likewise.
19668         * lib/argp-namefrob.h: Insert space before function parameter list.
19669         * lib/getaddrinfo.c: Likewise.
19670         * lib/netdb.in.h: Likewise.
19671         * lib/parse-duration.h: Likewise.
19672         * lib/parse-duration.c: Likewise.
19673         * lib/poll.c: Likewise.
19674         * lib/select.c: Likewise.
19675         * lib/trim.h: Likewise.
19676         * tests/test-usleep.c: Likewise.
19677         * lib/ldexpl.c: Insert space before function parameter list and before
19678         function argument list.
19679         * lib/logl.c: Likewise.
19680         * lib/sqrtl.c: Likewise.
19681         * lib/trim.c: Likewise.
19682         * lib/cosl.c: Use GNU style indentation. Insert space before function
19683         argument list.
19684         * lib/sinl.c: Likewise.
19685         * lib/tsearch.c: Insert space after 'for'.
19686         Reported by Jim Meyering.
19687
19688 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
19689
19690         * maint.mk (sc_Wundef_boolean): Check for the presence of the
19691         config header before grepping, as it's not present before
19692         autoreconf/configure are run.  Reported by Simon Josefsson.
19693
19694 2010-03-23  Bruno Haible  <bruno@clisp.org>
19695
19696         pt_chown: Make it work with automake < 1.11.
19697         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
19698         Reported by Simon Josefsson.
19699
19700 2010-03-23  Bruno Haible  <bruno@clisp.org>
19701
19702         pt_chown: Don't depend on GPLed modules.
19703         * lib/pt_chown.c: Don't include idpriv.h.
19704         (main): Don't drop privileges.
19705         * modules/pt_chown (Depends-on): Remove idpriv-drop.
19706         Reported by Simon Josefsson.
19707
19708 2010-03-24  Simon Josefsson  <simon@josefsson.org>
19709
19710         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
19711         suggestions from karl@freefriends.org (Karl Berry).
19712
19713 2010-03-22  Eric Blake  <eblake@redhat.com>
19714
19715         gethostname: further tweaks
19716         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
19717         are overriding gethostname.
19718         Suggested by Bruno Haible.
19719
19720 2010-03-21  Bruno Haible  <bruno@clisp.org>
19721
19722         Fix comments.
19723         * lib/forkpty.c (rpl_forkpty): Fix comment.
19724         * lib/openpty.c (rpl_openpty): Likewise.
19725         Reported by Eric Blake.
19726
19727 2010-03-22  Eric Blake  <eblake@redhat.com>
19728
19729         gethostname: fix build on mingw
19730         * lib/unistd.in.h (includes): Work around fact that mingw
19731         <winsock2.h> re-includes <unistd.h>, by avoiding any
19732         redeclarations if we are being included by <winsock2.h>.
19733         Reported by Matthias Bolte.
19734
19735 2010-03-21  Bruno Haible  <bruno@clisp.org>
19736
19737         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
19738         * lib/forkpty.c (forkpty): New replacement function, from glibc with
19739         modifications.
19740         * lib/pty.in.h (forkpty): Update declaration. Add comments.
19741         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
19742         provide the replacement.
19743         * modules/forkpty (Depends-on): Add openpty, login_tty.
19744         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
19745         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
19746         * doc/glibc-functions/forkpty.texi: More supported platforms.
19747         * config/srclist.txt: Add forkpty.c (commented).
19748
19749 2010-03-21  Bruno Haible  <bruno@clisp.org>
19750
19751         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
19752         (Makefile.am): Verify that PTY_LIB is defined.
19753
19754         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
19755
19756 2010-03-21  Bruno Haible  <bruno@clisp.org>
19757
19758         Tests for module 'login_tty'.
19759         * modules/login_tty-tests: New file.
19760         * tests/test-login_tty.c: New file.
19761
19762         New module 'login_tty'.
19763         * lib/login_tty.c: New file.
19764         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
19765         * modules/login_tty: New file.
19766         * doc/glibc-functions/login_tty.texi: Mention the new module.
19767
19768 2010-03-21  Bruno Haible  <bruno@clisp.org>
19769
19770         login_tty: Documentation.
19771         * doc/glibc-functions/login_tty.texi: New file.
19772         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
19773
19774 2010-03-21  Bruno Haible  <bruno@clisp.org>
19775
19776         pty: Consistent macro naming.
19777         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
19778         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
19779         * modules/pty (configure.ac): Update.
19780
19781 2010-03-21  Bruno Haible  <bruno@clisp.org>
19782
19783         Tests for openpty: Make stricter.
19784         * tests/test-openpty.c (main): Add test of canonical processing and
19785         erase.
19786         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
19787
19788         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
19789         * lib/openpty.c (openpty): New replacement function.
19790         * lib/pty.in.h: Include <termios.h>.
19791         (openpty): Update declaration. Add comments.
19792         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
19793         is not declared, arrange to provide the replacement. Check for _getpty
19794         and posix_openpt.
19795         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
19796         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
19797         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
19798         * modules/pty-tests (test_pty_c___LDADD): New variable.
19799         * doc/glibc-functions/openpty.texi: More supported platforms.
19800
19801 2010-03-21  Bruno Haible  <bruno@clisp.org>
19802
19803         setenv: Tweaks.
19804         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
19805         the test program.
19806         * doc/posix-functions/setenv.texi: Update platforms list.
19807
19808 2010-03-21  Bruno Haible  <bruno@clisp.org>
19809
19810         New module 'unlockpt'.
19811         * lib/unlockpt.c: New file, from glibc with modifications.
19812         * m4/unlockpt.m4: New file.
19813         * modules/unlockpt: New file.
19814         * lib/stdlib.in.h (unlockpt): New declaration.
19815         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
19816         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
19817         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
19818         HAVE_UNLOCKPT.
19819         * doc/posix-functions/unlockpt.texi: Mention the new module.
19820         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
19821         * config/srclist.txt: Add unlockpt.c (commented).
19822
19823 2010-03-21  Jim Meyering  <meyering@redhat.com>
19824
19825         maint.mk: prohibit inclusion of "intprops.h" without use
19826         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
19827
19828 2010-03-21  Bruno Haible  <bruno@clisp.org>
19829
19830         New module 'grantpt'.
19831         * lib/grantpt.c: New file, from glibc with modifications.
19832         * m4/grantpt.m4: New file.
19833         * modules/grantpt: New file.
19834         * lib/stdlib.in.h (grantpt): New declaration.
19835         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
19836         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
19837         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
19838         HAVE_GRANTPT.
19839         * doc/posix-functions/grantpt.texi: Mention the new module.
19840         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
19841         * config/srclist.txt: Add grantpt.c (commented).
19842
19843 2010-03-21  Bruno Haible  <bruno@clisp.org>
19844
19845         New module 'pt_chown'.
19846         * lib/pt_chown.c: New file, from glibc with modifications.
19847         * lib/pty-private.h: New file, from glibc with modifications.
19848         * modules/pt_chown: New file.
19849         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
19850
19851 2010-03-21  Bruno Haible  <bruno@clisp.org>
19852
19853         Tests for module 'ptsname'.
19854         * modules/ptsname-tests: New file.
19855         * tests/test-ptsname.c: New file.
19856
19857         New module 'ptsname'.
19858         * lib/ptsname.c: New file, from glibc with modifications.
19859         * m4/ptsname.m4: New file.
19860         * modules/ptsname: New file.
19861         * lib/stdlib.in.h (ptsname): New declaration.
19862         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
19863         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
19864         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
19865         HAVE_PTSNAME.
19866         * doc/posix-functions/ptsname.texi: Mention the new module.
19867         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
19868         * config/srclist.txt: Add ptsname.c (commented).
19869
19870 2010-03-21  Bruno Haible  <bruno@clisp.org>
19871
19872         Tests for module 'ttyname_r'.
19873         * modules/ttyname_r-tests: New file.
19874         * tests/test-ttyname_r.c: New file.
19875
19876         New module 'ttyname_r'.
19877         * lib/ttyname_r.c: New file.
19878         * m4/ttyname_r.m4: New file.
19879         * modules/ttyname_r: New file.
19880         * lib/unistd.in.h (ttyname_r): New declaration.
19881         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
19882         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
19883         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
19884         HAVE_TTYNAME_R.
19885         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
19886         * doc/posix-functions/ttyname_r.texi: Mention the new module.
19887
19888 2010-03-20  Bruno Haible  <bruno@clisp.org>
19889
19890         signal: Undefine macro definitions in C++ mode.
19891         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
19892         sigfillset): Undefine macro definitions from the system header in C++
19893         mode.
19894         Reported by John W. Eaton <jwe@gnu.org>.
19895
19896 2010-03-20  Bruno Haible  <bruno@clisp.org>
19897
19898         Ensure no #include statements inside extern "C" { ... }.
19899         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
19900         contain #include statements.
19901         * lib/time.in.h: Likewise.
19902
19903 2010-03-20  Bruno Haible  <bruno@clisp.org>
19904
19905         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
19906         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
19907         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
19908         Reported by John W. Eaton <jwe@gnu.org>.
19909
19910 2010-03-20  Bruno Haible  <bruno@clisp.org>
19911
19912         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
19913         Reported by Jim Meyering.
19914
19915 2010-03-20  Bruno Haible  <bruno@clisp.org>
19916
19917         pipe: Set errno upon failure.
19918         * lib/pipe.h: Specify that when -1 is returned, errno is set.
19919         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
19920         errno value in error message.
19921
19922 2010-03-20  Bruno Haible  <bruno@clisp.org>
19923             Jim Meyering  <meyering@redhat.com>
19924
19925         lchown: Avoid "unused variable" warning.
19926         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
19927
19928 2010-03-20  Bruno Haible  <bruno@clisp.org>
19929
19930         Work around unlink() bug on MacOS X 10.5.6.
19931         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
19932         attempting to unlink a parent directory.
19933         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
19934         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
19935         activate for the replacement function.
19936         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
19937
19938 2010-03-20  Bruno Haible  <bruno@clisp.org>
19939
19940         Fix link errors on Solaris 8.
19941         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
19942         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
19943
19944 2010-03-19  Jim Meyering  <meyering@redhat.com>
19945
19946         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
19947         The _LIBC implementation of build_range_exp correctly honors the
19948         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
19949         However, the non-_LIBC implementation would ignore that syntax-bit
19950         flag and return REG_ERANGE unconditionally.
19951         This change makes it honor that flag.
19952         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
19953         Make two pointer parameters "const".
19954         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
19955         (parse_bracket_exp): Update caller.
19956
19957         regex.m4: correct the reversed range endpoint ([b-a]) test
19958         * m4/regex.m4: When requiring that [b-a] evoke failure,
19959         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
19960         test pass once again for x86-based systems.
19961
19962 2010-03-19  Bruno Haible  <bruno@clisp.org>
19963
19964         scandir: Fix link error on Solaris 8.
19965         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
19966         macros.
19967
19968 2010-03-19  Bruno Haible  <bruno@clisp.org>
19969
19970         getusershell: Fix documentation.
19971         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
19972         module.
19973         * doc/glibc-functions/setusershell.texi: Likewise.
19974
19975         getusershell: Provide declaration, missing on Solaris 9.
19976         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
19977         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
19978         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
19979         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
19980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19981         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
19982         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
19983         HAVE_GETUSERSHELL.
19984         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
19985
19986 2010-03-19  Bruno Haible  <bruno@clisp.org>
19987
19988         wctype: Provide iswblank function.
19989         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
19990         exists and is fine.
19991         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
19992         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
19993         * tests/test-wctype.c (main): Re-enable the iswblank tests.
19994         * doc/posix-functions/iswblank.texi: Update.
19995
19996 2010-03-19  Bruno Haible  <bruno@clisp.org>
19997
19998         Tests of module 'pty' in C++ mode.
19999         * modules/pty-tests: New file.
20000         * tests/test-pty-c++.cc: New file.
20001         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20002
20003 2010-03-19  Eric Blake  <eblake@redhat.com>
20004
20005         logb: fix documentation
20006         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
20007         1.5 declaration bug.
20008
20009         forkpty, openpty: prefer glibc's const-safe prototype
20010         * lib/forkpty.c (rpl_forkpty): New file.
20011         * lib/openpty.c (rpl_openpty): Likewise.
20012         * modules/forkpty (Files): Distribute it.
20013         * modules/openpty (Files): Likewise.
20014         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
20015         check...
20016         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
20017         replacement for for non-const BSD signature.
20018         * modules/pty (Makefile.am): Substitute witnesses.
20019         * lib/pty.in.h (forkpty, openpty): Declare replacements.
20020         * tests/test-forkpty.c: Update signature check.
20021         * tests/test-openpty.c: Likewise.
20022         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
20023         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20024
20025         forkpty, openpty: split functions into new modules
20026         * modules/pty (Makefile.am): Substitute new witnesses.
20027         (Libraries): Move library detection...
20028         * modules/forkpty: ...into new module.
20029         * modules/openpty: Another new module.
20030         * modules/pty-tests: Rename and split...
20031         * modules/forkpty-tests: ...to this...
20032         * modules/openpty-tests: ...and this.
20033         * tests/test-pty.c: Rename and split...
20034         * tests/test-forkpty.c: ...to this...
20035         * tests/test-openpty.c: ...and this.
20036         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
20037         (gl_PTY): Split library searching...
20038         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
20039         (gl_FORKPTY, gl_OPENPTY): New macros.
20040         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
20041         * NEWS: Mention the split.
20042         * MODULES.html.sh (Misc): Document the modules.
20043         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
20044         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20045
20046         pty: improve replacement header
20047         * lib/pty.in.h: New file.
20048         * modules/pty (Files): Ship it.
20049         (Makefile.am): Always build replacement.
20050         * m4/pty.m4: Rename...
20051         * m4/pty_h.m4: ...to this.
20052         (gl_PTY): Modernize setting of witness macros; update check of
20053         forkpty to take proper advantage of cache.
20054         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
20055
20056         getopt: avoid compiler warning
20057         * lib/getopt.c (attribute_hidden): Remove unused macro.
20058
20059 2010-03-18  Bruno Haible  <bruno@clisp.org>
20060
20061         Fix link errors on Solaris 8.
20062         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
20063         * modules/search-tests (test_search_c___LDADD): Likewise.
20064         * modules/signal-tests (test_signal_c___LDADD): Likewise.
20065         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
20066         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
20067         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
20068         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
20069         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
20070         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
20071
20072 2010-03-18  Bruno Haible  <bruno@clisp.org>
20073
20074         Fix bug introduced on 2010-03-14.
20075         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
20076         (gl_SPAWN_H): Require it.
20077         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
20078         Reported by Simon Josefsson.
20079
20080 2010-03-18  Bruno Haible  <bruno@clisp.org>
20081
20082         Fix typo introduced on 2009-12-31.
20083         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
20084         posix_spawn_file_actions_adddup2.
20085
20086 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
20087         and Eric Blake  <eblake@redhat.com>
20088
20089         test-vc-list-files-git: make more robust
20090         * tests/test-vc-list-files-git.sh: Unset problematic environment
20091         variables.  Chain commands together.
20092
20093 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
20094
20095         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
20096         `AC_CHECK_DECL' invocation.
20097
20098 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
20099
20100         * lib/inttostr.c (inttostr): Make sure the invocation of verify
20101         appears before executable statements. Suggested by Petr Sumbera
20102         <Petr.Sumbera@Sun.COM>.
20103
20104 2010-03-14  Bruno Haible  <bruno@clisp.org>
20105
20106         * tests/test-flock.c (test_exclusive): Comment out a test that causes
20107         portability problems. Instead use a simpler test.
20108         (main): Check that invalid arguments are rejected only on Linux.
20109
20110 2010-03-14  Bruno Haible  <bruno@clisp.org>
20111
20112         Fix bug introduced on 2009-12-31.
20113         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20114         gl_PREREQ_SYS_H_WINSOCK2 always.
20115         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
20116         SYS_SOCKET_H variable.
20117         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
20118         Update comments.
20119         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
20120         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20121         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20122         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20123         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
20124
20125 2010-03-14  Bruno Haible  <bruno@clisp.org>
20126
20127         Fix values returned by sinl, cosl.
20128         * lib/trigl.h: Add specification comments.
20129         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
20130         that combines the values from the precomputed table with the values of
20131         the Chebyshev polynomials.
20132
20133 2010-03-14  Bruno Haible  <bruno@clisp.org>
20134
20135         Fix compilation error when modules 'posix_spawn[p]' are not used.
20136         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
20137         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
20138
20139 2010-03-14  Bruno Haible  <bruno@clisp.org>
20140
20141         Fix compilation error on mingw when module 'time_r' is not used.
20142         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
20143         is 1.
20144         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
20145         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20146         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
20147         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
20148
20149 2010-03-14  Bruno Haible  <bruno@clisp.org>
20150
20151         Fix compilation error with Sun C.
20152         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
20153         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
20154         instead of GCC specific ULONG_LONG_MAX.
20155         * lib/xstrtoll.c: Likewise.
20156         * lib/xstrtoull.c: Likewise.
20157
20158 2010-03-13  Bruno Haible  <bruno@clisp.org>
20159
20160         Allow the user to disable C++ code and tests.
20161         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
20162         (gl_PROG_ANSI_CXX): Require it.
20163
20164 2010-03-13  Bruno Haible  <bruno@clisp.org>
20165
20166         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
20167         cases.
20168
20169 2010-03-13  Bruno Haible  <bruno@clisp.org>
20170
20171         Test that gnulib does not break the standard C++ headers.
20172         * tests/test-locale-c++2.cc: New file.
20173         * modules/locale-tests (Files): Add it.
20174         (Makefile.am): Compile it for test-locale-c++.
20175         * tests/test-math-c++2.cc: New file.
20176         * modules/math-tests (Files): Add it.
20177         (Makefile.am): Compile it for test-math-c++.
20178         * tests/test-signal-c++2.cc: New file.
20179         * modules/signal-tests (Files): Add it.
20180         (Makefile.am): Compile it for test-signal-c++.
20181         * tests/test-stdio-c++2.cc: New file.
20182         * modules/stdio-tests (Files): Add it.
20183         (Makefile.am): Compile it for test-stdio-c++.
20184         * tests/test-stdlib-c++2.cc: New file.
20185         * modules/stdlib-tests (Files): Add it.
20186         (Makefile.am): Compile it for test-stdlib-c++.
20187         * tests/test-string-c++2.cc: New file.
20188         * modules/string-tests (Files): Add it.
20189         (Makefile.am): Compile it for test-string-c++.
20190         * tests/test-time-c++2.cc: New file.
20191         * modules/time-tests (Files): Add it.
20192         (Makefile.am): Compile it for test-time-c++.
20193         Reported by John W. Eaton <jwe@gnu.org>.
20194
20195 2010-03-13  Bruno Haible  <bruno@clisp.org>
20196
20197         * gnulib-tool (func_usage): Clarify which options are available for
20198         --create-testdir and --create-megatestdir.
20199
20200 2010-03-13  Bruno Haible  <bruno@clisp.org>
20201
20202         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
20203         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
20204         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
20205         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20206         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
20207         when appropriate.
20208         Reported by Jim Meyering.
20209
20210 2010-03-12  Simon Josefsson  <simon@josefsson.org>
20211
20212         * gnulib-tool (func_import): Explain origin of code.
20213
20214 2010-03-12  Bruno Haible  <bruno@clisp.org>
20215
20216         Fix problem with automake's definition of CXXLINK.
20217         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
20218         Reported by Simon Josefsson and Ludovic Courtès.
20219
20220 2010-03-12  Bruno Haible  <bruno@clisp.org>
20221
20222         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
20223         stable releases.
20224
20225 2010-03-11  Bruno Haible  <bruno@clisp.org>
20226
20227         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
20228         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
20229         whether the system provides one variant or multiple variants of the
20230         function.
20231         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
20232         C++ compilers.
20233         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
20234         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
20235         Reported by Jim Meyering.
20236
20237 2010-03-09  Simon Josefsson  <simon@josefsson.org>
20238
20239         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
20240
20241 2010-03-08  Bruno Haible  <bruno@clisp.org>
20242
20243         gnulib-tool: Add support for --libtool in --create-testdir.
20244         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
20245         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
20246
20247 2010-03-08  Eric Blake  <eblake@redhat.com>
20248
20249         gnulib-tool.texi: mention possibility of git submodule
20250         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
20251         submodules.
20252         * doc/.gitignore: Ignore another generated file.
20253
20254 2010-03-08  Karl Berry  <karl@gnu.org>
20255
20256         * doc/gnulib-tool.texi (VCS Issues): Mention third option
20257         of committing gnulib files while skipping others.
20258
20259 2010-03-07  Bruno Haible  <bruno@clisp.org>
20260
20261         Tests of module 'wctype' in C++ mode.
20262         * tests/test-wctype-c++.cc: New file.
20263         * modules/wctype-tests (Files): Add it and tests/signature.h.
20264         (Depends-on): Add ansi-c++-opt.
20265         (Makefile.am): Arrange to compile and run test-wctype-c++.
20266
20267         Tests of module 'wchar' in C++ mode.
20268         * tests/test-wchar-c++.cc: New file.
20269         * modules/wchar-tests (Files): Add it and tests/signature.h.
20270         (Depends-on): Add ansi-c++-opt.
20271         (Makefile.am): Arrange to compile and run test-wchar-c++.
20272         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
20273         gl_MODULE_INDICATOR.
20274
20275         Tests of module 'unistd' in C++ mode.
20276         * tests/test-unistd-c++.cc: New file.
20277         * modules/unistd-tests (Files): Add it and tests/signature.h.
20278         (Depends-on): Add ansi-c++-opt.
20279         (Makefile.am): Arrange to compile and run test-unistd-c++.
20280         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
20281         gl_MODULE_INDICATOR.
20282
20283         Tests of module 'time' in C++ mode.
20284         * tests/test-time-c++.cc: New file.
20285         * modules/time-tests (Files): Add it and tests/signature.h.
20286         (Depends-on): Add ansi-c++-opt.
20287         (Makefile.am): Arrange to compile and run test-time-c++.
20288         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20289
20290         Tests of module 'sys_time' in C++ mode.
20291         * tests/test-sys_time-c++.cc: New file.
20292         * modules/sys_time-tests (Files): Add it and tests/signature.h.
20293         (Depends-on): Add ansi-c++-opt.
20294         (Makefile.am): Arrange to compile and run test-sys_time-c++.
20295         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
20296         gl_MODULE_INDICATOR.
20297
20298         Tests of module 'sys_stat' in C++ mode.
20299         * tests/test-sys_stat-c++.cc: New file.
20300         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
20301         (Depends-on): Add ansi-c++-opt.
20302         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
20303         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
20304         gl_MODULE_INDICATOR.
20305
20306         Tests of module 'sys_socket' in C++ mode.
20307         * tests/test-sys_socket-c++.cc: New file.
20308         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
20309         (Depends-on): Add ansi-c++-opt.
20310         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
20311         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
20312         gl_MODULE_INDICATOR.
20313
20314         Tests of module 'sys_select' in C++ mode.
20315         * tests/test-sys_select-c++.cc: New file.
20316         * modules/sys_select-tests (Files): Add it and tests/signature.h.
20317         (Depends-on): Add ansi-c++-opt.
20318         (Makefile.am): Arrange to compile and run test-sys_select-c++.
20319         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
20320         gl_MODULE_INDICATOR.
20321
20322         Tests of module 'sys_ioctl' in C++ mode.
20323         * tests/test-sys_ioctl-c++.cc: New file.
20324         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
20325         (Depends-on): Add ansi-c++-opt.
20326         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
20327         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
20328         gl_MODULE_INDICATOR.
20329
20330         Tests of module 'string' in C++ mode.
20331         * tests/test-string-c++.cc: New file.
20332         * modules/string-tests (Files): Add it and tests/signature.h.
20333         (Depends-on): Add ansi-c++-opt.
20334         (Makefile.am): Arrange to compile and run test-string-c++.
20335         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
20336         gl_MODULE_INDICATOR.
20337
20338         Tests of module 'stdlib' in C++ mode.
20339         * tests/test-stdlib-c++.cc: New file.
20340         * modules/stdlib-tests (Files): Add it and tests/signature.h.
20341         (Depends-on): Add ansi-c++-opt.
20342         (Makefile.am): Arrange to compile and run test-stdlib-c++.
20343         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
20344         gl_MODULE_INDICATOR.
20345
20346         Tests of module 'stdio' in C++ mode.
20347         * tests/test-stdio-c++.cc: New file.
20348         * modules/stdio-tests (Files): Add it and tests/signature.h.
20349         (Depends-on): Add ansi-c++-opt.
20350         (Makefile.am): Arrange to compile and run test-stdio-c++.
20351         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
20352         gl_MODULE_INDICATOR.
20353
20354         Tests of module 'spawn' in C++ mode.
20355         * tests/test-spawn-c++.cc: New file.
20356         * modules/spawn-tests (Files): Add it and tests/signature.h.
20357         (Depends-on): Add ansi-c++-opt.
20358         (Makefile.am): Arrange to compile and run test-spawn-c++.
20359         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
20360         gl_MODULE_INDICATOR.
20361
20362         Tests of module 'signal' in C++ mode.
20363         * tests/test-signal-c++.cc: New file.
20364         * modules/signal-tests (Files): Add it and tests/signature.h.
20365         (Depends-on): Add ansi-c++-opt.
20366         (Makefile.am): Arrange to compile and run test-signal-c++.
20367         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
20368         gl_MODULE_INDICATOR.
20369
20370         Tests of module 'search' in C++ mode.
20371         * tests/test-search-c++.cc: New file.
20372         * modules/search-tests (Files): Add it and tests/signature.h.
20373         (Depends-on): Add ansi-c++-opt.
20374         (Makefile.am): Arrange to compile and run test-search-c++.
20375         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
20376         gl_MODULE_INDICATOR.
20377
20378         Tests of module 'math' in C++ mode.
20379         * tests/test-math-c++.cc: New file.
20380         * modules/math-tests (Files): Add it and tests/signature.h.
20381         (Depends-on): Add ansi-c++-opt.
20382         (Makefile.am): Arrange to compile and run test-math-c++.
20383         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20384
20385         Tests of module 'locale' in C++ mode.
20386         * tests/test-locale-c++.cc: New file.
20387         * modules/locale-tests (Files): Add it and tests/signature.h.
20388         (Depends-on): Add ansi-c++-opt.
20389         (Makefile.am): Arrange to compile and run test-locale-c++.
20390         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
20391         gl_MODULE_INDICATOR.
20392
20393         Tests of module 'langinfo' in C++ mode.
20394         * tests/test-langinfo-c++.cc: New file.
20395         * modules/langinfo-tests (Files): Add it and tests/signature.h.
20396         (Depends-on): Add ansi-c++-opt.
20397         (Makefile.am): Arrange to compile and run test-langinfo-c++.
20398         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
20399         gl_MODULE_INDICATOR.
20400
20401         Tests of module 'iconv-h' in C++ mode.
20402         * tests/test-iconv-h-c++.cc: New file.
20403         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
20404         (Depends-on): Add ansi-c++-opt.
20405         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
20406
20407         Tests of module 'glob' in C++ mode.
20408         * tests/test-glob-c++.cc: New file.
20409         * modules/glob-tests (Files): Add it.
20410         (Depends-on): Add ansi-c++-opt.
20411         (Makefile.am): Arrange to compile and run test-glob-c++.
20412
20413         Tests of module 'fcntl-h' in C++ mode.
20414         * tests/test-fcntl-h-c++.cc: New file.
20415         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
20416         (Depends-on): Add ansi-c++-opt.
20417         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
20418         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
20419         gl_MODULE_INDICATOR.
20420
20421         Tests of module 'dirent' in C++ mode.
20422         * tests/test-dirent-c++.cc: New file.
20423         * modules/dirent-tests (Files): Add it and tests/signature.h.
20424         (Depends-on): Add ansi-c++-opt.
20425         (Makefile.am): Arrange to compile and run test-dirent-c++.
20426         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
20427         gl_MODULE_INDICATOR.
20428
20429         New module 'ansi-c++-opt'.
20430         * modules/ansi-c++-opt: New file.
20431         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
20432
20433         Document C++ namespace mode.
20434         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
20435
20436         wctype: Avoid #define replacements in C++ mode.
20437         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
20438         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
20439         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
20440         In C++, define a namespaced alias symbol.
20441         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
20442         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
20443         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
20444         rule.
20445
20446         wchar: Avoid #define replacements in C++ mode.
20447         * lib/wchar.in.h: Include c++defs.h.
20448         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
20449         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
20450         symbol.
20451         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
20452         * modules/wchar (Depends-on): Add c++defs.
20453         (Makefile.am): Update wchar.h rule.
20454
20455         unistd: Avoid #define replacements in C++ mode.
20456         * lib/unistd.in.h: Include c++defs.h.
20457         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
20458         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
20459         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
20460         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
20461         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
20462         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
20463         symbol.
20464         (environ): Update.
20465         * modules/unistd (Depends-on): Add c++defs.
20466         (Makefile.am): Update unistd.h rule.
20467
20468         time: Avoid #define replacements in C++ mode.
20469         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
20470         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
20471         define a namespaced alias symbol.
20472         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
20473         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
20474         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
20475         * modules/time (Depends-on): Add c++defs, warn-on-use.
20476         (Makefile.am): Update time.h rule.
20477         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20478         * modules/nanosleep (configure.ac): Likewise.
20479         * modules/strptime (configure.ac): Likewise.
20480         * modules/timegm (configure.ac): Likewise.
20481
20482         sys_time: Avoid #define replacements in C++ mode.
20483         * lib/sys_time.in.h: Include c++defs.h.
20484         (gettimeofday): In C++, define a namespaced alias symbol.
20485         * modules/sys_time (Depends-on): Add c++defs.
20486         (Makefile.am): Update sys/time.h rule.
20487
20488         sys_stat: Avoid #define replacements in C++ mode.
20489         * lib/sys_stat.in.h: Include c++defs.h.
20490         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
20491         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
20492         namespaced alias symbol.
20493         In C++, define a namespaced alias symbol.
20494         * modules/sys_stat (Depends-on): Add c++defs.
20495         (Makefile.am): Update sys/stat.h rule.
20496
20497         sys_socket: Avoid #define replacements in C++ mode.
20498         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
20499         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
20500         definitions also when the system has a <sys/socket.h>.
20501         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20502         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
20503         In C++, define a namespaced alias symbol.
20504         * modules/sys_socket (Depends-on): Add c++defs.
20505         (Makefile.am): Update sys/socket.h rule.
20506
20507         sys_select: Avoid #define replacements in C++ mode.
20508         * lib/sys_select.in.h: Include c++defs.h. Enable the function
20509         definitions also when the system has a <sys/select.h>.
20510         (select): In C++, define a namespaced alias symbol.
20511         * modules/sys_select (Depends-on): Add c++defs.
20512         (Makefile.am): Update sys/select.h rule.
20513
20514         sys_ioctl: Avoid #define replacements in C++ mode.
20515         * lib/sys_ioctl.in.h: Include c++defs.h.
20516         (ioctl): In C++, define a namespaced alias symbol.
20517         * modules/sys_ioctl (Depends-on): Add c++defs.
20518         (Makefile.am): Update sys/ioctl.h rule.
20519
20520         string: Avoid #define replacements in C++ mode.
20521         * lib/string.in.h: Include c++defs.h.
20522         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
20523         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
20524         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
20525         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
20526         strsignal, strverscmp): In C++, define a namespaced alias symbol.
20527         * modules/string (Depends-on): Add c++defs.
20528         (Makefile.am): Update string.h rule.
20529
20530         stdlib: Avoid #define replacements in C++ mode.
20531         * lib/stdlib.in.h: Include c++defs.h.
20532         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
20533         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
20534         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
20535         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
20536         symbol.
20537         * modules/stdlib (Depends-on): Add c++defs.
20538         (Makefile.am): Update stdlib.h rule.
20539
20540         stdio: Avoid #define replacements in C++ mode.
20541         * lib/stdio.in.h: Include c++defs.h.
20542         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
20543         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
20544         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
20545         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
20546         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
20547         namespaced alias symbol.
20548         * modules/stdio (Depends-on): Add c++defs.
20549         (Makefile.am): Update stdio.h rule.
20550
20551         spawn: Avoid #define replacements in C++ mode.
20552         * lib/spawn.in.h: Include c++defs.h.
20553         (posix_spawn, posix_spawnp, posix_spawnattr_init,
20554         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
20555         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
20556         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
20557         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
20558         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
20559         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
20560         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
20561         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
20562         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
20563         In C++, define a namespaced alias symbol.
20564         * modules/spawn (Depends-on): Add c++defs.
20565         (Makefile.am): Update spawn.h rule.
20566
20567         signal: Avoid #define replacements in C++ mode.
20568         * lib/signal.in.h: Include c++defs.h.
20569         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
20570         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
20571         namespaced alias symbol.
20572         * modules/signal (Depends-on): Add c++defs.
20573         (Makefile.am): Update signal.h rule.
20574
20575         search: Avoid #define replacements in C++ mode.
20576         * lib/search.in.h: Include c++defs.h.
20577         (_gl_search_compar_fn, _gl_search_action_fn): New types.
20578         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
20579         symbol.
20580         * modules/search (Depends-on): Add c++defs.
20581         (Makefile.am): Update search.h rule.
20582
20583         math: Avoid #define replacements in C++ mode.
20584         * lib/math.in.h: Include c++defs.h.
20585         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
20586         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
20587         trunc, truncl): In C++, define a namespaced alias symbol.
20588         * modules/math (Depends-on): Add c++defs.
20589         (Makefile.am): Update math.h rule.
20590
20591         locale: Avoid #define replacements in C++ mode.
20592         * lib/locale.in.h: Include c++defs.h.
20593         (duplocale): In C++, define a namespaced alias symbol.
20594         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
20595         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
20596         * modules/locale (Depends-on): Add c++defs.
20597         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
20598
20599         langinfo: Avoid #define replacements in C++ mode.
20600         * lib/langinfo.in.h: Include c++defs.h.
20601         (nl_langinfo): In C++, define a namespaced alias symbol.
20602         * modules/langinfo (Depends-on): Add c++defs.
20603         (Makefile.am): Update langinfo.h rule.
20604
20605         iconv-h: Avoid #define replacements in C++ mode.
20606         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
20607         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
20608         symbol.
20609         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
20610         whenever iconv is present.
20611         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
20612         (Makefile.am): Update iconv.h rule.
20613
20614         glob: Avoid #define replacements in C++ mode.
20615         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
20616         (_gl_glob_errfunc_fn): New type.
20617         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
20618         symbol.
20619         * modules/glob (Depends-on): Add c++defs, warn-on-use.
20620         (Makefile.am): Update glob.h rule.
20621
20622         fcntl-h: Avoid #define replacements in C++ mode.
20623         * lib/fcntl.in.h: Include c++defs.h.
20624         (fcntl, open, openat): In C++, define a namespaced alias symbol.
20625         * modules/fcntl-h (Depends-on): Add c++defs.
20626         (Makefile.am): Update fcntl.h rule.
20627
20628         dirent: Avoid #define replacements in C++ mode.
20629         * lib/dirent.in.h: Include c++defs.h.
20630         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
20631         namespaced alias symbol.
20632         (dirfd): Update declaration.
20633         * modules/dirent (Depends-on): Add c++defs.
20634         (Makefile.am): Update dirent.h rule.
20635
20636         ctype: Make it usable in C++ code.
20637         * lib/ctype.in.h: Include c++defs.h.
20638         (isblank): Declare as extern "C".
20639         * modules/ctype (Depends-on): Add c++defs.
20640         (Makefile.am): Update ctype.h rule.
20641
20642         New module 'c++defs'.
20643         * modules/c++defs: New file.
20644         * build-aux/c++defs.h: New file.
20645         Reported by John W. Eaton <jwe@gnu.org>.
20646
20647 2010-03-07  Bruno Haible  <bruno@clisp.org>
20648
20649         logb: Provide missing declaration for Cygwin.
20650         * lib/math.in.h (logb): New declaration.
20651         * m4/logb.m4: New file.
20652         * modules/logb (Files): Add m4/logb.m4.
20653         (Depends-on): Add math.
20654         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
20655         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
20656         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
20657         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
20658         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
20659
20660 2010-03-07  Bruno Haible  <bruno@clisp.org>
20661
20662         Fix test-cond link error.
20663         * tests/test-cond.c: Include <stdio.h>.
20664
20665 2010-03-07  Bruno Haible  <bruno@clisp.org>
20666
20667         Fix test-dirent-safer link error.
20668         * modules/dirent-safer-tests (Makefile.am): Define
20669         test_dirent_safer_LDADD.
20670
20671 2010-03-07  Bruno Haible  <bruno@clisp.org>
20672
20673         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
20674         among default module list.
20675
20676 2010-03-07  Bruno Haible  <bruno@clisp.org>
20677
20678         Fix link error on platforms with GNU libiconv.
20679         * modules/unistr/u8-strcoll-tests (Makefile): Define
20680         test_u8_strcoll_LDADD.
20681         * modules/unistr/u16-strcoll-tests (Makefile): Define
20682         test_u16_strcoll_LDADD.
20683         * modules/unistr/u32-strcoll-tests (Makefile): Define
20684         test_u32_strcoll_LDADD.
20685
20686 2010-03-07  Bruno Haible  <bruno@clisp.org>
20687
20688         Use POSIX declarations for socket functions.
20689         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
20690         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
20691         rpl_sendto): Change declaration to match POSIX.
20692         * lib/connect.c (rpl_connect): Likewise.
20693         * lib/accept.c (rpl_accept): Likewise.
20694         * lib/bind.c (rpl_bind): Likewise.
20695         * lib/getpeername.c (rpl_getpeername): Likewise.
20696         * lib/getsockname.c (rpl_getsockname): Likewise.
20697         * lib/recv.c (rpl_recv): Likewise.
20698         * lib/send.c (rpl_send): Likewise.
20699         * lib/recvfrom.c (rpl_recvfrom): Likewise.
20700         * lib/sendto.c (rpl_sendto): Likewise.
20701
20702 2010-03-06  Bruno Haible  <bruno@clisp.org>
20703
20704         Clarify access, euidaccess, faccessat.
20705         * doc/posix-functions/faccessat.texi: Mention security problem under
20706         "Other problems", not "Portability problems".
20707         * doc/posix-functions/access.texi: Likewise. Mention a related security
20708         problem.
20709         * doc/glibc-functions/euidaccess.texi: Mention security problems.
20710         * lib/euidaccess.c: Add comments about platforms.
20711         * lib/unistd.in.h (access, euidaccess): Add warnings.
20712
20713 2010-03-07  Bruno Haible  <bruno@clisp.org>
20714
20715         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
20716         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
20717         (POSIX_SPAWN_SETSCHEDULER): Likewise.
20718         (POSIX_SPAWN_USEVFORK): Define in a way that works when
20719         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
20720         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
20721         declare when POSIX_SPAWN_SETSCHEDULER is zero.
20722         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
20723         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
20724         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
20725         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
20726         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
20727         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
20728         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
20729         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
20730         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
20731         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
20732         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
20733         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
20734         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
20735         Likewise.
20736         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
20737         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
20738         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
20739         Likewise.
20740         * tests/test-spawn.c (main): Make it work when
20741         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
20742
20743 2010-03-07  Bruno Haible  <bruno@clisp.org>
20744
20745         Fix incorrect Makefile.am generation in German locale.
20746         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20747         Execute sed command with character range in C locale.
20748
20749 2010-03-06  Bruno Haible  <bruno@clisp.org>
20750
20751         Tests for module 'iconv-h'.
20752         * modules/iconv-h-tests: New file.
20753         * tests/test-iconv-h.c: New file.
20754
20755         New module 'iconv-h'.
20756         * modules/iconv-h: New file.
20757         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
20758         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
20759         (configure.ac): Remove gl_ICONV_H.
20760         (Makefile.am): Remove rule for iconv.h.
20761
20762 2010-03-06  Bruno Haible  <bruno@clisp.org>
20763
20764         More consistent naming of *.m4 files.
20765         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
20766         * modules/wctype (Files): Update.
20767
20768         More consistent naming of *.m4 files.
20769         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
20770         * modules/wchar (Files): Update.
20771
20772 2010-03-06  Jim Meyering  <meyering@redhat.com>
20773
20774         euidaccess: relax license to LGPLv2+
20775         * modules/euidaccess (License): Relax to LGPLv2+.
20776
20777 2010-03-06  Bruno Haible  <bruno@clisp.org>
20778
20779         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
20780         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
20781         (Makefile.am): Augment lib_SOURCES instead.
20782
20783 2010-03-04  Jim Meyering  <meyering@redhat.com>
20784
20785         utime: remove obsolete module
20786         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
20787         unnecessary for years, and has been marked as obsolete for 10 months.
20788         * modules/utime: Remove file.
20789         * lib/utime.c: Remove file.
20790         * m4/utime.m4: Remove file.
20791         * m4/utimes-null.m4: Remove file.
20792         * doc/posix-functions/utime.texi (utime): Remove reference to
20793         the module.  Move the sole "fixed by gnulib" item into the
20794         "problems not fixed by Gnulib" list.
20795         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
20796
20797 2010-03-05  Simon Josefsson  <simon@josefsson.org>
20798
20799         * modules/exit (License): Relax license to LGPLv2+.
20800         (Status): Mark as obsolete.
20801         * NEWS: Mention deprecated 'exit' module.
20802         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
20803         of now obsolete 'exit'.
20804
20805 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20806
20807         fts-lgpl: remove unused module
20808         * modules/fts-lgpl: Remove.
20809         * MODULES.html.sh (func_all_modules): Adjust.
20810         * check-module (find_included_lib_files): Adjust.
20811         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
20812
20813 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
20814
20815         copy-acl: enhance Solaris ACL error handling
20816         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
20817         * lib/set-mode-acl.c (qset_acl): Likewise.
20818
20819 2010-03-02  Bruno Haible  <bruno@clisp.org>
20820
20821         spawn: Don't override the system defined values on FreeBSD 8.
20822         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
20823         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
20824         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
20825         if HAVE_POSIX_SPAWN is 1.
20826         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
20827
20828 2010-03-01  Bruno Haible  <bruno@clisp.org>
20829
20830         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
20831         regarding Automake.
20832
20833 2010-02-25  Bruno Haible  <bruno@clisp.org>
20834
20835         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
20836         * gnulib-tool: Define 'echo' as a function only before the ksh alias
20837         setting, not afterwards.
20838         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
20839
20840 2010-02-24  Eric Blake  <eblake@redhat.com>
20841
20842         bootstrap, git-version-gen: use timestamp
20843         * build-aux/git-version-gen (scriptversion): Force UTC.
20844         * build-aux/bootstrap (scriptversion): New variable.
20845
20846         bootstrap: allow older git
20847         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
20848         older than 1.6.4.  Requested by the libvirt project.
20849
20850 2010-02-23  Eric Blake  <eblake@redhat.com>
20851
20852         warn-on-use: work with old autoconf
20853         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
20854         AS_VAR semantics of autoconf 2.60.
20855         Reported by Bruno Haible.
20856
20857         bootstrap: improve some comments
20858         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
20859         clarification comments.
20860
20861         gettimeofday: provide correct function
20862         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
20863         when replacement is declared, otherwise provide gettimeofday.
20864         Reported by Michael Goffioul.
20865
20866 2010-02-23  Jim Meyering  <meyering@redhat.com>
20867
20868         lib-ignore: relax license to "unlimited", not LGPLv2+
20869         * modules/lib-ignore (License): Relax to "unlimited".
20870
20871 2010-02-23  Jim Meyering  <meyering@redhat.com>
20872
20873         lib-ignore: relax license to LGPLv2+
20874         * modules/lib-ignore (License): Relax to LGPLv2+.
20875
20876 2010-02-22  Eric Blake  <eblake@redhat.com>
20877
20878         lseek: avoid bash 3.2 broken pipe bug
20879         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
20880         warning from bash 3.2.
20881         Reported by Ben Pfaff, with analysis from Bruno Haible.
20882
20883         bootstrap: support non-FSF copyright holder
20884         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
20885         bootstrap.conf override of COPYRIGHT_HOLDER.
20886         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
20887
20888         bootstrap: interoperate with gettext 0.14.1
20889         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
20890
20891         bootstrap: allow for alternate submodule location
20892         * build-aux/bootstrap (gnulib_path): New variable; use instead of
20893         hardcoding submodule location.
20894         (gnulib_mk): Allow direct use of Makefile.am.
20895
20896         bootstrap: use GNULIB_SRCDIR to reduce disk usage
20897         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
20898         rather than reconfiguring where the submodule points.
20899
20900         gettimeofday: restore support for platforms that lack function
20901         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
20902         replacement if function is missing.
20903         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
20904         * modules/sys_time (Makefile.am): Substitute it.
20905         * lib/sys_time.in.h (gettimeofday): Check it.
20906         Reported by Michael Goffioul.
20907
20908 2010-02-21  Bruno Haible  <bruno@clisp.org>
20909
20910         * lib/stdio.in.h (obstack_printf): Fix typo.
20911
20912 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
20913
20914         vc-list-files: use bzr ls's -R option
20915         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
20916         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
20917
20918 2010-02-21  Jim Meyering  <meyering@redhat.com>
20919
20920         init.sh: fix EXEEXT shims to work also for names like test-prog
20921         * tests/init.sh: Re-exec a better shell, when needed.
20922         If the current shell lacks support for posix $(...), an init.sh-using
20923         test will now try to find a shell that supports that.  If EXEEXT is
20924         nonempty, we also require support for hyphen-in-alias-name and shell
20925         substitutions like ${var#glob}.  Failure to find such a shell results
20926         in a skipped test.
20927
20928 2010-02-21  Bruno Haible  <bruno@clisp.org>
20929
20930         Really work around around "broken pipe" error message from bash 3.2.
20931         * gnulib-tool (func_reset_sigpipe): Remove function.
20932         (echo): In bash 3.2, define to a function that uses printf.
20933         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
20934
20935 2010-02-20  Bruno Haible  <bruno@clisp.org>
20936
20937         Restore support for automake 1.9.6 with autoconf 2.61.
20938         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
20939         Reported by James Youngman <jay@gnu.org>.
20940
20941 2010-02-20  Bruno Haible  <bruno@clisp.org>
20942
20943         Improve *printf warning condition.
20944         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
20945         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
20946         and the function is overridden due to SIGPIPE emulation.
20947
20948 2010-02-20  Bruno Haible  <bruno@clisp.org>
20949
20950         * lib/stdio.in.h: Tweak comments.
20951
20952 2010-02-19  Bruno Haible  <bruno@clisp.org>
20953
20954         Make it easier to find modules. New gnulib-tool option '--find'.
20955         * gnulib-tool: New option --find.
20956         (func_usage): Document it.
20957         (func_sanitize_modulelist): New function, extracted from
20958         func_all_modules.
20959         (func_all_modules): Invoke it.
20960         * doc/gnulib-tool.texi (Which modules?): New node.
20961
20962 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
20963
20964         * lib/sys_select.in.h: Provide select replacement even if
20965         sys/select.h exists on a system, for Interix.
20966
20967 2010-02-18  Jim Meyering  <meyering@redhat.com>
20968
20969         init.sh: don't use $(...) just yet
20970         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
20971         to accommodate e.g., Solaris' /bin/sh.
20972
20973 2010-02-17  Bruno Haible  <bruno@clisp.org>
20974
20975         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
20976         Reported by Ludovic Courtès <ludo@gnu.org>.
20977
20978 2010-02-16  Simon Josefsson  <simon@josefsson.org>
20979
20980         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
20981         linking with -lintl.
20982
20983 2010-02-17  Simon Josefsson  <simon@josefsson.org>
20984
20985         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
20986         if not provided by the system's netdb.h.  Reported by
20987         ludo@gnu.org (Ludovic Courtès).
20988
20989 2010-02-15  Jim Meyering  <meyering@redhat.com>
20990
20991         init.sh: improve portability and efficiency
20992         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
20993         "dummy" in a for loop.
20994         Use '!', not '^' to select the complement of a character set used
20995         in a "case" statement.
20996         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
20997         Suggestions from Eric Blake.
20998
20999         init.sh: automatically accommodate programs with the .exe suffix
21000         Automatically arrange for an invocation of "prog" to execute the
21001         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
21002         may use the simpler "prog", yet still work when built on a system
21003         that requires specifying the added suffix.
21004         Do this by constructing a function named "prog" that invokes
21005         "prog.exe" for each .exe file in selected directories.
21006         * tests/init.sh (find_exe_basenames_): New function.
21007         (create_exe_shim_functions_): New function.
21008         (path_prepend_): Use it.
21009
21010         maint.mk: mark syntax-check sc_*.m rules as .PHONY
21011         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
21012         "make -t syntax-check" doesn't create a ton of sc_*.m files.
21013
21014 2010-02-14  Jim Meyering  <meyering@redhat.com>
21015
21016         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
21017         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
21018         (sc_prohibit_hash_pjw_without_use): New rule.
21019
21020         maint.mk: allow the default upload destination dir to be overridden
21021         * top/maint.mk (upload_dest_dir_): Define with a default that
21022         preserves the status quo.
21023         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
21024         Reported by Peter Simons.
21025
21026         maint.mk: prohibit inclusion of "hash.h" without_use
21027         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
21028
21029 2010-02-10  Jim Meyering  <meyering@redhat.com>
21030
21031         maint.mk: prohibit inclusion of "ignore-value.h" without_use
21032         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
21033
21034 2010-02-09  Eric Blake  <ebb9@byu.net>
21035         and Bruno Haible  <bruno@clisp.org>
21036
21037         obstack-printf-posix: ensure declaration
21038         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
21039         extracted from gl_FUNC_OBSTACK_PRINTF.
21040         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
21041         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21042         Likewise.
21043         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
21044         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
21045         0.
21046
21047 2010-02-08  Bruno Haible  <bruno@clisp.org>
21048
21049         gnulib-tool: Fix typo in 2010-02-07 commit.
21050         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
21051         Reported by Eric Blake.
21052
21053 2010-02-07  Bruno Haible  <bruno@clisp.org>
21054
21055         gnulib-tool: Fix up caching patches.
21056         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
21057         option --no-cache. Use associative arrays when supported by the shell.
21058         (sed_comments): New variable.
21059         (modcache): Renamed from do_cache.
21060         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
21061         abbreviate unnecessarily.
21062         (have_associative): New variable.
21063         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
21064         way also for ksh and zsh.
21065         (func_init_sed_convert_to_cache_statements): New function, extracted
21066         from func_cache_lookup_module. Add support for associative arrays.
21067         Don't set the c_MODULE_cached variable here. Ignore all lines before
21068         the first field header. Remove only the final newline, not all trailing
21069         newlines. Support empty fields correctly. Limit the use of 'eval' to
21070         assignments.
21071         (func_get_description, func_get_status, func_get_notice,
21072         func_get_applicability, func_get_filelist, func_get_dependencies,
21073         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
21074         func_get_automake_snippet, func_get_include_directive,
21075         func_get_link_directive, func_get_license, func_get_maintainer):
21076         Update documentation. List the unoptimized code first. Add support for
21077         associative arrays. Limit the use of 'eval' to assignments.
21078         (func_get_applicability): Undo stylistic pessimisations.
21079         (func_get_automake_snippet, func_get_include_directive): Reduce code
21080         duplication.
21081         (func_modules_transitive_closure, func_modules_add_dummy,
21082         func_modules_notice, func_modules_to_filelist, func_add_file,
21083         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
21084         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
21085         func_create_testdir, func_create_megatestdir): Update documentation.
21086
21087 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21088
21089         * gnulib-tool (func_cache_lookup_module): Store the module name
21090         belonging to the cache variable; error out if two different
21091         module names map to the same cache variable name.
21092
21093 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21094
21095         gnulib-tool: Make caching optional.
21096         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
21097         Update matching short versions of --no-changelog.
21098         (func_usage): Update.
21099         (sed_extract_cache_prog): Renamed from ...
21100         (sed_extract_prog): ... this; revert to old extraction script.
21101         (func_get_description, func_get_status)
21102         (func_get_notice, func_get_applicability, func_get_filelist)
21103         (func_get_dependencies, func_get_autoconf_early_snippet)
21104         (func_get_autoconf_snippet, func_get_automake_snippet)
21105         (func_get_include_directive, func_get_link_directive)
21106         (func_get_license, func_get_maintainer): If $do_cache is false,
21107         use old, non-caching extraction scripts.
21108         Suggestion by Bruno Haible.
21109
21110 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21111
21112         gnulib-tool: cache module metainformation.
21113         * gnulib-tool (sed_extract_prog): Match newline before each
21114         header, and rewrite header to a shell variable suffix.
21115         (func_cache_var, func_cache_lookup_module): New functions,
21116         to turn a module name into a cache variable prefix, and to
21117         look up and cache module metainformation.
21118         (func_get_description, func_get_status)
21119         (func_get_notice, func_get_applicability, func_get_filelist)
21120         (func_get_dependencies, func_get_autoconf_early_snippet)
21121         (func_get_autoconf_snippet, func_get_automake_snippet)
21122         (func_get_include_directive, func_get_link_directive)
21123         (func_get_license, func_get_maintainer): Use
21124         func_cache_lookup_module.
21125
21126 2010-02-07  Bruno Haible  <bruno@clisp.org>
21127
21128         fnctl: Fix missing dependency.
21129         * modules/fcntl (Depends-on): Add getdtablesize.
21130         Reported by John W. Eaton <jwe@gnu.org>.
21131
21132 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21133
21134         Argp: fix recognition of short alias options.
21135
21136         * lib/argp-parse.c (convert_options): Fix improper use of
21137         `|' between character values.
21138         * tests/test-argp.c (group1_option): New alias option
21139         --read (-r).
21140         (group1_parser): Special handling for 'r'.
21141         (test15): New test case.
21142         (test_fun): Add test15.
21143         * tests/test-argp-2.sh: Update expected --help and --usage
21144         outputs.
21145
21146 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21147
21148         * tests/test-argp.c: Fix indentation.
21149
21150 2010-02-04  Eric Blake  <ebb9@byu.net>
21151
21152         gettimeofday: expose type of second argument
21153         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
21154         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
21155         * tests/test-gettimeofday.c: Use it to silence warning.
21156         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
21157         the issue.
21158
21159 2010-02-03  Jim Meyering  <meyering@redhat.com>
21160
21161         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
21162         * lib/regcomp.c (TYPE_SIGNED): Define.
21163         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
21164
21165         regcomp.c: avoid a new -Wshadow warning
21166         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
21167
21168 2010-02-01  Jim Meyering  <meyering@redhat.com>
21169
21170         removing useless parentheses in cpp #define directives
21171         For motivation, see commit c0221df4, "define STREQ(a,b)
21172         consistently, removing useless parentheses"
21173         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
21174         * lib/mountlist.c (MNT_IGNORE): Likewise.
21175         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
21176
21177 2010-02-01  Eric Blake  <ebb9@byu.net>
21178
21179         sys_time: use link-warning
21180         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
21181         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
21182         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
21183         * modules/sys_time (Depends-on): Add warn-on-use.
21184         (Makefile.am): Always build replacement.
21185         (configure.ac): Update substitutions.
21186         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
21187         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
21188         bother with SYS_TIME_H.
21189         * modules/gettimeofday (configure.ac): Declare indicator.
21190         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
21191         in use.
21192
21193         closein-tests: silence compiler warning
21194         * tests/test-closein.c (main): Ignore fread result.
21195         * modules/closein-tests (Depends-on): Add ignore-value.
21196
21197         tests: silence warning about system return
21198         * tests/test-areadlink-with-size.c (main): Ignore system result.
21199         * tests/test-areadlink.c (main): Likewise.
21200         * tests/test-areadlinkat-with-size.c (main): Likewise.
21201         * tests/test-areadlinkat.c (main): Likewise.
21202         * tests/test-canonicalize-lgpl.c (main): Likewise.
21203         * tests/test-canonicalize.c (main): Likewise.
21204         * tests/test-chown.c (main): Likewise.
21205         * tests/test-fchownat.c (main): Likewise.
21206         * tests/test-fdutimensat.c (main): Likewise.
21207         * tests/test-fstatat.c (main): Likewise.
21208         * tests/test-futimens.c (main): Likewise.
21209         * tests/test-lchown.c (main): Likewise.
21210         * tests/test-link.c (main): Likewise.
21211         * tests/test-linkat.c (main): Likewise.
21212         * tests/test-lstat.c (main): Likewise.
21213         * tests/test-mkdir.c (main): Likewise.
21214         * tests/test-mkdirat.c (main): Likewise.
21215         * tests/test-mkfifo.c (main): Likewise.
21216         * tests/test-mkfifoat.c (main): Likewise.
21217         * tests/test-mknod.c (main): Likewise.
21218         * tests/test-readlink.c (main): Likewise.
21219         * tests/test-remove.c (main): Likewise.
21220         * tests/test-rename.c (main): Likewise.
21221         * tests/test-renameat.c (main): Likewise.
21222         * tests/test-rmdir.c (main): Likewise.
21223         * tests/test-symlink.c (main): Likewise.
21224         * tests/test-symlinkat.c (main): Likewise.
21225         * tests/test-unlink.c (main): Likewise.
21226         * tests/test-unlinkat.c (main): Likewise.
21227         * tests/test-utimens.c (main): Likewise.
21228         * tests/test-utimensat.c (main): Likewise.
21229         * modules/areadlink-tests (Depends-on): Add ignore-value.
21230         * modules/areadlink-with-size-tests (Depends-on): Likewise.
21231         * modules/areadlinkat-tests (Depends-on): Likewise.
21232         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
21233         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
21234         * modules/canonicalize-tests (Depends-on): Likewise.
21235         * modules/chown-tests (Depends-on): Likewise.
21236         * modules/fdutimensat-tests (Depends-on): Likewise.
21237         * modules/futimens-tests (Depends-on): Likewise.
21238         * modules/lchown-tests (Depends-on): Likewise.
21239         * modules/link-tests (Depends-on): Likewise.
21240         * modules/linkat-tests (Depends-on): Likewise.
21241         * modules/lstat-tests (Depends-on): Likewise.
21242         * modules/mkdir-tests (Depends-on): Likewise.
21243         * modules/mkfifo-tests (Depends-on): Likewise.
21244         * modules/mkfifoat-tests (Depends-on): Likewise.
21245         * modules/mknod-tests (Depends-on): Likewise.
21246         * modules/openat-tests (Depends-on): Likewise.
21247         * modules/readlink-tests (Depends-on): Likewise.
21248         * modules/remove-tests (Depends-on): Likewise.
21249         * modules/rename-tests (Depends-on): Likewise.
21250         * modules/renameat-tests (Depends-on): Likewise.
21251         * modules/rmdir-tests (Depends-on): Likewise.
21252         * modules/symlink-tests (Depends-on): Likewise.
21253         * modules/symlinkat-tests (Depends-on): Likewise.
21254         * modules/unlink-tests (Depends-on): Likewise.
21255         * modules/utimens-tests (Depends-on): Likewise.
21256         * modules/utimensat-tests (Depends-on): Likewise.
21257
21258 2010-01-31  Bruno Haible  <bruno@clisp.org>
21259
21260         Perform the same test for many <math.h> functions.
21261         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
21262         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
21263         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
21264         of gl_MATHFUNC.
21265         * modules/acos (configure.ac): Likewise.
21266         * modules/asin (configure.ac): Likewise.
21267         * modules/atan (configure.ac): Likewise.
21268         * modules/atan2 (configure.ac): Likewise.
21269         * modules/cbrt (configure.ac): Likewise.
21270         * modules/copysign (configure.ac): Likewise.
21271         * modules/cos (configure.ac): Likewise.
21272         * modules/cosh (configure.ac): Likewise.
21273         * modules/erf (configure.ac): Likewise.
21274         * modules/erfc (configure.ac): Likewise.
21275         * modules/exp (configure.ac): Likewise.
21276         * modules/fmod (configure.ac): Likewise.
21277         * modules/hypot (configure.ac): Likewise.
21278         * modules/j0 (configure.ac): Likewise.
21279         * modules/j1 (configure.ac): Likewise.
21280         * modules/jn (configure.ac): Likewise.
21281         * modules/lgamma (configure.ac): Likewise.
21282         * modules/log (configure.ac): Likewise.
21283         * modules/log10 (configure.ac): Likewise.
21284         * modules/log1p (configure.ac): Likewise.
21285         * modules/pow (configure.ac): Likewise.
21286         * modules/remainder (configure.ac): Likewise.
21287         * modules/sin (configure.ac): Likewise.
21288         * modules/sinh (configure.ac): Likewise.
21289         * modules/tan (configure.ac): Likewise.
21290         * modules/tanh (configure.ac): Likewise.
21291         * modules/y0 (configure.ac): Likewise.
21292         * modules/y1 (configure.ac): Likewise.
21293         * modules/yn (configure.ac): Likewise.
21294         Suggested by Paolo Bonzini.
21295
21296 2010-01-31  Bruno Haible  <bruno@clisp.org>
21297
21298         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
21299
21300 2010-01-31  Bruno Haible  <bruno@clisp.org>
21301
21302         Work around getdelim() bug on FreeBSD 8.0.
21303         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
21304         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
21305         not work.
21306         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
21307         is 1.
21308         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
21309         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
21310         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
21311         a non-zero size.
21312         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
21313
21314 2010-01-31  Bruno Haible  <bruno@clisp.org>
21315
21316         Work around getline() bug on FreeBSD 8.0.
21317         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
21318         and a non-zero size.
21319         * tests/test-getline.c (main): Likewise.
21320         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
21321         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
21322
21323 2010-01-28  Eric Blake  <ebb9@byu.net>
21324
21325         regex: fix build failure
21326         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
21327         platforms.
21328
21329 2010-01-28  Jim Meyering  <meyering@redhat.com>
21330
21331         regex: do not ignore memory allocation failure
21332         * lib/regex_internal.c (create_cd_newstate): Detect
21333         re_node_set_init_copy failure.   Extracted from glibc commit
21334         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21335
21336         regex: sync more white-space changes from libc
21337         * lib/regex_internal.c: White-space only changes.
21338         * lib/regexec.c: Likewise.
21339
21340         regex: add many uses of __attribute_warn_unused_result__
21341         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
21342         * lib/regexec.c: Likewise.
21343         Extracted from a messy glibc commit.
21344
21345         regcomp.c: spelling and merge-artifact from glibc
21346         * lib/regcomp.c: Merge remainder of glibc's
21347         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21348
21349         regcomp.c: sync white-space changes from glibc
21350         * lib/regcomp.c: Merge to accommodate white space
21351         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21352
21353         regcomp.c: do not ignore internal return values
21354         * lib/regcomp.c: Do not ignore internal return values.
21355         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
21356         but without its white-space changes and spelling fixes.
21357
21358         regex_internal.h: define __attribute_warn_unused_result__
21359         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
21360
21361         maint: add a syntax-check rule to check for vulnerable Makefile.in
21362         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
21363
21364 2010-01-27  Jim Meyering  <meyering@redhat.com>
21365
21366         ncftpput-ftp: clean up spaces
21367         * build-aux/ncftpput-ftp: Make Copyright line consistent.
21368         Remove trailing blanks.
21369
21370 2010-01-27  Simon Josefsson  <simon@josefsson.org>
21371
21372         * build-aux/git-version-gen: Fix copyright statement.
21373         * build-aux/gnupload: Likewise.
21374         * tests/test-arcfour.c: Likewise.
21375         * tests/test-arctwo.c: Likewise.
21376         * tests/test-count-one-bits.c: Likewise.
21377         * tests/test-crc.c: Likewise.
21378         * tests/test-des.c: Likewise.
21379         * tests/test-gc-arcfour.c: Likewise.
21380         * tests/test-gc-arctwo.c: Likewise.
21381         * tests/test-gc-des.c: Likewise.
21382         * tests/test-gc-hmac-md5.c: Likewise.
21383         * tests/test-gc-hmac-sha1.c: Likewise.
21384         * tests/test-gc-md2.c: Likewise.
21385         * tests/test-gc-md4.c: Likewise.
21386         * tests/test-gc-md5.c: Likewise.
21387         * tests/test-gc-pbkdf2-sha1.c: Likewise.
21388         * tests/test-gc-rijndael.c: Likewise.
21389         * tests/test-gc-sha1.c: Likewise.
21390         * tests/test-gc.c: Likewise.
21391         * tests/test-gethostname.c: Likewise.
21392         * tests/test-gettimeofday.c: Likewise.
21393         * tests/test-hash.c: Likewise.
21394         * tests/test-hmac-md5.c: Likewise.
21395         * tests/test-hmac-sha1.c: Likewise.
21396         * tests/test-md2.c: Likewise.
21397         * tests/test-md4.c: Likewise.
21398         * tests/test-md5.c: Likewise.
21399         * tests/test-memchr.c: Likewise.
21400         * tests/test-memchr2.c: Likewise.
21401         * tests/test-memcmp.c: Likewise.
21402         * tests/test-memmem.c: Likewise.
21403         * tests/test-memrchr.c: Likewise.
21404         * tests/test-rawmemchr.c: Likewise.
21405         * tests/test-read-file.c: Likewise.
21406         * tests/test-rijndael.c: Likewise.
21407         * tests/test-sockets.c: Likewise.
21408         * tests/test-strchrnul.c: Likewise.
21409         * tests/test-strstr.c: Likewise.
21410         * tests/test-strtod.c: Likewise.
21411         * build-aux/ncftpput-ftp: Likewise.
21412
21413 2010-01-26  Eric Blake  <ebb9@byu.net>
21414
21415         ignore-value: update recommended header name
21416         * modules/ignore-value (Include): Only use <> for headers that
21417         exist in glibc.
21418
21419 2010-01-26  Jim Meyering  <meyering@redhat.com>
21420
21421         test-userspec.c: avoid compiler warnings
21422         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
21423         and "initialization discards qualifiers..." warnings.
21424         Put the first "uid" in its own scope, and make char* members "const".
21425
21426 2010-01-25  Bruno Haible  <bruno@clisp.org>
21427
21428         gnulib-tool: Make warning diagnostics consistent.
21429         * gnulib-tool (func_warning): New function.
21430         Use it everywhere where gnulib-tool produces output to stderr and it is
21431         not a fatal error.
21432
21433 2010-01-25  Bruno Haible  <bruno@clisp.org>
21434
21435         Fix test dependencies.
21436         * modules/xstrtol-tests (Depends-on): Add inttypes.
21437         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
21438
21439 2010-01-25 Pádraig Brady <P@draigBrady.com>
21440
21441         syntax-check: detect incorrect boolean macro values in config.h
21442         * modules/maintainer-makefile (configure.ac): Parameterize the location
21443         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
21444         The logic is from Eric Blake and the location indicated by Jim Meyering.
21445         Note the more natural CONFIG_HEADER name is prohibited by automake
21446         for backwards compatibility reasons.
21447         * top/maint.mk (sc_Wundef_boolean): New rule.
21448
21449 2010-01-25  Jim Meyering  <meyering@redhat.com>
21450
21451         bootstrap: detect MacOS 10.6's shasum, too
21452         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
21453         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
21454
21455 2010-01-23  Jim Meyering  <meyering@redhat.com>
21456
21457         xstrtoll: new module
21458         * modules/xstrtoll: New file.
21459         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
21460         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
21461         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
21462         ./configure fails if you use this module and lack "long long".
21463         * modules/xstrtoll-tests: New module.
21464         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
21465         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
21466         new init.sh-based test framework.
21467
21468 2010-01-24  Bruno Haible  <bruno@clisp.org>
21469
21470         Tests for module 'yn'.
21471         * modules/yn-tests: New file.
21472         * tests/test-yn.c: New file.
21473
21474         Tests for module 'y1'.
21475         * modules/y1-tests: New file.
21476         * tests/test-y1.c: New file.
21477
21478         Tests for module 'y0'.
21479         * modules/y0-tests: New file.
21480         * tests/test-y0.c: New file.
21481
21482         Tests for module 'tanh'.
21483         * modules/tanh-tests: New file.
21484         * tests/test-tanh.c: New file.
21485
21486         Tests for module 'tan'.
21487         * modules/tan-tests: New file.
21488         * tests/test-tan.c: New file.
21489
21490         Tests for module 'sqrt'.
21491         * modules/sqrt-tests: New file.
21492         * tests/test-sqrt.c: New file.
21493
21494         Tests for module 'sinh'.
21495         * modules/sinh-tests: New file.
21496         * tests/test-sinh.c: New file.
21497
21498         Tests for module 'sin'.
21499         * modules/sin-tests: New file.
21500         * tests/test-sin.c: New file.
21501
21502         Tests for module 'rint'.
21503         * modules/rint-tests: New file.
21504         * tests/test-rint.c: New file.
21505
21506         Tests for module 'remainder'.
21507         * modules/remainder-tests: New file.
21508         * tests/test-remainder.c: New file.
21509
21510         Tests for module 'pow'.
21511         * modules/pow-tests: New file.
21512         * tests/test-pow.c: New file.
21513
21514         Tests for module 'nextafter'.
21515         * modules/nextafter-tests: New file.
21516         * tests/test-nextafter.c: New file.
21517
21518         Tests for module 'modf'.
21519         * modules/modf-tests: New file.
21520         * tests/test-modf.c: New file.
21521
21522         Tests for module 'logb'.
21523         * modules/logb-tests: New file.
21524         * tests/test-logb.c: New file.
21525
21526         Tests for module 'log1p'.
21527         * modules/log1p-tests: New file.
21528         * tests/test-log1p.c: New file.
21529
21530         Tests for module 'log10'.
21531         * modules/log10-tests: New file.
21532         * tests/test-log10.c: New file.
21533
21534         Tests for module 'log'.
21535         * modules/log-tests: New file.
21536         * tests/test-log.c: New file.
21537
21538         Tests for module 'lgamma'.
21539         * modules/lgamma-tests: New file.
21540         * tests/test-lgamma.c: New file.
21541
21542         Tests for module 'ldexp'.
21543         * modules/ldexp-tests: New file.
21544         * tests/test-ldexp.c: New file.
21545
21546         Tests for module 'jn'.
21547         * modules/jn-tests: New file.
21548         * tests/test-jn.c: New file.
21549
21550         Tests for module 'j1'.
21551         * modules/j1-tests: New file.
21552         * tests/test-j1.c: New file.
21553
21554         Tests for module 'j0'.
21555         * modules/j0-tests: New file.
21556         * tests/test-j0.c: New file.
21557
21558         Tests for module 'hypot'.
21559         * modules/hypot-tests: New file.
21560         * tests/test-hypot.c: New file.
21561
21562         Tests for module 'fmod'.
21563         * modules/fmod-tests: New file.
21564         * tests/test-fmod.c: New file.
21565
21566         Tests for module 'fabs'.
21567         * modules/fabs-tests: New file.
21568         * tests/test-fabs.c: New file.
21569
21570         Tests for module 'exp'.
21571         * modules/exp-tests: New file.
21572         * tests/test-exp.c: New file.
21573
21574         Tests for module 'erfc'.
21575         * modules/erfc-tests: New file.
21576         * tests/test-erfc.c: New file.
21577
21578         Tests for module 'erf'.
21579         * modules/erf-tests: New file.
21580         * tests/test-erf.c: New file.
21581
21582         Tests for module 'cosh'.
21583         * modules/cosh-tests: New file.
21584         * tests/test-cosh.c: New file.
21585
21586         Tests for module 'cos'.
21587         * modules/cos-tests: New file.
21588         * tests/test-cos.c: New file.
21589
21590         Tests for module 'copysign'.
21591         * modules/copysign-tests: New file.
21592         * tests/test-copysign.c: New file.
21593
21594         Tests for module 'cbrt'.
21595         * modules/cbrt-tests: New file.
21596         * tests/test-cbrt.c: New file.
21597
21598         Tests for module 'atan2'.
21599         * modules/atan2-tests: New file.
21600         * tests/test-atan2.c: New file.
21601
21602         Tests for module 'atan'.
21603         * modules/atan-tests: New file.
21604         * tests/test-atan.c: New file.
21605
21606         Tests for module 'asin'.
21607         * modules/asin-tests: New file.
21608         * tests/test-asin.c: New file.
21609
21610         Tests for module 'acos'.
21611         * modules/acos-tests: New file.
21612         * tests/test-acos.c: New file.
21613
21614 2010-01-24  Bruno Haible  <bruno@clisp.org>
21615
21616         Fix tests for common <math.h> functions.
21617         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
21618         code snippet that references the function pointer, rather than merely
21619         calling the function. Substitute the FUNC_LIBM variable.
21620         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
21621         * modules/acos (configure.ac): Likewise.
21622         * modules/asin (configure.ac): Likewise.
21623         * modules/atan (configure.ac): Likewise.
21624         * modules/atan2 (configure.ac): Likewise.
21625         * modules/cbrt (configure.ac): Likewise.
21626         * modules/copysign (configure.ac): Likewise.
21627         * modules/cos (configure.ac): Likewise.
21628         * modules/cosh (configure.ac): Likewise.
21629         * modules/erf (configure.ac): Likewise.
21630         * modules/erfc (configure.ac): Likewise.
21631         * modules/exp (configure.ac): Likewise.
21632         * modules/fabs (configure.ac): Likewise.
21633         * modules/fmod (configure.ac): Likewise.
21634         * modules/hypot (configure.ac): Likewise.
21635         * modules/j0 (configure.ac): Likewise.
21636         * modules/j1 (configure.ac): Likewise.
21637         * modules/jn (configure.ac): Likewise.
21638         * modules/ldexp (configure.ac): Likewise.
21639         * modules/lgamma (configure.ac): Likewise.
21640         * modules/log (configure.ac): Likewise.
21641         * modules/log10 (configure.ac): Likewise.
21642         * modules/log1p (configure.ac): Likewise.
21643         * modules/logb (configure.ac): Likewise.
21644         * modules/modf (configure.ac): Likewise.
21645         * modules/nextafter (configure.ac): Likewise.
21646         * modules/pow (configure.ac): Likewise.
21647         * modules/remainder (configure.ac): Likewise.
21648         * modules/rint (configure.ac): Likewise.
21649         * modules/sin (configure.ac): Likewise.
21650         * modules/sinh (configure.ac): Likewise.
21651         * modules/tan (configure.ac): Likewise.
21652         * modules/tanh (configure.ac): Likewise.
21653         * modules/y0 (configure.ac): Likewise.
21654         * modules/y1 (configure.ac): Likewise.
21655         * modules/yn (configure.ac): Likewise.
21656
21657 2010-01-24  Bruno Haible  <bruno@clisp.org>
21658
21659         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
21660         * tests/test-acosl.c (x): New variable.
21661         (main): Store argument in x and fetch it from x.
21662         * tests/test-asinl.c (x): New variable.
21663         (main): Store argument in x and fetch it from x.
21664         * tests/test-atanl.c (x): New variable.
21665         (main): Store argument in x and fetch it from x.
21666         * tests/test-cosl.c (x): New variable.
21667         (main): Store argument in x and fetch it from x.
21668         * tests/test-expl.c (x): New variable.
21669         (main): Store argument in x and fetch it from x.
21670         * tests/test-logl.c (x): New variable.
21671         (main): Store argument in x and fetch it from x.
21672         * tests/test-sinl.c (x): New variable.
21673         (main): Store argument in x and fetch it from x.
21674         * tests/test-sqrtl.c (x): New variable.
21675         (main): Store argument in x and fetch it from x.
21676         * tests/test-tanl.c (x): New variable.
21677         (main): Store argument in x and fetch it from x.
21678
21679 2010-01-24  Bruno Haible  <bruno@clisp.org>
21680
21681         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
21682         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
21683         assignments to the initial TESTS_ENVIRONMENT.
21684         * doc/gnulib.texi (Unit test modules): Document it.
21685         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
21686         TESTS_ENVIRONMENT.
21687         * modules/btowc-tests (Makefile.am): Likewise.
21688         * modules/c-stack-tests (Makefile.am): Likewise.
21689         * modules/c-strcase-tests (Makefile.am): Likewise.
21690         * modules/copy-file-tests (Makefile.am): Likewise.
21691         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
21692         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
21693         * modules/mbrtowc-tests (Makefile.am): Likewise.
21694         * modules/mbscasecmp-tests (Makefile.am): Likewise.
21695         * modules/mbscasestr-tests (Makefile.am): Likewise.
21696         * modules/mbschr-tests (Makefile.am): Likewise.
21697         * modules/mbscspn-tests (Makefile.am): Likewise.
21698         * modules/mbsinit-tests (Makefile.am): Likewise.
21699         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
21700         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
21701         * modules/mbspbrk-tests (Makefile.am): Likewise.
21702         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
21703         * modules/mbsrchr-tests (Makefile.am): Likewise.
21704         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
21705         * modules/mbsspn-tests (Makefile.am): Likewise.
21706         * modules/mbsstr-tests (Makefile.am): Likewise.
21707         * modules/nl_langinfo-tests (Makefile.am): Likewise.
21708         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
21709         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
21710         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
21711         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
21712         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
21713         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
21714         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
21715         * modules/wcrtomb-tests (Makefile.am): Likewise.
21716         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
21717         * modules/wcsrtombs-tests (Makefile.am): Likewise.
21718         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
21719         assignments from TESTS_ENVIRONMENT.
21720         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
21721         augmentation.
21722         * modules/argp-version-etc-tests (Makefile.am): Likewise.
21723         * modules/atexit-tests (Makefile.am): Likewise.
21724         * modules/binary-io-tests (Makefile.am): Likewise.
21725         * modules/closein-tests (Makefile.am): Likewise.
21726         * modules/dprintf-posix-tests (Makefile.am): Likewise.
21727         * modules/exclude-tests (Makefile.am): Likewise.
21728         * modules/fflush-tests (Makefile.am): Likewise.
21729         * modules/fpending-tests (Makefile.am): Likewise.
21730         * modules/fprintf-posix-tests (Makefile.am): Likewise.
21731         * modules/freadahead-tests (Makefile.am): Likewise.
21732         * modules/freadptr-tests (Makefile.am): Likewise.
21733         * modules/freadseek-tests (Makefile.am): Likewise.
21734         * modules/fseek-tests (Makefile.am): Likewise.
21735         * modules/fseeko-tests (Makefile.am): Likewise.
21736         * modules/ftell-tests (Makefile.am): Likewise.
21737         * modules/ftello-tests (Makefile.am): Likewise.
21738         * modules/idpriv-drop-tests (Makefile.am): Likewise.
21739         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
21740         * modules/lseek-tests (Makefile.am): Likewise.
21741         * modules/parse-duration-tests (Makefile.am): Likewise.
21742         * modules/perror-tests (Makefile.am): Likewise.
21743         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
21744         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
21745         * modules/pipe-tests (Makefile.am): Likewise.
21746         * modules/pread-tests (Makefile.am): Likewise.
21747         * modules/printf-posix-tests (Makefile.am): Likewise.
21748         * modules/select-tests (Makefile.am): Likewise.
21749         * modules/sigpipe-tests (Makefile.am): Likewise.
21750         * modules/tsearch-tests (Makefile.am): Likewise.
21751         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
21752         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
21753         * modules/uniname/uniname-tests (Makefile.am): Likewise.
21754         * modules/uniwidth/width-tests (Makefile.am): Likewise.
21755         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
21756         * modules/version-etc-tests (Makefile.am): Likewise.
21757         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
21758         * modules/vprintf-posix-tests (Makefile.am): Likewise.
21759         * modules/xalloc-die-tests (Makefile.am): Likewise.
21760         * modules/xprintf-posix-tests (Makefile.am): Likewise.
21761         * modules/xstrtoimax-tests (Makefile.am): Likewise.
21762         * modules/xstrtol-tests (Makefile.am): Likewise.
21763         * modules/xstrtoumax-tests (Makefile.am): Likewise.
21764         * modules/yesno-tests (Makefile.am): Likewise.
21765         Suggested by Jim Meyering.
21766
21767 2010-01-24  Bruno Haible  <bruno@clisp.org>
21768
21769         More documentation.
21770         * doc/gnulib.texi (Writing modules): New chapter.
21771         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
21772         the new chapter.
21773
21774 2010-01-24  Jim Meyering  <meyering@redhat.com>
21775
21776         maint.mk: do not prepend "./" after filtering
21777         * top/maint.mk (_prepend_srcdir_prefix): New variable
21778         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
21779         "./" when $(srcdir) is ".".
21780
21781         define STREQ(a,b) consistently, removing useless parentheses
21782         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
21783         since the only risk is that "a" or "b" contains an unparenthesized
21784         comma, but if either did that, STREQ would have 3 or more arguments.
21785         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
21786         * lib/fts.c (STREQ): Remove unnecessary parentheses.
21787         * lib/hash-triple.c (STREQ): Likewise.
21788         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
21789         * lib/getugroups.c (STREQ): Likewise.
21790
21791 2010-01-23  Jim Meyering  <meyering@redhat.com>
21792
21793         maint.mk: fix syntax-check in a non-srcdir build directory
21794         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
21795         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
21796
21797 2010-01-22  Jim Meyering  <meyering@redhat.com>
21798
21799         userspec: add unit tests
21800         * tests/test-userspec.c: New file.
21801         * modules/userspec-tests: Likewise.
21802
21803 2010-01-21  Jim Meyering  <meyering@redhat.com>
21804
21805         maint.mk: handle source file names containing "." robustly
21806         * top/maint.mk (_dot_escaped_srcdir): Define.
21807         (VC_LIST): Use it in LHS of sed substitution.
21808
21809 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
21810
21811         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
21812         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
21813         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
21814         from a non-srcdir build.
21815
21816 2010-01-20  Eric Blake  <ebb9@byu.net>
21817
21818         warn-on-use: use instead of link-warning
21819         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
21820         * modules/unistd (Depends-on, Makefile.am): Likewise.
21821         * modules/arpa_inet (Depends-on): Replace link-warning with
21822         warn-on-use.
21823         (Makefile.am): Update rules accordingly.
21824         * modules/ctype (Depends-on, Makefile.am): Likewise.
21825         * modules/dirent (Depends-on, Makefile.am): Likewise.
21826         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
21827         * modules/inttypes (Depends-on, Makefile.am): Likewise.
21828         * modules/langinfo (Depends-on, Makefile.am): Likewise.
21829         * modules/locale (Depends-on, Makefile.am): Likewise.
21830         * modules/math (Depends-on, Makefile.am): Likewise.
21831         * modules/search (Depends-on, Makefile.am): Likewise.
21832         * modules/signal (Depends-on, Makefile.am): Likewise.
21833         * modules/spawn (Depends-on, Makefile.am): Likewise.
21834         * modules/stdlib (Depends-on, Makefile.am): Likewise.
21835         * modules/string (Depends-on, Makefile.am): Likewise.
21836         * modules/strings (Depends-on, Makefile.am): Likewise.
21837         * modules/sys_file (Depends-on, Makefile.am): Likewise.
21838         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
21839         * modules/sys_select (Depends-on, Makefile.am): Likewise.
21840         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
21841         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
21842         * modules/sys_times (Depends-on, Makefile.am): Likewise.
21843         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
21844         * modules/wchar (Depends-on, Makefile.am): Likewise.
21845         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
21846         should be poisoned.
21847         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
21848         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
21849         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
21850         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21851         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
21852         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21853         * m4/math_h.m4 (gl_MATH_H): Likewise.
21854         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21855         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
21856         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21857         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
21858         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
21859         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
21860         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
21861         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
21862         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
21863         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21864         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
21865         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
21866         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21867         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21868         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21869         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21870         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
21871         GL_LINK_WARNING.
21872         * lib/ctype.in.h: Likewise.
21873         * lib/dirent.in.h: Likewise.
21874         * lib/fcntl.in.h: Likewise.
21875         * lib/inttypes.in.h: Likewise.
21876         * lib/langinfo.in.h: Likewise.
21877         * lib/locale.in.h: Likewise.
21878         * lib/math.in.h: Likewise.
21879         * lib/search.in.h: Likewise.
21880         * lib/signal.in.h: Likewise.
21881         * lib/spawn.in.h: Likewise.
21882         * lib/stdio.in.h: Likewise.
21883         * lib/stdlib.in.h: Likewise.
21884         * lib/string.in.h: Likewise.
21885         * lib/strings.in.h: Likewise.
21886         * lib/sys_file.in.h: Likewise.
21887         * lib/sys_ioctl.in.h: Likewise.
21888         * lib/sys_select.in.h: Likewise.
21889         * lib/sys_socket.in.h: Likewise.
21890         * lib/sys_stat.in.h: Likewise.
21891         * lib/sys_times.in.h: Likewise.
21892         * lib/sys_utsname.in.h: Likewise.
21893         * lib/unistd.in.h: Likewise.
21894         * lib/wchar.in.h: Likewise.
21895
21896 2010-01-20  Bruno Haible  <bruno@clisp.org>
21897
21898         Avoid duplicate -lm.
21899         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
21900         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
21901         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
21902         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
21903         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
21904         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
21905         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
21906         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
21907         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
21908         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
21909         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
21910         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21911         Reported by Paolo Bonzini.
21912
21913 2010-01-19  Bruno Haible  <bruno@clisp.org>
21914
21915         langinfo, nl_langinfo: Relicense under LGPLv2+.
21916         * modules/langinfo (License): Change to LGPLv2+.
21917         * modules/nl_langinfo (License): Likewise.
21918         Patch by David Lutterkort <lutter@redhat.com>.
21919
21920 2010-01-19  Bruno Haible  <bruno@clisp.org>
21921
21922         Avoid compilation error with cc on OSF/1 5.1.
21923         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
21924         statement, not before.
21925         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21926
21927 2010-01-18  Bruno Haible  <bruno@clisp.org>
21928
21929         Avoid a link error due to the __printf__ symbol.
21930         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
21931         and 2.6.x.
21932         (__format__, __printf__): Remove definitions.
21933         * lib/argp-fmtstream.h: Likewise.
21934         * lib/argp.h: Likewise.
21935         * lib/error.h: Likewise.
21936         * lib/vasnprintf.h: Likewise.
21937         * lib/xprintf.h: Likewise.
21938         * lib/xvasprintf.h: Likewise.
21939         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21940
21941 2010-01-18  Bruno Haible  <bruno@clisp.org>
21942
21943         Tests for module 'tanl'.
21944         * modules/tanl-tests: New file.
21945         * tests/test-tanl.c: New file.
21946
21947         Tests for module 'sqrtl'.
21948         * modules/sqrtl-tests: New file.
21949         * tests/test-sqrtl.c: New file.
21950
21951         Tests for module 'sinl'.
21952         * modules/sinl-tests: New file.
21953         * tests/test-sinl.c: New file.
21954
21955         Tests for module 'logl'.
21956         * modules/logl-tests: New file.
21957         * tests/test-logl.c: New file.
21958
21959         Tests for module 'expl'.
21960         * modules/expl-tests: New file.
21961         * tests/test-expl.c: New file.
21962
21963         Tests for module 'cosl'.
21964         * modules/cosl-tests: New file.
21965         * tests/test-cosl.c: New file.
21966
21967         Tests for module 'atanl'.
21968         * modules/atanl-tests: New file.
21969         * tests/test-atanl.c: New file.
21970
21971         Tests for module 'asinl'.
21972         * modules/asinl-tests: New file.
21973         * tests/test-asinl.c: New file.
21974
21975         Tests for module 'acosl'.
21976         * modules/acosl-tests: New file.
21977         * tests/test-acosl.c: New file.
21978
21979         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
21980         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
21981         tanl): Use the standard gnulib idiom.
21982         * lib/cosl.c: Don't include trigl.c and sincosl.c.
21983         * lib/sinl.c: Likewise.
21984         * lib/tanl.c: Don't include trigl.c.
21985         (kernel_tanl): Make static.
21986         * lib/sincosl.c: Include trigl.h first.
21987         * lib/trigl.c: Likewise.
21988         * m4/acosl.m4: New file.
21989         * m4/asinl.m4: New file.
21990         * m4/atanl.m4: New file.
21991         * m4/cosl.m4: New file.
21992         * m4/expl.m4: New file.
21993         * m4/logl.m4: New file.
21994         * m4/sinl.m4: New file.
21995         * m4/sqrtl.m4: New file.
21996         * m4/tanl.m4: New file.
21997         * m4/mathl.m4: Remove file.
21998         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
21999         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22000         Don't initialize GNULIB_MATHL.
22001         * modules/acosl: New file.
22002         * modules/asinl: New file.
22003         * modules/atanl: New file.
22004         * modules/cosl: New file.
22005         * modules/expl: New file.
22006         * modules/logl: New file.
22007         * modules/sinl: New file.
22008         * modules/sqrtl: New file.
22009         * modules/tanl: New file.
22010         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
22011         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
22012         substitute GNULIB_MATHL.
22013         * modules/mathl: Rewritten.
22014         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
22015         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
22016         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
22017         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
22018         * doc/posix-functions/expl.texi: Mention the 'expl' module.
22019         * doc/posix-functions/logl.texi: Mention the 'logl' module.
22020         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
22021         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
22022         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
22023
22024 2010-01-18  Bruno Haible  <bruno@clisp.org>
22025
22026         sqrt: Make gl_FUNC_SQRT requirable.
22027         * m4/sqrt.m4: New file.
22028         * modules/sqrt (Files): Add it.
22029         (configure.ac): Invoke gl_FUNC_SQRT.
22030
22031 2010-01-18  Bruno Haible  <bruno@clisp.org>
22032
22033         New modules for common <math.h> functions.
22034         * m4/mathfunc.m4: New file.
22035         * modules/acos: New file.
22036         * modules/asin: New file.
22037         * modules/atan: New file.
22038         * modules/atan2: New file.
22039         * modules/cbrt: New file.
22040         * modules/copysign: New file.
22041         * modules/cos: New file.
22042         * modules/cosh: New file.
22043         * modules/erf: New file.
22044         * modules/erfc: New file.
22045         * modules/exp: New file.
22046         * modules/fabs: New file.
22047         * modules/fmod: New file.
22048         * modules/hypot: New file.
22049         * modules/j0: New file.
22050         * modules/j1: New file.
22051         * modules/jn: New file.
22052         * modules/ldexp: New file.
22053         * modules/lgamma: New file.
22054         * modules/log: New file.
22055         * modules/log10: New file.
22056         * modules/log1p: New file.
22057         * modules/logb: New file.
22058         * modules/modf: New file.
22059         * modules/nextafter: New file.
22060         * modules/pow: New file.
22061         * modules/remainder: New file.
22062         * modules/rint: New file.
22063         * modules/sin: New file.
22064         * modules/sinh: New file.
22065         * modules/sqrt: New file.
22066         * modules/tan: New file.
22067         * modules/tanh: New file.
22068         * modules/y0: New file.
22069         * modules/y1: New file.
22070         * modules/yn: New file.
22071         * doc/posix-functions/acos.texi: Mention the 'acos' module.
22072         * doc/posix-functions/asin.texi: Mention the 'asin' module.
22073         * doc/posix-functions/atan.texi: Mention the 'atan' module.
22074         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
22075         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
22076         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
22077         * doc/posix-functions/cos.texi: Mention the 'cos' module.
22078         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
22079         * doc/posix-functions/erf.texi: Mention the 'erf' module.
22080         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
22081         * doc/posix-functions/exp.texi: Mention the 'exp' module.
22082         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
22083         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
22084         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
22085         * doc/posix-functions/j0.texi: Mention the 'j0' module.
22086         * doc/posix-functions/j1.texi: Mention the 'j1' module.
22087         * doc/posix-functions/jn.texi: Mention the 'jn' module.
22088         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
22089         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
22090         * doc/posix-functions/log.texi: Mention the 'log' module.
22091         * doc/posix-functions/log10.texi: Mention the 'log10' module.
22092         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
22093         * doc/posix-functions/logb.texi: Mention the 'logb' module.
22094         * doc/posix-functions/modf.texi: Mention the 'modf' module.
22095         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
22096         * doc/posix-functions/pow.texi: Mention the 'pow' module.
22097         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
22098         * doc/posix-functions/rint.texi: Mention the 'rint' module.
22099         * doc/posix-functions/sin.texi: Mention the 'sin' module.
22100         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
22101         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
22102         * doc/posix-functions/tan.texi: Mention the 'tan' module.
22103         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
22104         * doc/posix-functions/y0.texi: Mention the 'y0' module.
22105         * doc/posix-functions/y1.texi: Mention the 'y1' module.
22106         * doc/posix-functions/yn.texi: Mention the 'yn' module.
22107
22108 2010-01-18  Jim Meyering  <meyering@redhat.com>
22109
22110         ignore-value: relax license to LGPLv2+
22111         * modules/ignore-value (License): Relax to LGPLv2+.
22112
22113         getdate: don't leak when TZ contains two or more '"'s
22114         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
22115         double quote in TZ after the first one.
22116
22117         readtokens: do not leak internal token_lengths buffer
22118         * lib/readtokens.c (readtokens): Free the local, lengths,
22119         when the supplied "token_lengths" parameter is NULL.
22120
22121 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22122
22123         Fix a couple of missing LIBTHREAD link failures on AIX.
22124         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
22125         $(LIBTHREAD).
22126         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
22127
22128         Link test-poll against INET_PTON_LIB.
22129         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
22130         for inet_pton on Solaris 10.
22131
22132 2010-01-17  Bruno Haible  <bruno@clisp.org>
22133
22134         unistdio/*-sprintf: Fix typo in module description.
22135         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
22136         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
22137         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
22138         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
22139         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
22140         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
22141         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
22142         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22143
22144 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22145
22146         gnulib-tool: fix filelist for AIX, HP-UX ksh.
22147         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
22148         variables in shell case patterns, for AIX and HP-UX ksh.
22149
22150         Split large sed scripts, for HP-UX sed.
22151         * modules/stdio: Split sed scripts around 50 sed commands,
22152         to avoid HP-UX limit of 99 commands, in the near future.
22153         * modules/string: Likewise.
22154         * modules/unistd: Likewise.
22155
22156         gnulib-tool: avoid writing in the current directory.
22157         * gnulib-tool (func_emit_lib_Makefile_am)
22158         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
22159         not in the current directory, so concurrent gnulib-tool
22160         instances do not interfere.
22161
22162 2010-01-16  Jim Meyering  <meyering@redhat.com>
22163
22164         doc: update users.txt
22165         * users.txt: Add grep.
22166         (diffutils, gzip): Update URLs.
22167
22168 2010-01-12  Bruno Haible  <bruno@clisp.org>
22169
22170         posix_spawn: Avoid test failure on Cygwin.
22171         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
22172         characters.
22173         Reported by Simon Josefsson.
22174
22175 2010-01-12  Bruno Haible  <bruno@clisp.org>
22176
22177         * tests/test-cond.c (main): When skipping the test, show the reason.
22178
22179 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22180
22181         * lib/striconv.c (str_cd_iconv): Avoid if before free.
22182
22183 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22184
22185         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
22186         VC_LIST_ALWAYS_EXCLUDE_REGEX.
22187
22188 2010-01-12  Eric Blake  <ebb9@byu.net>
22189
22190         build: guarantee AS_VAR_IF
22191         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
22192         (gl_AS_VAR_IF): Move...
22193         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
22194         Reported by Simon Josefsson.
22195
22196 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22197
22198         * lib/stdio.in.h: Fix typo.
22199
22200 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22201
22202         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
22203         libgpg-error.
22204
22205 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22206
22207         * tests/test-xalloc-die.sh: Use $EXEEXT.
22208
22209 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22210             Bruno Haible  <bruno@clisp.org>
22211
22212         getlogin, getlogin_r: Avoid test failure.
22213         * tests/test-getlogin.c: Include <stdio.h>.
22214         (main): Skip the test when the function fails because stdin is not a
22215         tty.
22216         * tests/test-getlogin_r.c: Include <stdio.h>.
22217         (main): Skip the test when the function fails because stdin is not a
22218         tty.
22219
22220 2010-01-11  Eric Blake  <ebb9@byu.net>
22221
22222         tests: avoid more large file warnings
22223         * tests/test-fflush.c: Avoid warning about ftell use.
22224         * tests/test-fseek.c: Avoid warning about fseek use.
22225
22226 2010-01-10  Bruno Haible  <bruno@clisp.org>
22227
22228         nproc: Work better on Linux when /proc and /sys are not mounted.
22229         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
22230         as lower bound when, on glibc/Linux systems,
22231         sysconf (_SC_NPROCESSORS_CONF) returns 1.
22232         Suggested by Pádraig Brady <P@draigbrady.com>.
22233         Reported by Dmitry V. Levin <ldv@altlinux.org>.
22234
22235         nproc: Refactor.
22236         * lib/nproc.c (num_processors_via_affinity_mask): New function,
22237         extracted from num_processors.
22238         (num_processors): Call it.
22239
22240 2010-01-11  Jim Meyering  <meyering@redhat.com>
22241
22242         utimecmp: avoid new warning from upcoming gcc-4.5.0
22243         * lib/utimecmp.c (BILLION): Define using #define rather than an
22244         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
22245
22246 2010-01-11  Eric Blake  <ebb9@byu.net>
22247
22248         math: add portability warnings for classification macros
22249         * modules/math (Depends-on): Add warn-on-use.
22250         (Makefile.am): Provide new substitutions.
22251         * m4/math_h.m4 (gl_MATH_H): Require inline.
22252         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
22253         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
22254         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
22255         implement warnings.
22256
22257         unistd: warn on use of environ without module
22258         * modules/unistd (Depends-on): Add warn-on-use.
22259         (Makefile.am): Provide new substitutions.
22260         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
22261         * lib/unistd.in.h (environ): Wrap with a warning helper function.
22262
22263         stdio: warn on suspicious uses
22264         * modules/stdio (Depends-on): Add warn-on-use.
22265         (Makefile.am): Provide new substitutions.
22266         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
22267         fseeko.
22268         * lib/stdio.in.h (gets): Always warn on use.
22269         (fseek, ftell): Adjust when warnings are issued, and honor
22270         _GL_NO_LARGE_FILES as a way to silence the warning.
22271         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
22272         any warning about large file offsets.
22273         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
22274         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
22275         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
22276         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
22277         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
22278         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
22279         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
22280         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
22281
22282         warn-on-use: new module
22283         * modules/warn-on-use: New file.
22284         * build-aux/warn-on-use.h: Likewise.
22285         * m4/warn-on-use.m4: Likewise.
22286         * MODULES.html.sh (Support for building): Mention it.
22287
22288 2010-01-10  Bruno Haible  <bruno@clisp.org>
22289
22290         Tests for module 'unistr/u32-strdup'.
22291         * modules/unistr/u32-strdup-tests: New file.
22292         * tests/unistr/test-u32-strdup.c: New file.
22293
22294         Tests for module 'unistr/u16-strdup'.
22295         * modules/unistr/u16-strdup-tests: New file.
22296         * tests/unistr/test-u16-strdup.c: New file.
22297
22298         Tests for module 'unistr/u8-strdup'.
22299         * modules/unistr/u8-strdup-tests: New file.
22300         * tests/unistr/test-u8-strdup.c: New file.
22301         * tests/unistr/test-strdup.h: New file.
22302
22303         Tests for module 'unistr/u32-strncmp'.
22304         * modules/unistr/u32-strncmp-tests: New file.
22305         * tests/unistr/test-u32-strncmp.c: New file.
22306
22307         Tests for module 'unistr/u16-strncmp'.
22308         * modules/unistr/u16-strncmp-tests: New file.
22309         * tests/unistr/test-u16-strncmp.c: New file.
22310
22311         Tests for module 'unistr/u8-strncmp'.
22312         * modules/unistr/u8-strncmp-tests: New file.
22313         * tests/unistr/test-u8-strncmp.c: New file.
22314         * tests/unistr/test-strncmp.h: New file.
22315
22316         Tests for module 'unistr/u32-strcoll'.
22317         * modules/unistr/u32-strcoll-tests: New file.
22318         * tests/unistr/test-u32-strcoll.c: New file.
22319
22320         Tests for module 'unistr/u16-strcoll'.
22321         * modules/unistr/u16-strcoll-tests: New file.
22322         * tests/unistr/test-u16-strcoll.c: New file.
22323
22324         Tests for module 'unistr/u8-strcoll'.
22325         * modules/unistr/u8-strcoll-tests: New file.
22326         * tests/unistr/test-u8-strcoll.c: New file.
22327
22328         Tests for module 'unistr/u32-strcmp'.
22329         * modules/unistr/u32-strcmp-tests: New file.
22330         * tests/unistr/test-u32-strcmp.c: New file.
22331         * tests/unistr/test-u32-strcmp.h: New file.
22332
22333         Tests for module 'unistr/u16-strcmp'.
22334         * modules/unistr/u16-strcmp-tests: New file.
22335         * tests/unistr/test-u16-strcmp.c: New file.
22336         * tests/unistr/test-u16-strcmp.h: New file.
22337
22338         Tests for module 'unistr/u8-strcmp'.
22339         * modules/unistr/u8-strcmp-tests: New file.
22340         * tests/unistr/test-u8-strcmp.c: New file.
22341         * tests/unistr/test-u8-strcmp.h: New file.
22342         * tests/unistr/test-strcmp.h: New file.
22343
22344         Tests for module 'unistr/u32-strncat'.
22345         * modules/unistr/u32-strncat-tests: New file.
22346         * tests/unistr/test-u32-strncat.c: New file.
22347
22348         Tests for module 'unistr/u16-strncat'.
22349         * modules/unistr/u16-strncat-tests: New file.
22350         * tests/unistr/test-u16-strncat.c: New file.
22351
22352         Tests for module 'unistr/u8-strncat'.
22353         * modules/unistr/u8-strncat-tests: New file.
22354         * tests/unistr/test-u8-strncat.c: New file.
22355         * tests/unistr/test-strncat.h: New file.
22356
22357         Tests for module 'unistr/u32-strcat'.
22358         * modules/unistr/u32-strcat-tests: New file.
22359         * tests/unistr/test-u32-strcat.c: New file.
22360
22361         Tests for module 'unistr/u16-strcat'.
22362         * modules/unistr/u16-strcat-tests: New file.
22363         * tests/unistr/test-u16-strcat.c: New file.
22364
22365         Tests for module 'unistr/u8-strcat'.
22366         * modules/unistr/u8-strcat-tests: New file.
22367         * tests/unistr/test-u8-strcat.c: New file.
22368         * tests/unistr/test-strcat.h: New file.
22369
22370         Tests for module 'unistr/u32-stpncpy'.
22371         * modules/unistr/u32-stpncpy-tests: New file.
22372         * tests/unistr/test-u32-stpncpy.c: New file.
22373
22374         Tests for module 'unistr/u16-stpncpy'.
22375         * modules/unistr/u16-stpncpy-tests: New file.
22376         * tests/unistr/test-u16-stpncpy.c: New file.
22377
22378         Tests for module 'unistr/u8-stpncpy'.
22379         * modules/unistr/u8-stpncpy-tests: New file.
22380         * tests/unistr/test-u8-stpncpy.c: New file.
22381         * tests/unistr/test-stpncpy.h: New file.
22382
22383         Tests for module 'unistr/u32-strncpy'.
22384         * modules/unistr/u32-strncpy-tests: New file.
22385         * tests/unistr/test-u32-strncpy.c: New file.
22386
22387         Tests for module 'unistr/u16-strncpy'.
22388         * modules/unistr/u16-strncpy-tests: New file.
22389         * tests/unistr/test-u16-strncpy.c: New file.
22390
22391         Tests for module 'unistr/u8-strncpy'.
22392         * modules/unistr/u8-strncpy-tests: New file.
22393         * tests/unistr/test-u8-strncpy.c: New file.
22394         * tests/unistr/test-strncpy.h: New file.
22395
22396         Tests for module 'unistr/u32-stpcpy'.
22397         * modules/unistr/u32-stpcpy-tests: New file.
22398         * tests/unistr/test-u32-stpcpy.c: New file.
22399
22400         Tests for module 'unistr/u16-stpcpy'.
22401         * modules/unistr/u16-stpcpy-tests: New file.
22402         * tests/unistr/test-u16-stpcpy.c: New file.
22403
22404         Tests for module 'unistr/u8-stpcpy'.
22405         * modules/unistr/u8-stpcpy-tests: New file.
22406         * tests/unistr/test-u8-stpcpy.c: New file.
22407         * tests/unistr/test-stpcpy.h: New file.
22408
22409         Tests for module 'unistr/u32-strcpy'.
22410         * modules/unistr/u32-strcpy-tests: New file.
22411         * tests/unistr/test-u32-strcpy.c: New file.
22412
22413         Tests for module 'unistr/u16-strcpy'.
22414         * modules/unistr/u16-strcpy-tests: New file.
22415         * tests/unistr/test-u16-strcpy.c: New file.
22416
22417         Tests for module 'unistr/u8-strcpy'.
22418         * modules/unistr/u8-strcpy-tests: New file.
22419         * tests/unistr/test-u8-strcpy.c: New file.
22420         * tests/unistr/test-strcpy.h: New file.
22421
22422         Tests for module 'unistr/u32-strnlen'.
22423         * modules/unistr/u32-strnlen-tests: New file.
22424         * tests/unistr/test-u32-strnlen.c: New file.
22425
22426         Tests for module 'unistr/u16-strnlen'.
22427         * modules/unistr/u16-strnlen-tests: New file.
22428         * tests/unistr/test-u16-strnlen.c: New file.
22429
22430         Tests for module 'unistr/u8-strnlen'.
22431         * modules/unistr/u8-strnlen-tests: New file.
22432         * tests/unistr/test-u8-strnlen.c: New file.
22433         * tests/unistr/test-strnlen.h: New file.
22434
22435         Tests for module 'unistr/u32-strlen'.
22436         * modules/unistr/u32-strlen-tests: New file.
22437         * tests/unistr/test-u32-strlen.c: New file.
22438
22439         Tests for module 'unistr/u16-strlen'.
22440         * modules/unistr/u16-strlen-tests: New file.
22441         * tests/unistr/test-u16-strlen.c: New file.
22442
22443         Tests for module 'unistr/u8-strlen'.
22444         * modules/unistr/u8-strlen-tests: New file.
22445         * tests/unistr/test-u8-strlen.c: New file.
22446
22447         Tests for module 'unistr/u32-prev'.
22448         * modules/unistr/u32-prev-tests: New file.
22449         * tests/unistr/test-u32-prev.c: New file.
22450
22451         Tests for module 'unistr/u16-prev'.
22452         * modules/unistr/u16-prev-tests: New file.
22453         * tests/unistr/test-u16-prev.c: New file.
22454
22455         Tests for module 'unistr/u8-prev'.
22456         * modules/unistr/u8-prev-tests: New file.
22457         * tests/unistr/test-u8-prev.c: New file.
22458
22459         Tests for module 'unistr/u32-next'.
22460         * modules/unistr/u32-next-tests: New file.
22461         * tests/unistr/test-u32-next.c: New file.
22462
22463         Tests for module 'unistr/u16-next'.
22464         * modules/unistr/u16-next-tests: New file.
22465         * tests/unistr/test-u16-next.c: New file.
22466
22467         Tests for module 'unistr/u8-next'.
22468         * modules/unistr/u8-next-tests: New file.
22469         * tests/unistr/test-u8-next.c: New file.
22470
22471         Tests for module 'unistr/u32-strmbtouc'.
22472         * modules/unistr/u32-strmbtouc-tests: New file.
22473         * tests/unistr/test-u32-strmbtouc.c: New file.
22474
22475         Tests for module 'unistr/u16-strmbtouc'.
22476         * modules/unistr/u16-strmbtouc-tests: New file.
22477         * tests/unistr/test-u16-strmbtouc.c: New file.
22478
22479         Tests for module 'unistr/u8-strmbtouc'.
22480         * modules/unistr/u8-strmbtouc-tests: New file.
22481         * tests/unistr/test-u8-strmbtouc.c: New file.
22482
22483         Tests for module 'unistr/u32-strmblen'.
22484         * modules/unistr/u32-strmblen-tests: New file.
22485         * tests/unistr/test-u32-strmblen.c: New file.
22486
22487         Tests for module 'unistr/u16-strmblen'.
22488         * modules/unistr/u16-strmblen-tests: New file.
22489         * tests/unistr/test-u16-strmblen.c: New file.
22490
22491         Tests for module 'unistr/u8-strmblen'.
22492         * modules/unistr/u8-strmblen-tests: New file.
22493         * tests/unistr/test-u8-strmblen.c: New file.
22494
22495         Tests for module 'unistr/u32-cpy-alloc'.
22496         * modules/unistr/u32-cpy-alloc-tests: New file.
22497         * tests/unistr/test-u32-cpy-alloc.c: New file.
22498
22499         Tests for module 'unistr/u16-cpy-alloc'.
22500         * modules/unistr/u16-cpy-alloc-tests: New file.
22501         * tests/unistr/test-u16-cpy-alloc.c: New file.
22502
22503         Tests for module 'unistr/u8-cpy-alloc'.
22504         * modules/unistr/u8-cpy-alloc-tests: New file.
22505         * tests/unistr/test-u8-cpy-alloc.c: New file.
22506         * tests/unistr/test-cpy-alloc.h: New file.
22507
22508         Tests for module 'unistr/u32-mbsnlen'.
22509         * modules/unistr/u32-mbsnlen-tests: New file.
22510         * tests/unistr/test-u32-mbsnlen.c: New file.
22511
22512         Tests for module 'unistr/u16-mbsnlen'.
22513         * modules/unistr/u16-mbsnlen-tests: New file.
22514         * tests/unistr/test-u16-mbsnlen.c: New file.
22515
22516         Tests for module 'unistr/u8-mbsnlen'.
22517         * modules/unistr/u8-mbsnlen-tests: New file.
22518         * tests/unistr/test-u8-mbsnlen.c: New file.
22519
22520         Tests for module 'unistr/u32-chr'.
22521         * modules/unistr/u32-chr-tests: New file.
22522         * tests/unistr/test-u32-chr.c: New file.
22523
22524         Tests for module 'unistr/u16-chr'.
22525         * modules/unistr/u16-chr-tests: New file.
22526         * tests/unistr/test-u16-chr.c: New file.
22527
22528         Tests for module 'unistr/u8-chr'.
22529         * modules/unistr/u8-chr-tests: New file.
22530         * tests/unistr/test-u8-chr.c: New file.
22531         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
22532
22533         Tests for module 'unistr/u32-cmp2'.
22534         * modules/unistr/u32-cmp2-tests: New file.
22535         * tests/unistr/test-u32-cmp2.c: New file.
22536
22537         Tests for module 'unistr/u16-cmp2'.
22538         * modules/unistr/u16-cmp2-tests: New file.
22539         * tests/unistr/test-u16-cmp2.c: New file.
22540
22541         Tests for module 'unistr/u8-cmp2'.
22542         * modules/unistr/u8-cmp2-tests: New file.
22543         * tests/unistr/test-u8-cmp2.c: New file.
22544         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
22545
22546         Tests for module 'unistr/u32-cmp'.
22547         * modules/unistr/u32-cmp-tests: New file.
22548         * tests/unistr/test-u32-cmp.c: New file.
22549
22550         Tests for module 'unistr/u16-cmp'.
22551         * modules/unistr/u16-cmp-tests: New file.
22552         * tests/unistr/test-u16-cmp.c: New file.
22553
22554         Tests for module 'unistr/u8-cmp'.
22555         * modules/unistr/u8-cmp-tests: New file.
22556         * tests/unistr/test-u8-cmp.c: New file.
22557         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
22558
22559         Tests for module 'unistr/u32-set'.
22560         * modules/unistr/u32-set-tests: New file.
22561         * tests/unistr/test-u32-set.c: New file.
22562
22563         Tests for module 'unistr/u16-set'.
22564         * modules/unistr/u16-set-tests: New file.
22565         * tests/unistr/test-u16-set.c: New file.
22566
22567         Tests for module 'unistr/u8-set'.
22568         * modules/unistr/u8-set-tests: New file.
22569         * tests/unistr/test-u8-set.c: New file.
22570         * tests/unistr/test-set.h: New file.
22571
22572         Tests for module 'unistr/u32-move'.
22573         * modules/unistr/u32-move-tests: New file.
22574         * tests/unistr/test-u32-move.c: New file.
22575
22576         Tests for module 'unistr/u16-move'.
22577         * modules/unistr/u16-move-tests: New file.
22578         * tests/unistr/test-u16-move.c: New file.
22579
22580         Tests for module 'unistr/u8-move'.
22581         * modules/unistr/u8-move-tests: New file.
22582         * tests/unistr/test-u8-move.c: New file.
22583         * tests/unistr/test-move.h: New file.
22584
22585         Tests for module 'unistr/u32-cpy'.
22586         * modules/unistr/u32-cpy-tests: New file.
22587         * tests/unistr/test-u32-cpy.c: New file.
22588
22589         Tests for module 'unistr/u16-cpy'.
22590         * modules/unistr/u16-cpy-tests: New file.
22591         * tests/unistr/test-u16-cpy.c: New file.
22592
22593         Tests for module 'unistr/u8-cpy'.
22594         * modules/unistr/u8-cpy-tests: New file.
22595         * tests/unistr/test-u8-cpy.c: New file.
22596         * tests/unistr/test-cpy.h: New file.
22597
22598 2010-01-09  Bruno Haible  <bruno@clisp.org>
22599
22600         Tests for module 'unistr/u32-uctomb'.
22601         * modules/unistr/u32-uctomb-tests: New file.
22602         * tests/unistr/test-u32-uctomb.c: New file.
22603
22604         Tests for module 'unistr/u16-uctomb'.
22605         * modules/unistr/u16-uctomb-tests: New file.
22606         * tests/unistr/test-u16-uctomb.c: New file.
22607
22608         Tests for module 'unistr/u8-uctomb'.
22609         * modules/unistr/u8-uctomb-tests: New file.
22610         * tests/unistr/test-u8-uctomb.c: New file.
22611
22612         Tests for module 'unistr/u32-mbtoucr'.
22613         * modules/unistr/u32-mbtoucr-tests: New file.
22614         * tests/unistr/test-u32-mbtoucr.c: New file.
22615
22616         Tests for module 'unistr/u16-mbtoucr'.
22617         * modules/unistr/u16-mbtoucr-tests: New file.
22618         * tests/unistr/test-u16-mbtoucr.c: New file.
22619
22620         Tests for module 'unistr/u8-mbtoucr'.
22621         * modules/unistr/u8-mbtoucr-tests: New file.
22622         * tests/unistr/test-u8-mbtoucr.c: New file.
22623
22624         Tests for module 'unistr/u32-mbtouc'.
22625         * modules/unistr/u32-mbtouc-tests: New file.
22626         * tests/unistr/test-u32-mbtouc.c: New file.
22627
22628         Tests for module 'unistr/u16-mbtouc'.
22629         * modules/unistr/u16-mbtouc-tests: New file.
22630         * tests/unistr/test-u16-mbtouc.c: New file.
22631
22632         Tests for module 'unistr/u8-mbtouc'.
22633         * modules/unistr/u8-mbtouc-tests: New file.
22634         * tests/unistr/test-u8-mbtouc.c: New file.
22635
22636         Tests for module 'unistr/u32-mbtouc-unsafe'.
22637         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
22638         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
22639         * tests/unistr/test-u32-mbtouc.h: New file.
22640
22641         Tests for module 'unistr/u16-mbtouc-unsafe'.
22642         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
22643         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
22644         * tests/unistr/test-u16-mbtouc.h: New file.
22645
22646         Tests for module 'unistr/u8-mbtouc-unsafe'.
22647         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
22648         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
22649         * tests/unistr/test-u8-mbtouc.h: New file.
22650
22651         Tests for module 'unistr/u32-mblen'.
22652         * modules/unistr/u32-mblen-tests: New file.
22653         * tests/unistr/test-u32-mblen.c: New file.
22654
22655         Tests for module 'unistr/u16-mblen'.
22656         * modules/unistr/u16-mblen-tests: New file.
22657         * tests/unistr/test-u16-mblen.c: New file.
22658
22659         Tests for module 'unistr/u8-mblen'.
22660         * modules/unistr/u8-mblen-tests: New file.
22661         * tests/unistr/test-u8-mblen.c: New file.
22662
22663         Tests for module 'unistr/u32-to-u16'.
22664         * modules/unistr/u32-to-u16-tests: New file.
22665         * tests/unistr/test-u32-to-u16.c: New file.
22666
22667         Tests for module 'unistr/u32-to-u8'.
22668         * modules/unistr/u32-to-u8-tests: New file.
22669         * tests/unistr/test-u32-to-u8.c: New file.
22670
22671         Tests for module 'unistr/u16-to-u32'.
22672         * modules/unistr/u16-to-u32-tests: New file.
22673         * tests/unistr/test-u16-to-u32.c: New file.
22674
22675         Tests for module 'unistr/u16-to-u8'.
22676         * modules/unistr/u16-to-u8-tests: New file.
22677         * tests/unistr/test-u16-to-u8.c: New file.
22678
22679         Tests for module 'unistr/u8-to-u32'.
22680         * modules/unistr/u8-to-u32-tests: New file.
22681         * tests/unistr/test-u8-to-u32.c: New file.
22682
22683         Tests for module 'unistr/u8-to-u16'.
22684         * modules/unistr/u8-to-u16-tests: New file.
22685         * tests/unistr/test-u8-to-u16.c: New file.
22686
22687         Tests for module 'unistr/u32-check'.
22688         * modules/unistr/u32-check-tests: New file.
22689         * tests/unistr/test-u32-check.c: New file.
22690
22691         Tests for module 'unistr/u16-check'.
22692         * modules/unistr/u16-check-tests: New file.
22693         * tests/unistr/test-u16-check.c: New file.
22694
22695         Tests for module 'unistr/u8-check'.
22696         * modules/unistr/u8-check-tests: New file.
22697         * tests/unistr/test-u8-check.c: New file.
22698
22699         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
22700         (category_equals): New function.
22701         (main): Add more tests.
22702         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
22703
22704         * tests/unictype/test-bidi_byname.c (main): Add more tests.
22705
22706 2010-01-10  Bruno Haible  <bruno@clisp.org>
22707
22708         unistr/u*-strcoll: Try harder to distinguish different strings.
22709         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
22710         compare s1 and s2 to see if they are different.
22711
22712 2010-01-10  Bruno Haible  <bruno@clisp.org>
22713
22714         unistr/u*-stpncpy: Fix the return value.
22715         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
22716         description of the return value consistent with stpncpy in glibc.
22717         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
22718         written non-NUL unit.
22719
22720 2010-01-10  Bruno Haible  <bruno@clisp.org>
22721
22722         unistr/u*-next: Add missing dependencies.
22723         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
22724         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
22725         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
22726
22727 2010-01-10  Bruno Haible  <bruno@clisp.org>
22728
22729         unistr/u8-mbsnlen: Fix return value for incomplete character.
22730         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
22731         u8_mblen.
22732         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
22733         Remove unistr/u8-mblen.
22734         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
22735         u16_mblen.
22736         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
22737         Remove unistr/u16-mblen.
22738
22739 2010-01-10  Bruno Haible  <bruno@clisp.org>
22740
22741         wchar: Fix compilation error when <wchar.h> is used from coreutils.
22742         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
22743         Reported by Brian Gough <bjg@gnu.org> and
22744         Chris Clayton <chris2553@googlemail.com> via
22745         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
22746
22747 2010-01-09  Bruno Haible  <bruno@clisp.org>
22748
22749         unistr/u16-to-u32: Reject invalid input.
22750         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
22751         u16_mbtouc.
22752         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
22753         Remove unistr/u16-mbtouc.
22754
22755         unistr/u16-to-u8: Reject invalid input.
22756         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
22757         u16_mbtouc.
22758         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
22759         Remove unistr/u16-mbtouc.
22760
22761         unistr/u8-to-u32: Reject invalid input.
22762         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
22763         u8_mbtouc.
22764         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
22765         Remove unistr/u8-mbtouc.
22766
22767         unistr/u8-to-u16: Reject invalid input.
22768         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
22769         u8_mbtouc.
22770         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
22771         Remove unistr/u8-mbtouc.
22772
22773 2010-01-09  Bruno Haible  <bruno@clisp.org>
22774
22775         Tests for module 'getlogin'.
22776         * modules/getlogin-tests: New file.
22777         * tests/test-getlogin.c: New file.
22778
22779         New module 'getlogin'.
22780         * lib/unistd.in.h (getlogin): New declaration.
22781         * lib/getlogin.c: New file.
22782         * m4/getlogin.m4: New file.
22783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
22784         HAVE_GETLOGIN.
22785         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
22786         HAVE_GETLOGIN.
22787         * modules/getlogin: New file.
22788         * doc/posix-functions/getlogin.texi: Mention the new module.
22789         Reported by John W. Eaton <jwe@gnu.org>.
22790
22791 2010-01-09  Bruno Haible  <bruno@clisp.org>
22792
22793         getlogin_r: Support for native Windows.
22794         * lib/getlogin_r.c: Include <windows.h>
22795         (getlogin_r): Implement for native Windows.
22796         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
22797         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
22798         via John W. Eaton <jwe@gnu.org>.
22799
22800 2010-01-09  Bruno Haible  <bruno@clisp.org>
22801
22802         getlogin_r: Small fixes.
22803         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
22804         succeeds.
22805         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
22806         before testing whether getlogin_r is declared. No need to set
22807         HAVE_DECL_GETLOGIN_R to 1.
22808         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
22809
22810 2010-01-09  Bruno Haible  <bruno@clisp.org>
22811
22812         * lib/unistd.in.h (getlogin_r): Add comment.
22813
22814 2010-01-09  Bruno Haible  <bruno@clisp.org>
22815
22816         Tests for module 'getlogin_r'.
22817         * modules/getlogin_r-tests: New file.
22818         * tests/test-getlogin_r.c: New file.
22819
22820 2010-01-09  Jim Meyering  <meyering@redhat.com>
22821
22822         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
22823         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
22824         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
22825
22826 2010-01-08  Simon Josefsson  <simon@josefsson.org>
22827
22828         * lib/dup2.c (rpl_dup2): Improve comment.
22829
22830 2010-01-08  Eric Blake  <ebb9@byu.net>
22831
22832         maint.mk: allow packages to add makefile @@ exceptions
22833         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
22834         (sc_makefile_check): Rename...
22835         (sc_makefile_at_at_check): ...to this, and use hook.
22836
22837         dup2: work around mingw bug
22838         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
22839         Reported by Simon Josefsson.
22840
22841 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
22842
22843         glob: Fix C++ compilation.
22844         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
22845         C++.
22846
22847 2010-01-07  Bruno Haible  <bruno@clisp.org>
22848
22849         Fix indentation of wctype.in.h, broken since 2007-01-06.
22850         * lib/wctype.in.h: Fix indentation of preprocessor directives.
22851
22852 2010-01-07  Bruno Haible  <bruno@clisp.org>
22853
22854         mbslen: Avoid collision with system function.
22855         * lib/string.in.h [MirBSD]: Include <wchar.h>.
22856         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
22857         * m4/mbslen.m4: New file.
22858         * modules/mbslen (Files): Add it.
22859         (configure.ac): Invoke gl_MBSLEN.
22860         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
22861         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
22862         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
22863         via Ian Beckwith <ianb@erislabs.net>.
22864
22865 2010-01-07  Bruno Haible  <bruno@clisp.org>
22866
22867         dirent: Document the last fix.
22868         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
22869
22870 2010-01-07  Bruno Haible  <bruno@clisp.org>
22871
22872         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
22873         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
22874         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
22875         va_list are defined.
22876         * doc/posix-headers/stdio.texi: Document the bug of missing types.
22877         Reported by Eric Blake.
22878
22879 2010-01-07  Bruno Haible  <bruno@clisp.org>
22880
22881         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
22882         * modules/xlist (Depends-on): Add 'list',
22883         * modules/xoset (Depends-on): Add 'oset'.
22884         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22885
22886 2010-01-07  Bruno Haible  <bruno@clisp.org>
22887
22888         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
22889         * doc/posix-functions/strncasecmp.texi: Likewise.
22890
22891 2010-01-07  Bruno Haible  <bruno@clisp.org>
22892
22893         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
22894
22895 2010-01-07  John W. Eaton  <jwe@octave.org>
22896
22897         wctype: allow C++ use
22898         * lib/wctype.in.h: Add extern "C" block for C++.
22899
22900 2010-01-06  Eric Blake  <ebb9@byu.net>
22901
22902         maint.mk: detect incorrect GFDL usage
22903         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
22904
22905 2010-01-06  Jim Meyering  <meyering@redhat.com>
22906         and Eric Blake  <ebb9@byu.net>
22907
22908         maint.mk: ignore multi-line copyright in NEWS
22909         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
22910
22911 2010-01-06  Eric Blake  <ebb9@byu.net>
22912
22913         select: add missing dependency
22914         * modules/select-tests (Depends-on): Move sockets dependency...
22915         * modules/select (Depends-on): ...here.
22916         Reported by Ian Beckwith.
22917
22918         doc: regenerate INSTALL
22919         * doc/INSTALL: Reflect recent autoconf update.
22920         * doc/INSTALL.ISO: Likewise.
22921         * doc/INSTALL.UTF-8: Likewise.
22922
22923         pread: fix compilation on glibc
22924         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
22925         Reported by Ralf Wildenhues.
22926
22927         dirent: fix test failure
22928         * lib/dirent.in.h (includes): Guarantee ino_t.
22929         Reported by Ralf Wildenhues.
22930
22931 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
22932
22933         linkat, renameat: avoid bad free
22934         * lib/at-func2.c (at_func2): Fix typo.
22935         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
22936
22937 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22938
22939         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
22940         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
22941         to avoid failure of symlink test later.
22942
22943 2010-01-06  Eric Blake  <ebb9@byu.net>
22944
22945         stdio, unistd: guarantee ssize_t
22946         * lib/unistd.in.h (includes): Ensure that types required by POSIX
22947         2008 are exposed when needed.
22948         * lib/stdio.in.h (includes): Likewise.
22949         Reported by Ralf Wildenhues.
22950
22951 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
22952
22953         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
22954         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
22955         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
22956
22957 2010-01-06  Jim Meyering  <meyering@redhat.com>
22958
22959         readtokens: this module *does* require xalloc.h
22960         It uses only functions that were omitted by the old syntax-check rule.
22961         * lib/readtokens.c: Include "xalloc.h" once again.
22962         * modules/readtokens (Depends-on): Add xalloc.
22963         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
22964
22965 2010-01-05  Eric Blake  <ebb9@byu.net>
22966
22967         maint: support 'make announcement' from a VPATH build
22968         * top/maint.mk (announcement): Look for correct NEWS file.
22969
22970 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
22971
22972         utimens (fdutimens): ignore a negative FD, per contract
22973         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
22974         when we have a valid file descriptor.  Otherwise, using a brand
22975         new glibc (with just-patched futimens that now fails with EBADF)
22976         would cause this function to fail with ENOSYS.
22977         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
22978         See also http://bugzilla.redhat.com/552320.
22979
22980 2010-01-05  Eric Blake  <ebb9@byu.net>
22981
22982         strcase: document what it provides
22983         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
22984         gnulib module.
22985         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
22986         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
22987
22988 2010-01-05  Jim Meyering  <meyering@redhat.com>
22989
22990         maint: remove useless inclusions of "xalloc.h"
22991         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
22992         * lib/readtokens.c: Likewise.
22993         * lib/same.c: Likewise.
22994         * modules/getloadavg (Depends-on): Remove xalloc.
22995         * modules/readtokens: Likewise.
22996         * modules/same: Likewise.
22997
22998         maint.mk: include 4 more function names in alloca.h-checking regexp
22999         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
23000         regexp.  Before, we would give a false-positive (saying alloca.h
23001         is included unnecessarily) when the only uses involved omitted symbols.
23002
23003         xalloc.h: use consistent formatting
23004         * lib/xalloc.h: Move declarations to start in the first column.
23005
23006 2010-01-05  Eric Blake  <ebb9@byu.net>
23007
23008         mkdir: avoid xalloc
23009         * lib/mkdir.c (includes): Drop unused header.
23010         Reported by John W. Eaton.
23011
23012 2010-01-04  Jim Meyering  <meyering@redhat.com>
23013
23014         nl_langinfo: avoid configure-time syntax error
23015         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
23016         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
23017         the empty string.  Don't let that provoke a shell syntax error.
23018
23019         regcomp, regexec, fnmatch: avoid array bounds read error
23020         * lib/regcomp.c (build_equiv_class): From glibc:
23021         Use only the low 24 bits of a findidx return value as an index
23022         into the weights array.  Patch by Ulrich Drepper:
23023         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
23024         * lib/regexec.c (check_node_accept_bytes): Likewise.
23025         * lib/fnmatch_loop.c (FCT): Likewise.
23026
23027         regcomp: skip collseq lookup when there are no rules
23028         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
23029         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
23030
23031         regcomp: recognize ill-formed { } expressions
23032         * lib/regcomp.c (parse_dup_op): From glibc:
23033         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
23034
23035         regcomp: fix typo in comment
23036         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
23037         s/satisfy/satisfies/.
23038
23039         regcomp: sync from glibc: remove dead store
23040         * lib/regcomp.c (duplicate_node_closure): Remove useless
23041         search_duplicated_node call and dead store.
23042
23043         regcomp: sync from glibc; always use nl_langinfo
23044         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
23045         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
23046         * modules/regex (Depends-on): Add nl_langinfo.
23047
23048 2010-01-04  Eric Blake  <ebb9@byu.net>
23049
23050         fdopendir: fix configure test
23051         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
23052
23053 2010-01-01  Bruno Haible  <bruno@clisp.org>
23054
23055         wchar: Remove unused configure check.
23056         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
23057
23058 2010-01-01  Eric Blake  <ebb9@byu.net>
23059
23060         headers: make check of system header explicit
23061         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
23062         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
23063         ourselves.
23064         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23065         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23066         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
23067         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
23068         internals.
23069         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
23070         missing.
23071         Suggested by Bruno Haible.
23072
23073 2010-01-01  Jim Meyering  <meyering@redhat.com>
23074
23075         ChangeLog: tweak to eliminate unnecessary copyright line
23076         * ChangeLog: Remove a copyright line that was mistakenly updated
23077         by today's update-copyright run.  Reported by Eric Blake.
23078
23079         test-update-copyright: don't let envvar setting cause test failure
23080         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
23081
23082 2010-01-01  Bruno Haible  <bruno@clisp.org>
23083
23084         localename: Avoid gcc warning.
23085         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
23086         function if it is not used.
23087
23088 2010-01-01  Jim Meyering  <meyering@redhat.com>
23089
23090         update nearly all FSF copyright year lists to include 2010
23091         Use the same procedure as for 2009, outlined in
23092         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
23093
23094         version-etc: set COPYRIGHT_YEAR to 2010
23095         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
23096
23097 2009-12-31  Eric Blake  <ebb9@byu.net>
23098
23099         doc: correct availability of cygwin 1.5.x getopt
23100         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
23101         variables.
23102         * doc/posix-functions/opterr.texi (opterr): Likewise.
23103         * doc/posix-functions/optind.texi (optind): Likewise.
23104         * doc/posix-functions/optopt.texi (optopt): Likewise.
23105         * doc/posix-functions/tzname.texi (tzname): Likewise.
23106
23107         openat: update maintainer
23108         * modules/openat (Maintainer): Add myself.
23109
23110         utimens: avoid shadowing warning
23111         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
23112         buffers into one, to avoid shadowing, as well as avoiding a
23113         redundant stat.
23114         Reported by Jim Meyering.
23115
23116         test-dup2: avoid compiler warning
23117         * tests/test-dup2.c (is_inheritable): Only define if used.
23118
23119 2010-01-01  Bruno Haible  <bruno@clisp.org>
23120
23121         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
23122         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
23123         defined, use wctomb instead of wcrtomb.
23124
23125 2010-01-01  Bruno Haible  <bruno@clisp.org>
23126
23127         iconv: Reject native Solaris iconv.
23128         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
23129         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
23130
23131 2009-12-31  Bruno Haible  <bruno@clisp.org>
23132
23133         * tests/test-signal.c (main): Remove test of 'SIG'.
23134
23135 2009-12-31  Bruno Haible  <bruno@clisp.org>
23136
23137         spawn: Fix incomplete fix.
23138         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23139         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23140         warnings for GNULIB_POSIXCHECK again.
23141         Reported by Eric Blake.
23142
23143 2009-12-31  Bruno Haible  <bruno@clisp.org>
23144
23145         Avoid namespace pollution on glibc systems.
23146         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
23147         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
23148         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
23149         glibc systems.
23150
23151 2009-12-31  Bruno Haible  <bruno@clisp.org>
23152
23153         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
23154         (gl_REPLACE_WCHAR_H): Turn into a no-op.
23155         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
23156         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
23157         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
23158         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
23159         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
23160
23161 2009-12-31  Bruno Haible  <bruno@clisp.org>
23162
23163         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
23164         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
23165         afterwards.
23166
23167 2009-12-31  Bruno Haible  <bruno@clisp.org>
23168
23169         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
23170         SYS_UTSNAME_H.
23171
23172 2009-12-31  Bruno Haible  <bruno@clisp.org>
23173
23174         spawn: Fix misapplied patch.
23175         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23176         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23177         warnings for GNULIB_POSIXCHECK.
23178
23179 2009-12-31  Bruno Haible  <bruno@clisp.org>
23180
23181         times: Update after sys_times changed.
23182         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
23183         * modules/times (Files): Add it.
23184         (configure.ac): Invoke gl_FUNC_TIMES.
23185
23186 2009-12-31  Bruno Haible  <bruno@clisp.org>
23187
23188         Use AC_C_INLINE where necessary.
23189         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
23190         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23191         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
23192         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
23193         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23194         * m4/mbiter.m4 (gl_MBITER): Likewise.
23195         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
23196         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23197         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
23198         * modules/u64 (configure.ac): Likewise.
23199
23200 2009-12-31  Bruno Haible  <bruno@clisp.org>
23201
23202         Use AC_C_INLINE instead of module 'inline' where possible.
23203         * modules/inline (Description): Clarify purpose.
23204         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
23205         * modules/count-one-bits (Depends-on): Remove inline.
23206         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
23207         * modules/openat (Depends-on): Remove inline.
23208         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
23209         instead of depending on module 'inline'.
23210         * modules/filevercmp (Depends-on, configure.ac): Likewise.
23211         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
23212         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
23213         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
23214         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
23215         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
23216         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
23217         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
23218         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
23219         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
23220         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
23221         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
23222         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
23223         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
23224         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
23225         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
23226         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
23227         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
23228         Likewise.
23229         * modules/unictype/property-ascii-hex-digit (Depends-on,
23230         configure.ac): Likewise.
23231         * modules/unictype/property-bidi-arabic-digit (Depends-on,
23232         configure.ac): Likewise.
23233         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
23234         configure.ac): Likewise.
23235         * modules/unictype/property-bidi-block-separator (Depends-on,
23236         configure.ac): Likewise.
23237         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
23238         configure.ac): Likewise.
23239         * modules/unictype/property-bidi-common-separator (Depends-on,
23240         configure.ac): Likewise.
23241         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
23242         Likewise.
23243         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
23244         configure.ac): Likewise.
23245         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
23246         configure.ac): Likewise.
23247         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
23248         configure.ac): Likewise.
23249         * modules/unictype/property-bidi-european-digit (Depends-on,
23250         configure.ac): Likewise.
23251         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
23252         configure.ac): Likewise.
23253         * modules/unictype/property-bidi-left-to-right (Depends-on,
23254         configure.ac): Likewise.
23255         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
23256         configure.ac): Likewise.
23257         * modules/unictype/property-bidi-other-neutral (Depends-on,
23258         configure.ac): Likewise.
23259         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
23260         Likewise.
23261         * modules/unictype/property-bidi-segment-separator (Depends-on,
23262         configure.ac): Likewise.
23263         * modules/unictype/property-bidi-whitespace (Depends-on,
23264         configure.ac): Likewise.
23265         * modules/unictype/property-combining (Depends-on, configure.ac):
23266         Likewise.
23267         * modules/unictype/property-composite (Depends-on, configure.ac):
23268         Likewise.
23269         * modules/unictype/property-currency-symbol (Depends-on,
23270         configure.ac): Likewise.
23271         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
23272         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
23273         Likewise.
23274         * modules/unictype/property-default-ignorable-code-point (Depends-on,
23275         configure.ac): Likewise.
23276         * modules/unictype/property-deprecated (Depends-on, configure.ac):
23277         Likewise.
23278         * modules/unictype/property-diacritic (Depends-on, configure.ac):
23279         Likewise.
23280         * modules/unictype/property-extender (Depends-on, configure.ac):
23281         Likewise.
23282         * modules/unictype/property-format-control (Depends-on, configure.ac):
23283         Likewise.
23284         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
23285         Likewise.
23286         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
23287         Likewise.
23288         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
23289         Likewise.
23290         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
23291         Likewise.
23292         * modules/unictype/property-hyphen (Depends-on, configure.ac):
23293         Likewise.
23294         * modules/unictype/property-id-continue (Depends-on, configure.ac):
23295         Likewise.
23296         * modules/unictype/property-id-start (Depends-on, configure.ac):
23297         Likewise.
23298         * modules/unictype/property-ideographic (Depends-on, configure.ac):
23299         Likewise.
23300         * modules/unictype/property-ids-binary-operator (Depends-on,
23301         configure.ac): Likewise.
23302         * modules/unictype/property-ids-trinary-operator (Depends-on,
23303         configure.ac): Likewise.
23304         * modules/unictype/property-ignorable-control (Depends-on,
23305         configure.ac): Likewise.
23306         * modules/unictype/property-iso-control (Depends-on, configure.ac):
23307         Likewise.
23308         * modules/unictype/property-join-control (Depends-on, configure.ac):
23309         Likewise.
23310         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
23311         Likewise.
23312         * modules/unictype/property-line-separator (Depends-on, configure.ac):
23313         Likewise.
23314         * modules/unictype/property-logical-order-exception (Depends-on,
23315         configure.ac): Likewise.
23316         * modules/unictype/property-lowercase (Depends-on, configure.ac):
23317         Likewise.
23318         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
23319         * modules/unictype/property-non-break (Depends-on, configure.ac):
23320         Likewise.
23321         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
23322         Likewise.
23323         * modules/unictype/property-numeric (Depends-on, configure.ac):
23324         Likewise.
23325         * modules/unictype/property-other-alphabetic (Depends-on,
23326         configure.ac): Likewise.
23327         * modules/unictype/property-other-default-ignorable-code-point
23328         (Depends-on, configure.ac): Likewise.
23329         * modules/unictype/property-other-grapheme-extend (Depends-on,
23330         configure.ac): Likewise.
23331         * modules/unictype/property-other-id-continue (Depends-on,
23332         configure.ac): Likewise.
23333         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
23334         Likewise.
23335         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
23336         Likewise.
23337         * modules/unictype/property-other-math (Depends-on, configure.ac):
23338         Likewise.
23339         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
23340         Likewise.
23341         * modules/unictype/property-paired-punctuation (Depends-on,
23342         configure.ac): Likewise.
23343         * modules/unictype/property-paragraph-separator (Depends-on,
23344         configure.ac): Likewise.
23345         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
23346         Likewise.
23347         * modules/unictype/property-pattern-white-space (Depends-on,
23348         configure.ac): Likewise.
23349         * modules/unictype/property-private-use (Depends-on, configure.ac):
23350         Likewise.
23351         * modules/unictype/property-punctuation (Depends-on, configure.ac):
23352         Likewise.
23353         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
23354         Likewise.
23355         * modules/unictype/property-radical (Depends-on, configure.ac):
23356         Likewise.
23357         * modules/unictype/property-sentence-terminal (Depends-on,
23358         configure.ac): Likewise.
23359         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
23360         Likewise.
23361         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
23362         * modules/unictype/property-terminal-punctuation (Depends-on,
23363         configure.ac): Likewise.
23364         * modules/unictype/property-titlecase (Depends-on, configure.ac):
23365         Likewise.
23366         * modules/unictype/property-unassigned-code-value (Depends-on,
23367         configure.ac): Likewise.
23368         * modules/unictype/property-unified-ideograph (Depends-on,
23369         configure.ac): Likewise.
23370         * modules/unictype/property-uppercase (Depends-on, configure.ac):
23371         Likewise.
23372         * modules/unictype/property-variation-selector (Depends-on,
23373         configure.ac): Likewise.
23374         * modules/unictype/property-white-space (Depends-on, configure.ac):
23375         Likewise.
23376         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
23377         Likewise.
23378         * modules/unictype/property-xid-start (Depends-on, configure.ac):
23379         Likewise.
23380         * modules/unictype/property-zero-width (Depends-on, configure.ac):
23381         Likewise.
23382         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
23383         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
23384         Likewise.
23385
23386 2009-12-31  Bruno Haible  <bruno@clisp.org>
23387
23388         Remove unnecessary AC_C_INLINE invocation.
23389         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
23390         since 2009-08-21.
23391
23392 2009-12-31  Jim Meyering  <meyering@redhat.com>
23393
23394         maint.mk: don't require explicit gpg_key_ID in cfg.mk
23395         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
23396         With this change, we can all remove the gpg_key_ID = ... definition
23397         from our respective cfg.mk files.
23398
23399         maint.mk: create announcement template in ~/, not in /tmp
23400         * top/maint.mk (emit_upload_commands): Adjust.
23401         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
23402         Remove temporary file, .ci-msg.
23403
23404 2009-12-31  Eric Blake  <ebb9@byu.net>
23405
23406         link-warning: always build headers with link warnings
23407         * modules/arpa_inet (Makefile.am): Always build replacement
23408         header.
23409         * modules/ctype (Makefile.am): Likewise.
23410         * modules/dirent (Makefile.am): Likewise.
23411         * modules/inttypes (Makefile.am): Likewise.
23412         * modules/langinfo (Makefile.am): Likewise.
23413         * modules/locale (Makefile.am): Likewise.
23414         * modules/spawn (Makefile.am): Likewise.
23415         * modules/sys_file (Makefile.am): Likewise.
23416         * modules/sys_ioctl (Makefile.am): Likewise.
23417         * modules/sys_select (Makefile.am): Likewise.
23418         * modules/sys_socket (Makefile.am): Likewise.
23419         * modules/sys_times (Makefile.am): Likewise.
23420         * modules/sys_utsname (Makefile.am): Likewise.
23421         * modules/sys_wait (Makefile.am): Likewise.
23422         * modules/wchar (Makefile.am): Likewise.
23423         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
23424         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
23425         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
23426         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
23427         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
23428         Likewise.
23429         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23430         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23431         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
23432         Likewise.
23433         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
23434         Likewise.
23435         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
23436         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
23437         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
23438         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23439         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23440         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
23441         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
23442         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
23443         (gl_WCHAR_H_DEFAULTS): Likewise.
23444
23445 2009-12-31  Eric Blake  <ebb9@byu.net>
23446
23447         signal, spawn: use link warnings
23448         * lib/signal.in.h (sigset_t): Make unconditional.
23449         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
23450         (sigpending, sigprocmask, sigaction): Add link warnings.
23451         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
23452         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
23453         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
23454         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
23455         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
23456         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
23457         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
23458         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
23459         (posix_spawn_file_actions_destroy)
23460         (posix_spawn_file_actions_addopen)
23461         (posix_spawn_file_actions_addclose)
23462         (posix_spawn_file_actions_adddup2): Likewise.
23463         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
23464         * tests/test-signal.c (main): Enhance test.
23465
23466         spawn: improve wrapper support
23467         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
23468         (gl_SPAWN_H_DEFAULTS): New defaults.
23469         * modules/spawn (Makefile.am): Substitute them.
23470         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
23471         Only declare if missing or broken.
23472
23473         sys_times, sys_utsname: use include_next
23474         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
23475         header.
23476         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
23477         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
23478         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
23479         * modules/sys_times (Depends-on): Add include_next.
23480         (Makefile.am): Substitute additional values.
23481         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
23482         * lib/sys_times.in.h (includes): Include native header, if
23483         available.
23484         * lib/sys_utsname.in.h (includes): Likewise.
23485         * tests/test-sys_times.c (main): Enhance test.
23486
23487         fdutimensat: revert prior patch
23488         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
23489         utimens.h.
23490         Reported by Bruno Haible.
23491
23492 2009-12-30  Eric Blake  <ebb9@byu.net>
23493
23494         sys_wait: drop link-warning dependency
23495         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
23496         link-warning efforts.
23497         * lib/sys_wait.in.h: Likewise.
23498
23499         fdutimensat: remove bogus dependency
23500         * modules/fdutimensat (Depends-on): Drop inline.
23501
23502         unistd: fix typo
23503         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
23504
23505 2009-12-30  Bruno Haible  <bruno@clisp.org>
23506
23507         Fix compilation error with Solaris cc.
23508         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
23509         * lib/unicase/u16-is-invariant.c: Likewise.
23510         * lib/unicase/u32-is-invariant.c: Likewise.
23511         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
23512
23513 2009-12-30  Bruno Haible  <bruno@clisp.org>
23514
23515         Fix test crash.
23516         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
23517         locales.
23518         Reported by Simon Josefsson <simon@josefsson.org>.
23519
23520 2009-12-30  Bruno Haible  <bruno@clisp.org>
23521
23522         Fix compilation error on most platforms.
23523         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
23524         Reported by Simon Josefsson <simon@josefsson.org>
23525         and Nelson H. F. Beebe <beebe@math.utah.edu>.
23526
23527 2009-12-30  Eric Blake  <ebb9@byu.net>
23528
23529         futimens, utimensat: work around ntfs-3g bug
23530         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
23531         a ctime bug is present, and expand workaround to cover ntfs-3g.
23532         * lib/utimens.c (fdutimens, lutimens): Likewise.
23533         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
23534         (validate_timespec): Adjust return value.
23535         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
23536         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23537         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
23538
23539 2009-12-29  Eric Blake  <ebb9@byu.net>
23540
23541         link-warning: make usage consistent
23542         * modules/ctype (Depends-on): Add link-warning.
23543         (Makefile.am): Update rules accordingly.
23544         * modules/langinfo (Depends-on, Makefile.am): Likewise.
23545         * modules/locale (Depends-on, Makefile.am): Likewise.
23546         * modules/sys_file (Makefile.am): Likewise.
23547         * modules/getopt-posix (Makefile.am): Delete unused link warning
23548         efforts.
23549         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
23550         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
23551         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
23552         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
23553
23554         stdio: remove unused variables
23555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
23556         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
23557         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23558
23559         tests: test more substitute headers
23560         * modules/ctype-tests: New file.
23561         * modules/dirent-tests: Likewise.
23562         * modules/spawn-tests: Likewise.
23563         * modules/sys_file-tests: Likewise.
23564         * modules/sys_ioctl-tests: Likewise.
23565         * modules/sys_wait-tests: Likewise.
23566         * tests/test-ctype.c: Likewise.
23567         * tests/test-dirent.c: Likewise.
23568         * tests/test-spawn.c: Likewise.
23569         * tests/test-sys_file.c: Likewise.
23570         * tests/test-sys_ioctl.c: Likewise.
23571         * tests/test-sys_wait.c: Likewise.
23572         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
23573         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
23574         whether or not flock is in use.
23575
23576         tests: remove License section from module
23577         * modules/arpa_inet-tests: Remove unneeded section.
23578         * modules/byteswap-tests: Likewise.
23579         * modules/ceilf-tests: Likewise.
23580         * modules/ceill-tests: Likewise.
23581         * modules/crypto/des-tests: Likewise.
23582         * modules/crypto/gc-arcfour-tests: Likewise.
23583         * modules/crypto/gc-arctwo-tests: Likewise.
23584         * modules/crypto/gc-des-tests: Likewise.
23585         * modules/crypto/gc-hmac-md5-tests: Likewise.
23586         * modules/crypto/gc-hmac-sha1-tests: Likewise.
23587         * modules/crypto/gc-md2-tests: Likewise.
23588         * modules/crypto/gc-md4-tests: Likewise.
23589         * modules/crypto/gc-md5-tests: Likewise.
23590         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
23591         * modules/crypto/gc-rijndael-tests: Likewise.
23592         * modules/crypto/gc-sha1-tests: Likewise.
23593         * modules/crypto/gc-tests: Likewise.
23594         * modules/crypto/md2-tests: Likewise.
23595         * modules/crypto/md4-tests: Likewise.
23596         * modules/fcntl-h-tests: Likewise.
23597         * modules/floorf-tests: Likewise.
23598         * modules/floorl-tests: Likewise.
23599         * modules/frexp-nolibm-tests: Likewise.
23600         * modules/frexp-tests: Likewise.
23601         * modules/frexpl-nolibm-tests: Likewise.
23602         * modules/frexpl-tests: Likewise.
23603         * modules/getaddrinfo-tests: Likewise.
23604         * modules/inttypes-tests: Likewise.
23605         * modules/isfinite-tests: Likewise.
23606         * modules/isinf-tests: Likewise.
23607         * modules/ldexpl-tests: Likewise.
23608         * modules/locale-tests: Likewise.
23609         * modules/math-tests: Likewise.
23610         * modules/netdb-tests: Likewise.
23611         * modules/netinet_in-tests: Likewise.
23612         * modules/printf-frexp-tests: Likewise.
23613         * modules/printf-frexpl-tests: Likewise.
23614         * modules/priv-set-tests: Likewise.
23615         * modules/random_r-tests: Likewise.
23616         * modules/round-tests: Likewise.
23617         * modules/roundf-tests: Likewise.
23618         * modules/roundl-tests: Likewise.
23619         * modules/search-tests: Likewise.
23620         * modules/select-tests: Likewise.
23621         * modules/signal-tests: Likewise.
23622         * modules/stdbool-tests: Likewise.
23623         * modules/stddef-tests: Likewise.
23624         * modules/stdint-tests: Likewise.
23625         * modules/stdio-tests: Likewise.
23626         * modules/stdlib-tests: Likewise.
23627         * modules/string-tests: Likewise.
23628         * modules/strings-tests: Likewise.
23629         * modules/sys_select-tests: Likewise.
23630         * modules/sys_socket-tests: Likewise.
23631         * modules/sys_stat-tests: Likewise.
23632         * modules/sys_time-tests: Likewise.
23633         * modules/sys_utsname-tests: Likewise.
23634         * modules/sysexits-tests: Likewise.
23635         * modules/time-tests: Likewise.
23636         * modules/trunc-tests: Likewise.
23637         * modules/truncf-tests: Likewise.
23638         * modules/truncl-tests: Likewise.
23639         * modules/tsearch-tests: Likewise.
23640         * modules/unistd-tests: Likewise.
23641         * modules/wchar-tests: Likewise.
23642         * modules/wctype-tests: Likewise.
23643
23644         tests: fix license on several tests
23645         * tests/test-des.c: Update to GPLv3+.
23646         * tests/test-flock.c: Likewise.
23647         * tests/test-fsync.c: Likewise.
23648         * tests/test-futimens.h: Likewise.
23649         * tests/test-gc-arcfour.c: Likewise.
23650         * tests/test-gc-arctwo.c: Likewise.
23651         * tests/test-gc-des.c: Likewise.
23652         * tests/test-gc-hmac-md5.c: Likewise.
23653         * tests/test-gc-hmac-sha1.c: Likewise.
23654         * tests/test-gc-md2.c: Likewise.
23655         * tests/test-gc-md4.c: Likewise.
23656         * tests/test-gc-md5.c: Likewise.
23657         * tests/test-gc-pbkdf2-sha1.c: Likewise.
23658         * tests/test-gc-rijndael.c: Likewise.
23659         * tests/test-gc-sha1.c: Likewise.
23660         * tests/test-gc.c: Likewise.
23661         * tests/test-getcwd.c: Likewise.
23662         * tests/test-link.c: Likewise.
23663         * tests/test-link.h: Likewise.
23664         * tests/test-lutimens.h: Likewise.
23665         * tests/test-md2.c: Likewise.
23666         * tests/test-md4.c: Likewise.
23667         * tests/test-mkdir.h: Likewise.
23668         * tests/test-rename.c: Likewise.
23669         * tests/test-rename.h: Likewise.
23670         * tests/test-safe-alloc.c: Likewise.
23671         * tests/test-utimens-common.h: Likewise.
23672         * tests/test-utimens.h: Likewise.
23673
23674         maint: sync license texts
23675         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
23676         * doc/gpl-3.0.texi: Revert copyright year update.
23677         * doc/lgpl-3.0.texi: Likewise.
23678
23679 2009-12-29  Jim Meyering  <meyering@redhat.com>
23680
23681         update nearly all FSF copyright year lists to include 2009
23682         The files named by the following are exempted:
23683             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
23684               test -f "$dst" && { echo "$dst"; continue; }
23685               test -d "$dst" || continue
23686               echo "$dst"/$(basename "$src")
23687             done > exempt
23688             git ls-files tests/unictype >> exempt
23689         In the remaining files, convert to all-interval notation if
23690         - there is already at least one year interval like 2000-2003
23691         - the file is maintained by me
23692         - the file is in lib/uni*/, where that style already prevails
23693         Otherwise, use update-copyright's default.
23694
23695 2009-12-29  Simon Josefsson  <simon@josefsson.org>
23696         and Eric Blake  <ebb9@byu.net>
23697
23698         tests: don't require debug system() to pass
23699         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
23700         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23701         * tests/test-unlink.h (test_unlink_func): Likewise.
23702         * tests/test-fstatat.c (main): ...into callers.
23703         * tests/test-lstat.c (main): Likewise.
23704         * tests/test-rmdir.c (main): Likewise.
23705         * tests/test-unlink.c (main): Likewise.
23706         * tests/test-unlinkat.c (main): Likewise.
23707         * tests/test-areadlink-with-size.c (main): Don't require a
23708         debug-only system call to pass, aiding cross-testing to mingw.
23709         * tests/test-areadlink.c (main): Likewise.
23710         * tests/test-areadlinkat-with-size.c (main): Likewise.
23711         * tests/test-areadlinkat.c (main): Likewise.
23712         * tests/test-canonicalize-lgpl.c (main): Likewise.
23713         * tests/test-canonicalize.c (main): Likewise.
23714         * tests/test-chown.c (main): Likewise.
23715         * tests/test-fchownat.c (main): Likewise.
23716         * tests/test-lchown.c (main): Likewise.
23717         * tests/test-fdutimensat.c (main): Likewise.
23718         * tests/test-futimens.c (main): Likewise.
23719         * tests/test-link.c (main): Likewise.
23720         * tests/test-linkat.c (main): Likewise.
23721         * tests/test-mkdir.c (main): Likewise.
23722         * tests/test-mkdirat.c (main): Likewise.
23723         * tests/test-mkfifo.c (main): Likewise.
23724         * tests/test-mkfifoat.c (main): Likewise.
23725         * tests/test-mknod.c (main): Likewise.
23726         * tests/test-readlink.c (main): Likewise.
23727         * tests/test-remove.c (main): Likewise.
23728         * tests/test-rename.c (main): Likewise.
23729         * tests/test-renameat.c (main): Likewise.
23730         * tests/test-symlink.c (main): Likewise.
23731         * tests/test-symlinkat.c (main): Likewise.
23732         * tests/test-utimens.c (main): Likewise.
23733         * tests/test-utimensat.c (main): Likewise.
23734
23735 2009-12-29  Simon Josefsson  <simon@josefsson.org>
23736
23737         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
23738         on $(UNUSED_PARAMETER_H) to avoid build failure.
23739
23740 2009-12-28  Jim Meyering  <meyering@redhat.com>
23741
23742         update-copyright: you may specify a max. line length other than 72
23743         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
23744
23745         maint: use consistent FSF copyright line syntax
23746         * lib/posixtm.c: Add missing comma in FSF copyright line.
23747         * lib/posixtm.h: Likewise.
23748         * lib/getugroups.c: Add missing ", Inc.".
23749
23750         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
23751         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
23752         FSF copyright line.  Remove trailing blanks.
23753
23754 2009-12-28  Eric Blake  <ebb9@byu.net>
23755
23756         test-dup2: reduce dependencies
23757         * modules/cloexec (Configure.ac): Set witness.
23758         * modules/dup2-tests (Depends-on): Drop cloexec.
23759         * tests/test-dup2.c (main): Skip portion of test if cloexec module
23760         not present.
23761         Suggested by Bruno Haible.
23762
23763 2009-12-26  Bruno Haible  <bruno@clisp.org>
23764
23765         Remove an unneeded dependency.
23766         * modules/fseterr (Depends-on): Remove dup2.
23767
23768 2009-12-26  Eric Blake  <ebb9@byu.net>
23769
23770         tests: use macros.h in more places
23771         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
23772         (ASSERT_STREAM): Provide default of stderr.
23773         * tests/test-dirent-safer.c: Include macros.h, using alternate
23774         stream for assertions.
23775         * tests/test-dup-safer.c: Likewise.
23776         * tests/test-freopen-safer.c: Likewise.
23777         * tests/test-getopt.c: Likewise.
23778         * tests/test-openat-safer.c: Likewise.
23779         * tests/test-pipe.c: Likewise.
23780         * tests/test-popen-safer.c: Likewise.
23781         * modules/dirent-safer-tests (Files): Include macros.h.
23782         * modules/unistd-safer-tests (Files): Likewise.
23783         * modules/freopen-safer-tests (Files): Likewise.
23784         * modules/getopt-posix-tests (Files): Likewise.
23785         * modules/openat-safer-tests (Files): Likewise.
23786         * modules/pipe-tests (Files): Likewise.
23787
23788 2009-12-26  Bruno Haible  <bruno@clisp.org>
23789
23790         javacomp: Portability fix.
23791         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
23792         that it also works on Solaris.
23793
23794 2009-12-26  Bruno Haible  <bruno@clisp.org>
23795
23796         localename: Fix storage allocation of gl_locale_name_thread's result.
23797         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
23798         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
23799         all platforms that have 'uselocale'.
23800         (gl_locale_name_thread_unsafe): New function, extracted from
23801         gl_locale_name_thread.
23802         (gl_locale_name_thread): Call struniq on all platforms that have
23803         'uselocale'.
23804         * tests/test-localename.c (test_locale_name_thread): Check that the
23805         resulting strings are permanently allocated.
23806         * modules/localename-tests (Depends-on): Add strdup.
23807
23808 2009-12-26  Bruno Haible  <bruno@clisp.org>
23809
23810         * tests/test-localename.c (categories): Fill in the strings.
23811
23812 2009-12-26  Jim Meyering  <meyering@redhat.com>
23813
23814         isdir: complete the removal of m4/isdir.m4
23815         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
23816
23817         isdir: clean up, since at least grep still uses it
23818         * lib/isdir.c: Include "isdir.h".
23819         (S_ISDIR): Remove now-unneeded definition.
23820         * modules/isdir (Files): Add lib/isdir.h.
23821         * lib/isdir.h: New file, with declaration.
23822         * m4/isdir.m4: Remove file -- unneeded.
23823
23824 2009-12-25  Bruno Haible  <bruno@clisp.org>
23825
23826         selinux-h: Make generated .h files standalone.
23827         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
23828         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
23829         * lib/se-selinux.in.h: Likewise.
23830         * modules/selinux-h (Depends-on): Add unused-parameter.
23831         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
23832         selinux/selinux.h and selinux/context.h.
23833         Suggested by Eric Blake.
23834
23835 2009-12-25  Bruno Haible  <bruno@clisp.org>
23836
23837         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
23838         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
23839         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
23840         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
23841         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
23842
23843 2009-12-24  Bruno Haible  <bruno@clisp.org>
23844
23845         openat: Fix warning.
23846         * lib/openat-proc.c: Include <unistd.h>.
23847
23848 2009-12-24  Bruno Haible  <bruno@clisp.org>
23849
23850         New module 'unused-parameter'.
23851         * build-aux/unused-parameter.h: New file, extracted from earlier
23852         gnulib-common.m4.
23853         * modules/unused-parameter: New file.
23854         * lib/unistr.h: Include unused-parameter.h.
23855         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
23856         _GL_UNUSED.
23857         * modules/unistr/base (Depends-on): Add unused-parameter.
23858
23859 2009-12-24  Bruno Haible  <bruno@clisp.org>
23860
23861         Add missing dependencies to 'extensions' module.
23862         * m4/extensions.m4: Add comment.
23863         * modules/accept4 (Depends-on): Add extensions.
23864         * modules/dup3 (Depends-on): Likewise.
23865         * modules/fcntl (Depends-on): Likewise.
23866         * modules/futimens (Depends-on): Likewise.
23867         * modules/mknod (Depends-on): Likewise.
23868         * modules/pipe2 (Depends-on): Likewise.
23869         * modules/stat-time (Depends-on): Likewise.
23870         * modules/strcasestr-simple (Depends-on): Likewise.
23871         * modules/strsignal (Depends-on): Likewise.
23872         * modules/utimensat (Depends-on): Likewise.
23873         * modules/localcharset (Depends-on): Likewise. Needed because of
23874         gl_FCNTL_O_FLAGS.
23875         * modules/wcrtomb (Depends-on): Likewise. Needed because of
23876         AC_TYPE_MBSTATE_T.
23877         * modules/wcsnrtombs (Depends-on): Likewise.
23878         * modules/wcsrtombs (Depends-on): Likewise.
23879
23880 2009-12-24  Bruno Haible  <bruno@clisp.org>
23881
23882         binary-io: Avoid gcc warning due to SET_BINARY.
23883         * lib/binary-io.h (SET_BINARY): Cast the result to void.
23884         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
23885
23886 2009-12-24  Bruno Haible  <bruno@clisp.org>
23887
23888         Avoid future namespace pollution on glibc systems.
23889         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
23890         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
23891         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
23892         glibc systems.
23893
23894 2009-12-24  Bruno Haible  <bruno@clisp.org>
23895
23896         Refactor common macros used in tests.
23897         * tests/macros.h: New file.
23898         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
23899         and/or <stdlib.h>, if appropriate.
23900         (ASSERT, SIZEOF): Remove macros.
23901         * tests/test-areadlink-with-size.c: Likewise.
23902         * tests/test-areadlinkat.c: Likewise.
23903         * tests/test-areadlinkat-with-size.c: Likewise.
23904         * tests/test-argmatch.c: Likewise.
23905         * tests/test-argv-iter.c: Likewise.
23906         * tests/test-array-mergesort.c: Likewise.
23907         * tests/test-array_list.c: Likewise.
23908         * tests/test-array_oset.c: Likewise.
23909         * tests/test-avltree_list.c: Likewise.
23910         * tests/test-avltree_oset.c: Likewise.
23911         * tests/test-avltreehash_list.c: Likewise.
23912         * tests/test-base64.c: Likewise.
23913         * tests/test-binary-io.c: Likewise.
23914         * tests/test-bitrotate.c: Likewise.
23915         * tests/test-btowc.c: Likewise.
23916         * tests/test-byteswap.c: Likewise.
23917         * tests/test-c-ctype.c: Likewise.
23918         * tests/test-c-stack.c: Likewise.
23919         * tests/test-c-strcasecmp.c: Likewise.
23920         * tests/test-c-strcasestr.c: Likewise.
23921         * tests/test-c-strncasecmp.c: Likewise.
23922         * tests/test-c-strstr.c: Likewise.
23923         * tests/test-canonicalize-lgpl.c: Likewise.
23924         * tests/test-canonicalize.c: Likewise.
23925         * tests/test-carray_list.c: Likewise.
23926         * tests/test-ceilf1.c: Likewise.
23927         * tests/test-ceilf2.c: Likewise.
23928         * tests/test-ceill.c: Likewise.
23929         * tests/test-chown.c: Likewise.
23930         * tests/test-cloexec.c: Likewise.
23931         * tests/test-copy-acl.c: Likewise.
23932         * tests/test-copy-file.c: Likewise.
23933         * tests/test-count-one-bits.c: Likewise.
23934         * tests/test-dprintf-posix.c: Likewise.
23935         * tests/test-dup2.c: Likewise.
23936         * tests/test-dup3.c: Likewise.
23937         * tests/test-duplocale.c: Likewise.
23938         * tests/test-fbufmode.c: Likewise.
23939         * tests/test-fchdir.c: Likewise.
23940         * tests/test-fchownat.c: Likewise.
23941         * tests/test-fcntl-safer.c: Likewise.
23942         * tests/test-fcntl.c: Likewise.
23943         * tests/test-fdopendir.c: Likewise.
23944         * tests/test-fdutimensat.c: Likewise.
23945         * tests/test-fflush2.c: Likewise.
23946         * tests/test-file-has-acl.c: Likewise.
23947         * tests/test-filevercmp.c: Likewise.
23948         * tests/test-flock.c: Likewise.
23949         * tests/test-floorf1.c: Likewise.
23950         * tests/test-floorf2.c: Likewise.
23951         * tests/test-floorl.c: Likewise.
23952         * tests/test-fnmatch.c: Likewise.
23953         * tests/test-fopen.h: Likewise.
23954         * tests/test-fpending.c: Likewise.
23955         * tests/test-fprintf-posix.c: Likewise.
23956         * tests/test-fpurge.c: Likewise.
23957         * tests/test-freadable.c: Likewise.
23958         * tests/test-freadahead.c: Likewise.
23959         * tests/test-freading.c: Likewise.
23960         * tests/test-freadptr.c: Likewise.
23961         * tests/test-freadptr2.c: Likewise.
23962         * tests/test-freadseek.c: Likewise.
23963         * tests/test-freopen.c: Likewise.
23964         * tests/test-frexp.c: Likewise.
23965         * tests/test-frexpl.c: Likewise.
23966         * tests/test-fseek.c: Likewise.
23967         * tests/test-fseeko.c: Likewise.
23968         * tests/test-fstatat.c: Likewise.
23969         * tests/test-fstrcmp.c: Likewise.
23970         * tests/test-fsync.c: Likewise.
23971         * tests/test-ftell.c: Likewise.
23972         * tests/test-ftello.c: Likewise.
23973         * tests/test-func.c: Likewise.
23974         * tests/test-futimens.c: Likewise.
23975         * tests/test-fwritable.c: Likewise.
23976         * tests/test-fwriting.c: Likewise.
23977         * tests/test-getcwd.c: Likewise.
23978         * tests/test-getdate.c: Likewise.
23979         * tests/test-getdelim.c: Likewise.
23980         * tests/test-getdtablesize.c: Likewise.
23981         * tests/test-getgroups.c: Likewise.
23982         * tests/test-getline.c: Likewise.
23983         * tests/test-getndelim2.c: Likewise.
23984         * tests/test-glob.c: Likewise.
23985         * tests/test-hash.c: Likewise.
23986         * tests/test-i-ring.c: Likewise.
23987         * tests/test-iconv-utf.c: Likewise.
23988         * tests/test-iconv.c: Likewise.
23989         * tests/test-idpriv-drop.c: Likewise.
23990         * tests/test-idpriv-droptemp.c: Likewise.
23991         * tests/test-inet_ntop.c: Likewise.
23992         * tests/test-inet_pton.c: Likewise.
23993         * tests/test-isblank.c: Likewise.
23994         * tests/test-isfinite.c: Likewise.
23995         * tests/test-isinf.c: Likewise.
23996         * tests/test-isnan.c: Likewise.
23997         * tests/test-isnand.h: Likewise.
23998         * tests/test-isnanf.h: Likewise.
23999         * tests/test-isnanl.h: Likewise.
24000         * tests/test-lchown.c: Likewise.
24001         * tests/test-ldexpl.c: Likewise.
24002         * tests/test-link.c: Likewise.
24003         * tests/test-linkat.c: Likewise.
24004         * tests/test-linked_list.c: Likewise.
24005         * tests/test-linkedhash_list.c: Likewise.
24006         * tests/test-localename.c: Likewise.
24007         * tests/test-lseek.c: Likewise.
24008         * tests/test-lstat.c: Likewise.
24009         * tests/test-mbmemcasecmp.c: Likewise.
24010         * tests/test-mbmemcasecoll.c: Likewise.
24011         * tests/test-mbrtowc.c: Likewise.
24012         * tests/test-mbscasecmp.c: Likewise.
24013         * tests/test-mbscasestr1.c: Likewise.
24014         * tests/test-mbscasestr2.c: Likewise.
24015         * tests/test-mbscasestr3.c: Likewise.
24016         * tests/test-mbscasestr4.c: Likewise.
24017         * tests/test-mbschr.c: Likewise.
24018         * tests/test-mbscspn.c: Likewise.
24019         * tests/test-mbsinit.c: Likewise.
24020         * tests/test-mbsncasecmp.c: Likewise.
24021         * tests/test-mbsnrtowcs.c: Likewise.
24022         * tests/test-mbspbrk.c: Likewise.
24023         * tests/test-mbspcasecmp.c: Likewise.
24024         * tests/test-mbsrchr.c: Likewise.
24025         * tests/test-mbsrtowcs.c: Likewise.
24026         * tests/test-mbsspn.c: Likewise.
24027         * tests/test-mbsstr1.c: Likewise.
24028         * tests/test-mbsstr2.c: Likewise.
24029         * tests/test-mbsstr3.c: Likewise.
24030         * tests/test-memchr.c: Likewise.
24031         * tests/test-memchr2.c: Likewise.
24032         * tests/test-memcmp.c: Likewise.
24033         * tests/test-memmem.c: Likewise.
24034         * tests/test-memrchr.c: Likewise.
24035         * tests/test-mkdir.c: Likewise.
24036         * tests/test-mkdirat.c: Likewise.
24037         * tests/test-mkfifo.c: Likewise.
24038         * tests/test-mkfifoat.c: Likewise.
24039         * tests/test-mknod.c: Likewise.
24040         * tests/test-nanosleep.c: Likewise.
24041         * tests/test-nl_langinfo.c: Likewise.
24042         * tests/test-obstack-printf.c: Likewise.
24043         * tests/test-open.c: Likewise.
24044         * tests/test-openat.c: Likewise.
24045         * tests/test-pipe-filter-gi1.c: Likewise.
24046         * tests/test-pipe-filter-gi2-main.c: Likewise.
24047         * tests/test-pipe-filter-ii1.c: Likewise.
24048         * tests/test-pipe-filter-ii2-main.c: Likewise.
24049         * tests/test-pipe2.c: Likewise.
24050         * tests/test-popen.h: Likewise.
24051         * tests/test-posixtm.c: Likewise.
24052         * tests/test-pread.c: Likewise.
24053         * tests/test-printf-frexp.c: Likewise.
24054         * tests/test-printf-frexpl.c: Likewise.
24055         * tests/test-printf-posix.c: Likewise.
24056         * tests/test-priv-set.c: Likewise.
24057         * tests/test-quotearg.c: Likewise.
24058         * tests/test-random_r.c: Likewise.
24059         * tests/test-rawmemchr.c: Likewise.
24060         * tests/test-rbtree_list.c: Likewise.
24061         * tests/test-rbtree_oset.c: Likewise.
24062         * tests/test-rbtreehash_list.c: Likewise.
24063         * tests/test-readlink.c: Likewise.
24064         * tests/test-remove.c: Likewise.
24065         * tests/test-rename.c: Likewise.
24066         * tests/test-renameat.c: Likewise.
24067         * tests/test-rmdir.c: Likewise.
24068         * tests/test-round1.c: Likewise.
24069         * tests/test-roundf1.c: Likewise.
24070         * tests/test-roundl.c: Likewise.
24071         * tests/test-safe-alloc.c: Likewise.
24072         * tests/test-sameacls.c: Likewise.
24073         * tests/test-set-mode-acl.c: Likewise.
24074         * tests/test-setenv.c: Likewise.
24075         * tests/test-sigaction.c: Likewise.
24076         * tests/test-signbit.c: Likewise.
24077         * tests/test-sleep.c: Likewise.
24078         * tests/test-snprintf-posix.c: Likewise.
24079         * tests/test-snprintf.c: Likewise.
24080         * tests/test-sprintf-posix.c: Likewise.
24081         * tests/test-stat-time.c: Likewise.
24082         * tests/test-stat.c: Likewise.
24083         * tests/test-strcasestr.c: Likewise.
24084         * tests/test-strchrnul.c: Likewise.
24085         * tests/test-strerror.c: Likewise.
24086         * tests/test-striconv.c: Likewise.
24087         * tests/test-striconveh.c: Likewise.
24088         * tests/test-striconveha.c: Likewise.
24089         * tests/test-strsignal.c: Likewise.
24090         * tests/test-strstr.c: Likewise.
24091         * tests/test-strtod.c: Likewise.
24092         * tests/test-strverscmp.c: Likewise.
24093         * tests/test-symlink.c: Likewise.
24094         * tests/test-symlinkat.c: Likewise.
24095         * tests/test-trunc1.c: Likewise.
24096         * tests/test-trunc2.c: Likewise.
24097         * tests/test-truncf1.c: Likewise.
24098         * tests/test-truncf2.c: Likewise.
24099         * tests/test-truncl.c: Likewise.
24100         * tests/test-uname.c: Likewise.
24101         * tests/test-unlink.c: Likewise.
24102         * tests/test-unlinkat.c: Likewise.
24103         * tests/test-unsetenv.c: Likewise.
24104         * tests/test-usleep.c: Likewise.
24105         * tests/test-utimens.c: Likewise.
24106         * tests/test-utimensat.c: Likewise.
24107         * tests/test-vasnprintf-posix.c: Likewise.
24108         * tests/test-vasnprintf-posix2.c: Likewise.
24109         * tests/test-vasnprintf.c: Likewise.
24110         * tests/test-vasprintf-posix.c: Likewise.
24111         * tests/test-vasprintf.c: Likewise.
24112         * tests/test-vdprintf-posix.c: Likewise.
24113         * tests/test-vfprintf-posix.c: Likewise.
24114         * tests/test-vprintf-posix.c: Likewise.
24115         * tests/test-vsnprintf-posix.c: Likewise.
24116         * tests/test-vsnprintf.c: Likewise.
24117         * tests/test-vsprintf-posix.c: Likewise.
24118         * tests/test-wcrtomb.c: Likewise.
24119         * tests/test-wcsnrtombs.c: Likewise.
24120         * tests/test-wcsrtombs.c: Likewise.
24121         * tests/test-wctype.c: Likewise.
24122         * tests/test-wcwidth.c: Likewise.
24123         * tests/test-xfprintf-posix.c: Likewise.
24124         * tests/test-xmemdup0.c: Likewise.
24125         * tests/test-xprintf-posix.c: Likewise.
24126         * tests/test-xvasprintf.c: Likewise.
24127         * tests/unicase/test-locale-language.c: Likewise.
24128         * tests/unicase/test-mapping-part1.h: Likewise.
24129         * tests/unicase/test-predicate-part1.h: Likewise.
24130         * tests/unicase/test-u8-casecmp.c: Likewise.
24131         * tests/unicase/test-u8-casecoll.c: Likewise.
24132         * tests/unicase/test-u8-casefold.c: Likewise.
24133         * tests/unicase/test-u8-is-cased.c: Likewise.
24134         * tests/unicase/test-u8-is-casefolded.c: Likewise.
24135         * tests/unicase/test-u8-is-lowercase.c: Likewise.
24136         * tests/unicase/test-u8-is-titlecase.c: Likewise.
24137         * tests/unicase/test-u8-is-uppercase.c: Likewise.
24138         * tests/unicase/test-u8-tolower.c: Likewise.
24139         * tests/unicase/test-u8-totitle.c: Likewise.
24140         * tests/unicase/test-u8-toupper.c: Likewise.
24141         * tests/unicase/test-u16-casecmp.c: Likewise.
24142         * tests/unicase/test-u16-casecoll.c: Likewise.
24143         * tests/unicase/test-u16-casefold.c: Likewise.
24144         * tests/unicase/test-u16-is-cased.c: Likewise.
24145         * tests/unicase/test-u16-is-casefolded.c: Likewise.
24146         * tests/unicase/test-u16-is-lowercase.c: Likewise.
24147         * tests/unicase/test-u16-is-titlecase.c: Likewise.
24148         * tests/unicase/test-u16-is-uppercase.c: Likewise.
24149         * tests/unicase/test-u16-tolower.c: Likewise.
24150         * tests/unicase/test-u16-totitle.c: Likewise.
24151         * tests/unicase/test-u16-toupper.c: Likewise.
24152         * tests/unicase/test-u32-casecmp.c: Likewise.
24153         * tests/unicase/test-u32-casecoll.c: Likewise.
24154         * tests/unicase/test-u32-casefold.c: Likewise.
24155         * tests/unicase/test-u32-is-cased.c: Likewise.
24156         * tests/unicase/test-u32-is-casefolded.c: Likewise.
24157         * tests/unicase/test-u32-is-lowercase.c: Likewise.
24158         * tests/unicase/test-u32-is-titlecase.c: Likewise.
24159         * tests/unicase/test-u32-is-uppercase.c: Likewise.
24160         * tests/unicase/test-u32-tolower.c: Likewise.
24161         * tests/unicase/test-u32-totitle.c: Likewise.
24162         * tests/unicase/test-u32-toupper.c: Likewise.
24163         * tests/unicase/test-ulc-casecmp.c: Likewise.
24164         * tests/unicase/test-ulc-casecoll.c: Likewise.
24165         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
24166         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
24167         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
24168         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
24169         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
24170         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
24171         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
24172         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
24173         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
24174         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
24175         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
24176         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
24177         * tests/unictype/test-bidi_byname.c: Likewise.
24178         * tests/unictype/test-bidi_name.c: Likewise.
24179         * tests/unictype/test-bidi_of.c: Likewise.
24180         * tests/unictype/test-bidi_test.c: Likewise.
24181         * tests/unictype/test-block_list.c: Likewise.
24182         * tests/unictype/test-block_of.c: Likewise.
24183         * tests/unictype/test-block_test.c: Likewise.
24184         * tests/unictype/test-categ_and.c: Likewise.
24185         * tests/unictype/test-categ_and_not.c: Likewise.
24186         * tests/unictype/test-categ_byname.c: Likewise.
24187         * tests/unictype/test-categ_name.c: Likewise.
24188         * tests/unictype/test-categ_none.c: Likewise.
24189         * tests/unictype/test-categ_of.c: Likewise.
24190         * tests/unictype/test-categ_or.c: Likewise.
24191         * tests/unictype/test-categ_test_withtable.c: Likewise.
24192         * tests/unictype/test-combining.c: Likewise.
24193         * tests/unictype/test-decdigit.c: Likewise.
24194         * tests/unictype/test-digit.c: Likewise.
24195         * tests/unictype/test-mirror.c: Likewise.
24196         * tests/unictype/test-numeric.c: Likewise.
24197         * tests/unictype/test-pr_byname.c: Likewise.
24198         * tests/unictype/test-pr_test.c: Likewise.
24199         * tests/unictype/test-predicate-part1.h: Likewise.
24200         * tests/unictype/test-scripts.c: Likewise.
24201         * tests/unictype/test-sy_c_ident.c: Likewise.
24202         * tests/unictype/test-sy_java_ident.c: Likewise.
24203         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
24204         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
24205         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
24206         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
24207         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
24208         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
24209         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
24210         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
24211         * tests/uninorm/test-canonical-decomposition.c: Likewise.
24212         * tests/uninorm/test-compat-decomposition.c: Likewise.
24213         * tests/uninorm/test-composition.c: Likewise.
24214         * tests/uninorm/test-decomposing-form.c: Likewise.
24215         * tests/uninorm/test-decomposition.c: Likewise.
24216         * tests/uninorm/test-u8-nfc.c: Likewise.
24217         * tests/uninorm/test-u8-nfd.c: Likewise.
24218         * tests/uninorm/test-u8-nfkc.c: Likewise.
24219         * tests/uninorm/test-u8-nfkd.c: Likewise.
24220         * tests/uninorm/test-u8-normcmp.c: Likewise.
24221         * tests/uninorm/test-u8-normcoll.c: Likewise.
24222         * tests/uninorm/test-u16-nfc.c: Likewise.
24223         * tests/uninorm/test-u16-nfd.c: Likewise.
24224         * tests/uninorm/test-u16-nfkc.c: Likewise.
24225         * tests/uninorm/test-u16-nfkd.c: Likewise.
24226         * tests/uninorm/test-u16-normcmp.c: Likewise.
24227         * tests/uninorm/test-u16-normcoll.c: Likewise.
24228         * tests/uninorm/test-u32-nfc.c: Likewise.
24229         * tests/uninorm/test-u32-nfd.c: Likewise.
24230         * tests/uninorm/test-u32-nfkc.c: Likewise.
24231         * tests/uninorm/test-u32-nfkd.c: Likewise.
24232         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24233         * tests/uninorm/test-u32-normcmp.c: Likewise.
24234         * tests/uninorm/test-u32-normcoll.c: Likewise.
24235         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
24236         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
24237         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
24238         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
24239         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
24240         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
24241         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
24242         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
24243         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
24244         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
24245         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
24246         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
24247         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
24248         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
24249         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
24250         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
24251         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
24252         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
24253         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
24254         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
24255         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
24256         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
24257         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
24258         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
24259         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
24260         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
24261         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
24262         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
24263         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
24264         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
24265         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
24266         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
24267         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
24268         * tests/uniwidth/test-u8-strwidth.c: Likewise.
24269         * tests/uniwidth/test-u8-width.c: Likewise.
24270         * tests/uniwidth/test-u16-strwidth.c: Likewise.
24271         * tests/uniwidth/test-u16-width.c: Likewise.
24272         * tests/uniwidth/test-u32-strwidth.c: Likewise.
24273         * tests/uniwidth/test-u32-width.c: Likewise.
24274         * tests/uniwidth/test-uc_width.c: Likewise.
24275         * tests/uniwidth/test-uc_width2.c: Likewise.
24276         * modules/acl-tests (Files): Add tests/macros.h.
24277         * modules/areadlink-tests (Files): Likewise.
24278         * modules/areadlink-with-size-tests (Files): Likewise.
24279         * modules/areadlinkat-tests (Files): Likewise.
24280         * modules/areadlinkat-with-size-tests (Files): Likewise.
24281         * modules/argmatch-tests (Files): Likewise.
24282         * modules/argv-iter-tests (Files): Likewise.
24283         * modules/array-list-tests (Files): Likewise.
24284         * modules/array-mergesort-tests (Files): Likewise.
24285         * modules/array-oset-tests (Files): Likewise.
24286         * modules/avltree-list-tests (Files): Likewise.
24287         * modules/avltree-oset-tests (Files): Likewise.
24288         * modules/avltreehash-list-tests (Files): Likewise.
24289         * modules/base64-tests (Files): Likewise.
24290         * modules/binary-io-tests (Files): Likewise.
24291         * modules/bitrotate-tests (Files): Likewise.
24292         * modules/btowc-tests (Files): Likewise.
24293         * modules/byteswap-tests (Files): Likewise.
24294         * modules/c-ctype-tests (Files): Likewise.
24295         * modules/c-stack-tests (Files): Likewise.
24296         * modules/c-strcase-tests (Files): Likewise.
24297         * modules/c-strcasestr-tests (Files): Likewise.
24298         * modules/c-strstr-tests (Files): Likewise.
24299         * modules/canonicalize-lgpl-tests (Files): Likewise.
24300         * modules/canonicalize-tests (Files): Likewise.
24301         * modules/carray-list-tests (Files): Likewise.
24302         * modules/ceilf-tests (Files): Likewise.
24303         * modules/ceill-tests (Files): Likewise.
24304         * modules/chown-tests (Files): Likewise.
24305         * modules/cloexec-tests (Files): Likewise.
24306         * modules/copy-file-tests (Files): Likewise.
24307         * modules/count-one-bits-tests (Files): Likewise.
24308         * modules/dprintf-posix-tests (Files): Likewise.
24309         * modules/dup2-tests (Files): Likewise.
24310         * modules/dup3-tests (Files): Likewise.
24311         * modules/duplocale-tests (Files): Likewise.
24312         * modules/fbufmode-tests (Files): Likewise.
24313         * modules/fchdir-tests (Files): Likewise.
24314         * modules/fcntl-safer-tests (Files): Likewise.
24315         * modules/fcntl-tests (Files): Likewise.
24316         * modules/fdopendir-tests (Files): Likewise.
24317         * modules/fdutimensat-tests (Files): Likewise.
24318         * modules/fflush-tests (Files): Likewise.
24319         * modules/filevercmp-tests (Files): Likewise.
24320         * modules/flock-tests (Files): Likewise.
24321         * modules/floorf-tests (Files): Likewise.
24322         * modules/floorl-tests (Files): Likewise.
24323         * modules/fnmatch-tests (Files): Likewise.
24324         * modules/fopen-safer-tests (Files): Likewise.
24325         * modules/fopen-tests (Files): Likewise.
24326         * modules/fpending-tests (Files): Likewise.
24327         * modules/fprintf-posix-tests (Files): Likewise.
24328         * modules/fpurge-tests (Files): Likewise.
24329         * modules/freadable-tests (Files): Likewise.
24330         * modules/freadahead-tests (Files): Likewise.
24331         * modules/freading-tests (Files): Likewise.
24332         * modules/freadptr-tests (Files): Likewise.
24333         * modules/freadseek-tests (Files): Likewise.
24334         * modules/freopen-tests (Files): Likewise.
24335         * modules/frexp-nolibm-tests (Files): Likewise.
24336         * modules/frexp-tests (Files): Likewise.
24337         * modules/frexpl-nolibm-tests (Files): Likewise.
24338         * modules/frexpl-tests (Files): Likewise.
24339         * modules/fseek-tests (Files): Likewise.
24340         * modules/fseeko-tests (Files): Likewise.
24341         * modules/fstrcmp-tests (Files): Likewise.
24342         * modules/fsync-tests (Files): Likewise.
24343         * modules/ftell-tests (Files): Likewise.
24344         * modules/ftello-tests (Files): Likewise.
24345         * modules/func-tests (Files): Likewise.
24346         * modules/futimens-tests (Files): Likewise.
24347         * modules/fwritable-tests (Files): Likewise.
24348         * modules/fwriting-tests (Files): Likewise.
24349         * modules/getcwd-tests (Files): Likewise.
24350         * modules/getdate-tests (Files): Likewise.
24351         * modules/getdelim-tests (Files): Likewise.
24352         * modules/getdtablesize-tests (Files): Likewise.
24353         * modules/getgroups-tests (Files): Likewise.
24354         * modules/getline-tests (Files): Likewise.
24355         * modules/getndelim2-tests (Files): Likewise.
24356         * modules/glob-tests (Files): Likewise.
24357         * modules/hash-tests (Files): Likewise.
24358         * modules/i-ring-tests (Files): Likewise.
24359         * modules/iconv-tests (Files): Likewise.
24360         * modules/iconv_open-utf-tests (Files): Likewise.
24361         * modules/idpriv-drop-tests (Files): Likewise.
24362         * modules/idpriv-droptemp-tests (Files): Likewise.
24363         * modules/inet_ntop-tests (Files): Likewise.
24364         * modules/inet_pton-tests (Files): Likewise.
24365         * modules/isblank-tests (Files): Likewise.
24366         * modules/isfinite-tests (Files): Likewise.
24367         * modules/isinf-tests (Files): Likewise.
24368         * modules/isnan-tests (Files): Likewise.
24369         * modules/isnand-nolibm-tests (Files): Likewise.
24370         * modules/isnand-tests (Files): Likewise.
24371         * modules/isnanf-nolibm-tests (Files): Likewise.
24372         * modules/isnanf-tests (Files): Likewise.
24373         * modules/isnanl-nolibm-tests (Files): Likewise.
24374         * modules/isnanl-tests (Files): Likewise.
24375         * modules/lchown-tests (Files): Likewise.
24376         * modules/ldexpl-tests (Files): Likewise.
24377         * modules/link-tests (Files): Likewise.
24378         * modules/linkat-tests (Files): Likewise.
24379         * modules/linked-list-tests (Files): Likewise.
24380         * modules/linkedhash-list-tests (Files): Likewise.
24381         * modules/localename-tests (Files): Likewise.
24382         * modules/lseek-tests (Files): Likewise.
24383         * modules/lstat-tests (Files): Likewise.
24384         * modules/mbmemcasecmp-tests (Files): Likewise.
24385         * modules/mbmemcasecoll-tests (Files): Likewise.
24386         * modules/mbrtowc-tests (Files): Likewise.
24387         * modules/mbscasecmp-tests (Files): Likewise.
24388         * modules/mbscasestr-tests (Files): Likewise.
24389         * modules/mbschr-tests (Files): Likewise.
24390         * modules/mbscspn-tests (Files): Likewise.
24391         * modules/mbsinit-tests (Files): Likewise.
24392         * modules/mbsncasecmp-tests (Files): Likewise.
24393         * modules/mbsnrtowcs-tests (Files): Likewise.
24394         * modules/mbspbrk-tests (Files): Likewise.
24395         * modules/mbspcasecmp-tests (Files): Likewise.
24396         * modules/mbsrchr-tests (Files): Likewise.
24397         * modules/mbsrtowcs-tests (Files): Likewise.
24398         * modules/mbsspn-tests (Files): Likewise.
24399         * modules/mbsstr-tests (Files): Likewise.
24400         * modules/memchr-tests (Files): Likewise.
24401         * modules/memchr2-tests (Files): Likewise.
24402         * modules/memcmp-tests (Files): Likewise.
24403         * modules/memmem-tests (Files): Likewise.
24404         * modules/memrchr-tests (Files): Likewise.
24405         * modules/mkdir-tests (Files): Likewise.
24406         * modules/mkfifo-tests (Files): Likewise.
24407         * modules/mkfifoat-tests (Files): Likewise.
24408         * modules/mknod-tests (Files): Likewise.
24409         * modules/nanosleep-tests (Files): Likewise.
24410         * modules/nl_langinfo-tests (Files): Likewise.
24411         * modules/obstack-printf-tests (Files): Likewise.
24412         * modules/open-tests (Files): Likewise.
24413         * modules/openat-tests (Files): Likewise.
24414         * modules/pipe-filter-gi-tests (Files): Likewise.
24415         * modules/pipe-filter-ii-tests (Files): Likewise.
24416         * modules/pipe2-tests (Files): Likewise.
24417         * modules/popen-safer-tests (Files): Likewise.
24418         * modules/popen-tests (Files): Likewise.
24419         * modules/posixtm-tests (Files): Likewise.
24420         * modules/pread-tests (Files): Likewise.
24421         * modules/printf-frexp-tests (Files): Likewise.
24422         * modules/printf-frexpl-tests (Files): Likewise.
24423         * modules/printf-posix-tests (Files): Likewise.
24424         * modules/priv-set-tests (Files): Likewise.
24425         * modules/quotearg-tests (Files): Likewise.
24426         * modules/random_r-tests (Files): Likewise.
24427         * modules/rawmemchr-tests (Files): Likewise.
24428         * modules/rbtree-list-tests (Files): Likewise.
24429         * modules/rbtree-oset-tests (Files): Likewise.
24430         * modules/rbtreehash-list-tests (Files): Likewise.
24431         * modules/readlink-tests (Files): Likewise.
24432         * modules/remove-tests (Files): Likewise.
24433         * modules/rename-tests (Files): Likewise.
24434         * modules/renameat-tests (Files): Likewise.
24435         * modules/rmdir-tests (Files): Likewise.
24436         * modules/round-tests (Files): Likewise.
24437         * modules/roundf-tests (Files): Likewise.
24438         * modules/roundl-tests (Files): Likewise.
24439         * modules/safe-alloc-tests (Files): Likewise.
24440         * modules/setenv-tests (Files): Likewise.
24441         * modules/sigaction-tests (Files): Likewise.
24442         * modules/signbit-tests (Files): Likewise.
24443         * modules/sleep-tests (Files): Likewise.
24444         * modules/snprintf-posix-tests (Files): Likewise.
24445         * modules/snprintf-tests (Files): Likewise.
24446         * modules/sprintf-posix-tests (Files): Likewise.
24447         * modules/stat-tests (Files): Likewise.
24448         * modules/stat-time-tests (Files): Likewise.
24449         * modules/strcasestr-tests (Files): Likewise.
24450         * modules/strchrnul-tests (Files): Likewise.
24451         * modules/strerror-tests (Files): Likewise.
24452         * modules/striconv-tests (Files): Likewise.
24453         * modules/striconveh-tests (Files): Likewise.
24454         * modules/striconveha-tests (Files): Likewise.
24455         * modules/strsignal-tests (Files): Likewise.
24456         * modules/strstr-tests (Files): Likewise.
24457         * modules/strtod-tests (Files): Likewise.
24458         * modules/strverscmp-tests (Files): Likewise.
24459         * modules/symlink-tests (Files): Likewise.
24460         * modules/symlinkat-tests (Files): Likewise.
24461         * modules/trunc-tests (Files): Likewise.
24462         * modules/truncf-tests (Files): Likewise.
24463         * modules/truncl-tests (Files): Likewise.
24464         * modules/uname-tests (Files): Likewise.
24465         * modules/unicase/cased-tests (Files): Likewise.
24466         * modules/unicase/ignorable-tests (Files): Likewise.
24467         * modules/unicase/locale-language-tests (Files): Likewise.
24468         * modules/unicase/tolower-tests (Files): Likewise.
24469         * modules/unicase/totitle-tests (Files): Likewise.
24470         * modules/unicase/toupper-tests (Files): Likewise.
24471         * modules/unicase/u8-casecmp-tests (Files): Likewise.
24472         * modules/unicase/u8-casecoll-tests (Files): Likewise.
24473         * modules/unicase/u8-casefold-tests (Files): Likewise.
24474         * modules/unicase/u8-is-cased-tests (Files): Likewise.
24475         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
24476         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
24477         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
24478         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
24479         * modules/unicase/u8-tolower-tests (Files): Likewise.
24480         * modules/unicase/u8-totitle-tests (Files): Likewise.
24481         * modules/unicase/u8-toupper-tests (Files): Likewise.
24482         * modules/unicase/u16-casecmp-tests (Files): Likewise.
24483         * modules/unicase/u16-casecoll-tests (Files): Likewise.
24484         * modules/unicase/u16-casefold-tests (Files): Likewise.
24485         * modules/unicase/u16-is-cased-tests (Files): Likewise.
24486         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
24487         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
24488         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
24489         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
24490         * modules/unicase/u16-tolower-tests (Files): Likewise.
24491         * modules/unicase/u16-totitle-tests (Files): Likewise.
24492         * modules/unicase/u16-toupper-tests (Files): Likewise.
24493         * modules/unicase/u32-casecmp-tests (Files): Likewise.
24494         * modules/unicase/u32-casecoll-tests (Files): Likewise.
24495         * modules/unicase/u32-casefold-tests (Files): Likewise.
24496         * modules/unicase/u32-is-cased-tests (Files): Likewise.
24497         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
24498         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
24499         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
24500         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
24501         * modules/unicase/u32-tolower-tests (Files): Likewise.
24502         * modules/unicase/u32-totitle-tests (Files): Likewise.
24503         * modules/unicase/u32-toupper-tests (Files): Likewise.
24504         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
24505         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
24506         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
24507         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
24508         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
24509         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
24510         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
24511         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
24512         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
24513         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
24514         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
24515         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
24516         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
24517         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
24518         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
24519         * modules/unictype/bidicategory-name-tests (Files): Likewise.
24520         * modules/unictype/bidicategory-of-tests (Files): Likewise.
24521         * modules/unictype/bidicategory-test-tests (Files): Likewise.
24522         * modules/unictype/block-list-tests (Files): Likewise.
24523         * modules/unictype/block-of-tests (Files): Likewise.
24524         * modules/unictype/block-test-tests (Files): Likewise.
24525         * modules/unictype/category-C-tests (Files): Likewise.
24526         * modules/unictype/category-Cc-tests (Files): Likewise.
24527         * modules/unictype/category-Cf-tests (Files): Likewise.
24528         * modules/unictype/category-Cn-tests (Files): Likewise.
24529         * modules/unictype/category-Co-tests (Files): Likewise.
24530         * modules/unictype/category-Cs-tests (Files): Likewise.
24531         * modules/unictype/category-L-tests (Files): Likewise.
24532         * modules/unictype/category-Ll-tests (Files): Likewise.
24533         * modules/unictype/category-Lm-tests (Files): Likewise.
24534         * modules/unictype/category-Lo-tests (Files): Likewise.
24535         * modules/unictype/category-Lt-tests (Files): Likewise.
24536         * modules/unictype/category-Lu-tests (Files): Likewise.
24537         * modules/unictype/category-M-tests (Files): Likewise.
24538         * modules/unictype/category-Mc-tests (Files): Likewise.
24539         * modules/unictype/category-Me-tests (Files): Likewise.
24540         * modules/unictype/category-Mn-tests (Files): Likewise.
24541         * modules/unictype/category-N-tests (Files): Likewise.
24542         * modules/unictype/category-Nd-tests (Files): Likewise.
24543         * modules/unictype/category-Nl-tests (Files): Likewise.
24544         * modules/unictype/category-No-tests (Files): Likewise.
24545         * modules/unictype/category-P-tests (Files): Likewise.
24546         * modules/unictype/category-Pc-tests (Files): Likewise.
24547         * modules/unictype/category-Pd-tests (Files): Likewise.
24548         * modules/unictype/category-Pe-tests (Files): Likewise.
24549         * modules/unictype/category-Pf-tests (Files): Likewise.
24550         * modules/unictype/category-Pi-tests (Files): Likewise.
24551         * modules/unictype/category-Po-tests (Files): Likewise.
24552         * modules/unictype/category-Ps-tests (Files): Likewise.
24553         * modules/unictype/category-S-tests (Files): Likewise.
24554         * modules/unictype/category-Sc-tests (Files): Likewise.
24555         * modules/unictype/category-Sk-tests (Files): Likewise.
24556         * modules/unictype/category-Sm-tests (Files): Likewise.
24557         * modules/unictype/category-So-tests (Files): Likewise.
24558         * modules/unictype/category-Z-tests (Files): Likewise.
24559         * modules/unictype/category-Zl-tests (Files): Likewise.
24560         * modules/unictype/category-Zp-tests (Files): Likewise.
24561         * modules/unictype/category-Zs-tests (Files): Likewise.
24562         * modules/unictype/category-and-not-tests (Files): Likewise.
24563         * modules/unictype/category-and-tests (Files): Likewise.
24564         * modules/unictype/category-byname-tests (Files): Likewise.
24565         * modules/unictype/category-name-tests (Files): Likewise.
24566         * modules/unictype/category-none-tests (Files): Likewise.
24567         * modules/unictype/category-of-tests (Files): Likewise.
24568         * modules/unictype/category-or-tests (Files): Likewise.
24569         * modules/unictype/category-test-withtable-tests (Files): Likewise.
24570         * modules/unictype/combining-class-tests (Files): Likewise.
24571         * modules/unictype/ctype-alnum-tests (Files): Likewise.
24572         * modules/unictype/ctype-alpha-tests (Files): Likewise.
24573         * modules/unictype/ctype-blank-tests (Files): Likewise.
24574         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
24575         * modules/unictype/ctype-digit-tests (Files): Likewise.
24576         * modules/unictype/ctype-graph-tests (Files): Likewise.
24577         * modules/unictype/ctype-lower-tests (Files): Likewise.
24578         * modules/unictype/ctype-print-tests (Files): Likewise.
24579         * modules/unictype/ctype-punct-tests (Files): Likewise.
24580         * modules/unictype/ctype-space-tests (Files): Likewise.
24581         * modules/unictype/ctype-upper-tests (Files): Likewise.
24582         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
24583         * modules/unictype/decimal-digit-tests (Files): Likewise.
24584         * modules/unictype/digit-tests (Files): Likewise.
24585         * modules/unictype/mirror-tests (Files): Likewise.
24586         * modules/unictype/numeric-tests (Files): Likewise.
24587         * modules/unictype/property-alphabetic-tests (Files): Likewise.
24588         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
24589         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
24590         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
24591         Likewise.
24592         * modules/unictype/property-bidi-block-separator-tests (Files):
24593         Likewise.
24594         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
24595         Likewise.
24596         * modules/unictype/property-bidi-common-separator-tests (Files):
24597         Likewise.
24598         * modules/unictype/property-bidi-control-tests (Files): Likewise.
24599         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
24600         Likewise.
24601         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
24602         Likewise.
24603         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
24604         Likewise.
24605         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
24606         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
24607         Likewise.
24608         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
24609         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
24610         Likewise.
24611         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
24612         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
24613         * modules/unictype/property-bidi-segment-separator-tests (Files):
24614         Likewise.
24615         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
24616         * modules/unictype/property-byname-tests (Files): Likewise.
24617         * modules/unictype/property-combining-tests (Files): Likewise.
24618         * modules/unictype/property-composite-tests (Files): Likewise.
24619         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
24620         * modules/unictype/property-dash-tests (Files): Likewise.
24621         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
24622         * modules/unictype/property-default-ignorable-code-point-tests (Files):
24623         Likewise.
24624         * modules/unictype/property-deprecated-tests (Files): Likewise.
24625         * modules/unictype/property-diacritic-tests (Files): Likewise.
24626         * modules/unictype/property-extender-tests (Files): Likewise.
24627         * modules/unictype/property-format-control-tests (Files): Likewise.
24628         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
24629         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
24630         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
24631         * modules/unictype/property-hex-digit-tests (Files): Likewise.
24632         * modules/unictype/property-hyphen-tests (Files): Likewise.
24633         * modules/unictype/property-id-continue-tests (Files): Likewise.
24634         * modules/unictype/property-id-start-tests (Files): Likewise.
24635         * modules/unictype/property-ideographic-tests (Files): Likewise.
24636         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
24637         * modules/unictype/property-ids-trinary-operator-tests (Files):
24638         Likewise.
24639         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
24640         * modules/unictype/property-iso-control-tests (Files): Likewise.
24641         * modules/unictype/property-join-control-tests (Files): Likewise.
24642         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
24643         * modules/unictype/property-line-separator-tests (Files): Likewise.
24644         * modules/unictype/property-logical-order-exception-tests (Files):
24645         Likewise.
24646         * modules/unictype/property-lowercase-tests (Files): Likewise.
24647         * modules/unictype/property-math-tests (Files): Likewise.
24648         * modules/unictype/property-non-break-tests (Files): Likewise.
24649         * modules/unictype/property-not-a-character-tests (Files): Likewise.
24650         * modules/unictype/property-numeric-tests (Files): Likewise.
24651         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
24652         * modules/unictype/property-other-default-ignorable-code-point-tests
24653         (Files): Likewise.
24654         * modules/unictype/property-other-grapheme-extend-tests (Files):
24655         Likewise.
24656         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
24657         * modules/unictype/property-other-id-start-tests (Files): Likewise.
24658         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
24659         * modules/unictype/property-other-math-tests (Files): Likewise.
24660         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
24661         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
24662         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
24663         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
24664         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
24665         * modules/unictype/property-private-use-tests (Files): Likewise.
24666         * modules/unictype/property-punctuation-tests (Files): Likewise.
24667         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
24668         * modules/unictype/property-radical-tests (Files): Likewise.
24669         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
24670         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
24671         * modules/unictype/property-space-tests (Files): Likewise.
24672         * modules/unictype/property-terminal-punctuation-tests (Files):
24673         Likewise.
24674         * modules/unictype/property-test-tests (Files): Likewise.
24675         * modules/unictype/property-titlecase-tests (Files): Likewise.
24676         * modules/unictype/property-unassigned-code-value-tests (Files):
24677         Likewise.
24678         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
24679         * modules/unictype/property-uppercase-tests (Files): Likewise.
24680         * modules/unictype/property-variation-selector-tests (Files): Likewise.
24681         * modules/unictype/property-white-space-tests (Files): Likewise.
24682         * modules/unictype/property-xid-continue-tests (Files): Likewise.
24683         * modules/unictype/property-xid-start-tests (Files): Likewise.
24684         * modules/unictype/property-zero-width-tests (Files): Likewise.
24685         * modules/unictype/scripts-tests (Files): Likewise.
24686         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
24687         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
24688         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
24689         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
24690         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
24691         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
24692         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
24693         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
24694         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
24695         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
24696         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
24697         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
24698         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
24699         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
24700         * modules/uninorm/composition-tests (Files): Likewise.
24701         * modules/uninorm/decomposing-form-tests (Files): Likewise.
24702         * modules/uninorm/decomposition-tests (Files): Likewise.
24703         * modules/uninorm/filter-tests (Files): Likewise.
24704         * modules/uninorm/nfc-tests (Files): Likewise.
24705         * modules/uninorm/nfd-tests (Files): Likewise.
24706         * modules/uninorm/nfkc-tests (Files): Likewise.
24707         * modules/uninorm/nfkd-tests (Files): Likewise.
24708         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
24709         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
24710         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
24711         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
24712         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
24713         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
24714         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
24715         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
24716         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
24717         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
24718         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
24719         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
24720         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
24721         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
24722         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
24723         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
24724         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
24725         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
24726         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
24727         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
24728         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
24729         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
24730         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
24731         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
24732         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
24733         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
24734         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
24735         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
24736         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
24737         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
24738         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
24739         * modules/uniwidth/u8-width-tests (Files): Likewise.
24740         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
24741         * modules/uniwidth/u16-width-tests (Files): Likewise.
24742         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
24743         * modules/uniwidth/u32-width-tests (Files): Likewise.
24744         * modules/uniwidth/width-tests (Files): Likewise.
24745         * modules/unlink-tests (Files): Likewise.
24746         * modules/unsetenv-tests (Files): Likewise.
24747         * modules/usleep-tests (Files): Likewise.
24748         * modules/utimens-tests (Files): Likewise.
24749         * modules/utimensat-tests (Files): Likewise.
24750         * modules/vasnprintf-posix-tests (Files): Likewise.
24751         * modules/vasnprintf-tests (Files): Likewise.
24752         * modules/vasprintf-posix-tests (Files): Likewise.
24753         * modules/vasprintf-tests (Files): Likewise.
24754         * modules/vdprintf-posix-tests (Files): Likewise.
24755         * modules/vfprintf-posix-tests (Files): Likewise.
24756         * modules/vprintf-posix-tests (Files): Likewise.
24757         * modules/vsnprintf-posix-tests (Files): Likewise.
24758         * modules/vsnprintf-tests (Files): Likewise.
24759         * modules/vsprintf-posix-tests (Files): Likewise.
24760         * modules/wcrtomb-tests (Files): Likewise.
24761         * modules/wcsnrtombs-tests (Files): Likewise.
24762         * modules/wcsrtombs-tests (Files): Likewise.
24763         * modules/wctype-tests (Files): Likewise.
24764         * modules/wcwidth-tests (Files): Likewise.
24765         * modules/xmemdup0-tests (Files): Likewise.
24766         * modules/xprintf-posix-tests (Files): Likewise.
24767         * modules/xvasprintf-tests (Files): Likewise.
24768
24769 2009-12-24  Eric Blake  <ebb9@byu.net>
24770
24771         test-nanosleep: fix typo
24772         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
24773         patch.
24774         Reported by Bruno Haible.
24775
24776 2009-12-24  Bruno Haible  <bruno@clisp.org>
24777
24778         Reduce namespace pollution on glibc systems.
24779         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
24780         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
24781         systems.
24782         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
24783         <getopt.h> on glibc systems.
24784         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
24785         systems.
24786         * lib/fcntl.c: Include <unistd.h> here instead.
24787
24788 2009-12-24  Bruno Haible  <bruno@clisp.org>
24789
24790         * lib/stdlib.in.h (includes): Fix typo in today's commit.
24791
24792 2009-12-24  Eric Blake  <ebb9@byu.net>
24793
24794         tests: add signature checks
24795         * tests/signature.h (SIGNATURE_CHECK): New file.
24796         * modules/atexit-tests (Files): Use it.
24797         * modules/btowc-tests (Files): Likewise.
24798         * modules/canonicalize-lgpl-tests (Files): Likewise.
24799         * modules/ceilf-tests (Files): Likewise.
24800         * modules/ceill-tests (Files): Likewise.
24801         * modules/chown-tests (Files): Likewise.
24802         * modules/dprintf-posix-tests (Files): Likewise.
24803         * modules/dup2-tests (Files): Likewise.
24804         * modules/dup3-tests (Files): Likewise.
24805         * modules/duplocale-tests (Files): Likewise.
24806         * modules/fchdir-tests (Files): Likewise.
24807         * modules/fcntl-tests (Files): Likewise.
24808         * modules/fdopendir-tests (Files): Likewise.
24809         * modules/fflush-tests (Files): Likewise.
24810         * modules/flock-tests (Files): Likewise.
24811         * modules/floorf-tests (Files): Likewise.
24812         * modules/floorl-tests (Files): Likewise.
24813         * modules/fnmatch-tests (Files): Likewise.
24814         * modules/fopen-tests (Files): Likewise.
24815         * modules/fprintf-posix-tests (Files): Likewise.
24816         * modules/freopen-tests (Files): Likewise.
24817         * modules/frexp-nolibm-tests (Files): Likewise.
24818         * modules/frexp-tests (Files): Likewise.
24819         * modules/frexpl-nolibm-tests (Files): Likewise.
24820         * modules/frexpl-tests (Files): Likewise.
24821         * modules/fseek-tests (Files): Likewise.
24822         * modules/fseeko-tests (Files): Likewise.
24823         * modules/fsync-tests (Files): Likewise.
24824         * modules/ftell-tests (Files): Likewise.
24825         * modules/ftello-tests (Files): Likewise.
24826         * modules/futimens-tests (Files): Likewise.
24827         * modules/getaddrinfo-tests (Files): Likewise.
24828         * modules/getcwd-tests (Files): Likewise.
24829         * modules/getdelim-tests (Files): Likewise.
24830         * modules/getdtablesize-tests (Files): Likewise.
24831         * modules/getgroups-tests (Files): Likewise.
24832         * modules/gethostname-tests (Files): Likewise.
24833         * modules/getline-tests (Files): Likewise.
24834         * modules/getopt-posix-tests (Files): Likewise.
24835         * modules/gettimeofday-tests (Files): Likewise.
24836         * modules/glob-tests (Files): Likewise.
24837         * modules/iconv-tests (Files): Likewise.
24838         * modules/inet_ntop-tests (Files): Likewise.
24839         * modules/inet_pton-tests (Files): Likewise.
24840         * modules/isblank-tests (Files): Likewise.
24841         * modules/lchown-tests (Files): Likewise.
24842         * modules/ldexpl-tests (Files): Likewise.
24843         * modules/link-tests (Files): Likewise.
24844         * modules/linkat-tests (Files): Likewise.
24845         * modules/lseek-tests (Files): Likewise.
24846         * modules/lstat-tests (Files): Likewise.
24847         * modules/mbrtowc-tests (Files): Likewise.
24848         * modules/mbsinit-tests (Files): Likewise.
24849         * modules/mbsnrtowcs-tests (Files): Likewise.
24850         * modules/mbsrtowcs-tests (Files): Likewise.
24851         * modules/memchr-tests (Files): Likewise.
24852         * modules/memcmp-tests (Files): Likewise.
24853         * modules/memmem-tests (Files): Likewise.
24854         * modules/memrchr-tests (Files): Likewise.
24855         * modules/mkdir-tests (Files): Likewise.
24856         * modules/mkfifo-tests (Files): Likewise.
24857         * modules/mkfifoat-tests (Files): Likewise.
24858         * modules/mknod-tests (Files): Likewise.
24859         * modules/nanosleep-tests (Files): Likewise.
24860         * modules/nl_langinfo-tests (Files): Likewise.
24861         * modules/obstack-printf-tests (Files): Likewise.
24862         * modules/open-tests (Files): Likewise.
24863         * modules/openat-tests (Files): Likewise.
24864         * modules/perror-tests (Files): Likewise.
24865         * modules/pipe2-tests (Files): Likewise.
24866         * modules/poll-tests (Files): Likewise.
24867         * modules/popen-tests (Files): Likewise.
24868         * modules/posix_spawn-tests (Files): Likewise.
24869         * modules/posix_spawnp-tests (Files): Likewise.
24870         * modules/pread-tests (Files): Likewise.
24871         * modules/printf-posix-tests (Files): Likewise.
24872         * modules/pty-tests (Files): Likewise.
24873         * modules/random_r-tests (Files): Likewise.
24874         * modules/rawmemchr-tests (Files): Likewise.
24875         * modules/readlink-tests (Files): Likewise.
24876         * modules/remove-tests (Files): Likewise.
24877         * modules/rename-tests (Files): Likewise.
24878         * modules/renameat-tests (Files): Likewise.
24879         * modules/rmdir-tests (Files): Likewise.
24880         * modules/round-tests (Files): Likewise.
24881         * modules/roundf-tests (Files): Likewise.
24882         * modules/roundl-tests (Files): Likewise.
24883         * modules/select-tests (Files): Likewise.
24884         * modules/setenv-tests (Files): Likewise.
24885         * modules/sigaction-tests (Files): Likewise.
24886         * modules/sleep-tests (Files): Likewise.
24887         * modules/snprintf-posix-tests (Files): Likewise.
24888         * modules/snprintf-tests (Files): Likewise.
24889         * modules/sprintf-posix-tests (Files): Likewise.
24890         * modules/stat-tests (Files): Likewise.
24891         * modules/strcasestr-tests (Files): Likewise.
24892         * modules/strchrnul-tests (Files): Likewise.
24893         * modules/strerror-tests (Files): Likewise.
24894         * modules/strsignal-tests (Files): Likewise.
24895         * modules/strstr-tests (Files): Likewise.
24896         * modules/strtod-tests (Files): Likewise.
24897         * modules/strverscmp-tests (Files): Likewise.
24898         * modules/symlink-tests (Files): Likewise.
24899         * modules/symlinkat-tests (Files): Likewise.
24900         * modules/times-tests (Files): Likewise.
24901         * modules/trunc-tests (Files): Likewise.
24902         * modules/truncf-tests (Files): Likewise.
24903         * modules/truncl-tests (Files): Likewise.
24904         * modules/tsearch-tests (Files): Likewise.
24905         * modules/uname-tests (Files): Likewise.
24906         * modules/unlink-tests (Files): Likewise.
24907         * modules/unsetenv-tests (Files): Likewise.
24908         * modules/usleep-tests (Files): Likewise.
24909         * modules/utimensat-tests (Files): Likewise.
24910         * modules/vasprintf-tests (Files): Likewise.
24911         * modules/vdprintf-posix-tests (Files): Likewise.
24912         * modules/vfprintf-posix-tests (Files): Likewise.
24913         * modules/vprintf-posix-tests (Files): Likewise.
24914         * modules/vsnprintf-posix-tests (Files): Likewise.
24915         * modules/vsnprintf-tests (Files): Likewise.
24916         * modules/vsprintf-posix-tests (Files): Likewise.
24917         * modules/wcrtomb-tests (Files): Likewise.
24918         * modules/wcsnrtombs-tests (Files): Likewise.
24919         * modules/wcsrtombs-tests (Files): Likewise.
24920         * modules/wcwidth-tests (Files): Likewise.
24921         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
24922         * tests/test-isinf.c (isinf): Likewise.
24923         * tests/test-isnan.c (isnan): Likewise.
24924         * tests/test-signbit.c (signbit): Likewise.
24925         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
24926         declaration, either as macro or with correct signature.
24927         (select): Ensure function under test is declared with correct
24928         signature in correct header.
24929         * tests/test-atexit.c (atexit): Likewise.
24930         * tests/test-btowc.c (btowc): Likewise.
24931         * tests/test-canonicalize-lgpl.c (realpath)
24932         (canonicalize_file_name): Likewise.
24933         * tests/test-ceilf1.c (ceilf): Likewise.
24934         * tests/test-ceill.c (ceill): Likewise.
24935         * tests/test-chown.c (chown): Likewise.
24936         * tests/test-dprintf-posix.c (dprintf): Likewise.
24937         * tests/test-dup2.c (dup2): Likewise.
24938         * tests/test-dup3.c (dup3): Likewise.
24939         * tests/test-duplocale.c (duplocale): Likewise.
24940         * tests/test-fchdir.c (fchdir): Likewise.
24941         * tests/test-fchownat.c (fchownat): Likewise.
24942         * tests/test-fcntl.c (fcntl): Likewise.
24943         * tests/test-fdopendir.c (fdopendir): Likewise.
24944         * tests/test-fflush.c (fflush): Likewise.
24945         * tests/test-flock.c (flock): Likewise.
24946         * tests/test-floorf1.c (floorf): Likewise.
24947         * tests/test-floorl.c (floorl): Likewise.
24948         * tests/test-fnmatch.c (fnmatch): Likewise.
24949         * tests/test-fopen.c (fopen): Likewise.
24950         * tests/test-fprintf-posix.c (fprintf): Likewise.
24951         * tests/test-freopen.c (freopen): Likewise.
24952         * tests/test-frexp.c (frexp): Likewise.
24953         * tests/test-frexpl.c (frexpl): Likewise.
24954         * tests/test-fseek.c (fseek): Likewise.
24955         * tests/test-fseeko.c (fseeko): Likewise.
24956         * tests/test-fstatat.c (fstatat): Likewise.
24957         * tests/test-fsync.c (fsync): Likewise.
24958         * tests/test-ftell.c (ftell): Likewise.
24959         * tests/test-ftello.c (ftello): Likewise.
24960         * tests/test-futimens.c (futimens): Likewise.
24961         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
24962         (gai_strerror): Likewise.
24963         * tests/test-getcwd.c (getcwd): Likewise.
24964         * tests/test-getdelim.c (getdelim): Likewise.
24965         * tests/test-getdtablesize.c (getdtablesize): Likewise.
24966         * tests/test-getgroups.c (getgroups): Likewise.
24967         * tests/test-gethostname.c (gethostname): Likewise.
24968         * tests/test-getline.c (getline): Likewise.
24969         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
24970         Likewise.
24971         * tests/test-gettimeofday.c (gettimeofday): Likewise.
24972         * tests/test-glob.c (glob, globfree): Likewise.
24973         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
24974         * tests/test-inet_ntop.c (inet_ntop): Likewise.
24975         * tests/test-inet_pton.c (inet_pton): Likewise.
24976         * tests/test-isblank.c (isblank): Likewise.
24977         * tests/test-lchown.c (lchown): Likewise.
24978         * tests/test-ldexpl.c (ldexpl): Likewise.
24979         * tests/test-link.c (link): Likewise.
24980         * tests/test-linkat.c (linkat): Likewise.
24981         * tests/test-lseek.c (lseek): Likewise.
24982         * tests/test-lstat.c (lstat): Likewise.
24983         * tests/test-mbrtowc.c (mbrtowc): Likewise.
24984         * tests/test-mbsinit.c (mbsinit): Likewise.
24985         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
24986         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
24987         * tests/test-memchr.c (memchr): Likewise.
24988         * tests/test-memcmp.c (memcmp): Likewise.
24989         * tests/test-memmem.c (memmem): Likewise.
24990         * tests/test-memrchr.c (memrchr): Likewise.
24991         * tests/test-mkdir.c (mkdir): Likewise.
24992         * tests/test-mkdirat.c (mkdirat): Likewise.
24993         * tests/test-mkfifo.c (mkfifo): Likewise.
24994         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
24995         * tests/test-mknod.c (mknod): Likewise.
24996         * tests/test-nanosleep.c (nanosleep): Likewise.
24997         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
24998         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
24999         Likewise.
25000         * tests/test-open.c (open): Likewise.
25001         * tests/test-openat.c (openat): Likewise.
25002         * tests/test-perror.c (perror): Likewise.
25003         * tests/test-pipe2.c (pipe2): Likewise.
25004         * tests/test-poll.c (poll): Likewise.
25005         * tests/test-popen.c (popen, pclose): Likewise.
25006         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
25007         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
25008         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
25009         (posix_spawn_file_actions_destroy)
25010         (posix_spawn_file_actions_addclose)
25011         (posix_spawn_file_actions_addopen)
25012         (posix_spawn_file_actions_adddup2): Likewise.
25013         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
25014         * tests/test-pread.c (pread): Likewise.
25015         * tests/test-printf-posix.c (printf): Likewise.
25016         * tests/test-pty.c (openpty, forkpty): Likewise.
25017         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
25018         (random_r): Likewise.
25019         * tests/test-rawmemchr.c (rawmemchr): Likewise.
25020         * tests/test-readlink.c (readlink): Likewise.
25021         * tests/test-remove.c (remove): Likewise.
25022         * tests/test-rename.c (rename): Likewise.
25023         * tests/test-renameat.c (renameat): Likewise.
25024         * tests/test-rmdir.c (rmdir): Likewise.
25025         * tests/test-round1.c (round): Likewise.
25026         * tests/test-roundf1.c (roundf): Likewise.
25027         * tests/test-roundl.c (roundl): Likewise.
25028         * tests/test-setenv.c (setenv): Likewise.
25029         * tests/test-sigaction.c (sigaction): Likewise.
25030         * tests/test-sleep.c (sleep): Likewise.
25031         * tests/test-snprintf.c (snprintf): Likewise.
25032         * tests/test-sprintf-posix.c (sprintf): Likewise.
25033         * tests/test-stat.c (stat): Likewise.
25034         * tests/test-stpncpy.c (stpncpy): Likewise.
25035         * tests/test-strcasestr.c (strcasestr): Likewise.
25036         * tests/test-strchrnul.c (strchrnul): Likewise.
25037         * tests/test-strerror.c (strerror): Likewise.
25038         * tests/test-strsignal.c (strsignal): Likewise.
25039         * tests/test-strstr.c (strstr): Likewise.
25040         * tests/test-strtod.c (strtod): Likewise.
25041         * tests/test-strverscmp.c (strverscmp): Likewise.
25042         * tests/test-symlink.c (symlink): Likewise.
25043         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
25044         * tests/test-times.c (times): Likewise.
25045         * tests/test-trunc1.c (trunc): Likewise.
25046         * tests/test-truncf1.c (truncf): Likewise.
25047         * tests/test-truncl.c (truncl): Likewise.
25048         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
25049         Likewise.
25050         * tests/test-uname.c (uname): Likewise.
25051         * tests/test-unlink.c (unlink): Likewise.
25052         * tests/test-unlinkat.c (unlinkat): Likewise.
25053         * tests/test-unsetenv.c (unsetenv): Likewise.
25054         * tests/test-usleep.c (usleep): Likewise.
25055         * tests/test-utimensat.c (utimensat): Likewise.
25056         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
25057         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
25058         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
25059         * tests/test-vprintf-posix.c (vprintf): Likewise.
25060         * tests/test-vsnprintf.c (vsnprintf): Likewise.
25061         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
25062         * tests/test-wcrtomb.c (wcrtomb): Likewise.
25063         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
25064         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
25065         * tests/test-wcwidth.c (wcwidth): Likewise.
25066
25067         build: pull in conditional headers during GNULIB_POSIXCHECK
25068         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
25069         definitions from any conditionally-included headers.
25070         * lib/stdlib.in.h (includes): Likewise.
25071         * lib/unistd.in.h (includes): Likewise.
25072
25073 2009-12-24  Bruno Haible  <bruno@clisp.org>
25074
25075         * tests/test-argv-iter.c: Include header file being tested immediately
25076         after config.h.
25077         * tests/test-base64.c: Likewise.
25078         * tests/test-flock.c: Likewise.
25079         * tests/test-fsync.c: Likewise.
25080         * tests/test-getdate.c: Likewise.
25081         * tests/test-getndelim2.c: Likewise.
25082         * tests/test-isfinite.c: Likewise.
25083         * tests/test-isinf.c: Likewise.
25084         * tests/test-strerror.c: Likewise.
25085         * tests/test-strsignal.c: Likewise.
25086
25087 2009-12-23  Eric Blake  <ebb9@byu.net>
25088
25089         unistd: work around cygwin bug
25090         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
25091         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
25092         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25093
25094 2009-12-23  Bruno Haible  <bruno@clisp.org>
25095
25096         localename: More tests.
25097         * tests/test-localename.c (SIZEOF): New macro.
25098         (categories): New variable.
25099         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
25100         test_locale_name_default): Add test w.r.t. thread locale.
25101         (test_locale_name_thread): New function.
25102         (main): Invoke it.
25103
25104         localename: Make aware of thread locale.
25105         * lib/localename.h (gl_locale_name_thread): New declaration.
25106         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
25107         behaviour with respect to thread locale.
25108         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
25109         <langinfo.h>, glthread/lock.h.
25110         (SIZE_BITS): New macro.
25111         (string_hash): New function.
25112         (struct hash_node): New type.
25113         (HASH_TABLE_SIZE): New macro.
25114         (struniq_hash_table, struniq_lock): New variables.
25115         (struniq): New function.
25116         (gl_locale_name_thread): New function.
25117         (gl_locale_name): Invoke it.
25118         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
25119         * modules/localename (Depends-on): Add lock.
25120         Reported by Mike Gran <spk121@yahoo.com>.
25121
25122 2009-12-23  Eric Blake  <ebb9@byu.net>
25123
25124         va-args: new module
25125         * modules/va-args: New file.
25126         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
25127         * MODULES.html.sh (Core language properties): Mention it.
25128
25129         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
25130         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
25131         named alias for __attribute__((__unused__)).
25132         * lib/chown.c: Update client.
25133         * lib/fchmodat.c: Likewise.
25134         * lib/fts.c: Likewise.
25135         * lib/getdate.y: Likewise.
25136         * lib/getgroups.c: Likewise.
25137         * lib/getopt.c: Likewise.
25138         * lib/getugroups.c: Likewise.
25139         * lib/mkdir.c: Likewise.
25140         * lib/mkfifo.c: Likewise.
25141         * lib/mkfifoat.c: Likewise.
25142         * lib/mknod.c: Likewise.
25143         * lib/mknodat.c: Likewise.
25144         * lib/readlink.c: Likewise.
25145         * lib/se-context.in.h: Likewise.
25146         * lib/se-selinux.in.h: Likewise.
25147         * lib/sockets.c: Likewise.
25148         * lib/symlink.c: Likewise.
25149         * lib/symlinkat.c: Likewise.
25150         * lib/unicodeio.c: Likewise.
25151         * lib/unistr.h: Likewise.
25152         * tests/test-areadlink.c: Likewise.
25153         * tests/test-areadlinkat.c: Likewise.
25154         * tests/test-filenamecat.c: Likewise.
25155         * tests/test-fseeko.c: Likewise.
25156         * tests/test-ftello.c: Likewise.
25157         * tests/test-getdate.c: Likewise.
25158         * tests/test-getgroups.c: Likewise.
25159         * tests/test-gethostname.c: Likewise.
25160         * tests/test-quotearg.c: Likewise.
25161         * tests/test-version-etc.c: Likewise.
25162         * tests/test-xalloc-die.c: Likewise.
25163         * tests/test-xfprintf-posix.c: Likewise.
25164         * tests/test-xprintf-posix.c: Likewise.
25165         * tests/test-xvasprintf.c: Likewise.
25166
25167         tests: avoid compiler warnings
25168         * tests/test-fcntl.c (main): Delete unused parameters.
25169         * tests/test-freopen-safer.c (main): Likewise.
25170         * tests/test-xalloc-die.c (main): Mark unused parameters.
25171         * tests/test-fseeko.c (main): Likewise.
25172         * tests/test-ftello.c (main): Likewise.
25173         * tests/test-nanosleep.c (main): Avoid declaration warning.
25174         * tests/test-sleep.c (main): Likewise.
25175         * tests/test-unsetenv.c (main): Silence warning about string
25176         literal.
25177         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25178
25179 2009-12-23  Bruno Haible  <bruno@clisp.org>
25180
25181         * tests/test-localename.c (test_locale_name): New function, extracted
25182         from main. Also test mixed situations.
25183         (test_locale_name_posix, test_locale_name_environ,
25184         test_locale_name_default): New functions.
25185         (main): Invoke them all.
25186         * modules/localename-tests (configure.ac): Test for newlocale.
25187
25188 2009-12-23  Bruno Haible  <bruno@clisp.org>
25189
25190         unistd: Ensure getcwd gets declared before being overridden.
25191         * lib/unistd.in.h: Conditionally include <io.h>.
25192
25193 2009-12-22  Bruno Haible  <bruno@clisp.org>
25194
25195         wchar: Diagnose broken combination of glibc and gcc versions and flags.
25196         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
25197         (gl_WCHAR_H): Invoke it.
25198         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
25199         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
25200         Reported by Karl Berry <karl@freefriends.org>.
25201
25202 2009-12-22  Eric Blake  <ebb9@byu.net>
25203
25204         math, unistd: avoid redundant includes
25205         * lib/math.in.h (isnan): No need to re-include <math.h>.
25206         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
25207
25208         getsubopt: work around cygwin bug
25209         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
25210         avoid conflicting with system getsubopt.
25211         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
25212         bug.
25213
25214         getopt: synchronize from glibc
25215         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
25216         parameter order.  Adjust all callers.
25217         (_getopt_internal_r, main): Adjust quoting in error messages.
25218         Drop considerations for outdated POSIX 1003.2 error message.
25219         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
25220         callers.
25221         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
25222
25223         test-getopt: test stderr behavior
25224         * modules/getopt-posix-tests (Depends-on): Add dup2.
25225         * tests/test-getopt.c (ASSERT): Avoid stderr.
25226         (main): Move stderr to a temporary file.
25227         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
25228         Instead, add parameter to inform caller if output occurred.
25229         (test_getopt): Adjust all existing tests to expect silence, and
25230         add new tests of leading ":".
25231         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25232         glibc shortcomings with leading "-:" or "+:" in optstring.
25233         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25234         Likewise.
25235         * doc/posix-functions/getopt.texi (getopt): Likewise.
25236
25237         test-getopt: enhance test
25238         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
25239         supports optind=0.
25240         * tests/test-getopt.c (OPTIND_MIN): Move...
25241         * tests/test-getopt.h (OPTIND_MIN): ...here.
25242         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
25243         Require that optind=0 works, since modern BSD supports it in
25244         addition to optreset, and since coreutils expects it.
25245         (test_getopt_long_only): New test.
25246         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25247         glibc shortcomings with 'W;', and enforcement of optind=0.
25248         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25249         Likewise.
25250
25251 2009-12-21  Bruno Haible  <bruno@clisp.org>
25252
25253         localename: Improvements for MacOS X and Cygwin.
25254         * lib/localename.h (gl_locale_name_environ): New declaration.
25255         * lib/localename.c (gl_locale_name_environ): New function, extracted from
25256         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
25257         (gl_locale_name_posix): Invoke it.
25258         (gl_locale_name_default): Add comments. Use Windows native API also on
25259         Cygwin.
25260
25261 2009-12-21  Bruno Haible  <bruno@clisp.org>
25262
25263         Update list of Win32 locale ids.
25264         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
25265         (LANG_SAMI): Renamed from LANG_SAAMI.
25266         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
25267         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
25268         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
25269         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
25270         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
25271         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
25272         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
25273         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
25274         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
25275         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
25276         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
25277         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
25278         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
25279         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
25280         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
25281         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
25282         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
25283         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
25284         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
25285         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
25286         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
25287         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
25288         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
25289         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
25290         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
25291         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
25292         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
25293         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
25294         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
25295         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
25296         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
25297         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
25298         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
25299         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
25300         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
25301         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
25302         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
25303         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
25304         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
25305         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
25306         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
25307         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
25308         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
25309         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
25310         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
25311         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
25312         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
25313         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
25314         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
25315         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
25316         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
25317         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
25318         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
25319         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
25320         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
25321         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
25322         Add more languages and countries for Sami, Sorbian. Add more countries
25323         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
25324         for Pashto. Change country for Syriac, Tswana.
25325
25326 2009-12-21  Eric Blake  <ebb9@byu.net>
25327
25328         test-utimens: avoid spurious failure
25329         * tests/test-chown.h (nap): Factor...
25330         * tests/nap.h: ...into new file.
25331         * tests/test-lchown.h (nap): Avoid duplication.
25332         * tests/test-utimens-common.h (nap): Use shared implementation,
25333         necessary on file systems with 1-second resolution.
25334         * modules/chown-tests (Files): Include new file.
25335         * modules/fdutimensat-tests (Files): Likewise.
25336         * modules/futimens-tests (Files): Likewise.
25337         * modules/lchown-tests (Files): Likewise.
25338         * modules/openat-tests (Files): Likewise.
25339         * modules/utimens-tests (Files): Likewise.
25340         * modules/utimensat-tests (Files): Likewise.
25341
25342 2009-12-19  Eric Blake  <ebb9@byu.net>
25343
25344         futimens, utimensat: work around Linux bug
25345         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
25346         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25347         * lib/utimensat.c (rpl_utimensat): Work around it.
25348         * lib/futimens.c (rpl_futimens): Adjust comment.
25349
25350         utimens: work around Linux ctime bug
25351         * lib/utimens.c (detect_ctime_bug): New helper function.
25352         (update_timespec): Differentiate between workaround needed for
25353         this bug vs. what is needed for systems that lack utimensat.
25354         (fdutimens, lutimens): Work around bug.
25355
25356         utimens: check for ctime update
25357         * tests/test-utimens-common.h (check_ctime): Define.
25358         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
25359         * tests/test-futimens.h (test_futimens): Likewise.
25360         * tests/test-lutimens.h (test_lutimens): Likewise.
25361         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25362         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25363
25364 2009-12-19  Bruno Haible  <bruno@clisp.org>
25365
25366         dprintf-posix: Check against memory leak fixed on 2009-12-15.
25367         * tests/test-dprintf-posix2.sh: New file.
25368         * tests/test-dprintf-posix2.c: New file.
25369         * modules/dprintf-posix-tests (Files): Add them.
25370         (configure.ac): Check for getrlimit and setrlimit.
25371         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25372
25373 2009-12-19  Bruno Haible  <bruno@clisp.org>
25374
25375         fprintf-posix: Check against memory leak fixed on 2009-12-15.
25376         * tests/test-fprintf-posix3.sh: New file.
25377         * tests/test-fprintf-posix3.c: New file.
25378         * modules/fprintf-posix-tests (Files): Add them.
25379         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25380
25381 2009-12-19  Eric Blake  <ebb9@byu.net>
25382
25383         dirfd: fix prototype
25384         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
25385         * lib/dirfd.c (dirfd): Likewise.
25386
25387         canonicalize: reduce memory usage
25388         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
25389         allocation to size.
25390         Reported by Solar Designer <solar@openwall.com>.
25391
25392 2009-12-19  Bruno Haible  <bruno@clisp.org>
25393
25394         New module attribute 'Applicability'.
25395         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
25396         * gnulib-tool: New option --extract-applicability.
25397         (func_usage): Document it.
25398         (sed_extract_prog): Recognize it.
25399         (func_get_applicability): New function.
25400         (func_import): Generalize handling of 'link-warning' module.
25401         * modules/link-warning (Applicability): New section.
25402         * modules/arg-nonnull (Applicability): New section.
25403         Repoted by Simon Josefsson <simon@josefsson.org>.
25404
25405 2009-12-19  Bruno Haible  <bruno@clisp.org>
25406
25407         fflush: tweak
25408         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
25409         * lib/fseeko.c (rpl_fseeko): Likewise.
25410
25411 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
25412
25413         * lib/gl_list.h: Fix typo in comment.
25414
25415 2009-12-16  Eric Blake  <ebb9@byu.net>
25416
25417         fcntl: use to simplify other modules
25418         * modules/cloexec (Depends-on): Add fcntl.
25419         * modules/fchdir (Depends-on): Likewise.
25420         * modules/fd-safer-flag (Depends-on): Likewise.
25421         * modules/unistd-safer (Depends-on): Likewise.
25422         * modules/dup3 (configure.ac): Set module indicator.
25423         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
25424         missing.
25425         * lib/fchdir.c (_gl_register_dup): Fix comment.
25426         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
25427         * lib/dup-safer.c (dup_safer): Likewise.
25428         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
25429         * lib/dup3.c (dup3): Likewise.
25430         * tests/test-fchdir.c (main): Enhance test.
25431         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
25432
25433         fcntl: port portions of fcntl to mingw
25434         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
25435         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
25436         replacement for mingw.
25437         * modules/fcntl (Description): Update.
25438         (Depends-on): Add dup2.
25439         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
25440         * modules/fcntl-h (Makefile.am): Substitute it.
25441         * lib/fcntl.in.h (fcntl): Update declaration.
25442         (F_DUPFD, F_GETFD): New macros, when needed.
25443         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25444         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
25445         * tests/test-fcntl.c (check_flags, main): Enhance test for items
25446         we now guarantee.
25447
25448         fcntl: work around cygwin bug in F_DUPFD
25449         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
25450         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
25451         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
25452         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
25453         * doc/posix-functions/fcntl.texi (fcntl): Document it.
25454
25455         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
25456         * modules/fcntl (Files): List new files.
25457         (configure.ac): Run a test.
25458         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
25459         * lib/fcntl.c (rpl_fcntl): Likewise.
25460         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
25461         (gl_FCNTL_H): Always replace fcntl.h.
25462         * modules/fcntl-h (Makefile.am): Substitute witnesses.
25463         * lib/fcntl.in.h (fcntl): Declare replacement.
25464         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
25465         needed, plus a witness.
25466         * doc/posix-functions/fcntl.texi (fcntl): Document this.
25467         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
25468         * tests/test-fcntl.c: New file.
25469         * modules/fcntl-tests: Likewise.
25470
25471         binary-io: avoid potential compilation warning
25472         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
25473         directives.
25474
25475         fflush: avoid compilation error on NetBSD
25476         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
25477         between off_t and fpos_t, since the latter is sometimes a struct.
25478         * lib/fseeko.c (rpl_fseeko): Likewise.
25479         Reported by Alexander Nasonov <alnsn@yandex.ru>.
25480
25481 2009-12-15  Eric Blake  <ebb9@byu.net>
25482
25483         fcntl-h, stdio, sys_ioctl: fix declarations
25484         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
25485         function must not take arguments.
25486         * lib/sys_ioctl.in.h (ioctl): Likewise.
25487         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
25488         (open): Add a link warning.
25489
25490 2009-12-15  Jim Meyering  <meyering@redhat.com>
25491
25492         areadlink, areadlink-with-size: relax license to LGPLv2+
25493         * modules/areadlink (License): Relax to LGPLv2+.
25494         * modules/areadlink-with-size (License): Likewise.
25495
25496 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
25497             Bruno Haible  <bruno@clisp.org>
25498
25499         *printf: Fix memory leak.
25500         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
25501         * lib/vfprintf.c (vfprintf): Likewise.
25502         * lib/dprintf.c (dprintf): Likewise.
25503         * lib/vdprintf.c (vdprintf): Likewise.
25504
25505 2009-12-14  Eric Blake  <ebb9@byu.net>
25506
25507         accept4: adjust module dependencies
25508         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
25509
25510         utimens: one more try at avoiding compiler warning
25511         * lib/utimens.c (lutimens): Lower scope of result.
25512
25513 2009-12-13  Bruno Haible  <bruno@clisp.org>
25514
25515         Move the malloc checking from module 'list' to new module 'xlist'.
25516         * modules/xlist: New file.
25517         * lib/gl_xlist.h: New file.
25518         * lib/gl_xlist.c: New file.
25519         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
25520         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
25521         gl_list_add_last, gl_list_add_before, gl_list_add_after,
25522         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
25523         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
25524         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
25525         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
25526         gl_sortedlist_nx_add): New declarations.
25527         (struct gl_list_implementation): Rename and change methods accordingly.
25528         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
25529         (gl_list_nx_create): Renamed from gl_list_create.
25530         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
25531         (gl_list_nx_set_at): Renamed from gl_list_set_at.
25532         (gl_list_nx_add_first): Renamed from gl_list_add_first.
25533         (gl_list_nx_add_last): Renamed from gl_list_add_last.
25534         (gl_list_nx_add_before): Renamed from gl_list_add_before.
25535         (gl_list_nx_add_after): Renamed from gl_list_add_after.
25536         (gl_list_nx_add_at): Renamed from gl_list_add_at.
25537         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
25538         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
25539         gl_list_create_empty.
25540         (gl_list_nx_create): Renamed from gl_list_create.
25541         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
25542         (gl_list_nx_set_at): Renamed from gl_list_set_at.
25543         (gl_list_nx_add_first): Renamed from gl_list_add_first.
25544         (gl_list_nx_add_last): Renamed from gl_list_add_last.
25545         (gl_list_nx_add_before): Renamed from gl_list_add_before.
25546         (gl_list_nx_add_after): Renamed from gl_list_add_after.
25547         (gl_list_nx_add_at): Renamed from gl_list_add_at.
25548         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
25549         * lib/gl_array_list.c: Don't include xalloc.h.
25550         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
25551         NULL upon out-of-memory.
25552         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
25553         out-of-memory.
25554         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
25555         Change return type to 'int'.
25556         (gl_array_nx_set_at): Renamed from gl_array_set_at.
25557         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
25558         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
25559         upon out-of-memory.
25560         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
25561         upon out-of-memory.
25562         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
25563         upon out-of-memory.
25564         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
25565         upon out-of-memory.
25566         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
25567         out-of-memory.
25568         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
25569         Update.
25570         (gl_array_list_implementation): Update.
25571         * lib/gl_carray_list.c: Don't include xalloc.h.
25572         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
25573         Return NULL upon out-of-memory.
25574         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
25575         out-of-memory.
25576         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
25577         Change return type to 'int'.
25578         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
25579         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
25580         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
25581         upon out-of-memory.
25582         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
25583         upon out-of-memory.
25584         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
25585         out-of-memory.
25586         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
25587         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
25588         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
25589         Update.
25590         (gl_carray_list_implementation): Update.
25591         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
25592         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
25593         gl_linked_create_empty. Return NULL upon out-of-memory.
25594         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
25595         out-of-memory.
25596         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
25597         Change return type to 'int'. Return -1 upon out-of-memory.
25598         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
25599         out-of-memory.
25600         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
25601         upon out-of-memory.
25602         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
25603         upon out-of-memory.
25604         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
25605         NULL upon out-of-memory.
25606         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
25607         upon out-of-memory.
25608         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
25609         out-of-memory.
25610         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
25611         Update.
25612         * lib/gl_linked_list.c: Don't include xalloc.h.
25613         (gl_linked_list_implementation): Update.
25614         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
25615         (add_to_bucket): Change return type to 'int'.
25616         (gl_linkedhash_list_implementation): Update.
25617         * lib/gl_anytree_list1.h (free_subtree): New function.
25618         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
25619         gl_tree_create_empty. Return NULL upon out-of-memory.
25620         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
25621         Change return type to 'int'. Return -1 upon out-of-memory.
25622         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
25623         out-of-memory.
25624         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
25625         (gl_tree_remove_node): New function, moved here from
25626         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
25627         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
25628         Update.
25629         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
25630         malloc, not xmalloc. Return NULL upon out-of-memory.
25631         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
25632         out-of-memory.
25633         (gl_tree_remove_node_from_tree): New function, extracted from
25634         gl_tree_remove_node.
25635         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
25636         upon out-of-memory.
25637         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
25638         out-of-memory.
25639         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
25640         upon out-of-memory.
25641         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
25642         upon out-of-memory.
25643         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
25644         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
25645         not xmalloc. Return NULL upon out-of-memory.
25646         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
25647         out-of-memory.
25648         (gl_tree_remove_node_from_tree): New function, extracted from
25649         gl_tree_remove_node.
25650         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
25651         upon out-of-memory.
25652         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
25653         out-of-memory.
25654         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
25655         upon out-of-memory.
25656         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
25657         upon out-of-memory.
25658         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
25659         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
25660         gl_anytree_list1.h before gl_anyavltree_list2.h.
25661         (gl_avltree_list_implementation): Update.
25662         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
25663         gl_anytree_list1.h before gl_anyavltree_list2.h.
25664         (gl_rbtree_list_implementation): Update.
25665         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
25666         Change return type to 'int'. Return -1 upon out-of-memory. Use
25667         __builtin_expect.
25668         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
25669         (gl_avltreehash_list_implementation): Update.
25670         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
25671         (gl_rbtreehash_list_implementation): Update.
25672         * modules/array-list (Depends-on): Remove xalloc.
25673         * modules/carray-list (Depends-on): Likewise.
25674         * modules/linked-list (Depends-on): Likewise.
25675         * modules/linkedhash-list (Depends-on): Likewise.
25676         * modules/avltree-list (Depends-on): Likewise.
25677         * modules/rbtree-list (Depends-on): Likewise.
25678         * modules/avltreehash-list (Depends-on): Likewise.
25679         * modules/rbtreehash-list (Depends-on): Likewise.
25680
25681         * modules/xsublist: New file.
25682         * lib/gl_xsublist.h: New file.
25683         * lib/gl_xsublist.c: New file.
25684         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
25685         (gl_sublist_nx_create): New declaration.
25686         * lib/gl_sublist.c: Don't include xalloc.h.
25687         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
25688         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
25689         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
25690         Change return type to 'int'. Return -1 upon out-of-memory.
25691         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
25692         upon out-of-memory.
25693         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
25694         NULL upon out-of-memory.
25695         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
25696         upon out-of-memory.
25697         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
25698         NULL upon out-of-memory.
25699         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
25700         NULL upon out-of-memory.
25701         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
25702         upon out-of-memory.
25703         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
25704         (gl_sublist_list_implementation): Update.
25705         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
25706         upon out-of-memory.
25707         * modules/sublist (Depends-on): Remove xalloc.
25708
25709         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
25710         * tests/test-carray_list.c: Likewise.
25711         * tests/test-linked_list.c: Likewise.
25712         * tests/test-linkedhash_list.c: Likewise.
25713         * tests/test-avltree_list.c: Likewise.
25714         * tests/test-rbtree_list.c: Likewise.
25715         * tests/test-avltreehash_list.c: Likewise.
25716         * tests/test-rbtreehash_list.c: Likewise.
25717         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
25718         * modules/carray-list-tests (Makefile.am): Likewise.
25719         * modules/linked-list-tests (Makefile.am): Likewise.
25720         * modules/linkedhash-list-tests (Makefile.am): Likewise.
25721         * modules/avltree-list-tests (Makefile.am): Likewise.
25722         * modules/rbtree-list-tests (Makefile.am): Likewise.
25723         * modules/avltreehash-list-tests (Makefile.am): Likewise.
25724         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
25725
25726         * NEWS: Mention the changes.
25727
25728         * lib/clean-temp.c: Include gl_xlist.h.
25729         * modules/clean-temp (Depends-on): Add xlist.
25730
25731         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
25732         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
25733
25734         * tests/test-array_oset.c: Include gl_xlist.h.
25735         * modules/array-oset-tests (Depends-on): Add xlist.
25736
25737         Reported by José E. Marchesi <jemarch@gnu.org>.
25738
25739 2009-12-13  Bruno Haible  <bruno@clisp.org>
25740
25741         Move the malloc checking from module 'oset' to new module 'xoset'.
25742         * modules/xoset: New file.
25743         * lib/gl_xoset.h: New file.
25744         * lib/gl_xoset.c: New file.
25745         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
25746         declarations.
25747         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
25748         (struct gl_oset_implementation): Rename and change methods accordingly.
25749         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
25750         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
25751         'int'. Mark as __warn_unused_result__.
25752         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
25753         gl_oset_create_empty.
25754         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
25755         'int'.
25756         * lib/gl_array_oset.c: Don't include xalloc.h.
25757         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
25758         malloc, not xmalloc.
25759         (grow): Change return type to 'int'. Don't call xalloc_die.
25760         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
25761         to 'int'.
25762         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
25763         'int'.
25764         (gl_array_oset_implementation): Update.
25765         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
25766         gl_tree_create_empty.
25767         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
25768         'int'.
25769         * lib/gl_avltree_oset.c: Don't include xalloc.h.
25770         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
25771         xmalloc.
25772         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
25773         not xmalloc.
25774         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
25775         xmalloc.
25776         (gl_avltree_oset_implementation): Update.
25777         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
25778         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
25779         xmalloc.
25780         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
25781         not xmalloc.
25782         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
25783         xmalloc.
25784         (gl_rbtree_oset_implementation): Update.
25785         * modules/array-oset (Depends-on): Remove xalloc.
25786         * modules/avltree-oset (Depends-on): Likewise.
25787         * modules/rbtree-oset (Depends-on): Likewise.
25788         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
25789         * tests/test-avltree_oset.c: Likewise.
25790         * tests/test-rbtree_oset.c: Likewise.
25791         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
25792         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
25793         * modules/rbtree-oset-tests (Makefile.am): Likewise.
25794         * NEWS: Mention the change.
25795
25796 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
25797
25798         maint.mk: allow a project to override release-prep commands
25799         * top/maint.mk (alpha, beta, stable): Move release-preparatory
25800         commands into a new rule.
25801         (release-prep): New rule.
25802         (release-prep-hook): New overridable variable.
25803
25804 2009-12-13  Bruno Haible  <bruno@clisp.org>
25805
25806         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
25807
25808 2009-12-13  Jim Meyering  <meyering@redhat.com>
25809
25810         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
25811         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
25812
25813 2009-12-12  Bruno Haible  <bruno@clisp.org>
25814
25815         duplocale: Tweak.
25816         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
25817
25818 2009-12-12  Karl Berry  <karl@gnu.org>
25819
25820         * config/srclist.txt (strtoll.c): tab changes, no more sync.
25821
25822 2009-12-12  Bruno Haible  <bruno@clisp.org>
25823
25824         * m4/po.m4: Undo incorrect untabification.
25825
25826 2009-12-12  Bruno Haible  <bruno@clisp.org>
25827
25828         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
25829         * modules/c-strtod (Depends-on): Add locale.
25830         * modules/c-strtold (Depends-on): Likewise.
25831
25832 2009-12-12  Bruno Haible  <bruno@clisp.org>
25833
25834         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
25835
25836 2009-12-11  Eric Blake  <ebb9@byu.net>
25837
25838         setenv: relax requirement in light of POSIX ruling
25839         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
25840         not NULL.
25841         * tests/test-setenv.c (main): Relax test.
25842         * tests/test-unsetenv.c (main): Likewise.
25843         * doc/posix-functions/setenv.texi (setenv): Document this.
25844         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
25845
25846 2009-12-11  Bruno Haible  <bruno@clisp.org>
25847
25848         New module 'fd-safer-flag'.
25849         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
25850         * lib/dup-safer.c (dup_safer_flag): Remove function.
25851         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
25852         * lib/fd-safer.c (fd_safer_flag): Remove function.
25853         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
25854         * modules/cloexec (configure.ac): Drop indicator macro.
25855         * modules/fd-safer-flag: New file.
25856         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
25857         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
25858         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
25859
25860 2009-12-11  Bruno Haible  <bruno@clisp.org>
25861
25862         Tests for module 'nl_langinfo'.
25863         * modules/nl_langinfo-tests: New file.
25864         * tests/test-nl_langinfo.sh: New file.
25865         * tests/test-nl_langinfo.c: New file.
25866
25867         New module 'nl_langinfo'.
25868         * lib/nl_langinfo.c: New file.
25869         * m4/nl_langinfo.m4: New file.
25870         * modules/nl_langinfo: New file.
25871         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
25872
25873 2009-12-11  Bruno Haible  <bruno@clisp.org>
25874
25875         Tests for module 'langinfo'.
25876         * modules/langinfo-tests: New file.
25877         * tests/test-langinfo.c: New file.
25878
25879         New module 'langinfo'.
25880         * lib/langinfo.in.h: New file.
25881         * m4/langinfo_h.m4: New file.
25882         * modules/langinfo: New file.
25883         * doc/posix-headers/langinfo.texi: Mention the new module.
25884
25885 2009-12-11  Bruno Haible  <bruno@clisp.org>
25886
25887         * lib/config.charset: Untabify.
25888
25889 2009-12-11  Bruno Haible  <bruno@clisp.org>
25890
25891         * modules/unistd-safer (configure.ac): Drop indicator macro.
25892
25893 2009-12-11  Bruno Haible  <bruno@clisp.org>
25894
25895         Move pipe2-safer code to its own file.
25896         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
25897         * lib/pipe-safer.c (pipe2_safer): Remove function.
25898         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
25899         (Makefile.am): Add it to lib_SOURCES.
25900
25901 2009-12-10  Bruno Haible  <bruno@clisp.org>
25902
25903         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
25904
25905 2009-12-10  Bruno Haible  <bruno@clisp.org>
25906
25907         Declare which arguments expect non-NULL values, for GCC and clang.
25908         * build-aux/arg-nonnull.h: New file.
25909         * modules/arg-nonnull: New file.
25910         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
25911         (inet_ntop, inet_pton): Use it.
25912         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
25913         (closedir, dirfd, opendir, scandir, alphasort): Use it.
25914         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
25915         (open, openat): Use it.
25916         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
25917         (fnmatch): Use it.
25918         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
25919         (getopt, getopt_long, getopt_long_only): Use it.
25920         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
25921         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
25922         Use it.
25923         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
25924         (iconv_open): Use it.
25925         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
25926         (strtoimax, strtoumax): Use it.
25927         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
25928         (duplocale): Use it.
25929         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
25930         (frexp, frexpl): Use it.
25931         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
25932         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
25933         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
25934         (tsearch, tfind, tdelete, twalk): Use it.
25935         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
25936         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
25937         sigpending): Use it.
25938         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
25939         (posix_spawn, posix_spawnp, posix_spawnattr_init,
25940         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
25941         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
25942         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
25943         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
25944         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
25945         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
25946         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
25947         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
25948         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
25949         Use it.
25950         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
25951         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
25952         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
25953         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
25954         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
25955         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
25956         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
25957         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
25958         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
25959         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
25960         strtoull, unsetenv): Use it.
25961         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
25962         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
25963         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
25964         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
25965         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
25966         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
25967         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
25968         (strcasecmp, strncasecmp): Use it.
25969         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
25970         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
25971         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
25972         rpl_setsockopt): Use it.
25973         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
25974         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
25975         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
25976         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
25977         (gettimeofday): Use it.
25978         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
25979         (times): Use it.
25980         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
25981         (uname): Use it.
25982         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
25983         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
25984         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
25985         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
25986         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
25987         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
25988         unlinkat, write): Use it.
25989         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
25990         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
25991         * lib/argv-iter.h: Include arg-nonnull.h.
25992         (_ATTRIBUTE_NONNULL_): Remove macro.
25993         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
25994         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
25995         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
25996         optimization.
25997         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
25998         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
25999         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
26000         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
26001         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
26002         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
26003         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
26004         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
26005         * modules/arpa_inet (Depends-on): Add arg-nonnull.
26006         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
26007         * modules/dirent (Depends-on): Add arg-nonnull.
26008         (Makefile.am): Insert arg-nonnull.h into dirent.h.
26009         * modules/fcntl-h (Depends-on): Add arg-nonnull.
26010         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
26011         * modules/fnmatch (Depends-on): Add arg-nonnull.
26012         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
26013         * modules/getopt-posix (Depends-on): Add arg-nonnull.
26014         (Makefile.am): Insert arg-nonnull.h into getopt.h.
26015         * modules/glob (Depends-on): Add arg-nonnull.
26016         (Makefile.am): Insert arg-nonnull.h into glob.h.
26017         * modules/iconv_open (Depends-on): Add arg-nonnull.
26018         (Makefile.am): Insert arg-nonnull.h into iconv.h.
26019         * modules/inttypes (Depends-on): Add arg-nonnull.
26020         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
26021         * modules/locale (Depends-on): Add arg-nonnull.
26022         (Makefile.am): Insert arg-nonnull.h into locale.h.
26023         * modules/math (Depends-on): Add arg-nonnull.
26024         (Makefile.am): Insert arg-nonnull.h into math.h.
26025         * modules/netdb (Depends-on): Add arg-nonnull.
26026         (Makefile.am): Insert arg-nonnull.h into netdb.h.
26027         * modules/search (Depends-on): Add arg-nonnull.
26028         (Makefile.am): Insert arg-nonnull.h into search.h.
26029         * modules/signal (Depends-on): Add arg-nonnull.
26030         (Makefile.am): Insert arg-nonnull.h into signal.h.
26031         * modules/spawn (Depends-on): Add arg-nonnull.
26032         (Makefile.am): Insert arg-nonnull.h into spawn.h.
26033         * modules/stdio (Depends-on): Add arg-nonnull.
26034         (Makefile.am): Insert arg-nonnull.h into stdio.h.
26035         * modules/stdlib (Depends-on): Add arg-nonnull.
26036         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
26037         * modules/string (Depends-on): Add arg-nonnull.
26038         (Makefile.am): Insert arg-nonnull.h into string.h.
26039         * modules/strings (Depends-on): Add arg-nonnull.
26040         (Makefile.am): Insert arg-nonnull.h into strings.h.
26041         * modules/sys_socket (Depends-on): Add arg-nonnull.
26042         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
26043         * modules/sys_stat (Depends-on): Add arg-nonnull.
26044         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
26045         * modules/sys_time (Depends-on): Add arg-nonnull.
26046         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
26047         * modules/sys_times (Depends-on): Add arg-nonnull.
26048         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
26049         * modules/sys_utsname (Depends-on): Add arg-nonnull.
26050         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
26051         * modules/time (Depends-on): Add arg-nonnull.
26052         (Makefile.am): Insert arg-nonnull.h into time.h.
26053         * modules/unistd (Depends-on): Add arg-nonnull.
26054         (Makefile.am): Insert arg-nonnull.h into unistd.h.
26055         * modules/wchar (Depends-on): Add arg-nonnull.
26056         (Makefile.am): Insert arg-nonnull.h into wchar.h.
26057         * modules/argv-iter (Depends-on): Add arg-nonnull.
26058         * tests/test-canonicalize.c (null_ptr): New function.
26059         (main): Use it.
26060         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
26061         (main): Use it.
26062         * tests/test-memmem.c (null_ptr): New function.
26063         (main): Use it.
26064         Reported by Jim Meyering.
26065
26066 2009-12-10  Bruno Haible  <bruno@clisp.org>
26067
26068         Use spaces for indentation, not tabs.
26069         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26070         * m4/*.m4: Untabify.
26071         * build-aux/*.h: Untabify.
26072         * tests/**/*.[hc]: Untabify.
26073         * README: New section "Indent with spaces, not TABs", based on
26074         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
26075         * NEWS: Mention the change.
26076
26077 2009-12-10  Bruno Haible  <bruno@clisp.org>
26078
26079         pty test: Fix link error.
26080         * modules/pty-tests (Makefile.am): Add the default LDADD value to
26081         test_pty_LDADD.
26082
26083 2009-12-07  Simon Josefsson  <simon@josefsson.org>
26084
26085         * modules/pty: New file.
26086         * modules/pty-tests: New file.
26087         * m4/pty.m4: New file.
26088         * tests/test-pty.c: New file.
26089         * doc/glibc-headers/pty.texi: Modified.
26090         * doc/glibc-functions/forkpty.texi: Modified.
26091         * doc/glibc-functions/openpty.texi: Modified.
26092
26093 2009-12-10  Bruno Haible  <bruno@clisp.org>
26094
26095         Avoid syntax error in C++ mode.
26096         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
26097
26098 2009-12-10  Bruno Haible  <bruno@clisp.org>
26099
26100         Use sed with option -e.
26101         * gnulib-tool (func_version, func_emit_copyright_notice,
26102         func_emit_initmacro_end, func_import, func_create_testdir): Pass
26103         option -e to sed.
26104         * modules/link-warning (Makefile.am): Likewise.
26105
26106 2009-12-10  Jim Meyering  <meyering@redhat.com>
26107
26108         mgetgroups: do not write bytes beyond end of malloc'd buffer
26109         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
26110         username, we call getgroups with a one-element-shorter buffer,
26111         but still told it the length was original, max_n_groups.
26112
26113 2009-12-09  Eric Blake  <ebb9@byu.net>
26114
26115         cloexec: relax license
26116         * modules/cloexec (Maintainer): Add myself.
26117         (License): Use LGPL, not GPL.
26118
26119         link-warning: optimize generation
26120         * modules/link-warning (Makefile.am): Reduce process usage.
26121
26122 2009-12-09  Bruno Haible  <bruno@clisp.org>
26123
26124         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
26125         workaround was added on 2009-11-17.
26126
26127 2009-12-09  Jim Meyering  <meyering@redhat.com>
26128             Bruno Haible  <bruno@clisp.org>
26129
26130         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
26131         * modules/link-warning (Makefile.am): Make the comment-removing sed
26132         command more robust in the face of bootstrap-prepended comment lines.
26133
26134 2009-12-09  Bruno Haible  <bruno@clisp.org>
26135
26136         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
26137         most one group.
26138
26139 2009-12-09  Simon Josefsson <simon@josefsson.org>
26140             Bruno Haible  <bruno@clisp.org>
26141
26142         * build-aux/link-warning.h: Add copyright notice.
26143         * modules/link-warning (Makefile.am): Generate link-warning.h from
26144         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
26145         * NEWS: Mention change in link-warning module.
26146         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
26147         * modules/dirent (Makefile.am): Add dependency to dirent.h.
26148         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
26149         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
26150         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
26151         * modules/math (Makefile.am): Add dependency to math.h.
26152         * modules/search (Makefile.am): Add dependency to search.h.
26153         * modules/signal (Makefile.am): Add dependency to signal.h.
26154         * modules/spawn (Makefile.am): Add dependency to spawn.h.
26155         * modules/stdio (Makefile.am): Add dependency to stdio.h.
26156         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
26157         * modules/string (Makefile.am): Add dependency to string.h.
26158         * modules/strings (Makefile.am): Add dependency to strings.h.
26159         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
26160         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
26161         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
26162         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
26163         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
26164         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
26165         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
26166         * modules/unistd (Makefile.am): Add dependency to unistd.h.
26167         * modules/wchar (Makefile.am): Add dependency to wchar.h.
26168
26169 2009-12-09  Bruno Haible  <bruno@clisp.org>
26170
26171         fchdir: Optimize away rpl_fstat when possible.
26172         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
26173         REPLACE_OPEN_DIRECTORY.
26174         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
26175
26176 2009-12-09  Bruno Haible  <bruno@clisp.org>
26177
26178         * lib/fchdir.c: Update comment.
26179
26180 2009-12-09  Bruno Haible  <bruno@clisp.org>
26181
26182         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
26183
26184 2009-12-08  Eric Blake  <ebb9@byu.net>
26185
26186         fchdir: avoid memory leak on re-registration.
26187         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
26188
26189 2009-12-08  Jim Meyering  <meyering@redhat.com>
26190
26191         init.sh: avoid Solaris 10 /bin/sh portability problem
26192         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
26193         sourced script:
26194           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
26195           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
26196           bar
26197         tests/init.sh relied on that, accepting a --set-path=DIR argument,
26198         and two tests used that idiom.
26199         * tests/init.sh: Update suggested usage comments.
26200         (path_prepend_): New function, to be used in place
26201         of the --src-path=DIR option.
26202         (setup_): Move PATH-prepending code into path_prepend_.
26203         * tests/test-pread.sh: Adapt to new usage.
26204         * tests/test-xalloc-die.sh: Likewise.
26205
26206 2009-12-08  Simon Josefsson  <simon@josefsson.org>
26207
26208         * doc/gnulib.texi (Glibc pty.h): Add.
26209         * doc/glibc-functions/forkpty.texi: Add.
26210         * doc/glibc-functions/openpty.texi: Add.
26211         Suggested by Bruno Haible.
26212
26213 2009-12-08  Eric Blake  <ebb9@byu.net>
26214
26215         fchdir: fix logic bugs
26216         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
26217         * tests/test-fchdir.c (main): Enhance test.
26218         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
26219         is in use.
26220
26221         dup2: fix logic bugs
26222         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
26223         REPLACE_DUP2 to decide when rpl_dup2 is needed.
26224         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
26225         exists.
26226         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
26227
26228 2009-12-07  Eric Blake  <ebb9@byu.net>
26229
26230         unlink: fix m4 detection
26231         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
26232
26233         unistd-safer: add unit test
26234         * modules/unistd-safer-tests: New file.
26235         * tests/test-dup-safer.c: Likewise.
26236         * tests/test-cloexec.c (setmode): Avoid compiler warning.
26237         * tests/test-dup2.c (setmode): Likewise.
26238         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
26239
26240         cloexec: preserve text vs. binary across dup_cloexec
26241         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
26242         mode.
26243         * modules/dup2-tests (Depends-on): Add binary-io.
26244         * modules/cloexec-tests (Depends-on): Likewise.
26245         * tests/test-dup2.c (setmode, is_mode): New helpers.
26246         (main): Add tests that translation mode is preserved.
26247         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
26248         Reported by Bruno Haible.
26249
26250         mgetgroups: reduce duplicate listings
26251         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
26252         resulting array.
26253         * tests/test-chown.h (test_chown): Simplify client.
26254         * tests/test-lchown.h (test_lchown): Likewise.
26255
26256 2009-12-06  Bruno Haible  <bruno@clisp.org>
26257
26258         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
26259         value.
26260
26261 2009-12-06  Bruno Haible  <bruno@clisp.org>
26262
26263         * lib/progname.c: Include stdio.h, stdlib.h.
26264         (set_program_name): Reject a NULL argument.
26265
26266 2009-12-05  Eric Blake  <ebb9@byu.net>
26267
26268         pipe2-safer: new module
26269         * modules/pipe2-safer: New file.
26270         * lib/unistd-safer.h (pipe2_safer): New prototype.
26271         * lib/unistd--.h (pipe2): New wrapper.
26272         * lib/pipe-safer.c (pipe2_safer): New function.
26273         * modules/pipe (Depends-on): Add pipe2-safer.
26274         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
26275
26276         stdlib-safer: preserve cloexec flag for mkostemp[s]
26277         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
26278         fd_safer_flag.
26279
26280         unistd-safer: allow preservation of cloexec status via flag
26281         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
26282         prototypes.
26283         * lib/dup-safer.c (dup_safer_flag): New function.
26284         * lib/fd-safer.c (fd_safer_flag): Likewise.
26285         * modules/cloexec (configure.ac): Set witness.
26286
26287         test-dup2: enhance test
26288         * modules/dup2-tests (Depends-on): Add cloexec.
26289         * tests/test-dup2.c (main): Enhance test.
26290
26291         cloexec: add dup_cloexec
26292         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
26293         header and comments.
26294         * lib/cloexec.c (set_cloexec_flag): Add comments.
26295         (dup_cloexec): New function, with mingw implementation borrowed
26296         from...
26297         * lib/w32spawn.h (dup_noinherit): ...here.
26298         * modules/execute (Depends-on): Add cloexec.
26299         * modules/pipe (Depends-on): Likewise.
26300         * modules/cloexec (Depends-on): Add dup2.
26301         * modules/cloexec-tests (Files): New file.
26302         * tests/test-cloexec.c: Likewise.
26303
26304         test-xalloc-die: fix test for mingw
26305         * modules/xalloc-die-tests (Files): Add tests/init.sh.
26306         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
26307         directory and .exe suffix off argv[0] output.
26308
26309         test-fseeko: fix test for mingw
26310         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
26311         than undefining fseek, so test will pass on mingw.
26312
26313 2009-12-05  Bruno Haible  <bruno@clisp.org>
26314
26315         * lib/progname.h (set_program_name): Clarify specification.
26316         * lib/progname.c (set_program_name): Likewise.
26317         Reported by Jim Meyering.
26318
26319 2009-12-05  Jim Meyering  <meyering@redhat.com>
26320
26321         maint.mk: backslash-escape parens in default regexp
26322         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
26323         backslash-escape the literal parentheses.
26324
26325         maint.mk: news-date-check: use grep -E
26326         * top/maint.mk (today): Define a Make variable, not a...
26327         (news-date-check): ...shell variable.
26328         (news-date-regexp): Use the Make variable.
26329         Use grep's -E option.  Change the failing diagnostic to mention
26330         the variable, $(news-date-regexp).
26331
26332 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
26333
26334         maintainer-makefile: allow customization of NEWS entry format
26335         * top/maint.mk (news-date-regexp): New overridable variable.
26336         (news-date-check): Use it.
26337
26338 2009-12-04  Eric Blake  <ebb9@byu.net>
26339
26340         mgetgroups: add xgetgroups, and avoid ENOSYS failures
26341         * lib/mgetgroups.h (xgetgroups): New prototype.
26342         * lib/mgetgroups.c (xgetgroups): New wrapper.
26343         (mgetgroups): Handle ENOSYS.
26344         * modules/mgetgroups (Depends-on): Add realloc.
26345         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
26346
26347         mgetgroups: avoid argument promotion issues with -1
26348         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
26349         for invalid gid_t.
26350         * tests/test-chown.h (getegid, test_chown): Likewise.
26351         * tests/test-lchown.h (getegid, test_lchown): Likewise.
26352
26353 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
26354
26355         exclude: Fix header file problems.
26356         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
26357
26358 2009-12-01  Jim Meyering  <meyering@redhat.com>
26359
26360         fts: fts_open: do not let an empty string cause immediate failure
26361         This is required in support of GNU rm, for which the command
26362         "rm A '' B" must process and remove both A and B, in spite of
26363         the empty string argument.
26364         * lib/fts.c (fts_open): Do not let the presence of an empty string
26365         cause fts_open to fail immediately.  Most fts-using tools must be
26366         able to process all arguments, in order, and can be expected to
26367         diagnose such arguments themselves.
26368
26369 2009-11-30  Eric Blake  <ebb9@byu.net>
26370
26371         utimens: fix compilation error
26372         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
26373         Declare variable at right scope.
26374
26375 2009-11-29  Jim Meyering  <meyering@redhat.com>
26376
26377         bootstrap: handle perl-5.11's changed --version output
26378         * build-aux/bootstrap (get_version): Handle perl separately,
26379         since perl-5.11's --version output is different.
26380
26381 2009-11-28  Jim Meyering  <meyering@redhat.com>
26382
26383         userspec: depend on the inttostr module, too
26384         * modules/userspec (Depends-on): Add inttostr.
26385
26386         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
26387         * lib/userspec.c (parse_with_separator): Do not accept a user ID
26388         number of MAXUID when it evaluates to (uid_t) -1.
26389         Likewise for group ID.  Reported by Matt McCutchen in
26390         <http://savannah.gnu.org/bugs/?28113>
26391
26392         userspec: reformat to use spaces, not TABs
26393         * lib/userspec.c: Expand TABs to spaces.
26394         Add Emacs' "indent-tabs-mode: nil" hint.
26395
26396 2009-11-27  Eric Blake  <ebb9@byu.net>
26397
26398         getopt-gnu: flush out another BSD bug
26399         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
26400         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
26401         flush out BSD bug.
26402         * tests/test-getopt.h (test_getopt): End lists with NULL.
26403         * tests/test-getopt_long.h (test_getopt_long): Likewise.
26404         (test_getopt_long_posix): Enhance test.
26405         * modules/getopt-posix-tests (Depends-on): Add stdbool.
26406         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
26407         getopt-gnu.
26408         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26409         Likewise.
26410
26411 2009-11-27  Simon Josefsson  <simon@josefsson.org>
26412
26413         * modules/idpriv-droptemp-tests (Notice): Fix text.
26414
26415 2009-11-27  Jim Meyering  <meyering@redhat.com>
26416
26417         test-xalloc-die: avoid spurious failure due to libtool argv difference
26418         In a libtool-enabled project, this test would fail due to a difference
26419         in the emitted program name, e.g.,
26420         -test-xalloc-die: memory exhausted
26421         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
26422         Use program to avoid that.
26423         * modules/xalloc-die-tests (Depends-on): Add progname.
26424         * tests/test-xalloc-die.c: Include progname.h".
26425         (program_name): Remove decl.
26426         (main): Call set_program_name.
26427         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
26428
26429 2009-11-26  Richard Jones  <rjones@redhat.com>
26430
26431         w32sock: leave win32 error in place.
26432         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
26433
26434 2009-11-26  Eric Blake  <ebb9@byu.net>
26435
26436         init.sh: suggest to use skip_ and fail_ functions in comments
26437         * tests/init.sh: Add a sentence.
26438
26439 2009-11-25  Bruno Haible  <bruno@clisp.org>
26440
26441         init.sh: add documentation in comments
26442         * tests/init.sh: Add some developer and user documentation.
26443
26444 2009-11-26  Jim Meyering  <meyering@redhat.com>
26445
26446         init.sh: accommodate even those who specify bogus srcdir manually
26447         * tests/init.sh: Normally, srcdir is guaranteed by automake and
26448         configure-time tests to be sanitized, so that there is no need to
26449         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
26450         (with no double quotes) suffices.  However, since tests may be
26451         invoked manually, and since you may explicitly set srcdir to the
26452         name of a directory containing spaces, do quote its uses here.
26453         * tests/test-pread.sh: Likewise.
26454         Suggested by Bruno Haible.
26455
26456         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
26457         * tests/test-pread.sh: Write no data into the pipe, because
26458         test-pread actually reads none.  This avoids a diagnostic,
26459         "bash: echo: write error: Broken pipe", that arises in the unusual
26460         event something is ignoring SIGPIPE, and might be interpreted
26461         as some sort of failure.  Reported by Bruno Haible.
26462
26463 2009-11-25  Jim Meyering  <meyering@redhat.com>
26464
26465         test-pread: cover failure with ESPIPE and EINVAL
26466         * tests/test-pread.c (main): Test for failure, too.
26467         * tests/test-pread.sh: Invoke with stdin on a pipe.
26468         Suggested by Eric Blake.
26469
26470         pread: improvement and fix
26471         * modules/pread (Depends-on): Depend on lseek, for portability to
26472         e.g., mingw.  Suggested by Eric Blake.
26473         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
26474
26475         unistd.in.h: correct declaration of pread
26476         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
26477         Reported by Richard W.M. Jones.
26478
26479         test-pread.sh: distribute the test script
26480         * modules/pread-tests (Files): Include test-pread.sh.
26481
26482         test-pread.sh: clean up
26483         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
26484         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
26485         That is unnecessary, since it's always ".".
26486         Suggestion from Eric Blake.
26487
26488         test-pread.sh: make executable
26489         * tests/test-pread.sh: Set executable bit.
26490         Reported by Eric Blake.
26491
26492         correct typo in test-pread.sh
26493         * tests/test-pread.sh: Add #! line.
26494
26495         test pread
26496         * tests/test-pread.c: New file.
26497         * tests/test-pread.sh: Likewise.
26498         * modules/pread-tests: Likewise.
26499
26500         pread: new module
26501         * modules/pread: New file.
26502         * lib/unistd.in.h (pread): Define/declare.
26503         * lib/pread.c (pread): New file.
26504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
26505         * modules/unistd (Makefile.am): Substitute witnesses.
26506         * doc/posix-functions/pread.texi (pread): Update.
26507         * MODULES.html.sh: Add pread.
26508
26509 2009-11-25  Jim Meyering  <meyering@redhat.com>
26510
26511         tests/init.sh: new file to be used via most *.sh tests
26512         * tests/init.sh: New file.
26513
26514 2009-11-25  Eric Blake  <ebb9@byu.net>
26515
26516         utimens: work around older Linux failure with symlinks
26517         * lib/utimens.c (lutimensat_works_really): New variable.
26518         (fdutimens, lutimens): Use it to manage kernels that support
26519         nanosecond times on files, but not on symlinks.
26520         Reported by OndÅ™ej Vašík.
26521
26522         utimes: fix configure grammar
26523         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
26524
26525 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
26526
26527         regex: Fix fastmap for multibyte character ranges.
26528         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
26529         characters when a multibyte character range is included.
26530
26531 2009-11-22  Andy Wingo  <wingo@pobox.com>
26532
26533         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
26534         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
26535
26536 2009-11-24  Bruno Haible  <bruno@clisp.org>
26537
26538         doc: Most *_l functions exist in MacOS X 10.5.
26539         * doc/posix-functions/duplocale.texi: Update platforms list.
26540         * doc/posix-functions/freelocale.texi: Likewise.
26541         * doc/posix-functions/newlocale.texi: Likewise.
26542         * doc/posix-functions/uselocale.texi: Likewise.
26543         * doc/posix-functions/isalnum_l.texi: Likewise.
26544         * doc/posix-functions/isalpha_l.texi: Likewise.
26545         * doc/posix-functions/isblank_l.texi: Likewise.
26546         * doc/posix-functions/iscntrl_l.texi: Likewise.
26547         * doc/posix-functions/isdigit_l.texi: Likewise.
26548         * doc/posix-functions/isgraph_l.texi: Likewise.
26549         * doc/posix-functions/islower_l.texi: Likewise.
26550         * doc/posix-functions/isprint_l.texi: Likewise.
26551         * doc/posix-functions/ispunct_l.texi: Likewise.
26552         * doc/posix-functions/isspace_l.texi: Likewise.
26553         * doc/posix-functions/isupper_l.texi: Likewise.
26554         * doc/posix-functions/iswalnum_l.texi: Likewise.
26555         * doc/posix-functions/iswalpha_l.texi: Likewise.
26556         * doc/posix-functions/iswblank_l.texi: Likewise.
26557         * doc/posix-functions/iswcntrl_l.texi: Likewise.
26558         * doc/posix-functions/iswctype_l.texi: Likewise.
26559         * doc/posix-functions/iswdigit_l.texi: Likewise.
26560         * doc/posix-functions/iswgraph_l.texi: Likewise.
26561         * doc/posix-functions/iswlower_l.texi: Likewise.
26562         * doc/posix-functions/iswprint_l.texi: Likewise.
26563         * doc/posix-functions/iswpunct_l.texi: Likewise.
26564         * doc/posix-functions/iswspace_l.texi: Likewise.
26565         * doc/posix-functions/iswupper_l.texi: Likewise.
26566         * doc/posix-functions/iswxdigit_l.texi: Likewise.
26567         * doc/posix-functions/isxdigit_l.texi: Likewise.
26568         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
26569         * doc/posix-functions/strcasecmp_l.texi: Likewise.
26570         * doc/posix-functions/strcoll_l.texi: Likewise.
26571         * doc/posix-functions/strfmon_l.texi: Likewise.
26572         * doc/posix-functions/strftime_l.texi: Likewise.
26573         * doc/posix-functions/strncasecmp_l.texi: Likewise.
26574         * doc/posix-functions/strxfrm_l.texi: Likewise.
26575         * doc/posix-functions/tolower_l.texi: Likewise.
26576         * doc/posix-functions/toupper_l.texi: Likewise.
26577         * doc/posix-functions/towctrans_l.texi: Likewise.
26578         * doc/posix-functions/towlower_l.texi: Likewise.
26579         * doc/posix-functions/towupper_l.texi: Likewise.
26580         * doc/posix-functions/wcscoll_l.texi: Likewise.
26581         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
26582         * doc/posix-functions/wctrans_l.texi: Likewise.
26583         * doc/posix-functions/wctype_l.texi: Likewise.
26584         * doc/glibc-functions/strptime_l.texi: Likewise.
26585         * doc/glibc-functions/strtod_l.texi: Likewise.
26586         * doc/glibc-functions/strtof_l.texi: Likewise.
26587         * doc/glibc-functions/strtol_l.texi: Likewise.
26588         * doc/glibc-functions/strtold_l.texi: Likewise.
26589         * doc/glibc-functions/strtoll_l.texi: Likewise.
26590         * doc/glibc-functions/strtoul_l.texi: Likewise.
26591         * doc/glibc-functions/strtoull_l.texi: Likewise.
26592         * doc/glibc-functions/wcsftime_l.texi: Likewise.
26593         * doc/glibc-functions/wcstod_l.texi: Likewise.
26594         * doc/glibc-functions/wcstof_l.texi: Likewise.
26595         * doc/glibc-functions/wcstol_l.texi: Likewise.
26596         * doc/glibc-functions/wcstold_l.texi: Likewise.
26597         * doc/glibc-functions/wcstoll_l.texi: Likewise.
26598         * doc/glibc-functions/wcstoul_l.texi: Likewise.
26599         * doc/glibc-functions/wcstoull_l.texi: Likewise.
26600
26601 2009-11-24  Bruno Haible  <bruno@clisp.org>
26602
26603         duplocale: Fix logic bug.
26604         * lib/duplocale.c: Don't include <langinfo.h>.
26605         (_NL_LOCALE_NAME): Remove macro.
26606         (rpl_duplocale): Use setlocale instead of nl_langinfo.
26607         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
26608
26609 2009-11-23  Jim Meyering  <meyering@redhat.com>
26610
26611         test-update-copyright: don't hard-code /usr/bin/perl
26612         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
26613         perl to print the current year.  Gilles Espinasse reported that
26614         the replaced use of perl was hard-coded as /usr/bin/perl.
26615
26616 2009-11-23  Bruno Haible  <bruno@clisp.org>
26617
26618         duplocale: Add support for glibc 2.3.x.
26619         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
26620
26621 2009-11-22  Bruno Haible  <bruno@clisp.org>
26622
26623         vasnprintf: Tiny optimization.
26624         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
26625         MacOS X.
26626
26627 2009-11-22  Bruno Haible  <bruno@clisp.org>
26628
26629         Tests for module 'duplocale'.
26630         * modules/duplocale-tests: New file.
26631         * tests/test-duplocale.c: New file.
26632
26633         New module 'duplocale'.
26634         * m4/duplocale.m4: New file.
26635         * lib/locale.in.h (duplocale): New declaration.
26636         * lib/duplocale.c: New file.
26637         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
26638         gl_LOCALE_H_DEFAULTS): New macros.
26639         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
26640         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
26641         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
26642         REPLACE_DUPLOCALE.
26643         * modules/duplocale: New file.
26644         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
26645
26646 2009-11-22  Bruno Haible  <bruno@clisp.org>
26647
26648         * modules/locale-tests (configure.ac): Test for newlocale function.
26649         * tests/test-locale.c: When the system has extended locale functions,
26650         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
26651
26652         locale: Make locale_t available when possible.
26653         * lib/locale.in.h: Include <xlocale.h> when it exists.
26654         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
26655         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
26656         * modules/locale (Depends-on): Add extensions.
26657         (Makefile.am): Also substitute HAVE_XLOCALE_H.
26658         * doc/posix-headers/locale.texi: Document the problem with locale_t.
26659
26660 2009-11-22  Bruno Haible  <bruno@clisp.org>
26661
26662         Add comments.
26663         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
26664         invocation.
26665         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
26666         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26667         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26668
26669 2009-11-22  Bruno Haible  <bruno@clisp.org>
26670
26671         error: account for the possibility of freopen (stdout).
26672         * lib/error.c: Include <unistd.h>.
26673         (flush_stdout): New function, extracted from error and error_at_line.
26674         Determine stdout's fd dynamically.
26675         (error, error_at_line): Invoke flush_stdout.
26676         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
26677         * modules/error (Depends-on): Add unistd.
26678
26679 2009-11-22  Bruno Haible  <bruno@clisp.org>
26680
26681         diffseq: Add comment.
26682         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
26683
26684 2009-11-22  Jim Meyering  <meyering@redhat.com>
26685
26686         c-stack: avoid defining an unused static function
26687         * lib/c-stack.c (find_stack_direction): Do not define this function
26688         when it will not be used.
26689
26690         diffseq: avoid spurious gcc warnings
26691         * lib/diffseq.h (IF_LINT2): Define.
26692         (compareseq): Use it to initialize two members of "part".
26693         This avoids two used-uninitialized warnings.
26694
26695 2009-11-21  Jim Meyering  <meyering@redhat.com>
26696
26697         c-stack: avoid "ignoring return value of `write'" warning
26698         * lib/c-stack.c: Include "ignore-value.h".
26699         (die): Explicitly ignore each write return value.
26700         * modules/c-stack (Depends-on): Add ignore-value.
26701
26702 2009-11-21  Bruno Haible  <bruno@clisp.org>
26703
26704         diffseq: reduce scope of variable 'best'.
26705         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
26706         variable, earlier used for two different purposes.
26707
26708 2009-11-21  Jim Meyering  <meyering@redhat.com>
26709
26710         diffseq: remove useless assignment to "best"
26711         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
26712         assignment.  At that point "best" is already guaranteed to be zero.
26713
26714 2009-11-20  Eric Blake  <ebb9@byu.net>
26715
26716         build: mention ftp redirector in release announcements
26717         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
26718         values that used to come from cfg.mk; mention FTP redirect URL.
26719         * build-aux/announce-gen: Mention the mirror list.
26720         Suggested by Karl Berry.
26721
26722         nanosleep: improve port to mingw
26723         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
26724         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
26725         LIB_NANOSLEEP, but only when needed.
26726         * modules/select (Link): Document LIBSOCKET.
26727         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
26728         enough.
26729
26730         nanosleep: work around cygwin bug
26731         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
26732         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
26733         bug.
26734         (getnow): Delete, not needed.
26735         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
26736         LIB_CLOCK_GETTIME.
26737         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
26738         clock-time, gettime.
26739         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
26740         bug.
26741         * modules/nanosleep-tests: New test.
26742         * tests/test-nanosleep.c: New file.
26743
26744         sleep: work around cygwin bug
26745         * lib/sleep.c (rpl_sleep): Work around the bug.
26746         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
26747         (gl_PREREQ_SLEEP): Delete unused macro.
26748         * modules/sleep (Depends-on): Add verify.
26749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
26750         * modules/unistd (Makefile.am): Substitute witness.
26751         * lib/unistd.in.h (sleep): Update prototype.
26752         * doc/posix-functions/sleep.texi (sleep): Document the bug.
26753         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
26754         * modules/sleep-tests (Depends-on): Check for alarm.
26755
26756 2009-11-20  Jim Meyering  <meyering@redhat.com>
26757
26758         maint.mk: improve sc_prohibit_magic_number_exit
26759         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
26760         so it does not match uses like System.exit(1).
26761         Add comments showing how to correct all offenders.
26762
26763 2009-11-19  Eric Blake  <ebb9@byu.net>
26764
26765         xalloc-die-tests: add missing library
26766         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
26767
26768         test-xvasprintf: silence compiler warnings
26769         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
26770         empty string from gcc.
26771
26772 2009-11-19  Jim Meyering  <meyering@redhat.com>
26773
26774         xfreopen: new module, from coreutils
26775         * modules/xfreopen: New module.
26776         * lib/xfreopen.c: New file.
26777         * lib/xfreopen.h: New file.
26778         * MODULES.html.sh (File stream based Input/Output"): Add it.
26779
26780 2009-11-19  Eric Blake  <ebb9@byu.net>
26781
26782         manywarnings: depend on warnings
26783         * modules/manywarnings (Depends-on): Add warnings.
26784
26785         build: avoid compiler warnings
26786         * lib/select.c (rpl_select): Delete unused variable.
26787         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
26788
26789 2009-11-18  Eric Blake  <ebb9@byu.net>
26790
26791         tests: avoid false negative with --with-packager
26792         * tests/test-version-etc.sh: Discard packager information.
26793         * tests/test-argp-version-etc-1.sh: Likewise.
26794         Reported by Mike Frysinger.
26795
26796         utimens: fix regression on Solaris
26797         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
26798         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
26799         can only change fd timestamps via futimesat.  Instead, use an
26800         additional witness macro to avoid BSD bug.
26801         Reported by Jim Meyering.
26802
26803 2009-11-17  Eric Blake  <ebb9@byu.net>
26804
26805         usleep: use it to simplify tests
26806         * modules/stat-time-tests (Depends-on): Add usleep.
26807         (configure.ac): Drop usleep check.
26808         * modules/chown-tests (Depends-on, configure.ac): Likewise.
26809         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
26810         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
26811         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
26812         * modules/openat-tests (Depends-on, configure.ac): Likewise.
26813         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
26814         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
26815         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
26816         Likewise.
26817         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
26818         * tests/test-lchown.h (nap): Likewise.
26819         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
26820         * tests/test-stat-time.c (nap): Likewise.
26821         * tests/test-utimens-common.h (nap): Update comments.
26822
26823         usleep: new module
26824         * modules/usleep: New file.
26825         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
26826         * lib/usleep.c (usleep): Likewise.
26827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
26828         * modules/unistd (Makefile.am): Substitute witnesses.
26829         * lib/unistd.in.h (usleep): Add declaration.
26830         * doc/pastposix-functions/usleep.texi (usleep): Document this.
26831         * MODULES.html.sh (Date and time): Likewise.
26832         * modules/usleep-tests (Depends-on): New test.
26833         * tests/test-usleep.c: New file.
26834
26835         chown: work around OpenBSD bug
26836         * lib/chown.c (rpl_chown): Work around the bug.
26837         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
26838         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
26839         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
26840         * modules/chown (Depends-on): Add stdbool.
26841         * modules/lchown (Depends-on): Likewise.
26842         * doc/posix-functions/chown.texi (chown): Document the bug.
26843         * doc/posix-functions/lchown.texi (lchown): Likewise.
26844         * tests/test-lchown.h (test_chown): Relax test.
26845
26846         mkstemp: avoid conflict with C++ keyword template
26847         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
26848         * lib/mkostemp.c (mkostemp): Likewise.
26849         * lib/mkostemps.c (mkostemps): Likewise.
26850         * lib/mkstemp.c (mkstemp): Likewise.
26851         * lib/mkstemps.c (mkstemps): Likewise.
26852
26853         xalloc-die-tests: optimize
26854         * tests/test-xalloc-die.sh: Reduce number of processes.
26855
26856 2009-11-17  Simon Josefsson  <simon@josefsson.org>
26857
26858         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
26859         patch from ludo@gnu.org (Ludovic Courtès).
26860
26861 2009-11-17  Jim Meyering  <meyering@redhat.com>
26862
26863         version-etc: use proper license string
26864         * modules/version-etc (License): Use LGPL, not LGPLv3+.
26865         * modules/version-etc-fsf: Likewise.
26866
26867 2009-11-17  Simon Josefsson  <simon@josefsson.org>
26868
26869         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
26870         printed to stdout.  Deal with EOL differences.
26871
26872 2009-11-17  Eric Blake  <ebb9@byu.net>
26873
26874         unsetenv: work around Solaris bug
26875         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
26876         * lib/unsetenv.c (rpl_unsetenv): Work around it.
26877         Reported by Jim Meyering.
26878
26879         vasnprintf: avoid compiler warnings
26880         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
26881         variables.
26882         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
26883
26884 2009-11-17  Simon Josefsson  <simon@josefsson.org>
26885
26886         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
26887         settings since xalloc-die is no longer the self test,
26888         xalloc-die.sh is.
26889
26890 2009-11-17  Jim Meyering  <meyering@redhat.com>
26891
26892         test-xalloc-die.sh: make the code agree with the commit log
26893         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
26894         at the end, just in case you happen to have a test-xalloc-die
26895         program in some other PATH directory.
26896
26897         test-xalloc-die.sh: fix a portability bug
26898         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
26899         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
26900         Otherwise, argv[0] (as often seen in diagnostics) would be too
26901         system-dependent, sometimes with, and sometimes without the leading "./".
26902
26903         version-etc-fsf: relax license to LGPLv3+
26904         * modules/version-etc-fsf (License): Relax license.
26905
26906 2009-11-16  Eric Blake  <ebb9@byu.net>
26907
26908         xalloc-die-tests: avoid printing null pointer
26909         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
26910         shell script.
26911         * tests/test-xalloc-die.c (program_name): Declare.
26912         * tests/test-xalloc-die.sh (tmpfiles): New file.
26913
26914         setenv, unsetenv: work around various bugs
26915         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
26916         (setenv) [HAVE_SETENV]: Work around bugs.
26917         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
26918         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
26919         for bugs.
26920         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
26921         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
26922         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
26923         * modules/stdlib (Makefile.am): Update substitutions.
26924         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
26925         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
26926         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
26927         * modules/setenv-tests: New test.
26928         * modules/unsetenv-tests: Likewise.
26929         * tests/test-setenv.c: New file.
26930         * tests/test-unsetenv.c: Likewise.
26931
26932 2009-11-16  Jim Meyering  <meyering@redhat.com>
26933
26934         version-etc: relax license to LGPLv3+
26935         * modules/version-etc (License): Relax license.
26936
26937         better AC_REQUIRE expanded-before-required-warning avoidance
26938         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
26939         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
26940         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
26941         which is no longer needed.
26942
26943 2009-11-16  Eric Blake  <ebb9@byu.net>
26944
26945         test-freading: clean up temporary file
26946         * tests/test-freading.c (main): Remove file on success, and use
26947         ASSERT more liberally.
26948         Reported by Jim Meyering.
26949
26950 2009-11-16  Jim Meyering  <meyering@redhat.com>
26951
26952         avoid new AC_REQUIRE expanded-before-required warnings
26953         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
26954         merely using it.
26955         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
26956         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
26957
26958 2009-11-15  Simon Josefsson  <simon@josefsson.org>
26959
26960         * tests/test-xalloc-die.c: New file.
26961         * modules/xalloc-die-tests: New file.
26962         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
26963         XFAIL_TESTS so it can be appended by modules.
26964
26965 2009-11-15  Simon Josefsson  <simon@josefsson.org>
26966
26967         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
26968         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
26969
26970 2009-11-14  Eric Blake  <ebb9@byu.net>
26971
26972         fnmatch: avoid compiler warning
26973         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
26974         to silence compiler warning about mismatch signedness in ?:.
26975         Reported by Robert Millan.
26976
26977         intprops: add double-inclusion guard
26978         * lib/intprops.h: Allow idempotent includes.
26979         Suggested by Bruce Korb.
26980
26981         openat: detect Solaris fchownat bug
26982         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
26983         penalizing glibc chownat when only lchownat is broken.
26984         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
26985         trailing slash bugs.
26986         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
26987         * modules/openat-tests (Files): Include more files.
26988         (Depends-on): Add mgetgroups, sleep, stat-time.
26989         (configure.ac): Add additional checks.
26990         (Makefile.am): Build new test.
26991         * tests/test-fchownat.c: New file.
26992
26993         lchown: detect Solaris and FreeBSD bug
26994         * lib/lchown.c (rpl_lchown): Work around bug.
26995         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
26996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26997         * modules/unistd (Makefile.am): Populate it.
26998         * lib/unistd.in.h (lchown): Update declaration.
26999         * doc/posix-functions/lchown.texi (lchown): Document the bug.
27000         * modules/lchown-tests: New file.
27001         * tests/test-lchown.h (test_lchown): Likewise.
27002         * tests/test-lchown.c (main): Likewise.
27003
27004         chown: detect Solaris and FreeBSD bug
27005         * lib/chown.c (rpl_chown): Work around bug.
27006         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
27007         (gl_PREREQ_CHOWN): Delete.
27008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27009         * modules/unistd (Makefile.am): Populate it.
27010         * lib/unistd.in.h (chown): Update declaration.
27011         * lib/lchown.c (chown): Update client.
27012         * modules/lchown (Depends-on): Add lstat.
27013         * doc/posix-functions/chown.texi (chown): Document the bug.
27014         * doc/posix-functions/getgroups.texi (getgroups): Document
27015         getgroups pitfall.
27016         * modules/chown-tests: New file.
27017         * tests/test-chown.h (test_chown): Likewise.
27018         * tests/test-chown.c (main): Likewise.
27019
27020 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
27021
27022         gnulib-tool: correctly detect absence of m4 directories
27023         * gnulib-tool: Avoid extra newline on data passed to wc -l.
27024
27025 2009-11-14  Jim Meyering  <meyering@redhat.com>
27026
27027         maint.mk: Prohibit inclusion of "xalloc.h" without use.
27028         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27029
27030 2009-11-14  John W. Eaton  <jwe@gnu.org>
27031
27032         strftime.h: wrap funtion declaration in extern "C" block
27033         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
27034
27035 2009-11-13  Eric Blake  <ebb9@byu.net>
27036
27037         getgroups: avoid compiler warning
27038         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
27039
27040         getgroups: work around FreeBSD bug
27041         * lib/getgroups.c (rpl_getgroups): Work around the bug.
27042         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
27043         * doc/posix-functions/getgroups.texi (getgroups): Document it.
27044         * tests/test-getgroups.c (main): Fix buffer overrun.
27045
27046         getgroups: avoid compilation failure
27047         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
27048         * modules/getgroups (Depends-on): Add stdint.
27049
27050 2009-11-13  Jim Meyering  <meyering@redhat.com>
27051
27052         test-getgroups: avoid compilation failure
27053         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
27054
27055 2009-11-13  Eric Blake  <ebb9@byu.net>
27056
27057         mgetgroups: new module, taken from coreutils
27058         * modules/mgetgroups: New file.
27059         * lib/mgetgroups.h: Likewise.
27060         * lib/mgetgroups.c (mgetgroups): Likewise.
27061         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
27062         * MODULES.html.sh (Users and groups): Mention it.
27063
27064         getgroups: don't expose GETGROUPS_T to user
27065         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
27066         an element at a time if GETGROUPS_T is wrong size.
27067         * lib/getugroups.h (getugroups): Change signature.
27068         * lib/unistd.in.h (getgroups): Likewise.
27069         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
27070         signature needs fixing.
27071         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
27072         AC_TYPE_GETGROUPS.
27073         * modules/group-member (Depends-on): Add getgroups.
27074         * lib/group-member.c (group_info, get_group_info): Use gid_t.
27075         (group_member): Rely on getgroups replacement.
27076         * lib/getugroups.c (getugroups): Use gid_t.
27077         * tests/test-getgroups.c (main): Likewise.
27078         * NEWS: Mention the signature change.
27079         * doc/posix-functions/getgroups.texi (getgroups): Mention the
27080         problem with signature.
27081         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
27082         GETGROUPS_T is still useful for setgroups.
27083
27084         getgroups, getugroups: provide stubs for mingw
27085         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
27086         * lib/getugroups.c (getugroups): Likewise.
27087         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
27088         function.  Modernize replacement scheme.
27089         (gl_PREREQ_GETGROUPS): Delete.
27090         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
27091         * modules/getgroups (configure.ac): Declare witness.
27092         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27093         * modules/unistd (Depends-on): Substitute witness.
27094         * lib/unistd.in.h (getgroups): Declare replacement.
27095
27096         getgroups: avoid calling exit
27097         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
27098         drop xalloc.
27099         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
27100         dependencies.
27101         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
27102         exiting, in the rare case of malloc failure.
27103
27104         getgroups: fix logic error
27105         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
27106         has more than 20 groups.
27107         * modules/getgroups-tests: New test.
27108         * tests/test-getgroups.c: New file.
27109
27110 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27111
27112         * tests/test-base64.c: Improve.
27113
27114 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27115
27116         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
27117         Blake <ebb9@byu.net>.
27118
27119 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27120
27121         * tests/test-xvasprintf.c: Add %s%s related checks.
27122
27123 2009-11-12  Eric Blake  <ebb9@byu.net>
27124
27125         version-etc: match standards.texi style
27126         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
27127         and use <> only for URLs.
27128
27129 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
27130
27131         fts: do not fail on a submount during traversal
27132         * lib/fts.c (fts_build): Read the stat info again after opening
27133         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
27134         Original report at http://bugzilla.redhat.com/501848.
27135
27136 2009-11-12  Jim Meyering  <meyering@redhat.com>
27137
27138         bootstrap: sync from coreutils
27139         * build-aux/bootstrap (bootstrap_epilogue): New function.
27140         Use git_modules_config in one more place.  This make bootstrap's
27141         --gnulib-srcdir option more useful for testing.
27142
27143         bootstrap: generalize autoheader check
27144         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
27145         AC_CONFIG_HEADERS.
27146
27147 2009-11-11  Eric Blake  <ebb9@byu.net>
27148
27149         mkfifoat: use new modules for Solaris and BSD bugs
27150         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
27151         * lib/mkfifoat.c (mknodat): Split...
27152         * lib/mknodat.c (mknodat): ...into new file.
27153         * modules/mkfifoat (Files): Ship new file.
27154         (Depends-on): Add mkfifo, mknod.
27155         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
27156         (Depends-on): Add symlink.
27157         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
27158         redundant with test_mkfifo.h.
27159         (do_mkfifoat, do_mknodat): New helpers.
27160
27161         mknod: new module
27162         * modules/mknod: New file.
27163         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
27164         * lib/mknod.c (mknod): Likewise.
27165         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27166         defaults.
27167         * modules/sys_stat (Makefile.am): Substitute them.
27168         * lib/sys_stat.in.h (mknod): Declare replacement.
27169         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27170         Document it.
27171         * doc/posix-functions/mknod.texi (mknod): Likewise.
27172         * modules/mknod-tests: New test.
27173         * tests/test-mknod.c: Likewise.
27174
27175         mkfifo: new module
27176         * modules/mkfifo: New file.
27177         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27178         * lib/mkfifo.c (mkfifo): Likewise.
27179         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27180         defaults.
27181         * modules/sys_stat (Makefile.am): Substitute them.
27182         * lib/sys_stat.in.h (mkfifo): Declare replacement.
27183         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27184         Document it.
27185         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
27186         * modules/mkfifo-tests: New test.
27187         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
27188         from test-mkfifoat.c.
27189         * tests/test-mkfifo.c: New file.
27190
27191         readlink: detect FreeBSD bug
27192         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
27193         slash on symlink.
27194         * doc/posix-functions/readlink.texi (readlink): Document the bug.
27195         * tests/test-readlink.h (test_readlink): Enhance test.
27196
27197         symlink: detect FreeBSD bug
27198         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
27199         slash on symlink.
27200         * doc/posix-functions/symlink.texi (symlink): Document the bug.
27201         * tests/test-symlink.h (test_symlink): Enhance test.
27202
27203 2009-11-10  Eric Blake  <ebb9@byu.net>
27204
27205         link: detect FreeBSD bug
27206         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
27207         symlink.
27208         * doc/posix-functions/link.texi (link): Document the bug.
27209         * tests/test-link.h (test_link): Enhance test.
27210         * tests/test-linkat.c (main): Update caller.
27211
27212         unlink, remove: detect FreeBSD bug
27213         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
27214         slash on symlink.
27215         * doc/posix-functions/unlink.texi (unlink): Document the bug.
27216         * doc/posix-functions/remove.texi (remove): Likewise.
27217         * tests/test-unlink.h (test_unlink): Enhance test.
27218         * tests/test-remove.c (main): Likewise.
27219
27220 2009-11-09  Eric Blake  <ebb9@byu.net>
27221
27222         rename: detect FreeBSD bug
27223         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
27224         slash on symlink.
27225         * modules/renameat-tests (Depends-on): Add filenamecat.
27226         * tests/test-rename.h (test_rename): Allow one more errno.
27227         * tests/test-renameat.c (main): Likewise.
27228         * doc/posix-functions/rename.texi (rename): Document the bug.
27229
27230         open: detect FreeBSD bug
27231         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
27232         symlink.
27233         * doc/posix-functions/open.texi (open): Document the bug.
27234         * doc/posix-functions/utimes.texi (utimes): Likewise.
27235         * tests/test-open.h (test_open): Add parameters, and test symlink
27236         handling.
27237         * tests/test-open.c (main): Adjust caller.
27238         * tests/test-fcntl-safer.c (main): Likewise.
27239         * modules/open-tests (Depends-on): Add stdbool, symlink.
27240         * modules/fcntl-safer-tests (Depends-on): Likewise.
27241         * tests/test-openat.c (main): Add test-open tests.
27242
27243         stat: detect FreeBSD bug
27244         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
27245         symlink.
27246         * doc/posix-functions/stat.texi (stat): Document the bug.
27247         * tests/test-stat.h (test_stat_func): Add argument.
27248         * tests/test-stat.c (main): Adjust caller.
27249         * tests/test-fstatat.c (main): Likewise.
27250         * modules/stat-tests (Depends-on): Add stdbool, symlink.
27251         Reported by Jim Meyering.
27252
27253 2009-11-09  James Youngman  <jay@gnu.org>
27254
27255         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
27256         * lib/strftime.c: Correct placement of #include "ignore-value.h".
27257
27258 2009-11-08  Jim Meyering  <meyering@redhat.com>
27259
27260         utimens: remove invalid futimesat call
27261         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
27262         It used the file descriptor of the target file as the DIR_FD
27263         parameter and NULL as the file name.  That caused failure with
27264         errno == EFAULT on FreeBSD-8.0-rc2
27265
27266 2009-11-07  Eric Blake  <ebb9@byu.net>
27267
27268         fflush, freadseek: use fseeko, not fseek
27269         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
27270         (clear_ungetc_buffer): Avoid potential problems on large files.
27271         * lib/freadseek.c (freadseek): Likewise.
27272         * modules/freadseek (Depends-on): Add fseeko.
27273         * modules/fseek (configure.ac): Set a witness.
27274         * tests/test-fflush.c (main): Use fseeko.
27275         * tests/test-fpurge.c (fseek): Disable link warning.
27276         * tests/test-freadable.c (fseek): Likewise.
27277         * tests/test-freading.c (fseek): Likewise.
27278         * tests/test-fseeko.c (fseek): Likewise.
27279         * tests/test-ftell.c (fseek): Likewise.
27280         * tests/test-ftello.c (fseek): Likewise.
27281         * tests/test-fwritable.c (fseek): Likewise.
27282         * tests/test-fwriting.c (fseek): Likewise.
27283
27284 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27285
27286         * modules/memchr (Depends-on): Drop getpagesize dependency.
27287
27288 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27289
27290         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
27291         Reported by Ludovic Courtès.
27292         * build-aux/pmccabe2html: Improve example usage.
27293         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
27294
27295 2009-11-06  Jim Meyering  <meyering@redhat.com>
27296
27297         do-release-commit-and-tag: New module.
27298         Automate the release-commit and tag process.
27299         * build-aux/do-release-commit-and-tag: New script, from coreutils.
27300         * modules/do-release-commit-and-tag: New file.
27301         * MODULES.html.sh (Support for maintaining and releasing): Add it.
27302
27303 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27304
27305         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
27306         because test-select.c uses inet_pton.
27307
27308 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27309
27310         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
27311         GETADDRINFO_LIB.  Bump serial number.
27312         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
27313         Suggested by Eric Blake <ebb9@byu.net>.
27314
27315 2009-11-05  Eric Blake  <ebb9@byu.net>
27316
27317         strtod: detect darwin bug
27318         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
27319         Reported by Leo Davis.
27320
27321         freopen-safer: new module
27322         * modules/freopen-safer: New module.
27323         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
27324         * lib/freopen-safer.c (freopen_safer): New file.
27325         * lib/stdio-safer.h (freopen_safer): New declaration.
27326         * lib/stdio--.h (freopen): New override.
27327         * MODULES.html.sh (File stream based Input/Output): Mention it.
27328         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
27329         freopen-safer module.
27330         * doc/posix-functions/stderr.texi (stderr): Likewise.
27331         * doc/posix-functions/stdin.texi (stdin): Likewise.
27332         * doc/posix-functions/stdout.texi (stdout): Likewise.
27333         * modules/freopen-safer-tests: New test.
27334         * tests/test-reopen-safer.c: New file.
27335
27336 2009-11-05  Jim Meyering  <meyering@redhat.com>
27337
27338         maint.mk: Prohibit inclusion of "close-stream.h" without use.
27339         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27340
27341 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27342
27343         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
27344
27345 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27346
27347         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
27348
27349 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27350
27351         Fix link error.
27352         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27353         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27354
27355 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27356
27357         * tests/test-func.c: Also test value of __func__.
27358
27359 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27360
27361         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
27362         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
27363
27364 2009-11-05  Bruno Haible  <bruno@clisp.org>
27365
27366         Fix link error.
27367         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27368         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27369         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
27370
27371 2009-11-05  Bruno Haible  <bruno@clisp.org>
27372
27373         Tests for module 'inet_pton'.
27374         * modules/inet_pton-tests: New file.
27375         * tests/test-inet_pton.c: New file.
27376
27377 2009-11-05  Bruno Haible  <bruno@clisp.org>
27378
27379         Tests for module 'inet_ntop'.
27380         * modules/inet_ntop-tests: New file.
27381         * tests/test-inet_ntop.c: New file.
27382
27383 2009-11-04  Eric Blake  <ebb9@byu.net>
27384
27385         stdlib-safer: wrap all mkstemp variants
27386         * modules/mkostemp (configure.ac): Set witness.
27387         * modules/mkostemps (configure.ac): Likewise.
27388         * modules/mkstemps (configure.ac): Likewise.
27389         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
27390         (mkstemps_safer): Wrap more functions.
27391         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
27392         wrapping.
27393         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
27394         (mkstemps_safer): Implement the wrappers.
27395
27396         mkstemps, mkostemps: new modules
27397         * modules/mkostemps: New module.
27398         * modules/mkstemps: Likewise.
27399         * lib/mkostemps.c (mkostemps): New file.
27400         * lib/mkstemps.c (mkstemps): Likewise.
27401         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
27402         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
27403         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
27404         * modules/stdlib (Makefile.am): Substitute them.
27405         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
27406         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
27407         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
27408         * doc/gnulib.texi (Glibc stdlib.h): Include them.
27409         * MODULES.html.sh (File system functions): Mention them.
27410
27411         tempname: resync from glibc
27412         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
27413         same values for __GT_FILE as glibc.  Abort even when assertions
27414         are disabled.
27415         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
27416         match its value otherwise.  Allow idempotent inclusion.
27417         * lib/mkdtemp.c (mkdtemp): Adjust caller.
27418         * lib/mkostemp.c (mkostemp): Likewise.
27419         * lib/mkstemp.c (mkstemp): Likewise.
27420         * lib/tmpfile.c (tmpfile): Likewise.
27421         * NEWS: Document this.
27422
27423         utimens: fix use of futimens on older Linux
27424         * lib/utimens.c (fdutimens): Use updated, rather than original,
27425         timespec to avoid bug in older Linux kernel.
27426         Reported by Simon Josefsson.
27427
27428 2009-11-04  Bruno Haible  <bruno@clisp.org>
27429
27430         Make num_processors more flexible and consistent.
27431         * lib/nproc.h (enum nproc_query): New type.
27432         (num_processors): Add a 'query' argument.
27433         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
27434         (num_processors): Add a 'query' argument. Test the value of the
27435         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
27436         mingw, count the number of CPUs available for the current process.
27437         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
27438         Check for sched_getaffinity and sched_getaffinity_np.
27439         * modules/nproc (Depends-on): Add c-ctype, extensions.
27440         * NEWS: Mention the change.
27441
27442 2009-11-03  Bruno Haible  <bruno@clisp.org>
27443
27444         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
27445
27446 2009-11-03  Jim Meyering  <meyering@redhat.com>
27447
27448         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
27449         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
27450         if it is defined.
27451
27452 2009-11-02  Eric Blake  <ebb9@byu.net>
27453
27454         mktime, timegm: share common declaration
27455         * lib/mktime-internal.h: New file.
27456         * lib/mktime.c: Use it rather than open-coding a declaration.
27457         * lib/timegm.c: Likewise.
27458         * modules/mktime (Files): Ship it.
27459         * modules/timegm (Files): Likewise.
27460         Suggested by Bruno Haible.
27461
27462         test-update-copyright: update test to match script changes
27463         * tests/test-update-copyright.sh: Avoid hard-coding perl
27464         location.  Don't update *.bak created by earlier runs.
27465
27466 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27467             Simon Josefsson  <simon@josefsson.org>
27468             Bruno Haible  <bruno@clisp.org>
27469
27470         Fix link error on Solaris 8.
27471         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
27472         also in libnsl. Define also INET_PTON_LIB.
27473         * modules/inet_pton (Link): New section.
27474
27475 2009-11-02  Simon Josefsson  <simon@josefsson.org>
27476             Bruno Haible  <bruno@clisp.org>
27477
27478         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
27479         * modules/inet_ntop (Link): New section.
27480         Reported by Boyan Kasarov <bkasarov@gmail.com>.
27481
27482 2009-11-02  Eric Blake  <ebb9@byu.net>
27483
27484         maint: avoid compiler warnings in m4 macros
27485         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
27486         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
27487
27488 2009-11-02  Simon Josefsson  <simon@josefsson.org>
27489
27490         * m4/pmccabe2html.m4: Remove file.
27491         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
27492         function.  Change maintainer.
27493         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
27494         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
27495         Courtès).
27496
27497 2009-10-31  Eric Blake  <ebb9@byu.net>
27498
27499         fseeko: fix m4 regression
27500         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
27501         regression from 2009-10-27.
27502         Reported by Ralf Wildenhues.
27503
27504 2009-10-31  Jim Meyering  <meyering@redhat.com>
27505
27506         inttostr: aesthetics and improved (compile-time) safety
27507         Define inttype_is_signed rather than inttype_is_unsigned,
27508         since the sole use is via "#if inttype_is_signed".
27509         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
27510         inttype_is_unsigned.
27511         * lib/offtostr.c (inttype_is_signed): Likewise.
27512         * lib/uinttostr.c (inttype_is_signed): Likewise.
27513         * lib/umaxtostr.c (inttype_is_signed): Likewise.
27514         * lib/inttostr.c (inttostr): Use verify to cross-check the
27515         inttype_is_signed value and the signedness of the actual type.
27516         * modules/inttostr (Depends-on): Add verify.
27517
27518 2009-10-30  Eric Blake  <ebb9@byu.net>
27519
27520         build: avoid compiler warnings
27521         * lib/fchmodat.c (lchmod): Mark unused variables.
27522         * lib/getopt.c (_getopt_initialize): Likewise.
27523         * lib/mktime.c (__mktime_internal): Provide prototype.
27524         * lib/inttostr.c (inttostr): Avoid compiler warning even with
27525         older gcc that do not understand #pragma GCC diagnostic.
27526         * lib/uinttostr.c (inttype_is_unsigned): Define.
27527         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
27528
27529 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
27530
27531         stat: fix compilation on AIX
27532         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
27533         only see struct stat64.
27534
27535 2009-10-30  Eric Blake  <ebb9@byu.net>
27536
27537         exclude: make more robust
27538         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
27539         rather than masking a coding bug.
27540         Suggested by Bruno Haible.
27541
27542 2009-10-30  Jim Meyering  <meyering@redhat.com>
27543
27544         perl scripts: remove #!/usr/bin/perl in favor of more portable...
27545         Rather than putting #!/usr/bin/perl on the first line,
27546         start with a variant of what's recommended by "man perlrun" that
27547         invokes the first "perl" program from your shell's search path.
27548         * build-aux/gitlog-to-changelog: Replace #!... as above.
27549         Add a "Local Variables" perl mode setting.
27550         Prompted by a patch from Ludovic Courtès.
27551         Improved by Eric Blake.
27552         * build-aux/useless-if-before-free: Likewise.
27553         * build-aux/announce-gen: Likewise.
27554         * build-aux/update-copyright: Likewise.
27555
27556 2009-10-29  Eric Blake  <ebb9@byu.net>
27557
27558         filenamecat-lgpl: adjust clients
27559         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
27560         filenamecat.
27561         * modules/renameat (Depends-on): Likewise.
27562
27563         filenamecat: split into filenamecat-lgpl
27564         * modules/filenamecat-lgpl: New module.
27565         * modules/filenamecat (Files): Move library-safe files into
27566         filenamecat-lgpl.
27567         (Depends-on): Add filenamecat-lgpl.
27568         (configure.ac): Declare witness.
27569         * lib/filenamecat.h (file_name_concat): Only declare when using
27570         GPL module.
27571         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
27572         Move...
27573         * lib/filenamecat-lgpl.c: ...into new file.
27574         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
27575         (gl_FILE_NAME_CONCAT): Use it.
27576         * MODULES.html.sh (File system functions): Mention new module.
27577
27578         argp: avoid memory leak
27579         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
27580         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
27581         base_name, since the latter malloc()s and can call exit().
27582         Leak introduced 2006-07-03.
27583
27584         dirname-lgpl: adjust clients that don't need full dirname
27585         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
27586         * modules/filenamecat (Depends-on): Likewise.
27587         * modules/linkat (Depends-on): Likewise.
27588         * modules/mkancesdirs (Depends-on): Likewise.
27589         * modules/mkdir (Depends-on): Likewise.
27590         * modules/openat (Depends-on): Likewise.
27591         * modules/savewd (Depends-on): Likewise.
27592         * modules/rename (Depends-on): Likewise.
27593         (License): Relax license.
27594         * modules/mkdir-tests (Depends-on): Drop progname.
27595         (Makefile.am): Delete unneeded LDADD.
27596         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
27597
27598         dirname: split into dirname-lgpl
27599         * modules/dirname-lgpl: New module.
27600         * modules/dirname (Files): Move library-safe files into
27601         dirname-lgpl.
27602         (Depends-on): Add dirname-lgpl.
27603         (configure.ac): Declare witness.
27604         * modules/double-slash-root (License): Relax license.
27605         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
27606         module.
27607         * lib/dirname.c (dir_len, mdir_name): Move...
27608         * lib/dirname-lgpl.c: ...into new file.
27609         * lib/basename.c (last_component, base_len): Move...
27610         * lib/basename-lgpl.c: ...into new file.
27611         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
27612         (gl_DIRNAME): Use it.
27613         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
27614         Mention new module.
27615         * modules/dirname-tests (Depends-on): Add progname.
27616         * tests/test-dirname.c (program_name): Delete.
27617
27618         mkdir: make safe for libraries
27619         * modules/mkdir (Depends-on): Drop xalloc.
27620         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
27621         exit.
27622
27623         tests: avoid some compiler warnings
27624         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
27625         literals.
27626         * tests/test-memchr.c (main): Avoid type mismatch.
27627         * tests/test-arpa_inet.c (main): Avoid unused parameters.
27628         * tests/test-base64.c (main): Likewise.
27629         * tests/test-getdelim.c (main): Likewise.
27630         * tests/test-gethostname.c (main): Likewise.
27631         * tests/test-getline.c (main): Likewise.
27632         * tests/test-netinet_in.c (main): Likewise.
27633         * tests/test-select.c (open_server_socket, main): Likewise.
27634         * tests/test-select-stdin.c (main): Likewise.
27635         * tests/test-sockets.c (main): Likewise.
27636         * tests/test-strsignal.c (main): Likewise.
27637         * tests/test-sys_select.c (main): Likewise.
27638         * tests/test-sys_socket.c (main): Likewise.
27639         * tests/test-u64.c (main): Likewise.
27640         * tests/test-xfprintf-posix.c (main): Likewise.
27641         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
27642
27643         sockets: avoid compiler warning
27644         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
27645
27646         maint: detect usage(1) and other suspicious exits
27647         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
27648
27649 2009-10-29  Jim Meyering  <meyering@redhat.com>
27650
27651         timespec: long-to-int truncation could make timespec_cmp malfunction
27652         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
27653         a multiple of 2^32 nanoseconds as no difference.
27654
27655 2009-10-28  Jim Meyering  <meyering@redhat.com>
27656
27657         fprintftime: wrap macro code argument in "do {...} while(0)"
27658         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
27659         cpy macro must be a statement that can be followed by a semicolon.
27660         Now that the else clause contains a comment and is hence longer
27661         than one line, I require curly braces.  That in turn requires
27662         that we wrap this code block in the standard do...while(0).
27663
27664         fprintftime: remove stray semicolon from previous change
27665         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
27666
27667         fprintftime: avoid a warning about ignored fwrite return value
27668         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
27669         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
27670         that is unsafe.
27671         * modules/fprintftime (Depends-on): Add ignore-value.
27672
27673         exclude: avoid an unwarranted warning
27674         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
27675
27676 2009-10-27  Eric Blake  <ebb9@byu.net>
27677
27678         fseek: avoid compilation failure when fflush is replaced
27679         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
27680         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
27681         module is in use.
27682         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
27683         module is not in use; since REPLACE_FSEEK worked otherwise.
27684         (GNULIB_FTELLO): Likewise for ftell.
27685         Reported by Ian Beckwith and others.
27686
27687 2009-10-27  Bruno Haible  <bruno@clisp.org>
27688
27689         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
27690         Reported by Jim Meyering.
27691
27692 2009-10-27  Jim Meyering  <jim@meyering.net>
27693             Bruno Haible  <bruno@clisp.org>
27694
27695         Avoid warning despite dropping the return value of fwrite.
27696         * lib/unicodeio.c: Include ignore-value.h.
27697         (fwrite_success_callback): Explicitly ignore fwrite's return value.
27698         * modules/unicodeio (Depends-on): Add ignore-value.
27699
27700 2009-10-26  Eric Blake  <ebb9@byu.net>
27701
27702         areadlinkat: fix fallback path
27703         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
27704         pointer and zero.
27705
27706 2009-10-22  Pádraig Brady  <P@draigBrady.com>
27707
27708         Use a better IO block size for modern systems
27709         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
27710         * lib/md2.c: Likewise.
27711         * lib/md4.c: Likewise.
27712         * lib/md5.c: Likewise.
27713         * lib/sha1.c: Likewise.
27714         * lib/sha256.c: Likewise.
27715         * lib/sha512.c: Likewise.
27716
27717 2009-10-22  Eric Blake  <ebb9@byu.net>
27718
27719         tests: avoid several compiler warnings
27720         * tests/test-getcwd.c (main): Avoid buffer underflow.
27721         * tests/test-getdate.c (main): String literals are not safe with
27722         putenv, so use setenv.  Declare unused argument.
27723         * modules/getdate-tests (Depends-on): Add setenv.
27724         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
27725         problems with string literals in char *.
27726         * tests/test-hash.c (main): Avoid shadowing declaration.
27727         (insert_new): Treat string literals as char const *.
27728         * tests/test-getopt.h (test_getopt): Likewise.
27729         (getopt_loop): Alter types to minimize casting elsewhere.
27730         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
27731         (test_getopt_long_posix): Likewise.
27732         (do_getopt_long): Add wrapper to minimize casting.
27733         * tests/test-atexit.c (clear_temp_file): Use void.
27734         * tests/test-areadlink-with-size.c (main): Declare unused
27735         arguments.
27736         * tests/test-areadlink.c (main): Likewise.
27737         * tests/test-areadlinkat-with-size.c (main): Likewise.
27738         * tests/test-areadlinkat.c (main): Likewise.
27739         * tests/test-canonicalize-lgpl.c (main): Likewise.
27740         * tests/test-canonicalize.c (main): Likewise.
27741         * tests/test-dirent-safer.c (main): Likewise.
27742         * tests/test-dirname.c (main): Likewise.
27743         * tests/test-dup2.c (main): Likewise.
27744         * tests/test-fchdir.c (main): Likewise.
27745         * tests/test-fcntl-h.c (main): Likewise.
27746         * tests/test-fcntl-safer.c (main): Likewise.
27747         * tests/test-fdopendir.c (main): Likewise.
27748         * tests/test-fdutimensat.c (main): Likewise.
27749         * tests/test-fflush.c (main): Likewise.
27750         * tests/test-filenamecat.c (main): Likewise.
27751         * tests/test-filevercmp.c (main): Likewise.
27752         * tests/test-fopen-safer.c (main): Likewise.
27753         * tests/test-fopen.c (main): Likewise.
27754         * tests/test-fpending.c (main): Likewise.
27755         * tests/test-fpurge.c (main): Likewise.
27756         * tests/test-freading.c (main): Likewise.
27757         * tests/test-fstatat.c (main): Likewise.
27758         * tests/test-fsync.c (main): Likewise.
27759         * tests/test-futimens.c (main): Likewise.
27760         * tests/test-getndelim2.c (main): Likewise.
27761         * tests/test-gettimeofday.c (main): Likewise.
27762         * tests/test-getopt.c (main): Likewise.
27763         * tests/test-i-ring.c (main): Likewise.
27764         * tests/test-inttypes.c (main): Likewise.
27765         * tests/test-link.c (main): Likewise.
27766         * tests/test-lstat.c (main): Likewise.
27767         * tests/test-math.c (main): Likewise.
27768         * tests/test-md5.c (main): Likewise.
27769         * tests/test-memchr2.c (main): Likewise.
27770         * tests/test-memrchr.c (main): Likewise.
27771         * tests/test-mkdir.c (main): Likewise.
27772         * tests/test-mkdirat.c (main): Likewise.
27773         * tests/test-mkfifoat.c (main): Likewise.
27774         * tests/test-open.c (main): Likewise.
27775         * tests/test-openat-safer.c (main): Likewise.
27776         * tests/test-openat.c (main): Likewise.
27777         * tests/test-quotearg.c (main): Likewise.
27778         * tests/test-rawmemchr.c (main): Likewise.
27779         * tests/test-readlink.c (main): Likewise.
27780         * tests/test-remove.c (main): Likewise.
27781         * tests/test-rename.c (main): Likewise.
27782         * tests/test-renameat.c (main): Likewise.
27783         * tests/test-rmdir.c (main): Likewise.
27784         * tests/test-sha1.c (main): Likewise.
27785         * tests/test-signal.c (main): Likewise.
27786         * tests/test-sigaction.c (main): Likewise.
27787         * tests/test-stat.c (main): Likewise.
27788         * tests/test-stat-time.c (main): Likewise.
27789         * tests/test-stddef.c (main): Likewise.
27790         * tests/test-stdint.c (main): Likewise.
27791         * tests/test-stdio.c (main): Likewise.
27792         * tests/test-stdlib.c (main): Likewise.
27793         * tests/test-strchrnul.c (main): Likewise.
27794         * tests/test-strerror.c (main): Likewise.
27795         * tests/test-string.c (main): Likewise.
27796         * tests/test-strtod.c (main): Likewise.
27797         * tests/test-strverscmp.c (main): Likewise.
27798         * tests/test-symlink.c (main): Likewise.
27799         * tests/test-symlinkat.c (main): Likewise.
27800         * tests/test-sys_stat.c (main): Likewise.
27801         * tests/test-sys_time.c (main): Likewise.
27802         * tests/test-time.c (main): Likewise.
27803         * tests/test-unistd.c (main): Likewise.
27804         * tests/test-unlink.c (main): Likewise.
27805         * tests/test-unlinkat.c (main): Likewise.
27806         * tests/test-utimens.c (main): Likewise.
27807         * tests/test-utimensat.c (main): Likewise.
27808         * tests/test-version-etc.c (main): Likewise.
27809         * tests/test-wchar.c (main): Likewise.
27810         * tests/test-wctype.c (main): Likewise.
27811         * tests/test-xprintf-posix.c (main): Likewise.
27812         * tests/test-posixtm.c (main): Likewise.
27813         (STREQ): Delete unused macro.
27814         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
27815         shadowed variables.
27816         * tests/test-memchr.c (main): Likewise.
27817
27818 2009-10-21  Eric Blake  <ebb9@byu.net>
27819
27820         areadlinkat: avoid failure on older glibc
27821         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
27822         rather than mis-comparing 0 against FUNC_RESULT of char*.
27823
27824 2009-10-21  Bruno Haible  <bruno@clisp.org>
27825
27826         * modules/stpncpy (License): Relicense under LGPLv2+.
27827         Reported by David Lutterkort <lutter@redhat.com>.
27828
27829 2009-10-20  Eric Blake  <ebb9@byu.net>
27830
27831         utimensat: work around Solaris 9 bug
27832         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
27833         has trailing slash bugs.
27834         * tests/test-lutimens.h (test_lutimens): Enhance test.
27835         * tests/test-utimens.h (test_utimens): Likewise.
27836         * doc/posix-functions/utime.texi (utime): Enhance documentation.
27837         * doc/posix-functions/utimes.texi (utimes): Likewise.
27838         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27839         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
27840         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
27841         * doc/posix-functions/futimens.texi (futimens): Likewise.
27842
27843         fdutimensat: new module
27844         * modules/fdutimensat: New file.
27845         * lib/fdutimensat.c (fdutimensat): Likewise.
27846         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
27847         * MODULES.html.sh (File system functions): Mention module.
27848         * modules/fdutimensat-tests: New test.
27849         * tests/test-fdutimensat.c: Likewise.
27850
27851         doc: regenerate INSTALL
27852         * doc/INSTALL: Reflect recent autoconf update.
27853         * doc/INSTALL.ISO: Likewise.
27854         * doc/INSTALL.UTF-8: Likewise.
27855
27856 2009-10-20  Pádraig Brady  <P@draigBrady.com>
27857
27858         acl: warn if ACL support is not detected
27859         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
27860
27861 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
27862
27863         * lib/nproc.h: Add extern "C" block for C++.
27864
27865 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
27866             Bruno Haible  <bruno@clisp.org>
27867
27868         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
27869         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
27870         * doc/posix-functions/isalpha.texi: Likewise.
27871         * doc/posix-functions/isblank.texi: Likewise.
27872         * doc/posix-functions/iscntrl.texi: Likewise.
27873         * doc/posix-functions/isdigit.texi: Likewise.
27874         * doc/posix-functions/isgraph.texi: Likewise.
27875         * doc/posix-functions/islower.texi: Likewise.
27876         * doc/posix-functions/isprint.texi: Likewise.
27877         * doc/posix-functions/ispunct.texi: Likewise.
27878         * doc/posix-functions/isspace.texi: Likewise.
27879         * doc/posix-functions/isupper.texi: Likewise.
27880         * doc/posix-functions/isxdigit.texi: Likewise.
27881
27882 2009-10-18  Bruno Haible  <bruno@clisp.org>
27883
27884         Tests for module 'isblank'.
27885         * modules/isblank-tests: New file.
27886         * tests/test-isblank.c: New file.
27887
27888         New module 'isblank'.
27889         * lib/isblank.c: New file.
27890         * m4/isblank.m4: New file.
27891         * modules/isblank: New file.
27892         * doc/posix-functions/isblank.texi: Mention the new module.
27893
27894 2009-10-18  Bruno Haible  <bruno@clisp.org>
27895
27896         New module 'ctype'.
27897         * lib/ctype.in.h: New file.
27898         * m4/ctype.m4: New file.
27899         * modules/ctype: New file.
27900         * doc/posix-headers/ctype.texi: Mention the new module.
27901
27902 2009-10-18  Jim Meyering  <meyering@redhat.com>
27903
27904         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
27905         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
27906         right after its initialization, rather than farther down.
27907         Keeping these in close proximity makes it easier to ensure
27908         that each such variable is initialized.  E.g.,
27909
27910             LIB_CLOCK_GETTIME=
27911             AC_SUBST([LIB_CLOCK_GETTIME])
27912
27913         This change also increments these serial numbers.
27914         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
27915         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
27916         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27917
27918 2009-10-18  Bruno Haible  <bruno@clisp.org>
27919
27920         Don't let environment variables perturb build.
27921         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
27922         (gl_PREREQ_GETHRXTIME): ... not here.
27923
27924 2009-10-18  Bruno Haible  <bruno@clisp.org>
27925
27926         Avoid symlink attack in localcharset module.
27927         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
27928         (O_NOFOLLOW): Define fallback.
27929         (get_charset_aliases): Don't open the file if it is a symbolic link.
27930         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
27931         gl_FCNTL_H.
27932         (gl_FCNTL_H): Require it.
27933         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
27934         * modules/localcharset (Files): Add m4/fcntl_h.m4.
27935         Reported by Fergal Glynn <fglynn@veracode.com>.
27936
27937 2009-10-18  Bruno Haible  <bruno@clisp.org>
27938
27939         Implement nproc for mingw.
27940         * lib/nproc.c: Include <windows.h>
27941         (num_processors): On native Windows platforms, try GetSystemInfo.
27942
27943 2009-10-18  Bruno Haible  <bruno@clisp.org>
27944
27945         Implement nproc for IRIX.
27946         * lib/nproc.c: Include <sys/sysmp.h>.
27947         (num_processors): On IRIX systems, try sysmp.
27948         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
27949
27950 2009-10-18  Bruno Haible  <bruno@clisp.org>
27951
27952         Implement nproc for HP-UX.
27953         * lib/nproc.c: Include <sys/pstat.h>
27954         (num_processors): On HP-UX systems, try pstat_getdynamic.
27955         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
27956         pstat_getdynamic.
27957
27958 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
27959             Bruno Haible  <bruno@clisp.org>
27960
27961         Implement nproc for NetBSD, OpenBSD.
27962         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
27963         (ARRAY_SIZE): New macro.
27964         (num_processors): On BSD systems, try sysctl of HW_NCPU.
27965         * m4/nproc.m4: New file.
27966         * modules/nproc (Files): Add m4/nproc.m4.
27967         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
27968         (Makefile.am): Instead, augment lib_SOURCES.
27969
27970 2009-10-18  Bruno Haible  <bruno@clisp.org>
27971
27972         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
27973         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
27974         sys/param.h.
27975
27976 2009-10-16  Eric Blake  <ebb9@byu.net>
27977
27978         utimensat: new module
27979         * modules/utimensat: New file.
27980         * lib/utimensat.c (utimensat): Likewise.
27981         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27982         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
27983         so we can work around Linux bugs.
27984         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27985         * modules/sys_stat (Makefile.am): Substitute them.
27986         * lib/sys_stat.in.h (utimensat): Declare it.
27987         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27988         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27989         * modules/utimensat-tests: New test.
27990         * tests/test-utimensat.c: Likewise.
27991
27992         utimens: let lutimens work on non-symlinks
27993         * lib/utimens.c (lutimens): Fall back to utimens rather than
27994         failing with ENOSYS, when file is not a symlink.
27995         (utimens): Reduce redirection.
27996         * tests/test-lutimens.h (test_lutimens): Update test to cover
27997         non-symlinks.
27998         * tests/test-utimens.h (test_utimens): Update test to cover
27999         symlinks.
28000         * tests/test-utimens.c (main): Update caller.
28001
28002         utimens: cache whether utimensat syscall works
28003         * lib/utimens.c (utimensat_works_really): New cache variable.
28004         (fdutimens, lutimens): Use it to avoid failing syscall.
28005
28006         test-stat-time, test-utimens: improve portability
28007         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
28008         ext4 on alpha, and for cygwin.
28009         * tests/test-utimens-common.h: New file.
28010         (nap): Factor delays into single function.
28011         * tests/test-lutimens.h (test_lutimens): Use new header.
28012         * tests/test-futimens.h (test_futimens): Likewise.
28013         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
28014         timestamps to occur from same machine, as was done previously for
28015         test_utimens.
28016         * modules/utimens-tests (Files): Ship new file.
28017         * modules/futimens-tests (Files): Likewise.
28018         Reported in part by Jim Meyering.
28019
28020         sys_stat: sort replacement declarations
28021         * lib/sys_stat.in.h: Sort declarations.
28022         * lib/futimens.c (futimens): Fix typo.
28023
28024 2009-10-15  Jim Meyering  <meyering@redhat.com>
28025
28026         don't let environment settings perturb build
28027         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
28028         could cause a configure-time and/or build-time malfunction.
28029         Typically, a configure-time function-in-library test is performed
28030         via code like this:
28031
28032           LIB_VAR=
28033           AC_SUBST([LIB_VAR])
28034           prefix_saved_LIBS=$LIBS
28035             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
28036                        [test "$ac_cv_search_FUNC" = "none required" ||
28037                         LIB_VAR=$ac_cv_search_FUNC])
28038           LIBS=$prefix_saved_LIBS
28039
28040         However, in each of the files affected by this change, the LIB_VAR=
28041         initialization was omitted.  Thus, when set in the environment, its
28042         value would propagate into generated Makefiles when FUNC is not found
28043         in LIB_NAME.
28044         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
28045         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28046         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28047
28048 2009-10-14  Eric Blake  <ebb9@byu.net>
28049
28050         fchdir: avoid infinite recursion in mingw
28051         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
28052         recursing.
28053
28054         test-stat-time: port to mingw
28055         * tests/test-stat-time.c (force_unlink): Return a value.
28056         (test_ctime) [W32]: Fix compilation error.
28057         (nap): Don't call usleep with too large an argument.  Use
28058         force_unlink.
28059         * doc/pastposix-functions/usleep.texi (usleep): Document the
28060         portability issue.
28061
28062 2009-10-13  Jim Meyering  <meyering@redhat.com>
28063
28064         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
28065         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
28066         * modules/pipe-filter-ii: Likewise.
28067         * modules/sys_socket-tests: Likewise.
28068         * modules/tsearch-tests: Likewise.
28069         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
28070         (check): Depend on it.
28071
28072 2009-10-12  Eric Blake  <ebb9@byu.net>
28073
28074         utimens-tests: port to NFS file systems
28075         * tests/test-utimens.h (test_utimens): Refactor utimecmp
28076         comparisons to avoid spurious failures from timestamp drift
28077         between NFS machines.
28078
28079 2009-10-12  Eric Blake  <ebb9@byu.net>
28080
28081         stat-time-tests: minor cleanups
28082         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
28083         * tests/test-stat-time.c (nap): Separate assignment from call.
28084         Suggested by Paolo Bonzini and Bruno Haible.
28085
28086         sys_stat: guarantee struct timespec
28087         * lib/sys_stat.in.h (includes): Always include <time.h>
28088         * modules/sys_stat (Depends-on): Add time.
28089         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
28090         mode_t permission values.
28091         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
28092         get at subsecond timestamps.
28093
28094 2009-10-10  Eric Blake  <ebb9@byu.net>
28095
28096         futimens: new module
28097         * modules/futimens: New file.
28098         * lib/futimens.c (futimens): Likewise.
28099         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
28100         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
28101         we can work around Linux bugs.
28102         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28103         * modules/sys_stat (Makefile.am): Substitute them.
28104         * lib/sys_stat.in.h (futimens): Declare it.
28105         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28106         * doc/posix-functions/futimens.texi (futimens): Likewise.
28107         * modules/futimens-tests: New test.
28108         * tests/test-futimens.c: Likewise.
28109
28110         utimens: introduce fdutimens
28111         * lib/utimens.h (fdutimens): New prototype.
28112         * lib/utimens.c (gl_futimens): Move guts...
28113         (fdutimens): ...to new interface.
28114         * tests/test-utimens.c (do_fdutimens): Use it.
28115
28116         utimens: add UTIME_NOW and UTIME_OMIT support
28117         * lib/utimens.c (validate_timespec, update_timespec): New helper
28118         functions.
28119         (gl_futimens, lutimens): Use them.
28120         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
28121         stdbool, sys_stat.
28122         (Link): Mention resulting library dependency.
28123         * modules/utimecmp (Link): Likewise.
28124         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
28125         (Makefile.am): Pick up library dependency.
28126         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
28127         definition.
28128         * tests/test-sys_stat.c: Test the definitions.
28129         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
28130         * NEWS: Document library dependency.
28131
28132         utimecmp: support symlink timestamps
28133         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
28134         hashing when possible.  Use pathconf when available.
28135         (SYSCALL_RESOLUTION): Recognize tighter resolution.
28136         * modules/utimecmp (Depends-on): Add lstat.
28137
28138         utimens: add lutimens interface
28139         * lib/utimens.c (lutimens): New function.
28140         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
28141         * lib/utimens.h (lutimens): Declare new interface.
28142         * tests/test-utimens.c (main): Enhance test.
28143         * tests/test-lutimens.h (test_lutimens): New file.
28144         * modules/utimens-tests (Files): Distribute it.
28145         (Depends-on): Add symlink.
28146         (configure.ac): Check for usleep.
28147
28148         utimens: validate futimens usage
28149         * lib/utimens.c (gl_futimens): Require valid fd up front, using
28150         fewer syscalls on failure later on.  Avoid compiler warning on
28151         mingw.
28152         * modules/utimens (Depends-on): Add dup2.
28153
28154         utimens: add test
28155         * modules/utimens-tests: New test.
28156         * tests/test-utimens.h: New file.
28157         * tests/test-futimens.h: Likewise.
28158         * tests/test-utimens.c: Likewise.
28159
28160         doc: mention timestamp portability issues
28161         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
28162         instead.
28163         * doc/posix-functions/utime.texi (utime): Likewise.
28164         * doc/posix-functions/utimes.texi (utimes): Likewise.
28165         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
28166         instead.
28167         * doc/posix-functions/futimens.texi (futimens): Mention utimens
28168         module.
28169         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28170         Mention weakness with symlink timestamps.
28171         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
28172         to utimensat/futimens instead.
28173         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
28174
28175         test-dup2: enhance test
28176         * tests/test-dup2.c (main): Also check AT_FDCWD.
28177
28178         test-stat-time: avoid more spurious failures
28179         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
28180         xfs; and avoid race if the two timestamps cross quantization edge.
28181
28182         relocatable: prefer 'file system' over 'filesystem'
28183         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
28184         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
28185         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
28186         * doc/relocatable.texi (Enabling Relocatability): Likewise.
28187         * lib/relocatable.c (compute_curr_prefix): Likewise.
28188
28189 2009-10-10  Jim Meyering  <meyering@redhat.com>
28190
28191         stat-time-tests: check for the usleep function
28192         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
28193
28194 2009-10-10  Bruno Haible  <bruno@clisp.org>
28195
28196         * modules/xnanosleep: Put the Link section after the Include section.
28197
28198 2009-10-09  Eric Blake  <ebb9@byu.net>
28199
28200         dup2: work around FreeBSD 6.1 bug
28201         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
28202         * doc/posix-functions/dup2.texi (dup2): Document it.
28203         Reported by Nelson H. F. Beebe and Jim Meyering.
28204
28205         test-stat-time: port to buggy NFS clients
28206         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
28207         (test_ctime): Also skip test if mtime and ctime are skewed.
28208
28209         maint: prefer 'file system' over 'filesystem'
28210         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
28211         * doc/posix-functions/lstat.texi (lstat): Likewise.
28212         * lib/file-has-acl.c (file_has_acl): Likewise.
28213         * lib/fwriteerror.c [TEST]: Likewise.
28214         * tests/test-areadlink.h (test_areadlink): Likewise.
28215         * tests/test-areadlinkat-with-size.c (main): Likewise.
28216         * tests/test-areadlinkat.c (main): Likewise.
28217         * tests/test-canonicalize-lgpl.c (main): Likewise.
28218         * tests/test-canonicalize.c (main): Likewise.
28219         * tests/test-fstatat.c (main): Likewise.
28220         * tests/test-linkat.c (main): Likewise.
28221         * tests/test-lstat.h (test_lstat_func): Likewise.
28222         * tests/test-mkdir.h (test_mkdir): Likewise.
28223         * tests/test-readlink.h (test_readlink): Likewise.
28224         * tests/test-remove.c (main): Likewise.
28225         * tests/test-rename.h (test_rename): Likewise.
28226         * tests/test-renameat.c (main): Likewise.
28227         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28228         * tests/test-symlink.h (test_symlink): Likewise.
28229         * tests/test-symlinkat.c (main): Likewise.
28230         * tests/test-unlink.h (test_unlink_func): Likewise.
28231         * tests/test-unlinkat.c (main): Likewise.
28232
28233         maint: make realtime library usage explicit
28234         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
28235         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
28236         * modules/settime (Link): Likewise.
28237         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
28238
28239         test-stat-time: speed up execution
28240         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
28241         warning on mingw.
28242         (nap): New helper function.
28243         (prepare_test): Use it to reduce sleep time.
28244         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
28245         execution.
28246         * modules/stat-time-tests (configure.ac): Check for usleep.
28247
28248 2009-10-09  Jim Meyering  <meyering@redhat.com>
28249
28250         selinux-h: always use getfilecon wrappers
28251         * lib/getfilecon.c: New file.
28252         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
28253         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
28254         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
28255         (fgetfilecon): Provide a stub.
28256         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
28257         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
28258         file unconditionally.
28259         When <selinux/selinux.h> is found, arrange to use wrappers.
28260         * modules/selinux-h (Files): Add getfilecon.c.
28261         (Makefile.am): Substitute include-next-related bits
28262         into the now-always-generated selinux/selinux.h file.
28263         * doc/glibc-functions/lgetfilecon.texi: New file.
28264         * doc/glibc-functions/fgetfilecon.texi: New file.
28265         * doc/glibc-functions/getfilecon.texi: New file.
28266         * doc/glibc-functions/getfilecon-desc.texi: New file.
28267         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
28268         which to pull in the new files.
28269         * MODULES.html.sh (Misc): Add selinux-h.
28270
28271 2009-10-08  Jim Meyering  <meyering@redhat.com>
28272
28273         unistd: fix comment typo
28274         * lib/unistd.in.h (euidaccess): Fix a comment typo.
28275
28276 2009-10-08  Eric Blake  <ebb9@byu.net>
28277
28278         areadlink: use SIZE_MAX consistently
28279         * modules/areadlink (Depends-on): Add stdint.
28280         * modules/areadlink-with-size (Depends-on): Likewise.
28281         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
28282         gives NULL; drop sys/types, since unistd gives size_t; and add
28283         stdint for SIZE_MAX.
28284         (SIZE_MAX): Rely on headers.
28285         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
28286         and add stdint.
28287         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
28288         (SIZE_MAX): Likewise.
28289         (INITIAL_BUF_SIZE): Turn into enum.
28290         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
28291
28292 2009-10-08  Jim Meyering  <meyering@redhat.com>
28293
28294         areadlinkat: avoid compilation failure
28295         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
28296         Fix typo in comment.
28297
28298 2009-10-07  Eric Blake  <ebb9@byu.net>
28299
28300         areadlinkat-with-size: new module
28301         * modules/areadlinkat-with-size: New module.
28302         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
28303         * lib/areadlink.h (areadlinkat): Declare it.
28304         * MODULES.html.sh (File system functions): Mention it.
28305         * modules/areadlinkat-with-size-tests: New test.
28306         * tests/test-areadlinkat-with-size.c: New file.
28307
28308         xreadlinkat: new module
28309         * modules/xreadlinkat: New module.
28310         * lib/xreadlinkat.c (xreadlinkat): New file.
28311         * lib/xreadlink.h (xreadlinkat): Declare it.
28312         * MODULES.html.sh (File system functions): Mention it.
28313
28314         areadlinkat: new module
28315         * lib/at-func.c (FUNC_FAIL): New define.
28316         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
28317         * modules/areadlinkat: New module.
28318         * lib/linkat.c (areadlinkat): Move...
28319         * lib/areadlinkat.c (areadlinkat): ...to new file.
28320         * lib/areadlink.h (areadlinkat): Declare it.
28321         * modules/linkat (Depends-on): Add areadlinkat.
28322         * MODULES.html.sh (File system functions): Mention it.
28323         * modules/areadlinkat-tests: New test.
28324         * tests/test-areadlinkat.c: New file.
28325
28326         areadlink, areadlink-with-size: add tests
28327         * modules/areadlink-tests: New test.
28328         * modules/areadlink-with-size-tests: Likewise.
28329         * tests/test-areadlink.h: New file.
28330         * tests/test-areadlink.c: Likewise.
28331         * tests/test-areadlink-with-size.c: Likewise.
28332
28333         maint: minor cleanups
28334         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
28335         _UNUSED_PARAMETER_ instead.
28336         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
28337         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
28338         * modules/linkat-tests (Files): Distribute test-link.h.
28339
28340         openat, utimens: whitespace cleanup
28341         * lib/openat.c: Prefer space throughout, rather than mix of 8
28342         spaces vs. tabs.
28343         * lib/at-func.c: Likewise.
28344         * lib/utimens.c: Likewise.
28345
28346         openat: avoid using wrong fd
28347         * lib/openat.c (openat_permissive): Reject user's fd if saving the
28348         working directory chooses same fd.
28349         * lib/at-func.c (AT_FUNC_NAME): Likewise.
28350
28351         mkdir, mkdirat: fix cygwin 1.5.x bug
28352         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
28353         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
28354         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
28355         bug.
28356         (gl_PREREQ_MKDIR): Delete unused macro.
28357         * modules/mkdir (Files): Track file rename.
28358         (configure.ac): Update macro name.
28359         * modules/openat (Depends-on): Add mkdir.
28360         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
28361
28362         mkdir, mkdirat: add tests
28363         * modules/mkdir-tests: New test.
28364         * tests/test-mkdir.h: New file.
28365         * tests/test-mkdir.c: Likewise.
28366         * tests/test-mkdirat.c: Likewise.
28367         * modules/openat-tests (Files): Add new files.
28368         (Makefile.am): Run new test.
28369
28370 2009-10-06  Eric Blake  <ebb9@byu.net>
28371
28372         doc: tweak *at function documentation
28373         * doc/posix-functions/faccessat.texi (faccessat): Mention
28374         known issue with replacement.
28375         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
28376         * doc/posix-functions/linkat.texi (linkat): Likewise.
28377         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
28378         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
28379         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28380         * doc/posix-functions/renameat.texi (renameat): Likewise.
28381         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28382
28383         openat: fix GNU/Hurd bug in unlinkat
28384         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
28385         broken.
28386         * doc/posix-functions/unlink.texi (unlink): Document this.
28387         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
28388
28389         fdopendir: fix GNU/Hurd bug
28390         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
28391         allowing non-directory fds.
28392         * lib/fdopendir.c (rpl_fdopendir): Work around it.
28393         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
28394         * modules/dirent (Makefile.am): Substitute it.
28395         * lib/dirent.in.h (fdopendir): Declare replacement.
28396         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
28397         * tests/test-fdopendir.c (main): Test something other than
28398         /dev/null, since on Hurd that behaves like a directory.
28399
28400         test-symlink: port to GNU/Hurd
28401         * tests/test-symlink.h (test_symlink): Relax expected errno.
28402
28403         doc: tweak more cygwin information
28404         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
28405         now compatible with glibc.
28406         * doc/posix-functions/getopt.texi (getopt): Likewise.
28407
28408         getopt-gnu: add another test
28409         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
28410         guarantee behavior relied on by m4.
28411         * tests/test-getopt.c (main): Use it.
28412         * modules/getopt-posix-tests (Depends-on): Add setenv.
28413         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
28414
28415         getopt: fix compilation on darwin
28416         * lib/getopt.in.h (includes): Leave breadcrumbs during system
28417         include.
28418         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
28419         Reported by Ludovic Courtès.
28420
28421 2009-10-06  Bruno Haible  <bruno@clisp.org>
28422
28423         * modules/size_max (Description): Discourage its use.
28424         Reported by Simon Josefsson.
28425
28426 2009-10-06  Jim Meyering  <meyering@redhat.com>
28427
28428         linkat: avoid compilation failure
28429         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
28430
28431 2009-10-05  Eric Blake  <ebb9@byu.net>
28432
28433         linkat: support Linux 2.6.17
28434         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
28435         linkat on Linux, but allow cache variable override.
28436         * lib/linkat.c (rpl_linkat): Define override.
28437         * modules/linkat (Depends-on): Add symlinkat.
28438         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
28439         * modules/unistd (Makefile.am): Substitute it.
28440         * lib/unistd.in.h (linkat): Declare replacement.
28441         Reported by Pádraig Brady.
28442
28443         quotearg: port test to systems with C.UTF-8 locale
28444         * tests/test-quotearg.c (struct result_strings): Add another
28445         member, differentiating between C.ASCII and C.UTF-8 handling.
28446         (compare_strings): Add parameter.
28447         (main): Adjust all callers.
28448
28449         getopt: avoid clash with FreeBSD _getopt_internal
28450         * lib/getopt.in.h (_getopt_internal): Override the name.
28451         * lib/getopt_int.h (includes): Pick up any overrides.
28452         Reported by Reuben Thomas.
28453
28454         hash: allow C89 compilation
28455         * lib/hash.c (check_tuning): Move declaration before statement.
28456         Reported by Reuben Thomas.
28457
28458 2009-10-05  Karl Berry  <karl@gnu.org>
28459
28460         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
28461
28462 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
28463             Bruno Haible  <bruno@clisp.org>
28464
28465         * lib/uname.c (uname): Use a table-driven algorithm to compute
28466         Windows NT versions.
28467
28468 2009-10-04  Bruno Haible  <bruno@clisp.org>
28469
28470         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
28471         program_invocation_short_name.
28472         * modules/progname (configure.ac): Test for presence of
28473         program_invocation_short_name.
28474         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
28475
28476 2009-10-04  Bruno Haible  <bruno@clisp.org>
28477
28478         * lib/progname.c (set_program_name): Fix comment.
28479         Reported by Jim Meyering.
28480
28481 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
28482             Bruno Haible  <bruno@clisp.org>
28483
28484         * lib/uname.c: Include <string.h>.
28485         (uname): Do only one call to GetVersionEx in the common case.
28486
28487 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
28488             Bruno Haible  <bruno@clisp.org>
28489
28490         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
28491         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
28492         (uname): Add support for Windows CE and various non-x86 CPU types.
28493
28494 2009-10-03  Bruno Haible  <bruno@clisp.org>
28495
28496         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
28497         invocation to tests/configure.ac.
28498         Reported by Ian Beckwith <ianb@erislabs.net>.
28499
28500 2009-10-02  Eric Blake  <ebb9@byu.net>
28501
28502         fchdir: avoid compiler warning
28503         * lib/fchdir.c (canonicalize_file_name)
28504         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
28505
28506         test-open: support mingw errno values
28507         * tests/test-open.h (test_open): Relax test.
28508         * tests/test-fopen.h (test_fopen): Likewise.
28509         * tests/test-openat-safer.c (main): Likewise.
28510
28511         open: fix opening directory on mingw
28512         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
28513
28514         test-open: on GNU/Hurd, /dev/null is a directory
28515         * tests/test-fopen.h (main): Rename...
28516         (test_fopen): ...to this.  Use a guaranteed non-directory when
28517         confirming open behavior on trailing slash.
28518         * tests/test-openat-safer.c (main): Likewise.
28519         * tests/test-open.h (main): Likewise....
28520         (test_open): ...to this.
28521         * tests/test-fopen.c (main): Adjust caller.
28522         * tests/test-fopen-safer.c (main): Likewise.
28523         * tests/test-open.c (main): Likewise.
28524         * tests/test-fcntl-safer.c (main): Likewise.
28525         Reported by Samuel Thibault.
28526
28527         rename, fchdir: don't ignore chdir failure
28528         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
28529         * lib/rename.c (rpl_rename) [W32]: Likewise.
28530         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
28531         an empty destination directory if source cannot be renamed,
28532         although there is still possibility for failure.
28533         * doc/posix-functions/rename.texi (rename): Document the race.
28534         Reported by Jim Meyering.
28535
28536         maint: cleanup whitespace in recent commits
28537         * lib/rename.c (rpl_rename): Remove tabs.
28538         * tests/test-link.h (test_link): Likewise.
28539         * lib/fchdir.c (get_name): Likewise.
28540         Reported by Jim Meyering.
28541
28542 2009-10-02  Ben Pfaff  <blp@gnu.org>
28543
28544         relocatable-prog-wrapper: Add missing dependency on
28545         double-slash-root.
28546         * modules/relocatable-prog-wrapper: Add dependency.
28547         Reported by Ian Beckwith <ianb@erislabs.net>.
28548
28549 2009-10-02  Eric Blake  <ebb9@byu.net>
28550
28551         renameat: fix Solaris bugs
28552         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
28553         needed fixing.
28554         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
28555         * modules/stdio (Makefile.am): Substitute it.
28556         * lib/stdio.in.h (renameat): Declare replacement.
28557         * lib/renameat.c (rpl_renameat): Implement fix.
28558
28559         renameat: new module
28560         * modules/renameat: New file.
28561         * lib/renameat.c (renameat): Likewise.
28562         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
28563         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
28564         * modules/stdio (Makefile.am): Substitute them.
28565         * lib/stdio.in.h (renameat): Declare it.
28566         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28567         * doc/posix-functions/renameat.texi (renameat): Likewise.
28568         * modules/renameat-tests: New test.
28569         * tests/test-renameat.c: Likewise.
28570
28571         rename: fix mingw bugs
28572         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
28573         directory overwrite bugs.
28574
28575         rename: fix another cygwin 1.5 bug
28576         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
28577         checks.
28578         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
28579         unnecessary cygwin workarounds.  Also work around bug with moving
28580         full directory onto an empty one.
28581         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
28582
28583         rename-dest-slash: merge into rename module
28584         * modules/rename-dest-slash (Status): Mark obsolete.
28585         (Depends-on): Add rename.
28586         (Files): Let rename do it all.
28587         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
28588         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
28589         * m4/rename-dest-slash.m4: ...so this file can be deleted.
28590         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
28591         * lib/rename.c (rpl_rename): Update comments.
28592
28593         rename: fix cygwin 1.5.x bugs
28594         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
28595         * lib/rename.c (rpl_rename): Work around them.
28596         * modules/rename (Depends-on): Add same-inode.
28597
28598         rename: fix Solaris 10 bug
28599         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
28600         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
28601         was the only bug.
28602
28603         rename: fix Solaris 9 bug
28604         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
28605         on non-directory.  Avoid calling exit.
28606         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
28607         strdup.
28608         * modules/rename-tests (Depends-on): Drop lstat.
28609         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
28610         (gl_PREREQ_RENAME): Delete unused macro.
28611
28612         rename-dest-slash: fix NetBSD bug
28613         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
28614         links.
28615         * modules/rename-dest-slash (Depends-on): Add same-inode.
28616
28617         rename-tests: new test, exposes several platform bugs
28618         * modules/rename-tests: New file.
28619         * tests/test-rename.h: Likewise.
28620         * tests/test-rename.c: Likewise.
28621         * doc/posix-functions/rename.texi (rename): Improve documentation,
28622         including bugs that will eventually be fixed in gnulib.
28623
28624 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
28625
28626         * lib/uname.c: Include <stdlib.h>
28627         (uname): Assume version info is available.
28628
28629 2009-10-02  Jim Meyering  <meyering@redhat.com>
28630
28631         gnu-web-doc-update: correct --help output
28632         * build-aux/gnu-web-doc-update: Make --help output relevant.
28633
28634         gnu-web-doc-update: add standard options
28635         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
28636
28637         gnu-web-doc-update: New module.
28638         Use this script to automatically update the on-line web documentation
28639         for your GNU project at http://www.gnu.org/software/$pkg/manual/
28640         * modules/gnu-web-doc-update: New file, from coreutils.
28641         * build-aux/gnu-web-doc-update: New script.
28642
28643 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
28644
28645         link: LoadLibrary is not needed.
28646         * lib/link.c: Use GetModuleHandle.
28647
28648 2009-10-01  Eric Blake  <ebb9@byu.net>
28649
28650         getopt: bump serial number
28651         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
28652         change.
28653
28654         tests: tighten link, rmdir, and remove tests
28655         * tests/test-link.h (includes): No need to use <config.h> here.
28656         Clean up if directory hard link was created, otherwise test for
28657         trailing '.'.
28658         * tests/test-linkat.c (main): Simplify.
28659         * tests/test-remove.c (main): Enhance test for trailing '.'.
28660         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28661
28662 2009-10-01  Jim Meyering  <meyering@redhat.com>
28663
28664         maint.mk: requiring "make major" was annoying, for a "minor" release.
28665         What is intended is "stable", to contrast with alpha and beta,
28666         so require "make stable", not "make major".
28667         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
28668         (get_tool_versions): Likewise.
28669         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
28670
28671 2009-09-30  Ben Pfaff  <blp@gnu.org>
28672
28673         Fix broken build of replacement for Windows tmpfile().
28674         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
28675         flags argument added along with the 'mkostemp' module.
28676
28677 2009-09-28  Bruno Haible  <bruno@clisp.org>
28678
28679         Avoid identifier clash with POSIX function 'remove' defined as a macro.
28680         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
28681         to 'remove_elt'.
28682         (gl_list_remove): Update.
28683         * lib/gl_list.c (gl_list_remove): Update.
28684         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
28685         to 'remove_elt'.
28686         (gl_oset_remove): Update.
28687         * lib/gl_list.c (gl_oset_remove): Update.
28688         Reported by Eric Blake.
28689
28690 2009-09-28  Eric Blake  <ebb9@byu.net>
28691
28692         doc: mention yet more cygwin 1.7 status
28693         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
28694         cygwin.
28695         * doc/glibc-functions/execvpe.texi (execvpe): New file.
28696         * doc/gnulib.texi (Glibc unistd.h): Mention it.
28697
28698         argp: fix test failure
28699         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
28700         that are not upper-case.  Pass correct range to tolower.
28701
28702 2009-09-27  Jim Meyering  <meyering@redhat.com>
28703
28704         test-yesno: work around sparc-dash here-document infelicity
28705         Without this change, the literal \177 byte in a here document
28706         would make dash 0.5.5.1-3 access uninitialized memory.
28707         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
28708         Instead, use a marker, "@", and filter through tr to create the desired
28709         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
28710
28711 2009-09-27  Bruno Haible  <bruno@clisp.org>
28712
28713         Disable untested support for new flavours of ACLs on AIX.
28714         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
28715         progress.
28716         * lib/set-mode-acl.c (qset_acl): Likewise.
28717
28718 2008-12-07  Bruno Haible  <bruno@clisp.org>
28719
28720         Add support for new flavours of ACLs on AIX. (Untested.)
28721         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
28722         (file_has_acl): Add support for newer AIX.
28723         * lib/set-mode-acl.c (qset_acl): Likewise.
28724         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
28725         Rainer Tammer <tammer@tammer.net>.
28726
28727 2009-09-26  Eric Blake  <ebb9@byu.net>
28728
28729         argp: fix compilation of getopt
28730         * lib/getopt.in.h (includes): Use different guard than glibc.
28731         Reported by Sergey Poznyakoff.
28732
28733         doc: mention more cygwin 1.7 status
28734         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
28735         bug.
28736         * doc/posix-functions/execl.texi (execl): Likewise.
28737         * doc/posix-functions/execle.texi (execle): Likewise.
28738         * doc/posix-functions/execlp.texi (execlp): Likewise.
28739         * doc/posix-functions/execv.texi (execv): Likewise.
28740         * doc/posix-functions/execve.texi (execve): Likewise.
28741         * doc/posix-functions/execvp.texi (execvp): Likewise.
28742         * doc/glibc-functions/canonicalize_file_name.texi
28743         (canonicalize_file_name): Cygwin 1.7 now provides this.
28744         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
28745         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
28746         on AT_SYMLINK_NOFOLLOW.
28747
28748 2009-09-24  Eric Blake  <ebb9@byu.net>
28749
28750         test-linkat: make test more robust
28751         * tests/test-linkat.c (main): Avoid collision with EEXIST.
28752
28753         getopt: fix inclusion guards for cygwin
28754         * modules/getopt-posix (Depends-on): Add include-next.
28755         (Makefile.am): Substitute more items in replacement header.
28756         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
28757         <getopt.h>.
28758         * lib/getopt.in.h (includes): Use split inclusion guard, and
28759         prefer <getopt.h> over include <unistd.h> when one is present.
28760         (option): Also override name of 'struct option'.
28761
28762         same-inode: revert prior change; it is not yet ready
28763         * NEWS: Undo mention of this change.
28764         * lib/same-inode.h (same-inode.h): Undo tri-state change.
28765         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
28766         * lib/cycle-check.c (cycle_check): Likewise.
28767         * lib/same.c (same_name): Likewise.
28768         * lib/at-func2.c (at_func2): Likewise.
28769
28770 2009-09-23  Eric Blake  <ebb9@byu.net>
28771
28772         linkat: new module
28773         * modules/linkat: New file.
28774         * lib/at-func2.c (at_func2): Likewise.
28775         * lib/linkat.c (linkat): Likewise.
28776         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
28777         * lib/openat-priv.h (at_func2): Add declaration.
28778         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28779         * modules/unistd (Makefile.am): Substitute them.
28780         * lib/unistd.in.h (linkat): Declare it.
28781         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28782         * doc/posix-functions/linkat.texi (linkat): Likewise.
28783         * doc/posix-functions/link.texi (link): Tweak wording.
28784         * tests/test-link.c (main): Move guts...
28785         * tests/test-link.h (test_link): ...into new file.
28786         * modules/linkat-tests: New test.
28787         * tests/test-linkat.c: Likewise.
28788         * modules/link-tests (Files): Ship new file.
28789         (Depends-on): Add stdbool.
28790
28791         dirname: add library-safe mdir_name
28792         * lib/dirname.h (mdir_name): New prototype.
28793         * lib/dirname.c (dir_name): Move guts...
28794         (mdir_name): ...to new function that avoids xalloc_die.
28795
28796         fchdir: another mingw fix
28797         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
28798         * lib/fchdir.c (get_name): New helper method; skips canonicalize
28799         on mingw (where it has not yet been ported), and make it optional
28800         elsewhere.
28801         (_gl_register_fd): Use it.
28802
28803         same-inode: make SAME_INODE tri-state, to port to mingw
28804         * NEWS: Mention this change.
28805         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
28806         st_ino always being 0.
28807         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
28808         * lib/cycle-check.c (cycle_check): Likewise.
28809         * lib/same.c (same_name): Likewise.
28810
28811         lstat: avoid mingw compilation error
28812         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
28813         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
28814         lstat ourselves.
28815         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
28816         was adequate.
28817         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
28818         the checks for lstat.
28819         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
28820
28821         link: fix test failure on Solaris 9
28822         * lib/link.c (rpl_link): Don't assume link will catch bogus
28823         trailing slash on source.
28824
28825         test-symlinkat: enhance test
28826         * tests/test-readlink.c (main): Move guts...
28827         * tests/test-readlink.h (test_readlink): ...into new file.
28828         * tests/test-symlink.c (main): Move guts...
28829         * tests/test-symlink.h (test_symlink): ...into new file.
28830         * tests/test-symlinkat.c (main): Use new files for further
28831         coverage.
28832         (do_symlink, do_readlink): New helper functions.
28833         * modules/symlink-tests (Files): Ship new file.
28834         (Depends-on): Add stdbool.
28835         * modules/readlink-tests (Files): Ship new file.
28836         (Depends-on): Add stdbool.
28837         * modules/symlinkat-tests (Files): Use new files.
28838
28839 2009-09-23  Eric Blake  <ebb9@byu.net>
28840
28841         readlink: document portability issue with symlink length
28842         * doc/posix-functions/lstat.texi (lstat): Mention that some file
28843         systems have bogus st_size on symlinks, and mention the
28844         areadlink-with-size module.
28845         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
28846         * doc/posix-functions/readlink.texi (readlink): Mention the
28847         areadlink module, and ERANGE failure.
28848         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28849         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
28850
28851         readlink: fix Solaris 9 bug with trailing slash
28852         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
28853         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
28854         * doc/posix-functions/readlink.texi (readlink): Document this.
28855         * modules/readlink-tests: New test.
28856         * tests/test-readlink.c: Likewise.
28857
28858         readlink: fix cygwin 1.5.x bug with return type
28859         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
28860         * lib/unistd.in.h (readlink): Use ssize_t.
28861         * lib/readlink.c (readlink): Likewise.
28862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28863         * modules/unistd (Makefile.am): Substitute it.
28864         * lib/unistd.in.h (readlink): Declare replacement.
28865         * doc/posix-functions/readlink.texi (readlink): Document this.
28866
28867         symlink: use throughout gnulib
28868         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
28869         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
28870         symlink is not used.
28871         * modules/symlinkat (Depends-on): Add symlink.
28872         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28873         * modules/canonicalize-tests (Depends-on): Likewise.
28874         * modules/lstat-tests (Depends-on): Likewise.
28875         * modules/openat-tests (Depends-on): Likewise.
28876         * modules/remove-tests (Depends-on): Likewise.
28877         * modules/rmdir-tests (Depends-on): Likewise.
28878         * modules/unlink-tests (Depends-on): Likewise.
28879         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
28880         * tests/test-canonicalize.c (symlink): Likewise.
28881         * tests/test-fstatat.c (symlink): Likewise.
28882         * tests/test-lstat.c (symlink): Likewise.
28883         * tests/test-remove.c (symlink): Likewise.
28884         * tests/test-rmdir.c (symlink): Likewise.
28885         * tests/test-unlink.c (symlink): Likewise.
28886         * tests/test-unlinkat.c (symlink): Likewise.
28887
28888         symlink: new module, for Solaris 9 bug
28889         * modules/symlink: New file.
28890         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
28891         * lib/symlink.c: Likewise.
28892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
28893         * modules/unistd (Makefile.am): Substitute them.
28894         * lib/unistd.in.h (symlink): Declare replacement.
28895         * MODULES.html.sh (File system functions): Mention it.
28896         * doc/posix-functions/symlink.texi (symlink): Likewise.
28897         * modules/symlink-tests: New test.
28898         * tests/test-symlink.c: Likewise.
28899
28900 2009-09-23  Bruno Haible  <bruno@clisp.org>
28901
28902         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
28903         when needed.
28904         Test case: gnulib-tool --import --with-tests atexit inttypes.
28905         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
28906
28907 2009-09-23  Bruno Haible  <bruno@clisp.org>
28908
28909         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
28910         subcommand, not in a subshell.
28911
28912 2009-09-22  Eric Blake  <ebb9@byu.net>
28913
28914         unistd: sort replacement declarations
28915         * lib/unistd.in.h: Sort declarations.
28916
28917         open, openat: minor optimization
28918         * lib/open.c (open): If open succeeded, len is non-zero.
28919         * lib/openat.c (rpl_openat): Likewise.
28920
28921         link-follow: ensure correct result
28922         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
28923         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
28924         distinguish between possible failures.
28925
28926 2009-09-21  Eric Blake  <ebb9@byu.net>
28927
28928         fts: avoid compiler warning
28929         * lib/fts.c (dirent_inode_sort_may_be_useful)
28930         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
28931
28932 2009-09-19  Bruno Haible  <bruno@clisp.org>
28933
28934         * lib/progreloc.c (canonicalize_file_name): New declaration.
28935
28936 2009-09-19  Eric Blake  <ebb9@byu.net>
28937
28938         link: fix quoting
28939         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
28940
28941         openat: fix openat bugs on Solaris 9
28942         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
28943         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
28944         * modules/openat (Depends-on): Add open.
28945         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
28946         * modules/fcntl-h (Makefile.am): Substitute it.
28947         * lib/fcntl.in.h (openat): Declare replacement.
28948         * doc/posix-functions/openat.texi (openat): Document this.
28949
28950         openat: move fstatat and unlinkat into correct files
28951         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
28952         compiled.
28953         * lib/openat.c (fstatat, unlinkat): Move...
28954         * lib/fstatat.c (fstatat): ...into correct files.
28955         * lib/unlinkat.c (unlinkat): Likewise.
28956
28957         openat: fix unlinkat bugs on Solaris 9
28958         * lib/unlinkat.c (unlinkat): New file.
28959         * modules/openat (Depends-on): Add unlink.
28960         (Files): Distribute it.
28961         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
28962         trailing slash behavior is broken.
28963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28964         * modules/unistd (Makefile.am): Substitute it.
28965         * lib/unistd.in.h (unlinkat): Declare replacement.
28966         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
28967
28968         openat: fix fstatat bugs on Solaris 9
28969         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
28970         stat.
28971         * doc/posix-functions/fstatat.texi (fstatat): Document this.
28972
28973         test-unlinkat: enhance test, to expose Solaris 9 bug
28974         * tests/test-unlink.c (main): Factor guts...
28975         * tests/test-unlink.h (test_rmdir_func): ...into new file.
28976         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
28977         * tests/test-rmdir.c (main): Adjust caller.
28978         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
28979         (unlinker): New helper function.
28980         (rmdirat): Enhance check.
28981         * modules/rmdir-tests (Depends-on): Add stdbool.
28982         * modules/unlink-tests (Depends-on): Likewise.
28983         (Files): Add test-unlink.h.
28984         * modules/openat-tests (Files): Likewise.
28985         (Depends-on): Add unlinkdir.
28986
28987         test-fstatat: new test, to expose Solaris 9 bugs
28988         * tests/test-stat.c (main): Factor guts...
28989         * tests/test-stat.h (test_stat_func): ...into new file.
28990         * tests/test-lstat.c (main): Factor guts...
28991         * tests/test-lstat.h (test_lstat_func): ...into new file.
28992         * tests/test-fstatat.c: New file.
28993         * modules/stat-tests (Files): Add test-stat.h.
28994         * modules/lstat-tests (Files): Add test-lstat.h.
28995         (Depends-on): Add stdbool.
28996         * modules/openat-tests (Depends-on): Add pathmax.
28997         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
28998         (Makefile.am): Run new test.
28999
29000         remove: new module, for mingw and Solaris 9 bugs
29001         * modules/remove: New file.
29002         * lib/remove.c: Likewise.
29003         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
29004         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29005         * modules/stdio (Makefile.am): Use them.
29006         * lib/stdio.in.h (remove): Declare replacement.
29007         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29008         * doc/posix-functions/remove.texi (remove): Likewise.
29009         * modules/remove-tests: New test.
29010         * tests/test-remove.c: Likewise.
29011
29012         unlink: new module, for Solaris 9 bug
29013         * modules/unlink: New file.
29014         * lib/unlink.c: Likewise.
29015         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
29016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29017         * modules/unistd (Makefile.am): Use them.
29018         * lib/unistd.in.h (stat): Declare replacement.
29019         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29020         * doc/posix-functions/unlink.texi (unlink): Likewise.
29021         * modules/unlink-tests: New test.
29022         * tests/test-unlink.c: Likewise.
29023
29024         lstat: fix Solaris 9 bug
29025         * lib/lstat.c (lstat): Also check for trailing slash on
29026         non-symlink, non-directories.  Use stat module to simplify logic.
29027         * doc/posix-functions/lstat.texi (lstat): Document it.
29028         * modules/lstat-tests (Depends-on): Add errno, same-inode.
29029         (configure.ac): Check for symlink.
29030         * tests/test-lstat.c (main): Add more tests.
29031
29032         stat: add as dependency to other modules
29033         * modules/chown (Depends-on): Add stat.
29034         * modules/euidaccess (Depends-on): Likewise.
29035         * modules/fchdir (Depends-on): Likewise.
29036         * modules/isdir (Depends-on): Likewise.
29037         * modules/link (Depends-on): Likewise.
29038         * modules/lstat (Depends-on): Likewise.
29039         * modules/mkdir-p (Depends-on): Likewise.
29040         * modules/modechange (Depends-on): Likewise.
29041         * modules/open (Depends-on): Likewise.
29042         * modules/readlink (Depends-on): Likewise.
29043         * modules/same (Depends-on): Likewise.
29044
29045         stat: fix Solaris 9 bug
29046         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
29047         slash.
29048         * lib/stat.c (rpl_stat): Work around it.
29049         * doc/posix-functions/stat.texi (stat): Update documentation.
29050
29051         stat: new module, for mingw bug
29052         * modules/stat: New file.
29053         * lib/stat.c: Likewise.
29054         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29055         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29056         * modules/sys_stat (Makefile.am): Use them.
29057         * lib/sys_stat.in.h (stat): Declare replacement.
29058         * lib/openat.c (fstatat): Deal with lstat and stat being function
29059         macros.
29060         * modules/openat (Depends-on): Add inline.
29061         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29062         * doc/posix-functions/stat.texi (stat): Likewise.
29063         * modules/stat-tests: New test.
29064         * tests/test-stat.c: Likewise.
29065
29066 2009-09-19  Jim Meyering  <meyering@redhat.com>
29067
29068         syntax-check: detect unnecessary inclusion of canonicalize.h
29069         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
29070
29071 2009-09-19  Eric Blake  <ebb9@byu.net>
29072
29073         canonicalize-lgpl: adjust clients to use correct header
29074         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29075         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
29076         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
29077         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
29078         * lib/progreloc.c (includes): Likewise.
29079
29080 2009-09-19  Jim Meyering  <meyering@redhat.com>
29081
29082         test-posixtm.c: correct a comment
29083         * tests/test-posixtm.c: Correct first-line comment.
29084         Spotted by Eric Blake.
29085
29086 2009-09-16  Jim Meyering  <meyering@redhat.com>
29087
29088         posixtm-tests: make T const-correct; add a test case
29089         * tests/test-posixtm.c (T): Declare const.
29090         Add a test for -(2^31+1).
29091         Remove useless can-succeed-only-in-2002 test.
29092
29093         posixtm-tests: adjust the sole failing test
29094         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
29095         expected output matches what mktime now produces.  Cross-checked via
29096         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
29097
29098         posixtm: move #ifdef'd tests into a new module
29099         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
29100         * tests/test-posixtm.c: ... this new file.
29101         * modules/posixtm-tests: New module.
29102
29103 2009-09-19  Eric Blake  <ebb9@byu.net>
29104
29105         openat: simplify use of at-func.c
29106         * lib/at-func.c (includes): Include prerequisites here, to
29107         simplify requirements on client files.
29108         * lib/openat-priv.h: Add double-inclusion guard.
29109         * lib/faccessat.c (includes): Simplify.
29110         * lib/fchmodat.c (includes): Likewise.
29111         * lib/fchownat.c (includes): Likewise.
29112         * lib/mkdirat.c (includes): Likewise.
29113         * lib/mkfifoat.c (includes): Likewise.
29114         * lib/symlinkat.c (includes): Likewise.
29115
29116         openat: allow return of fd 0
29117         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
29118         * modules/save-cwd (Depends-on): Replace fcntl-safer with
29119         unistd-safer.
29120         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
29121         <fcntl.h>; this module does not leak fds.
29122         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
29123         must be allowed to return 0, leaving openat_safer to add the
29124         safety.
29125         (openat_permissive): Avoid writing to just-opened fd 2 if
29126         restoring the current directory fails.
29127         * lib/openat-die.c (openat_restore_fail): Add comment.
29128         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
29129         (save_cwd): Guarantee safe fd, but without use of open_safer.
29130         * tests/test-openat.c: New test.
29131         * modules/openat-tests (Files, Makefile.am): Distribute and build
29132         new file.
29133
29134         relocatable-prog-wrapper: fix build
29135         * modules/relocatable-prog-wrapper (Files): Update name of
29136         canonicalize m4 file, broken on 2009-09-17.
29137         Reported by emad hajjar <aleppos@hotmail.com>.
29138
29139 2009-09-19  Bruno Haible  <bruno@clisp.org>
29140
29141         * lib/safe-alloc.h: Use the standard header with GPL copyright.
29142         * lib/safe-alloc.c: Likewise.
29143         Reported by Ian Beckwith <ianb@erislabs.net>.
29144
29145 2009-09-18  Bruno Haible  <bruno@clisp.org>
29146
29147         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
29148         Reported by <erobles@sensacd.com.mx>.
29149
29150 2009-09-17  Eric Blake  <ebb9@byu.net>
29151
29152         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
29153         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
29154         slashes when checking if last component is missing.
29155         * tests/test-canonicalize.c (main): Test this.
29156
29157         canonicalize, canonicalize-lgpl: honor // if distinct from /
29158         * modules/canonicalize (Files): Add double-slash-root.m4.
29159         * modules/canonicalize-lgpl (Files): Likewise.
29160         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29161         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
29162         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
29163         fallback definition.
29164         (canonicalize_filename_mode): Use it to protect //.
29165         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
29166         (__realpath): Likewise.
29167         * tests/test-canonicalize.c (main): Test this.
29168         * tests/test-canonicalize-lgpl.c (main): Likewise.
29169         * modules/canonicalize-tests (Depends-on): Add same-inode.
29170         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29171
29172         canonicalize-lgpl: fix glibc bug with trailing slash
29173         * m4/canonicalize-lgpl.m4: Move contents...
29174         * m4/canonicalize.m4: ...here.
29175         (gl_CANONICALIZE_LGPL): Factor realpath check...
29176         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
29177         glibc 2.3.5 bug, fixed 2005-04-27.
29178         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
29179         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
29180         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
29181         * modules/canonicalize-lgpl (Files): Manage file rename.
29182         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29183         * modules/stdlib (Makefile.am): Substitute witness.
29184         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
29185         is needed.
29186         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
29187         replacement is required.
29188         * lib/canonicalize.c (canonicalize_file_name): Likewise.
29189         * doc/glibc-functions/canonicalize_file_name.texi
29190         (canonicalize_file_name): Document this.
29191         * doc/posix-functions/realpath.texi (realpath): Likewise.
29192
29193         canonicalize-lgpl: reject non-directory with trailing slash
29194         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
29195         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
29196         catches failures in glibc 2.3.5.
29197         * tests/test-canonicalize.c (main): Likewise.
29198
29199         canonicalize-lgpl: use native realpath if it works
29200         * lib/canonicalize-lgpl.c (realpath): Guard with
29201         FUNC_REALPATH_WORKS.
29202         * lib/stdlib.in.h (realpath): Make declaration optional based on
29203         HAVE_REALPATH.
29204         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
29205         native realpath works.
29206         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29207         * modules/stdlib (Makefile.am): Substitute witness.
29208
29209         canonicalize, canonicalize-lgpl: use <stdlib.h>
29210         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
29211         (Include): Mention <stdlib.h>.
29212         (configure.ac): Mention functions we provide.
29213         * modules/canonicalize (configure.ac): Likewise.
29214         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
29215         realpath if canonicalize_file_name is missing.
29216         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
29217         * modules/stdlib (Makefile.am): Substitute witnesses.
29218         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
29219         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
29220         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
29221         * NEWS: Document this.
29222         * doc/glibc-functions/canonicalize_file_name.texi
29223         (canonicalize_file_name): Likewise.
29224         * doc/posix-functions/realpath.texi (realpath): Likewise.
29225         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
29226
29227         test-canonicalize: consolidate into single C program
29228         * tests/test-canonicalize.sh: Delete; move setup into...
29229         * tests/test-canonicalize.c (main): ...the program, making it
29230         easier to run in debugger.  Add some tests.
29231         * modules/canonicalize-tests (Files): Remove unused file.
29232         (Depends-on): Add progname.
29233         (configure.ac, Makefile.am): Simplify.
29234
29235         test-canonicalize-lgpl: consolidate into single C program
29236         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
29237         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
29238         easier to run in debugger.  Add some tests.
29239         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
29240         (configure.ac, Makefile.am): Simplify.
29241
29242         canonicalize: avoid resolvepath
29243         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
29244         unnecessary checks.
29245         * lib/canonicalize.c (includes): Simplify.
29246         (canonicalize_file_name): Drop resolvepath implementation.
29247         * modules/canonicalize (Depends-on): Drop filenamecat.
29248
29249         canonicalize: don't lose errno
29250         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
29251         over calls to free.
29252
29253         canonicalize: simplify errno handling
29254         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
29255         assignment.
29256
29257         canonicalize, canonicalize-lgpl: update module dependencies
29258         * modules/canonicalize (Depends-on): Add extensions, lstat,
29259         pathmax, stdlib.
29260         (Files): Drop pathmax.h.
29261         (configure.ac): Adjust macro name.
29262         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
29263         lstat, stdlib, sys_stat.
29264         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
29265         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
29266         extensions.
29267         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
29268         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
29269         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
29270         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
29271         declaration, if available.
29272         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
29273         we can rely on the readlink module.
29274         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
29275         (includes): Use <unistd.h> unconditionally.
29276
29277 2009-09-17  Eric Blake  <ebb9@byu.net>
29278
29279         maint: make Include sections of modules consistent
29280         * modules/alloca: Use only header name; no need to list #include.
29281         * modules/alloca-opt: Likewise.
29282         * modules/arpa_inet: Likewise.
29283         * modules/canon-host: Likewise.
29284         * modules/configmake: Likewise.
29285         * modules/dirent: Likewise.
29286         * modules/eealloc: Likewise.
29287         * modules/environ: Likewise.
29288         * modules/fchdir: Likewise.
29289         * modules/fcntl: Likewise.
29290         * modules/fcntl-h: Likewise.
29291         * modules/gethrxtime: Likewise.
29292         * modules/gettime: Likewise.
29293         * modules/ignore-value: Likewise.
29294         * modules/inet_ntop: Likewise.
29295         * modules/inet_pton: Likewise.
29296         * modules/inttypes: Likewise.
29297         * modules/isnand-nolibm: Likewise.
29298         * modules/isnanf-nolibm: Likewise.
29299         * modules/mbchar: Likewise.
29300         * modules/mbfile: Likewise.
29301         * modules/mbiter: Likewise.
29302         * modules/mbuiter: Likewise.
29303         * modules/netdb: Likewise.
29304         * modules/netinet_in: Likewise.
29305         * modules/nproc: Likewise.
29306         * modules/pagealign_alloc: Likewise.
29307         * modules/poll: Likewise.
29308         * modules/printf-frexp: Likewise.
29309         * modules/pthread: Likewise.
29310         * modules/putenv: Likewise.
29311         * modules/random_r: Likewise.
29312         * modules/relocatable-prog: Likewise.
29313         * modules/search: Likewise.
29314         * modules/select: Likewise.
29315         * modules/selinux-h: Likewise.
29316         * modules/settime: Likewise.
29317         * modules/signal: Likewise.
29318         * modules/size_max: Likewise.
29319         * modules/socklen: Likewise.
29320         * modules/ssize_t: Likewise.
29321         * modules/stdarg: Likewise.
29322         * modules/stdbool: Likewise.
29323         * modules/stddef: Likewise.
29324         * modules/stdint: Likewise.
29325         * modules/stdio: Likewise.
29326         * modules/stdlib: Likewise.
29327         * modules/string: Likewise.
29328         * modules/strings: Likewise.
29329         * modules/sys_file: Likewise.
29330         * modules/sys_ioctl: Likewise.
29331         * modules/sys_select: Likewise.
29332         * modules/sys_socket: Likewise.
29333         * modules/sys_stat: Likewise.
29334         * modules/sys_time: Likewise.
29335         * modules/sys_times: Likewise.
29336         * modules/sys_utsname: Likewise.
29337         * modules/sys_wait: Likewise.
29338         * modules/sysexits: Likewise.
29339         * modules/time: Likewise.
29340         * modules/times: Likewise.
29341         * modules/tmpfile: Likewise.
29342         * modules/trim: Likewise.
29343         * modules/unistd: Likewise.
29344         * modules/wchar: Likewise.
29345         * modules/wctype: Likewise.
29346
29347 2009-09-17  Bruno Haible  <bruno@clisp.org>
29348
29349         Make getdate.y compile on QNX and NetBSD 5 / i386.
29350         * m4/getdate.m4 (gl_GETDATE): Conditionally define
29351         TIME_T_FITS_IN_LONG_INT.
29352         * lib/getdate.y (long_time_t): New type.
29353         (relative_time): Change type of 'seconds' field to long_time_t.
29354         (get_date): Update types of local variables. Check against overflow
29355         during conversion from long_time_t to time_t.
29356         Reported by Matt Kraai <kraai@ftbfs.org>
29357         and Hasso Tepper <hasso@netbsd.org>.
29358
29359 2009-09-17  Bruno Haible  <bruno@clisp.org>
29360
29361         * modules/COPYING: Update copyright years.
29362         * modules/README: Likeiwse.
29363         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
29364         Reported by Ian Beckwith <ianb@erislabs.net>.
29365
29366 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29367
29368         * users.txt: Update references for gnuit package.
29369
29370 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29371
29372         * m4/getdelim.m4: Fix typo in copyright line.
29373
29374 2009-09-17  Bruno Haible  <bruno@clisp.org>
29375
29376         * lib/atoll.c: Use the standard header with GPL copyright.
29377         * lib/argz.in.h: Likewise.
29378         * lib/glob.c: Likewise.
29379         * lib/glob-libc.h: Likewise.
29380         * lib/random_r.c: Likewise.
29381         * lib/siglist.h: Likewise.
29382         * lib/strsignal.c: Likewise.
29383         Reported by Ian Beckwith <ianb@erislabs.net>.
29384
29385 2009-09-17  Eric Blake  <ebb9@byu.net>
29386
29387         rmdir: ensure correct dependency order
29388         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
29389
29390 2009-09-17  Bruno Haible  <bruno@clisp.org>
29391
29392         Disable assertion that fails on NetBSD 5 / i386.
29393         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
29394         Reported by Sam Steingold <sds@gnu.org>
29395         and Hasso Tepper <hasso@netbsd.org>.
29396
29397 2009-09-16  Eric Blake  <ebb9@byu.net>
29398
29399         unlinkdir: port to mingw
29400         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
29401         on which no one can unlink a directory.
29402
29403         stdlib: sort witness names
29404         * modules/stdlib (Makefile.am): Sort replacements.
29405         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
29406         * lib/stdlib.in.h: Likewise.
29407
29408         parse-duration-tests: avoid link failure
29409         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
29410         LIBINTL.
29411         Reported by Tom G. Christensen.
29412
29413         openat-tests: ensure unlinkat behaves like rmdir
29414         * tests/test-rmdir.c (main): Factor guts...
29415         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
29416         * modules/rmdir-tests (Files): Ship new file.
29417         * modules/openat-tests: New test.
29418         * tests/test-unlinkat.c: Likewise.
29419
29420         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
29421         * modules/rmdir-errno (Status, Notice): Now obsolete.
29422
29423         rmdir: work around cygwin 1.5.x and mingw bugs
29424         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
29425         * lib/rmdir.c (rmdir): Work around it.
29426         * modules/rmdir (Status, Notice): No longer obsolete.
29427         (Files): Add dos.m4.
29428         (Depends-on): Add unistd.
29429         (configure.ac): Set witnesses.
29430         (License): Relax to LGPLv2+.
29431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
29432         * modules/unistd (Makefile.am): Substitute witnesses.
29433         * lib/unistd.in.h (rmdir): Declare replacement.
29434         * doc/posix-functions/rmdir.texi (rmdir): Document this.
29435         * modules/rmdir-tests: New tests.
29436         * tests/test-rmdir.c: Likewise.
29437
29438 2009-09-15  Eric Blake  <ebb9@byu.net>
29439
29440         fchdir: improve use of replacement functions
29441         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
29442         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
29443         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
29444         REPLACE_CLOSEDIR.
29445         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
29446         * modules/sys_stat (Makefile.am): Substitute correct witness.
29447         * modules/dirent (Makefile.am): Likewise.
29448         * modules/unistd (Makefile.am): Likewise.
29449         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
29450         * lib/unistd.in.h (dup): Likewise.
29451         * lib/sys_stat.in.h (fstat): Likewise.
29452
29453         maint: ignore gnulib-tool temp files
29454         * .gitignore: Ignore files created during gnulib-tool --test.
29455
29456 2009-09-13  Jim Meyering  <meyering@redhat.com>
29457
29458         posixtm: don't reject a time that specify "60" as the number of seconds
29459         * lib/posixtm.c (posixtime): The code to reject invalid dates
29460         would also reject a time specified with the .60 suffix.
29461         But POSIX allows that, in order to accommodate leap seconds.
29462         So don't reject it.
29463         (main): Adjust tests accordingly.
29464         * modules/posixtm (Depends-on): Add stpcpy.
29465
29466 2009-09-11  Jim Meyering  <meyering@redhat.com>
29467
29468         announce-gen: include [$release_type] in emitted Subject:
29469         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
29470         e.g., [stable] in the emitted Subject: line.
29471
29472 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29473
29474         Remove obsolete macros from several modules.
29475         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
29476         obsolete Autoconf macros with their modern counterparts.
29477         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
29478         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
29479         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
29480         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
29481         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
29482         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29483         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
29484         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29485         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
29486         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
29487         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
29488         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
29489         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
29490         * m4/sockets.m4 (gl_SOCKETS): Likewise.
29491         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
29492         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
29493         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
29494         * m4/time_r.m4 (gl_TIME_R): Likewise.
29495         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
29496         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
29497         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
29498
29499         Fix copyright header in build-aux scripts.
29500         * build-aux/git-version-gen: Fix copyright header to match GPLv3
29501         recommendation.
29502         * build-aux/ncftpput-ftp: Likewise.
29503         * build-aux/update-copyright: Likewise.
29504
29505 2009-09-09  Eric Blake  <ebb9@byu.net>
29506
29507         test-link: allow Linux choice of errno
29508         * tests/test-link.c (main): Relax test for alternate error.
29509
29510         strndup: fix improper m4 caching
29511         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
29512         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
29513         (gl_PREREQ_STRNDUP): Delete.
29514         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
29515         * modules/string (Makefile.am): Substitute it.
29516         * lib/string.in.h (strndup): Modernize prototype.
29517
29518         getcwd: port to mingw
29519         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
29520         different from the POSIX assumptions made throughout the getcwd
29521         module; fortunately, the mingw getcwd does not need replacement.
29522         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
29523         * modules/getcwd-tests: New test.
29524         * tests/test-getcwd.c: Likewise.
29525
29526         link: fix platform bugs
29527         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
29528         * lib/link.c (link): Work around them.  Fix related mingw bug.
29529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
29530         * modules/unistd (Makefile.am): Substitute it.
29531         * lib/unistd.in.h (link): Declare replacement.
29532         * doc/posix-functions/link.texi (link): Document this.
29533         * modules/link (Depends-on): Add strdup-posix, sys_stat.
29534
29535         test-link: consolidate into single C program, test more cases
29536         * tests/test-link.sh: Delete.
29537         * tests/test-link.c: Test more error conditions.  Exposes bugs on
29538         at least Cygwin and Solaris.
29539         * modules/link-tests (Files): Remove unused file.
29540         (Depends-on): Add errno, sys_stat.
29541         (Makefile.am): Simplify.
29542
29543 2009-09-08  Bruno Haible  <bruno@clisp.org>
29544
29545         Work around towlower, towupper bug on mingw.
29546         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
29547         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
29548         * doc/posix-functions/towlower.texi: Mention the mingw bug.
29549         * doc/posix-functions/towupper.texi: Likewise.
29550         Reported by Eric Blake.
29551
29552 2009-09-08  Jim Meyering  <meyering@redhat.com>
29553
29554         build: don't try to run autoheader if we don't use it
29555         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
29556         is not used in configure.ac.
29557
29558 2009-09-08  Eric Blake  <ebb9@byu.net>
29559
29560         euidaccess: fix compilation error
29561         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
29562
29563         rawmemchr: relax license
29564         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
29565         okay.
29566         Reported by Jim Meyering.
29567
29568         mkfifoat: new module
29569         * modules/mkfifoat: New file.
29570         * lib/mkfifoat.c: Likewise.
29571         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
29572         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29573         * modules/sys_stat (Makefile.am): Use them.
29574         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
29575         * MODULES.html.sh (File system functions): Mention module.
29576         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
29577         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
29578         * modules/mkfifoat-tests: New test.
29579         * tests/test-mkfifoat.c: Likewise.
29580
29581         strchrnul: relax license
29582         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
29583         okay.
29584         Reported by Jim Meyering.
29585
29586 2009-09-08  Eric Blake  <ebb9@byu.net>
29587
29588         fstatat: fix compilation on Solaris
29589         * lib/fstatat.c (includes): Add fcntl.h.
29590         Reported by Pádraig Brady.
29591
29592 2009-09-07  Eric Blake  <ebb9@byu.net>
29593
29594         rename: modernize replacement
29595         * modules/rename (Depends-on): Add stdio.
29596         (configure.ac): Declare witness.
29597         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
29598         stdio take care of replacement.
29599         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
29600         * modules/stdio (Makefile.am): Substitute them.
29601         * lib/stdio.in.h (rename): Declare replacement.
29602         * lib/rename.c (includes): Allow cross-compilation to non-windows
29603         machines.
29604         * doc/posix-functions/rename.texi (rename): Improve
29605         documentation.
29606
29607         stdio: sort witness names
29608         * modules/stdio (Makefile.am): Sort replacements.
29609         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29610         * lib/stdio.in.h: Likewise.
29611
29612         getcwd: minor cleanups
29613         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
29614         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
29615
29616         openat: provide more convenience names
29617         * modules/faccessat (configure.ac): Add C witness.
29618         * lib/unistd.in.h (readlinkat): Fix typo.
29619         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
29620         convenience wrappers.
29621         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
29622         wrappers in syntax checks.
29623
29624 2009-09-06  Eric Blake  <ebb9@byu.net>
29625
29626         doc: fix comments in recent patches
29627         * lib/faccessat.c: Mention correct function.
29628         * lib/fchmodat.c: Likewise.
29629         * lib/fchownat.c: Likewise.
29630         * lib/symlinkat.c: Likewise.
29631         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
29632         constants.
29633
29634         faccessat, symlinkat: continue cleanup of previous patch
29635         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
29636         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
29637         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
29638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
29639         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
29640         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
29641         set.
29642
29643 2009-09-06  Bruno Haible  <bruno@clisp.org>
29644
29645         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
29646         (fstatat): Declare if GNULIB_FSTATAT is set.
29647         (mkdirat): Declare if GNULIB_MKDIRAT is set.
29648         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
29649         (unlinkat): Declare if GNULIB_UNLINKAT is set.
29650         * modules/fcntl-h (Files): Remove m4/openat.m4.
29651         * modules/sys_stat (Files): Remove m4/openat.m4.
29652         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
29653         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
29654         * modules/unistd (Files): Remove m4/openat.m4.
29655         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
29656         GNULIB_OPENAT.
29657         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
29658         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
29659         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
29660         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
29661         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
29662         gl_OPENAT_DEFAULTS.
29663         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
29664         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
29665         Don't require gl_OPENAT_DEFAULTS.
29666         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
29667         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
29668         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
29669         (gl_OPENAT_DEFAULTS): Remove macro.
29670
29671 2009-09-06  Bruno Haible  <bruno@clisp.org>
29672
29673         * modules/openat (configure.ac): Remove unneeded witness.
29674
29675 2009-09-06  Bruno Haible  <bruno@clisp.org>
29676
29677         Set errno to ENOSYS when a function is entirely unsupported.
29678         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
29679         EOPNOTSUPP.
29680         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
29681         * modules/chown (Depends-on): Remove errno.
29682
29683 2009-09-06  Bruno Haible  <bruno@clisp.org>
29684
29685         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
29686
29687 2009-09-06  Bruno Haible  <bruno@clisp.org>
29688
29689         * lib/sys_stat.in.h: Fix preprocessor command indentation.
29690
29691 2009-09-06  Ben Pfaff  <blp@gnu.org>
29692             Bruno Haible  <bruno@clisp.org>
29693
29694         Work around a glibc bug in strtok_r.
29695         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
29696         Undefine if UNDEFINE_STRTOK_R is set.
29697         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
29698         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29699         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
29700         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
29701         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
29702         UNDEFINE_STRTOK_R.
29703         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
29704
29705 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29706
29707         exclude: minor fix
29708         * lib/exclude.c: Include wctype.h
29709
29710 2009-09-06  Akim Demaille  <demaille@gostai.com>
29711
29712         bootstrap: improve error message
29713         * build-aux/bootstrap (find_tool): Upon failure, report the list
29714         of candidates.
29715         Honor the initial value of the envvar.
29716
29717 2009-09-05  Eric Blake  <ebb9@byu.net>
29718
29719         symlinkat: new module
29720         * modules/symlinkat: New file.
29721         * lib/symlinkat.c: Likewise.
29722         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
29723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29724         * modules/unistd (Makefile.am): Use them.
29725         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
29726         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
29727         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
29728         * MODULES.html.sh (File system functions): Mention module.
29729         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
29730         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29731         * modules/symlinkat-tests: New test.
29732         * tests/test-symlinkat.c: Likewise.
29733
29734         test-openat-safer: add more checks
29735         * tests/test-openat-safer.c (main): Check more code paths.
29736
29737 2009-09-05  Jim Meyering  <meyering@redhat.com>
29738
29739         syntax-check: detect unnecessary inclusion of openat.h
29740         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
29741
29742 2009-09-05  Bruno Haible  <bruno@clisp.org>
29743
29744         Support towlower, towupper.
29745         * doc/posix-functions/towlower.texi: Mention module wctype.
29746         * doc/posix-functions/towupper.texi: Likewise.
29747         * lib/wctype.in.h (towlower, towupper): New functions.
29748         * tests/test-wctype.c: Include stdio.h, stdlib.h.
29749         (ASSERT): New macro.
29750         (e): New variable.
29751         (main): Test also towlower, towupper. Test WEOF argument.
29752         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29753
29754 2009-09-05  Bruno Haible  <bruno@clisp.org>
29755
29756         Fix conversion behaviour when the input is invalid.
29757         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
29758         mark occurring in first pass of indirect conversion.
29759         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
29760         input.
29761         Found by clang's static analyzer.
29762
29763 2009-09-05  Bruno Haible  <bruno@clisp.org>
29764
29765         * tests/test-striconveh.c (main): Test indirect conversion on platforms
29766         where direct conversion is possible.
29767
29768 2009-09-04  Eric Blake  <ebb9@byu.net>
29769
29770         openat: fail with ENOENT on empty name
29771         * lib/openat-proc.c (openat_proc_name): Special-case the empty
29772         buffer.
29773
29774         link-follow: fix logic bug in prior patch
29775         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
29776         reversed sense of yes and no in prior patch.  Avoid confusing
29777         compilation failure with desired semantics.
29778
29779         link-follow: accomodate mingw and cross-compilation
29780         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
29781         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
29782         cross-compilation results to -1, to make linkat easier to
29783         implement when cross-compiling.  Trivially support mingw.
29784         * modules/link-follow (configure.ac): Call new name.
29785         * NEWS: Mention this.
29786
29787 2009-09-03  Eric Blake  <ebb9@byu.net>
29788
29789         faccessat: compile replacement
29790         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
29791         needed.
29792
29793         fts: fix compilation error
29794         * lib/fts.c (includes): Re-add "openat.h", for
29795         openat_needs_fchdir.
29796
29797         faccessat: new module
29798         * modules/faccessat: New file.
29799         * lib/faccessat.c: Likewise.
29800         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
29801         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29802         * modules/unistd (Makefile.am): Use it.
29803         * lib/unistd.in.h (faccessat): Declare it.
29804         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
29805         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
29806         * MODULES.html.sh (File system functions): Mention it.
29807         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
29808         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
29809
29810         euidaccess: prefer POSIX over non-standard implementation
29811         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
29812         * lib/euidaccess.c (euidaccess): Use it if available.
29813
29814         openat: make template easier to use
29815         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
29816         AT_FUNC_F2 to be undefined.
29817         (VALIDATE_FLAG): New macro; use it to reject bad flags.
29818         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
29819         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
29820         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
29821         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
29822         Likewise.
29823         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
29824         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
29825         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
29826         Likewise.
29827
29828         openat: declare in POSIX headers
29829         * NEWS: Mention this.
29830         * modules/openat (configure.ac): Declare witnesses.
29831         (Depends-on): Add fcntl-h, sys_stat, unistd.
29832         (Include): Mention correct headers.
29833         * modules/fcntl-h (Depends-on): Add link-warning.
29834         (Files): Add openat.m4.
29835         (Makefile.am): Substitute witnesses.
29836         * modules/sys_stat (Files, Makefile.am): Likewise.
29837         * modules/unistd (Files, Makefile.am): Likewise.
29838         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
29839         (gl_OPENAT_DEFAULTS): New macro.
29840         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
29841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
29842         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
29843         (SYS_STAT_H): Remove unused variable.
29844         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
29845         * lib/fcntl--.h (includes): Remove unneeded header.
29846         * lib/openat-safer.c (includes): Likewise.
29847         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
29848         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
29849         appropriate headers.
29850         (__OPENAT_PREFIX): Delete.
29851         * lib/fcntl.in.h (openat): Provide declaration.
29852         (AT_FDCWD): Fix Solaris bug.
29853         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
29854         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
29855         * lib/fchmodat.c (includes):  Adjust to find declaration.
29856         * lib/fchownat.c (includes): Likewise.
29857         * lib/mkdirat.c (includes): Likewise.
29858         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
29859         still visible.
29860
29861 2009-09-02  Eric Blake  <ebb9@byu.net>
29862
29863         errno: use consistently
29864         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
29865         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
29866         * lib/canonicalize.c (ELOOP): Likewise.
29867         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
29868         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
29869         * lib/lchown.c (EOPNOTSUPP): Likewise.
29870         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
29871         * lib/savewd.c (ESTALE): Likewise.
29872         * lib/settime.c (ENOSYS): Likewise.
29873         * lib/utimens.c (ENOSYS): Likewise.
29874         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
29875         * lib/chdir-safer.c (ELOOP): Likewise.
29876         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
29877         * modules/c-stack (Depends-on): Add errno.
29878         * modules/canonicalize (Depends-on): Likewise.
29879         * modules/chdir-safer (Depends-on): Likewise.
29880         * modules/fdopendir (Depends-on): Likewise.
29881         * modules/inet_ntop (Depends-on): Likewise.
29882         * modules/inet_pton (Depends-on): Likewise.
29883         * modules/lchown (Depends-on): Likewise.
29884         * modules/openat (Depends-on): Likewise.
29885         * modules/savewd (Depends-on): Likewise.
29886         * modules/settime (Depends-on): Likewise.
29887         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
29888
29889         fts: avoid leaking fds
29890         * modules/fts (Depends-on): Add cloexec.
29891         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
29892         flag.
29893
29894         fts: make directory fds more robust
29895         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
29896         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
29897
29898         backupfile, chdir-long, fts, savedir: make safer
29899         * lib/backupfile.c (includes): Use "dirent--.h", since
29900         numbered_backup can write to stderr during readdir.
29901         * lib/savedir.c (includes): Likewise.
29902         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
29903         emulation can write to stderr on failure.
29904         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
29905         * lib/getcwd.c: Document why opendir_safer is unused.
29906         * lib/glob.c: Likewise.
29907         * lib/scandir.c: Likewise.
29908         * lib/openat-proc.c: Likewise, for open_safer.
29909         * modules/backupfile (Depends-on): Add dirent-safer.
29910         * modules/savedir (Depends-on): Likewise.
29911         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
29912         * modules/chdir-long (Depends-on): Add openat-safer.
29913
29914         openat-safer: new module
29915         * modules/openat-safer: New file.
29916         * lib/openat-safer.c: Likewise.
29917         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
29918         * lib/fcntl-safer.h (openat_safer): Declare.
29919         * lib/fcntl--.h (openat): Override.
29920         * MODULES.html.sh (File descriptor based I/O): Mention it.
29921         * lib/openat.h: Add double-inclusion guards.
29922         * lib/openat.c (includes): Only include "fcntl-safer.h", not
29923         "fcntl--.h", so we can implement openat.
29924         * modules/openat-safer-tests: New test.
29925         * tests/test-openat-safer.c: New file.
29926
29927         dirent-safer: new module
29928         * modules/dirent-safer: New file.
29929         * lib/dirent--.h: Likewise.
29930         * lib/dirent-safer.h: Likewise.
29931         * lib/opendir-safer.c: Likewise.
29932         * m4/dirent-safer.m4: Likewise.
29933         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
29934         * modules/dirent-safer-tests: New test.
29935         * tests/test-dirent-safer.c: New file.
29936         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
29937
29938         fdopendir: optimize on mingw
29939         * lib/unistd.in.h (_gl_directory_name): New prototype.
29940         * lib/fchdir.c (_gl_directory_name): Implement it.
29941         (fchdir): Use it to simplify implementation.
29942         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
29943         fchdir, when available, to avoid calling [f]chdir().
29944
29945         fdopendir: split into its own module
29946         * lib/openat.c (fdopendir): Move...
29947         * lib/fdopendir.c: ...into new file.
29948         * modules/fdopendir: New module.
29949         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
29950         * modules/openat (Depends-on): Add fdopendir.
29951         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
29952         fdopendir here.
29953         * modules/savedir (Depends-on): Only need fdopendir, not full
29954         openat.
29955         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
29956         * lib/openat.h (fdopendir): Drop prototype.
29957         * lib/dirent.in.h (fdopendir): Provide prototype.
29958         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
29959         * modules/dirent (Makefile.am): Substitute them.
29960         * MODULES.html.sh (File system functions): Mention it.
29961         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
29962         * modules/fdopendir-tests: New file.
29963         * tests/test-fdopendir.c: Likewise.
29964
29965         fchdir: use more consistent macro convention
29966         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
29967         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
29968         REPLACE_FCHDIR, rather than relying on config.h macros.
29969         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
29970         inside a single make-time REPLACE_FCHDIR block, rather than using
29971         the config.h FCHDIR_REPLACEMENT.
29972         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
29973         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
29974         Manage fstat replacement.
29975         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
29976         REPLACE_FCHDIR.
29977         * modules/sys_stat (Files): Add m4/unistd_h.m4.
29978         (Makefile.am): Substitute REPLACE_FCHDIR.
29979         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
29980         FCHDIR_REPLACEMENT.
29981         * lib/dup-safer.c (dup_safer): Likewise.
29982         * lib/dup2.c (rpl_dup2): Likewise.
29983         * lib/dup3.c (rpl_dup3): Likewise.
29984         * lib/open.c (rpl_open): Likewise.
29985
29986         fchdir: simplify error handling, and support dup3
29987         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
29988         stdbool, malloc-posix, realloc-posix.
29989         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
29990         (ensure_dirs_slot): Return false on allocation failure.
29991         (rpl_dup2): Delete.
29992         (_gl_register_dup): New function.
29993         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
29994         (_gl_register_fd): Close fd on allocation failure.
29995         * lib/fcntl.in.h (_gl_register_fd): Update signature.
29996         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
29997         prototype.
29998         (rpl_dup2_fchdir): Delete prototype.
29999         * lib/open.c (open): Update caller.
30000         * lib/dup2.c (dup2): Track fchdir metadata.
30001         * lib/dup3.c (dup3): Likewise.
30002         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
30003         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
30004
30005 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30006
30007         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
30008         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
30009         don't pass arguments to AC_OUTPUT.
30010
30011 2009-09-02  Bruno Haible  <bruno@clisp.org>
30012
30013         * modules/mkdtemp (License): Relicense under LGPLv2+.
30014         Reported by Paolo Bonzini.
30015
30016 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30017
30018         Replace uses of obsolete autoconf macros in Jim's modules.
30019         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
30020         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
30021         can evoke a warning from autoconf when run with -Wobsolete
30022         enabled.  They were declared obsolete for good reasons (see
30023         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
30024         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
30025         should not continue using the deprecated macros.
30026         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
30027         obsolete Autoconf macros with modern counterparts.
30028         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
30029         * m4/dos.m4 (gl_AC_DOS): Likewise.
30030         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
30031         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
30032         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
30033         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
30034         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
30035         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
30036         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
30037         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
30038         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
30039         Likewise.
30040         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
30041         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
30042         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
30043         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
30044         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
30045         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
30046
30047 2009-09-01  Eric Blake  <ebb9@byu.net>
30048
30049         fchdir: fix off-by-one bug in previous patch
30050         * lib/fchdir.c (rpl_fstat): Use correct bounds.
30051         (_gl_unregister_fd): Delete useless if.
30052
30053 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
30054
30055         maint.mk: sort the list of syntax-check rules
30056         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
30057         easier to get a sense of progress when the rules are run sequentially
30058         and take a long time.
30059
30060 2009-09-01  Simon Josefsson  <simon@josefsson.org>
30061
30062         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
30063         * modules/netinet_in: Likewise.
30064         * modules/sys_file: Likewise.
30065         * modules/sys_ioctl: Likewise.
30066         * modules/sys_select: Likewise.
30067         * modules/sys_socket: Likewise.
30068         * modules/sys_stat: Likewise.
30069         * modules/sys_time: Likewise.
30070         * modules/sys_times: Likewise.
30071         * modules/sys_utsname: Likewise.
30072         * modules/sys_wait: Likewise.
30073
30074 2009-09-01  Jim Meyering  <meyering@redhat.com>
30075
30076         fts: help ensure that return values are not ignored
30077         * lib/fts_.h (__GNUC_PREREQ): Define.
30078         (__attribute_warn_unused_result__): Define.
30079         (fts_children, fts_close, fts_open, fts_read): Declare with
30080         __attribute_warn_unused_result__.
30081
30082         fts: fts_close now fails also when closing a dir file descriptor fails
30083         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
30084         and propagate to caller, along with errno.
30085
30086         announce-gen: correct formatting in --help output
30087         * build-aux/announce-gen (usage): Move the one-line description in
30088         --help output "up", to where it belongs, just after Usage:.
30089
30090 2009-08-31  Eric Blake  <ebb9@byu.net>
30091
30092         fchdir: port to mingw
30093         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
30094         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
30095         opened, then use a substitute.
30096         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
30097         replacement.
30098         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
30099         (_gl_register_fd): No need to check stat if open already filters
30100         all directories.
30101         (fchdir): Fix error condition to match POSIX.
30102         * modules/fchdir (Depends-on): Add sys_stat.
30103         * doc/posix-functions/open.texi (open): Document the limitation.
30104         * modules/fchdir-tests: New file.
30105         * tests/test-fchdir.c: Likewise.
30106
30107         canonicalize: allow cross-testing from cygwin to mingw
30108         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
30109         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
30110         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
30111         Likewise.
30112         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
30113         target does not support symlinks.
30114         * tests/test-canonicalize-lgpl.sh: Likewise.
30115
30116         chown: avoid compilation warning on mingw
30117         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
30118         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
30119         mingw.
30120         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30121         * modules/chown (Depends-on): Add errno.
30122
30123 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30124
30125         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
30126         command.
30127
30128 2009-08-31  Jim Meyering  <meyering@redhat.com>
30129
30130         canonicalize: remove useless initialization
30131         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
30132         initialization of local, "end".
30133
30134 2009-08-30  Bruno Haible  <bruno@clisp.org>
30135
30136         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
30137         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
30138         ENOSYS.
30139
30140 2009-08-30  Bruno Haible  <bruno@clisp.org>
30141
30142         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
30143         /usr/xpg4/bin/tr when it exists.
30144         * tests/test-pipe-filter-gi1.sh: Likewise.
30145
30146 2009-08-30  Bruno Haible  <bruno@clisp.org>
30147
30148         Work around deficient /usr/bin/id program on Solaris.
30149         * tests/test-file-has-acl.sh (ID): New variable.
30150         * tests/test-set-mode-acl.sh (ID): Likewise.
30151         * tests/test-copy-acl.sh (ID): Likewise.
30152         * tests/test-copy-file.sh (ID): Likewise.
30153
30154 2009-08-30  Bruno Haible  <bruno@clisp.org>
30155
30156         New module 'xstriconveh'.
30157         * lib/xstriconveh.h: New file.
30158         * lib/xstriconveh.c: New file.
30159         * modules/xstriconveh: New file.
30160
30161 2009-08-30  Bruno Haible  <bruno@clisp.org>
30162
30163         Make it easier to use mem_cd_iconveh.
30164         * lib/striconveh.h (iconveh_t): New type.
30165         (iconveh_open, iconveh_close): New declarations.
30166         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30167         with a single 'const iconveh_t *' argument.
30168         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
30169         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30170         with a single 'const iconveh_t *' argument.
30171         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
30172         * tests/test-striconveh.c (main): Update.
30173         * NEWS: Mention the change.
30174
30175 2009-08-30  Bruno Haible  <bruno@clisp.org>
30176
30177         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
30178         problem.
30179
30180 2009-08-30  Bruno Haible  <bruno@clisp.org>
30181
30182         Work around iconv_open problem on Solaris.
30183         * lib/iconv_open-solaris.gperf: New file.
30184         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
30185         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
30186         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
30187         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
30188         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
30189         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
30190
30191 2009-08-29  Jim Meyering  <meyering@redhat.com>
30192
30193         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
30194         * top/maint.mk (cvs-check): Remove target; it was just an alias
30195         to the better-named vc-diff-check.
30196         (maintainer-distcheck): Remove rule.  It was used only from
30197         the (alpha/beta/major) target, and all of its commands but one
30198         were coreutils-specific.
30199         (vc-dist): Remove rule.
30200         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
30201         Run vc-diff-check, not vc-dist.
30202         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
30203
30204 2009-08-27  Bruno Haible  <bruno@clisp.org>
30205
30206         * tests/test-bitrotate.c (main): Remove test that uses a shift count
30207         of 0.
30208
30209 2009-08-27  Bruno Haible  <bruno@clisp.org>
30210
30211         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
30212         compilers.
30213         * doc/func.texi: Document the SunPRO C bug.
30214
30215 2009-08-27  Bruno Haible  <bruno@clisp.org>
30216
30217         Fix link error on Solaris.
30218         * tests/test-parse-duration.c (xstrdup): Remove function.
30219
30220 2009-08-26  Pádraig Brady  <P@draigbrady.com>
30221
30222         ignore-value: handle pointer types, too
30223         * lib/ignore-value.h (__attribute__): Remove definition.
30224         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
30225         of a more concise and more-often effective "(void) i" statement.
30226         (ignore_ptr): New function to suppress warnings from functions that
30227         return pointers, and to make it explicit that one function doesn't
30228         handle all cases.
30229
30230 2009-08-25  Bruno Haible  <bruno@clisp.org>
30231
30232         dup2: work around a Linux bug.
30233         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
30234         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
30235         * doc/posix-functions/dup2.texi: Mention the Linux bug.
30236         Reported by Simon Josefsson.
30237
30238 2009-08-25  Jim Meyering  <meyering@redhat.com>
30239
30240         libguestfs uses gnulib
30241         * users.txt: Add libguestfs.
30242
30243 2009-08-24  Eric Blake  <ebb9@byu.net>
30244
30245         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
30246         * lib/pipe2.c (includes): Add binary-io.h.
30247         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
30248
30249 2009-08-24  Bruno Haible  <bruno@clisp.org>
30250
30251         Tolerate declared but missing accept4 syscall.
30252         * lib/accept4.c (accept4): Invoke original accept4 function first, if
30253         available.
30254         * lib/sys_socket.in.h (accept4): If the function is already present,
30255         override it.
30256         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
30257         * modules/accept4 (Makefile.am): Compile accept4.c always.
30258         Reported by Paolo Bonzini and Eric Blake.
30259
30260 2009-08-23  Bruno Haible  <bruno@clisp.org>
30261
30262         New module 'accept4'.
30263         * lib/sys_socket.in.h (accept4): New declaration.
30264         * lib/accept4.c: New file.
30265         * m4/accept4.m4: New file.
30266         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
30267         GNULIB_ACCEPT4, HAVE_ACCEPT4.
30268         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
30269         HAVE_ACCEPT4.
30270         * modules/accept4: New file.
30271         * doc/glibc-functions/accept4.texi: Mention the new module.
30272
30273 2009-08-24  Jim Meyering  <meyering@redhat.com>
30274
30275         progname: also set global program_invocation_name, when possible
30276         Before this change, a libtool-enabled program that calls glibc's
30277         error function would report the program name as
30278         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
30279         * modules/progname (configure.ac): Check for a declaration of
30280         program_invocation_name.
30281         * lib/progname.c:  Include <errno.h>.
30282         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
30283         Set program_invocation_name.
30284
30285 2009-08-23  Bruno Haible  <bruno@clisp.org>
30286
30287         * lib/dup3.c: Include <string.h>.
30288
30289 2009-08-23  Bruno Haible  <bruno@clisp.org>
30290
30291         * lib/dup3.c (dup3): Test only once whether the system actually exists.
30292         * lib/pipe2.c (pipe2): Likewise.
30293         Suggested by Eric Blake.
30294
30295 2009-08-23  Bruno Haible  <bruno@clisp.org>
30296
30297         Tolerate declared but missing dup3 syscall.
30298         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
30299         * lib/unistd.in.h (dup3): If the function is already present,
30300         override it.
30301         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
30302         * modules/dup3 (Makefile.am): Compile dup3.c always.
30303         Reported by Paolo Bonzini.
30304
30305 2009-08-23  Bruno Haible  <bruno@clisp.org>
30306
30307         Tolerate declared but missing pipe2 syscall.
30308         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
30309         available.
30310         * lib/unistd.in.h (pipe2): If the function is already present,
30311         override it.
30312         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
30313         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
30314         Reported by Paolo Bonzini.
30315
30316 2009-08-23  Bruno Haible  <bruno@clisp.org>
30317
30318         * lib/pipe2.c (pipe2): Move #ifs inside function.
30319
30320 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30321
30322         quotearg: document limitations of quote_these_too
30323         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
30324         those limitations are created.
30325         * lib/quotearg.h (set_char_quoting): Document that digits and
30326         letters that are special after backslash are not permitted.
30327         (quotearg_char): Cross-reference set_char_quoting documentation.
30328
30329 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
30330
30331         quotearg: implement custom_quoting_style
30332         * lib/quotearg.c: (struct quoting_options): Add left_quote and
30333         right_quote fields.
30334         (set_custom_quoting): New public function.
30335         (quotearg_buffer_restyled): Add left_quote and right_quote
30336         arguments, handle them very much like locale quoting, and update
30337         all uses.
30338         (quotearg_n_custom): New public function.
30339         (quotearg_n_custom_mem): New public function.
30340         (quotearg_custom): New public function.
30341         (quotearg_custom_mem): New public function.
30342         * lib/quotearg.h: Prototype and document new public functions.
30343         (enum quoting_style): For escape_quoting_style and
30344         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
30345         ignored even though they're otherwise like c_quoting_style.
30346         Add custom_quoting_style member and document with comparison to
30347         clocale_quoting_style.
30348         * tests/test-quotearg.c (custom_quotes): New array.
30349         (custom_results): New array.
30350         (main): Extend to test custom quoting.
30351
30352 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30353
30354         quotearg: fix right quote escaping when it's in quote_these_too
30355         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
30356         quote, be sure to prepend only one backslash.
30357         * tests/test-quotearg.c (use_quote_double_quotes): New function.
30358         (main): Test it.
30359
30360 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30361
30362         quotearg-tests: test escaping of embedded locale quotes
30363         * tests/test-quotearg.c (struct result_strings): Add member for
30364         new input.
30365         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
30366         (inputs): Add new input.
30367         (results_g): Add expected results.
30368         (flag_results): Likewise.
30369         (locale_results): Likewise.
30370         (compare_strings): Check those.
30371
30372 2009-08-23  Bruno Haible  <bruno@clisp.org>
30373
30374         Tests for module 'dup3'.
30375         * modules/dup3-tests: New file.
30376         * tests/test-dup3.c: New file.
30377
30378         New module 'dup3'.
30379         * lib/unistd.in.h (dup3): New declaration.
30380         * lib/dup3.c: New file.
30381         * m4/dup3.m4: New file.
30382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
30383         HAVE_DUP3.
30384         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
30385         * modules/dup3: New file.
30386         * doc/glibc-functions/dup3.texi: Mention the new module.
30387
30388 2009-08-23  Bruno Haible  <bruno@clisp.org>
30389
30390         Tweak the dup2 test.
30391         * tests/test-dup2.c (main): Create the test file empty. Verify that an
30392         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
30393         the test file is still empty. Fix argument order of lseek.
30394
30395 2009-08-23  Bruno Haible  <bruno@clisp.org>
30396
30397         Avoid test link errors when the modules getopt-gnu, gettext are used.
30398         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
30399         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30400
30401 2009-08-23  Bruno Haible  <bruno@clisp.org>
30402
30403         Fix getdtablesize() on mingw.
30404         * lib/getdtablesize.c (getdtablesize): Implement differently.
30405         * lib/unistd.in.h (getdtablesize): Improve comment.
30406
30407 2009-08-23  Bruno Haible  <bruno@clisp.org>
30408
30409         New module 'mkostemp'.
30410         Based on Ulrich Drepper's 2007-08-10 change in glibc.
30411         * lib/stdlib.in.h (mksotemp): New declaration.
30412         * lib/mkostemp.c: New file, from glibc with modifications.
30413         * lib/tempname.h (GT_FILE): Remove outdated comment.
30414         (gen_tempname): Add flags argument.
30415         * lib/tempname.c (__GT_BIGFILE): Remove macro.
30416         (__GT_FILE): Map to 1.
30417         (small_open, large_open): Remove macros.
30418         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
30419         * lib/mkstemp.c (mkstemp): Update.
30420         * lib/mkdtemp.c (mkdtemp): Likewise.
30421         * m4/mkostemp.m4: New file.
30422         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
30423         HAVE_MKOSTEMP.
30424         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
30425         HAVE_MKOSTEMP.
30426         * modules/mkostemp: New file, based on modules/mkstemp.
30427         * doc/glibc-functions/mkostemp.texi: Mention the new module.
30428         * NEWS: Mention the change.
30429
30430 2009-08-23  Bruno Haible  <bruno@clisp.org>
30431
30432         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
30433         Reported by Eric Blake.
30434
30435 2009-08-23  Bruno Haible  <bruno@clisp.org>
30436
30437         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
30438         Reported by Eric Blake.
30439
30440 2009-08-23  Bruno Haible  <bruno@clisp.org>
30441
30442         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
30443         * modules/pipe2 (Depends-on): Likewise.
30444
30445 2009-08-23  Eric Blake  <ebb9@byu.net>
30446
30447         fcntl-h: add O_TTY_INIT support
30448         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
30449         * tests/test-fcntl-h.c (o): Test it.
30450         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30451
30452         fcntl-h: rename from fcntl, in preparation for fcntl(2)
30453         * modules/fcntl: Move <fcntl.h> header replacement...
30454         * modules/fcntl-h: ...to new name, so as not to collide with
30455         like-named function.
30456         * tests/test-fcntl.c: Rename...
30457         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
30458         * modules/fcntl-tests: Rename...
30459         * modules/fcntl-h-tests: ...to this.  Update test file name.
30460         * modules/chdir-long (Depends-on): Update clients.
30461         * modules/chdir-safer (Depends-on): Likewise.
30462         * modules/fcntl-safer (Depends-on): Likewise.
30463         * modules/fts (Depends-on): Likewise.
30464         * modules/mkancesdirs (Depends-on): Likewise.
30465         * modules/mkdir-p (Depends-on): Likewise.
30466         * modules/open (Depends-on): Likewise.
30467         * modules/savewd (Depends-on): Likewise.
30468         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
30469         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30470
30471 2009-08-22  Bruno Haible  <bruno@clisp.org>
30472
30473         * modules/binary-io (License): Relicense under LGPL.
30474         * modules/pipe2 (License): Likewise.
30475
30476 2009-08-22  Bruno Haible  <bruno@clisp.org>
30477
30478         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
30479         return value.
30480         * lib/pipe-filter-gi.c (filter_init): Likewise.
30481         Reported by Eric Blake.
30482
30483 2009-08-22  Bruno Haible  <bruno@clisp.org>
30484
30485         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
30486         * modules/pipe (Depends-on): Add pipe2.
30487
30488 2009-08-22  Bruno Haible  <bruno@clisp.org>
30489
30490         Tests for module 'pipe2'.
30491         * modules/pipe2-tests: New file.
30492         * tests/test-pipe2.c: New file.
30493
30494         New module 'pipe2'.
30495         * lib/unistd.in.h (pipe2): New declaration.
30496         * lib/pipe2.c: New file.
30497         * m4/pipe2.m4: New file.
30498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
30499         HAVE_PIPE2.
30500         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
30501         * modules/pipe2: New file.
30502         * doc/glibc-functions/pipe2.texi: Mention the new module.
30503
30504 2009-08-22  Bruno Haible  <bruno@clisp.org>
30505
30506         Reference some new glibc functions.
30507         * doc/glibc-functions/accept4.texi: New file.
30508         * doc/glibc-functions/dup3.texi: New file.
30509         * doc/glibc-functions/mkostemp.texi: New file.
30510         * doc/glibc-functions/pipe2.texi: New file.
30511         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
30512         (Glibc sys/socket.h): Refer to accept4.
30513         (Glibc unistd.h): Refer to dup3, pipe2.
30514         Reported by Eric Blake.
30515
30516 2009-08-22  Jim Meyering  <meyering@redhat.com>
30517             Bruno Haible  <bruno@clisp.org>
30518
30519         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
30520         This makes it so packages using automake-1.11's silent-rules option
30521         can print e.g., a single "GEN    configmake.h" line, rather than
30522         the 30+ statements that perform the job.  If you want to see the
30523         actual commands, you can still run "make V=1".
30524         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
30525         so that make output is abbreviated when those variables are defined
30526         appropriately.
30527         * modules/argz: Likewise.
30528         * modules/arpa_inet: Likewise.
30529         * modules/byteswap: Likewise.
30530         * modules/configmake: Likewise.
30531         * modules/dirent: Likewise.
30532         * modules/errno: Likewise.
30533         * modules/fcntl: Likewise.
30534         * modules/float: Likewise.
30535         * modules/fnmatch: Likewise.
30536         * modules/getopt-posix: Likewise.
30537         * modules/glob: Likewise.
30538         * modules/iconv_open: Likewise.
30539         * modules/inttypes: Likewise.
30540         * modules/localcharset: Likewise.
30541         * modules/locale: Likewise.
30542         * modules/math: Likewise.
30543         * modules/netdb: Likewise.
30544         * modules/netinet_in: Likewise.
30545         * modules/poll: Likewise.
30546         * modules/posix_spawnp-tests: Likewise.
30547         * modules/sched: Likewise.
30548         * modules/search: Likewise.
30549         * modules/selinux-h: Likewise.
30550         * modules/signal: Likewise.
30551         * modules/spawn: Likewise.
30552         * modules/stdarg: Likewise.
30553         * modules/stdbool: Likewise.
30554         * modules/stddef: Likewise.
30555         * modules/stdint: Likewise.
30556         * modules/stdio: Likewise.
30557         * modules/stdlib: Likewise.
30558         * modules/string: Likewise.
30559         * modules/strings: Likewise.
30560         * modules/sys_file: Likewise.
30561         * modules/sys_ioctl: Likewise.
30562         * modules/sys_select: Likewise.
30563         * modules/sys_socket: Likewise.
30564         * modules/sys_stat: Likewise.
30565         * modules/sys_time: Likewise.
30566         * modules/sys_times: Likewise.
30567         * modules/sys_utsname: Likewise.
30568         * modules/sys_wait: Likewise.
30569         * modules/sysexits: Likewise.
30570         * modules/time: Likewise.
30571         * modules/unistd: Likewise.
30572         * modules/wchar: Likewise.
30573         * modules/wctype: Likewise.
30574
30575 2009-08-22  Jim Meyering  <meyering@redhat.com>
30576
30577         announce-gen: detect write failure
30578         * build-aux/announce-gen: Add Coda at end.
30579         Remove equivalent-but-more-verbose block at top.
30580
30581 2009-08-19  Akim Demaille  <demaille@gostai.com>
30582
30583         bootstrap: --help to stdout.
30584         * bootstrap (usage): Don't send --help to stderr.
30585         Use a here doc instead of a long string.
30586
30587 2009-08-21  Eric Blake  <ebb9@byu.net>
30588
30589         test-popen-safer: split from test-popen
30590         * tests/test-popen.c (main): Move...
30591         * tests/test-popen.h: ...into new file.
30592         * tests/test-popen-safer2.c: New file.
30593         * modules/popen-tests (Files): Add test-popen.h.
30594         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
30595         Suggested by Bruno Haible.
30596
30597         test-fcntl-safer: split from test-open
30598         * tests/test-open.c (main): Move...
30599         * tests/test-open.h: ...into new file.
30600         * tests/test-fcntl-safer.c: New file.
30601         * modules/open-tests (Files): Add test-open.h.
30602         * modules/fcntl-safer-tests: New file.
30603         Suggested by Bruno Haible.
30604
30605         test-fopen-safer: split from test-fopen
30606         * tests/test-fopen.c (main): Move...
30607         * tests/test-fopen.h: ...into new file.
30608         * tests/test-fopen-safer.c: New file.
30609         * modules/fopen-tests (Files): Add test-fopen.h.
30610         * modules/fopen-safer-tests: New file.
30611         Suggested by Bruno Haible.
30612
30613 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
30614
30615         popen-safer: test O_CLOEXEC at run-time.
30616         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
30617
30618 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
30619
30620         fcntl: move more flags to the header
30621         * lib/cloexec.c: Do not define FD_CLOEXEC here.
30622         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
30623         * lib/fcntl.in.h: Do both things here.
30624
30625 2009-08-21  Jim Meyering  <meyering@redhat.com>
30626
30627         consistently remove $@-t before redirecting to it
30628         * modules/argz: Remove $@-t and $@ before redirecting to the former.
30629         * modules/alloca-opt: Likewise.
30630         * modules/byteswap: Likewise.
30631         * modules/fnmatch: Likewise.
30632         * modules/getopt-posix: Likewise.
30633         * modules/glob: Likewise.
30634         * modules/poll: Likewise.
30635         * modules/posix_spawnp-tests: Likewise.
30636         * modules/sys_socket: Likewise.
30637         * modules/sysexits: Likewise.
30638
30639 2009-08-21  Eric Blake  <ebb9@byu.net>
30640
30641         popen: simplify access to original popen
30642         * lib/popen.c (rpl_popen): No need to worry about popen being a
30643         macro.
30644         Reported by Bruno Haible.
30645
30646 2009-08-20  Eric Blake  <ebb9@byu.net>
30647
30648         build: avoid some compiler warnings
30649         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
30650         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
30651         type.
30652         (new_exclude_segment, excluded_file_pattern_p)
30653         (excluded_file_name_p): Reduce scope.
30654         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
30655         old-style declaration.
30656
30657 2009-08-20  Simon Josefsson  <simon@josefsson.org>
30658
30659         * tests/test-exclude1.sh: Handle Windows EOL.
30660         * tests/test-exclude2.sh: Likewise.
30661         * tests/test-exclude3.sh: Likewise.
30662         * tests/test-exclude4.sh: Likewise.
30663         * tests/test-exclude5.sh: Likewise.
30664         * tests/test-exclude6.sh: Likewise.
30665         * tests/test-exclude7.sh: Likewise.
30666
30667 2009-08-19  Akim Demaille  <demaille@gostai.com>
30668
30669         bootstrap: find sha1sum when named gsha1sum.
30670         * bootstrap (find_tool): New.
30671         ($SHA1SUM): New.
30672         Use it.
30673
30674 2009-08-20  Jim Meyering  <meyering@redhat.com>
30675
30676         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
30677         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
30678         expression that converts "." in a file name to "\." in the resulting
30679         regexp.  Start with a dummy statement, so that prior shell variable
30680         definitions are expanded portably.  Reported by Simon Josefsson.
30681
30682 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
30683
30684         Fix polling for writeability of a screen buffer.
30685         * lib/poll.c: Distinguish input and screen buffers for the
30686         Win32 implementation.
30687         * lib/select.c: Likewise.
30688
30689 2009-08-19  Eric Blake  <ebb9@byu.net>
30690
30691         popen-safer: prevent popen from clobbering std descriptors
30692         * modules/popen-safer: New file.
30693         * lib/popen-safer.c: Likewise.
30694         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
30695         * lib/stdio--.h (popen): Provide override.
30696         * lib/stdio-safer.h (popen_safer): Provide declaration.
30697         * tests/test-popen.c (includes): Partially test this.
30698         * modules/popen-safer-tests: New file, for more tests.
30699         * tests/test-popen-safer.c: Likewise.
30700         * MODULES.html.sh (file stream based Input/Output): Mention it.
30701
30702         tests: test some of the *-safer modules
30703         * modules/fopen-safer (Depends-on): Add fopen.
30704         * modules/fcntl-safer (Depends-on): Add fcntl.
30705         * modules/stdlib-safer (Depends-on): Add stdlib.
30706         (configure.ac): Set indicator.
30707         * modules/unistd-safer (configure.ac): Likewise.
30708         * modules/tmpfile-safer (configure.ac): Likewise.
30709         (Depends-on): Add tmpfile.
30710         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
30711         active.
30712         * tests/test-fopen.c (includes): Test safer versions when they are
30713         in use.
30714         * tests/test-open.c (includes): Likewise.
30715
30716         popen: fix cygwin 1.5 bug when stdin closed
30717         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
30718         * modules/popen: New file.
30719         * modules/popen-tests: Likewise.
30720         * tests/test-popen.c: Likewise.
30721         * m4/popen.m4: Likewise.
30722         * lib/popen.c: Likewise.
30723         * lib/stdio.in.h (popen): New declaration.
30724         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
30725         * modules/stdio (Makefile.am): Likewise.
30726         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
30727
30728 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
30729
30730         maint.mk: give full control over update-copyright exclusions
30731         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
30732         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
30733         (update-copyright): Don't force inclusion of top-level
30734         ChangeLog.  Don't force exclusion of all COPYING files, but make
30735         them the default exclusion instead.
30736
30737 2009-08-16  Bruno Haible  <bruno@clisp.org>
30738
30739         Fix test failures on Solaris 10.
30740         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
30741         tests when Solaris iconv() is used.
30742         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
30743         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
30744         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
30745         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
30746         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
30747
30748 2009-08-16  Bruno Haible  <bruno@clisp.org>
30749
30750         Fix test failures on Solaris 10.
30751         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
30752         'tr' program and pass it as first argument.
30753         * tests/test-pipe-filter-gi1.sh: Likewise.
30754         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
30755         program as first argument.
30756         * tests/test-pipe-filter-gi1.c (main): Likewise.
30757
30758 2009-08-16  Eric Blake  <ebb9@byu.net>
30759
30760         fpurge: fix previous commits
30761         * modules/fpurge (Makefile.am): Make replacement conditional,
30762         partially reverting 2007-04-29 change; missed in previous
30763         attempt.
30764         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
30765         is missing.
30766
30767 2009-08-16  Bruno Haible  <bruno@clisp.org>
30768
30769         Clarify fpurge's effect on the file position.
30770         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
30771         * tests/test-fpurge.c (main): Make a second pass for checking the file
30772         position.
30773
30774 2009-08-16  Bruno Haible  <bruno@clisp.org>
30775
30776         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
30777         declaration of fpurge is missing.
30778         * tests/test-fpurge.c (main): Check that the file has not more contents
30779         than expected. Close the file before removing it.
30780
30781 2009-08-15  Eric Blake  <ebb9@byu.net>
30782
30783         fpurge: don't wrap working cygwin implementation
30784         * lib/fpurge.c (fpurge): Fix comment typo.
30785         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
30786         1.7 to avoid replacement.
30787         * tests/test-fpurge.c (main): Enhance test.
30788
30789 2009-08-15  Eric Blake  <ebb9@byu.net>
30790         and Jim Meyering  <meyering@redhat.com>
30791
30792         test-update-copyright: skip if perl is insufficient
30793         * tests/test-update-copyright.sh: Failure to run maintainer tool
30794         should not cause testsuite failure on cygwin 1.5.
30795
30796 2009-08-14  Eric Blake  <ebb9@byu.net>
30797
30798         doc: mention more functions added in cygwin 1.7.0
30799         * doc/posix-headers/limits.texi (limits.h): Update for recent
30800         cygwin additions.
30801         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
30802         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
30803         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
30804         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
30805         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
30806
30807 2009-08-14  Eric Blake  <ebb9@byu.net>
30808
30809         maint.mk: simplify update-copyright rule
30810         * top/maint.mk (update-copyright-local): Delete, and document how
30811         to do it in cfg.mk instead.
30812         (update-copyright-exclude-regexp): Delete, and document how to do
30813         it in .x-update-copyright instead.
30814         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
30815         exclude ChangeLog.
30816
30817 2009-08-14  Bruno Haible  <bruno@clisp.org>
30818
30819         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
30820
30821 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
30822
30823         maint.mk: support update-copyright-env
30824         * top/maint.mk (update-copyright-env): Define place-holder.
30825         (update-copyright): Expand $(update-copyright-env) before
30826         invoking update-copyright.
30827
30828 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
30829
30830         update-copyright: implement forced reformatting
30831         * build-aux/update-copyright: Implement and document
30832         UPDATE_COPYRIGHT_FORCE.
30833         * tests/test-update-copyright.sh: Test it.
30834
30835 2009-08-14  Eric Blake  <ebb9@byu.net>
30836         and Bruno Haible  <bruno@clisp.org>
30837
30838         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
30839         * tests/test-locale.c: Revert previous patch related to NULL.
30840         * tests/test-stdio.c: Likewise.
30841         * tests/test-stdlib.c: Likewise.
30842         * tests/test-string.c: Likewise.
30843         * tests/test-unistd.c: Likewise.
30844         * modules/time-tests (Depends-on): Add verify.
30845         * modules/wchar-tests (Depends-on): Likewise.
30846         * tests/test-time.c: Test for NULL compliance.
30847         * tests/test-wchar.c: Likewise.
30848         * modules/locale (Depends-on): Add stddef.
30849         * modules/stdio (Depends-on): Likewise.
30850         * modules/stdlib (Depends-on): Likewise.
30851         * modules/string (Depends-on): Likewise.
30852         * modules/time (Depends-on): Likewise.
30853         * modules/unistd (Depends-on): Likewise.
30854         * modules/wchar (Depends-on): Likewise.
30855         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
30856         * lib/stdlib.in.h (includes): Likewise.
30857         * lib/string.in.h (includes): Likewise.
30858         * lib/time.in.h (includes): Likewise.
30859         * lib/unistd.in.h (includes): Likewise.
30860         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
30861         replaced.
30862         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30863         * m4/stddef_h.m4: New file.
30864         * modules/stddef: Likewise.
30865         * lib/stddef.in.h: Likewise.
30866         * modules/stddef-tests: Likewise.
30867         * tests/test-stddef.c: Likewise.
30868         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
30869         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
30870         * doc/posix-headers/locale.texi (locale.h): Likewise.
30871         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
30872         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30873         * doc/posix-headers/string.texi (string.h): Likewise.
30874         * doc/posix-headers/time.texi (time.h): Likewise.
30875         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
30876         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
30877
30878 2009-08-14  Eric Blake  <ebb9@byu.net>
30879
30880         doc: improve git diff of texinfo files
30881         * .gitattributes: Add rule for *.texi files, with hint on how to
30882         use it.
30883         Copied from m4, and based on a report by Bruno Haible.
30884
30885 2009-08-14  Bruno Haible  <bruno@clisp.org>
30886
30887         Disable multithread support by default on Cygwin 1.5.x for real.
30888         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
30889
30890 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
30891
30892         update-copyright: much ado about intervals
30893         * build-aux/update-copyright: Implement and document
30894         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
30895         of copyright year intervals.
30896         Also, document UPDATE_COPYRIGHT_YEAR.
30897         * tests/test-update-copyright.sh: Test it.
30898
30899         update-copyright: convert 2-digit to 4-digit years
30900         * build-aux/update-copyright: Implement and document.
30901         * tests/test-update-copyright.sh: Update.
30902
30903 2009-08-14  Jim Meyering  <meyering@redhat.com>
30904
30905         test-exclude: avoid coreutils "make check" failure
30906         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
30907         just as in test-argmatch.c.
30908
30909 2009-08-13  Eric Blake  <ebb9@byu.net>
30910
30911         test-dup2: fix bad assumption
30912         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
30913         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
30914
30915         test-version-etc: fix CRLF portability issue
30916         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
30917         recognize \r.
30918         * tests/test-argp-version-etc-1.sh: Likewise.
30919
30920         getopt: update client modules
30921         * modules/argp (Depends-on): Use getopt-gnu.
30922         * modules/git-merge-changelog (Depends-on): Likewise.
30923         * modules/long-options (Depends-on): Likewise.
30924         * modules/xstrtol (Depends-on): Likewise.
30925
30926 2009-08-13  Simon Josefsson  <simon@josefsson.org>
30927
30928         * tests/test-version-etc.sh: Don't fail on different
30929         project/version.  Don't fail on CRLF differences.  Rewrite to use
30930         multiple -e instead of multiple sed forks, suggested by Eric Blake
30931         <ebb9@byu.net>.
30932         * tests/test-argp-version-etc-1.sh: Likewise.
30933
30934 2009-08-13  Simon Josefsson  <simon@josefsson.org>
30935
30936         * tests/test-version-etc.sh: Don't fail on different
30937         project/version.
30938
30939 2009-08-12  Bruno Haible  <bruno@clisp.org>
30940
30941         Tests for modules 'getopt-posix', 'getopt-gnu'.
30942         * modules/getopt-posix-tests: New file.
30943         * tests/test-getopt.c: New file.
30944         * tests/test-getopt.h: New file.
30945         * tests/test-getopt_long.h: New file.
30946
30947         New modules 'getopt-posix', 'getopt-gnu'.
30948         * modules/getopt-gnu: New file, renamed from modules/getopt.
30949         * modules/getopt-posix: New file.
30950         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
30951         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
30952         (gl_GETOPT): Remove macro.
30953         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
30954         Disable the test against BSD systems that declare optreset. Test
30955         against mingw bug. Test against lack of support of optional arguments
30956         on many platforms.
30957         * doc/glibc-headers/getopt.texi: Update module name and list of
30958         relevant platforms.
30959         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
30960         'getopt-gnu' and more portability problems.
30961         * NEWS: Mention the changes.
30962
30963 2009-08-12  Bruno Haible  <bruno@clisp.org>
30964
30965         Ensure that optarg etc. get declared by <unistd.h>.
30966         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
30967         AC_USE_SYSTEM_EXTENSIONS.
30968         * modules/getopt (Depends-on): Add 'extensions'.
30969
30970 2009-08-12  Bruno Haible  <bruno@clisp.org>
30971
30972         Avoid test link errors.
30973         * modules/pipe-filter-ii-tests (Makefile.am): Define
30974         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
30975         * modules/pipe-filter-gi-tests (Makefile.am): Define
30976         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
30977         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30978
30979 2009-08-12  Bruno Haible  <bruno@clisp.org>
30980
30981         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
30982         gl_GETOPT_SUBSTITUTE before.
30983         (gl_GETOPT): Use it.
30984         * m4/argp.m4 (gl_ARGP): Update.
30985         Reported by Sergey Poznyakoff.
30986
30987         * m4/getopt.m4: Reorder macros.
30988         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
30989         (gl_GETOPT_SUBSTITUTE): Remove macro.
30990
30991 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
30992
30993         Minor improvement in gitlog-to-changelog
30994
30995         * build-aux/gitlog-to-changelog: New option `--format' makes
30996         output format string configurable.
30997
30998 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
30999
31000         Optimize exclude: use hash tables for non-wildcard patterns.
31001
31002         * lib/exclude.c: Include hash.h and mbuiter.h
31003         (struct exclude_pattern, exclude_segment): New data types.
31004         (struct exclude): Rewrite.
31005         (fnmatch_pattern_has_wildcards): New function.
31006         (new_exclude_segment, free_exclude_segment): New functions.
31007         (excluded_file_pattern_p, excluded_file_name_p): New functions.
31008         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
31009         * lib/exclude.h (is_fnmatch_pattern): New prototype.
31010         * modules/exclude: Depend on hash and mbuiter.
31011
31012         * modules/exclude-tests: New file.
31013         * tests/test-exclude.c: New file.
31014         * tests/test-exclude1.sh: New file.
31015         * tests/test-exclude2.sh: New file.
31016         * tests/test-exclude3.sh: New file.
31017         * tests/test-exclude4.sh: New file.
31018         * tests/test-exclude5.sh: New file.
31019         * tests/test-exclude6.sh: New file.
31020         * tests/test-exclude7.sh: New file.
31021
31022 2009-08-12  Bruno Haible  <bruno@clisp.org>
31023
31024         Ensure that getopt() gets declared by <unistd.h>.
31025         * lib/unistd.in.h: Conditionally include getopt.h.
31026         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
31027         Set GNULIB_UNISTD_H_GETOPT.
31028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31029         GNULIB_UNISTD_H_GETOPT.
31030         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
31031
31032 2009-08-12  Bruno Haible  <bruno@clisp.org>
31033
31034         Clarify logic.
31035         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
31036         gl_replace_getopt instead of GETOPT_H.
31037
31038 2009-08-12  Bruno Haible  <bruno@clisp.org>
31039
31040         * m4/getopt.m4: Add comments.
31041
31042 2009-08-12  Bruno Haible  <bruno@clisp.org>
31043
31044         Disable multithread support by default on Cygwin 1.5.x.
31045         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
31046         set gl_use_threads=no if not specified otherwise.
31047
31048 2009-08-11  Bruno Haible  <bruno@clisp.org>
31049
31050         Avoid compilation error on NetBSD 5.0.
31051         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
31052         * tests/test-stdio.c: Likewise.
31053         * tests/test-stdlib.c: Likewise.
31054         * tests/test-string.c: Likewise.
31055         * tests/test-unistd.c: Likewise.
31056         Reported by Greg Troxel <gdt@ir.bbn.com>
31057         at <https://savannah.gnu.org/support/?106973>.
31058
31059 2009-08-11  Bruno Haible  <bruno@clisp.org>
31060
31061         * modules/dup2-tests (Depends-on): Remove close.
31062
31063         Undo 2009-07-19 commit.
31064         * modules/acl-tests (Depends-on): Remove close.
31065         * modules/binary-io-tests (Depends-on): Likewise.
31066         * modules/closein-tests (Depends-on): Likewise.
31067         * modules/flock-tests (Depends-on): Likewise.
31068         * modules/fsync-tests (Depends-on): Likewise.
31069         * modules/lseek-tests (Depends-on): Likewise.
31070         * modules/pipe-tests (Depends-on): Likewise.
31071         * modules/posix_spawn-tests (Depends-on): Likewise.
31072         * modules/posix_spawnp-tests (Depends-on): Likewise.
31073         * modules/stat-time-tests (Depends-on): Likewise.
31074         * modules/yesno-tests (Depends-on): Likewise.
31075
31076 2009-08-10  Bruno Haible  <bruno@clisp.org>
31077
31078         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
31079
31080 2009-08-10  Bruno Haible  <bruno@clisp.org>
31081
31082         Fix a gcc warning.
31083         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
31084
31085 2009-08-10  Bruno Haible  <bruno@clisp.org>
31086
31087         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
31088         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
31089         not only the first time.
31090         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
31091         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
31092         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
31093         is 1, not only the the first time.
31094
31095 2009-08-10  Bruno Haible  <bruno@clisp.org>
31096
31097         Make it possible to use module 'gethostname' without module 'close'.
31098         * lib/unistd.in.h (close): Evoke a link error only if
31099         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31101         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31102         * modules/unistd (Makefile.am): Substitute
31103         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31104         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
31105         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31106         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31107         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31108         * modules/sys_ioctl (Makefile.am): Substitute
31109         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31110         * modules/socket (configure.ac): On native Windows, set
31111         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
31112         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31113         Reported by Sam Steingold <sds@gnu.org>.
31114
31115 2009-08-10  Bruno Haible  <bruno@clisp.org>
31116
31117         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
31118         * modules/ioctl (configure.ac): Likewise.
31119
31120 2009-08-10  Bruno Haible  <bruno@clisp.org>
31121
31122         Avoid collision between gnulib wrapper and libintl wrapper.
31123         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
31124         already defined in intl/printf.c.
31125         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
31126         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
31127
31128 2009-08-09  Bruno Haible  <bruno@clisp.org>
31129
31130         Make <sys/select.h> really self-contained, also on Solaris 10.
31131         * lib/sys_select.in.h: Include <string.h>.
31132         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
31133         Solaris 10 problem.
31134         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
31135         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
31136         Reported by Jim Meyering.
31137
31138 2009-08-09  Bruno Haible  <bruno@clisp.org>
31139
31140         Avoid warnings from 'aclocal' that are due to a use of macro name
31141         AM_XGETTEXT_OPTION that is not defined in automake.
31142         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
31143         automake.
31144         * modules/error (configure.ac): Likewise.
31145         * modules/propername (configure.ac): Likewise.
31146         * modules/vasprintf (configure.ac): Likewise.
31147         * modules/verror (configure.ac): Likewise.
31148         * modules/xprintf (configure.ac): Likewise.
31149         * modules/xvasprintf (configure.ac): Likewise.
31150
31151 2009-08-08  Bruno Haible  <bruno@clisp.org>
31152
31153         Avoid compilation error in C++ mode.
31154         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
31155         Reported by Sam Steingold <sds@gnu.org>.
31156
31157 2009-08-08  Bruno Haible  <bruno@clisp.org>
31158
31159         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
31160         for the various Unix platforms.
31161         * doc/posix-headers/limits.texi: Update platforms list regarding
31162         HOST_NAME_MAX.
31163         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31164
31165 2009-08-07  Jim Meyering  <meyering@redhat.com>
31166
31167         selinux-at: fix typo in a comment
31168         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
31169         Spotted by Paolo Bonzini.
31170
31171         selinux-at: remove redundant m4 code, add documentation
31172         * modules/selinux-at (configure.ac): Remove redundant code.
31173         LIB_SELINUX is already set via the dependent module, selinux-h.
31174         (Include): Add quotes around selinux-at.h.
31175         * lib/selinux-at.h: Add documentation.
31176         Reported by Bruno Haible in
31177         http://marc.info/?l=gnulib-bug&m=124958988300749
31178
31179 2009-08-07  Bruno Haible  <bruno@clisp.org>
31180
31181         Avoid link error on MacOS X 10.3 and 10.4.
31182         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
31183         on non-ELF systems.
31184         * lib/argp-pv.c (argp_program_version): Likewise.
31185         Reported by Simon Josefsson.
31186
31187 2009-08-07  Simon Josefsson  <simon@josefsson.org>
31188
31189         * tests/test-version-etc.sh: Use $EXEEXT.
31190
31191 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
31192
31193         update-copyright: update documentation to point to maint.mk
31194         * build-aux/update-copyright: Here.
31195
31196 2009-08-06  Jim Meyering  <meyering@redhat.com>
31197
31198         maint.mk: support update-copyright-local
31199         * top/maint.mk (update-copyright-local): Define place-holder.
31200         (update-copyright): Depend on $(update-copyright-local).
31201
31202 2009-08-06  Jim Meyering  <meyering@redhat.com>
31203
31204         selinux-at: new module
31205         Initially written for coreutils, this module will soon be
31206         used by findutils, too.
31207         * MODULES.html.sh [Misc]: Add selinux-at.
31208         * lib/selinux-at.h: New file, from coreutils.
31209         * lib/selinux-at.c: Likewise.
31210         * modules/selinux-at: Likewise.
31211         (License): Change from LGPL to GPL, since it depends
31212         on the GPL'd openat module.
31213
31214         doc: update README
31215         * README: Remove references to cogito.
31216         Remove cvs-repo-updating instructions from 2007.
31217         Don't imply that CVS is better if you have limited disk space.
31218
31219 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31220
31221         update-copyright: support C-style comments
31222         * build-aux/update-copyright: Implement and document.
31223         * tests/test-update-copyright.sh: Test.
31224
31225 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31226
31227         update-copyright: support omitted "(C)"
31228         * build-aux/update-copyright: Implement and document.  Also,
31229         allow variable whitespace before "(C)".
31230         * tests/test-update-copyright.sh: Test.
31231
31232 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31233
31234         update-copyright: don't trip on non-FSF copyright statements
31235         * build-aux/update-copyright: Fix so that the first correctly
31236         formatted FSF copyright statement is recognized no matter what
31237         appears before it.  Update documentation.
31238         * tests/test-update-copyright.sh: Test that.
31239
31240 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31241
31242         update-copyright: clean up code a little
31243         * build-aux/update-copyright: Append "_re" to the name of any
31244         variable holding a regular expression.
31245         Replace "old" and "new" with "stmt" in variable names.
31246         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
31247         handled correctly.
31248         Format code more consistently.
31249
31250 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31251
31252         update-copyright-tests: improve portability
31253         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
31254         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
31255
31256 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31257
31258         update-copyright: support @copyright{} and &copy;
31259         * build-aux/update-copyright: Implement and document.
31260         * tests/test-update-copyright.sh: Test.
31261
31262 2009-08-04  Jim Meyering  <meyering@redhat.com>
31263
31264         update-copyright-tests: correctly test EOL=\r\n handling
31265         * tests/test-update-copyright.sh: Put \r at the end of some lines
31266         for the dos-eol tests.  Based on a patch by Joel E. Denny.
31267
31268         maint.mk: make update-copyright exclusion list more configurable
31269         * top/maint.mk (update-copyright): Default to excluding COPYING,
31270         but allow an override, in case someone does want to update that file.
31271
31272         maint.mk: don't update copyright date in COPYING
31273         * top/maint.mk (update-copyright): Exclude COPYING.
31274
31275         maint.mk: add a copyright-updating rule
31276         * top/maint.mk (update-copyright): New rule.
31277         Derived from coreutils/Makefile.am.
31278
31279         update-copyright: rename some variables
31280         * build-aux/update-copyright: Rename a few variables for clarity.
31281         Tweak syntax.  List Joel E. Denny as coauthor.
31282
31283 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31284
31285         update-copyright: fix bug for 2-digit last year and add tests
31286         * build-aux/update-copyright: Fix bug.
31287         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
31288         specified.
31289         * modules/update-copyright-tests: New
31290         * tests/test-update-copyright.sh: New.
31291
31292 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31293
31294         update-copyright: handle leading tabs in line prefix
31295         * build-aux/update-copyright: Count leading tabs as 8 spaces
31296         when computing margin.  This helps with the formatting of
31297         ChangeLogs, for example.
31298         Fix documentation a little.
31299
31300 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31301
31302         update-copyright: support EOL=\r\n
31303         * build-aux/update-copyright: Implement that.
31304
31305 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31306
31307         update-copyright: automatically format copyright statements
31308         * build-aux/update-copyright: Implement that.
31309         Also, be a little more predictable and safer by always failing
31310         when the full copyright format is not perfectly recognized as an
31311         unbroken whole.  Discussed at
31312         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
31313         Rewrite documentation.
31314
31315 2009-08-03  Bruno Haible  <bruno@clisp.org>
31316
31317         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
31318
31319 2009-08-02  Bruno Haible  <bruno@clisp.org>
31320
31321         Tests for module 'uname'.
31322         * modules/uname-tests: New file.
31323         * tests/test-uname.c: New file.
31324
31325         New module 'uname'.
31326         * lib/uname.c: New file.
31327         * m4/uname.m4: New file.
31328         * modules/uname: New file.
31329         * doc/posix-functions/uname.texi: Mention the new module.
31330
31331 2009-08-02  Bruno Haible  <bruno@clisp.org>
31332
31333         Tests for module 'sys_utsname'.
31334         * modules/sys_utsname-tests: New file.
31335         * tests/test-sys_utsname.c: New file.
31336
31337         New module 'sys_utsname'.
31338         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
31339         * m4/sys_utsname_h.m4: New file.
31340         * modules/sys_utsname: New file.
31341         * doc/posix-headers/sys_utsname.texi: Mention the new module.
31342
31343 2009-08-02  Bruno Haible  <bruno@clisp.org>
31344
31345         Implicitly initialize the sockets library.
31346         * lib/gethostname.c: Include sockets.h.
31347         (rpl_gethostname): Invoke gl_sockets_startup.
31348         * lib/socket.c: Include sockets.h.
31349         (rpl_socket): Invoke gl_sockets_startup.
31350         * modules/gethostname (Depends-on): Add sockets.
31351         * modules/socket (Depends-on): Likewise.
31352         * tests/test-poll.c: Don't include sockets.h.
31353         (main): Don't invoke gl_sockets_startup.
31354         * tests/test-select.c: Don't include sockets.h.
31355         (main): Don't invoke gl_sockets_startup.
31356
31357 2009-08-02  Bruno Haible  <bruno@clisp.org>
31358
31359         Allow multiple calls to gl_sockets_startup.
31360         * lib/sockets.c (initialized_sockets_version): New variable.
31361         (gl_sockets_startup): Do nothing if already called for this or a higher
31362         version.
31363         (gl_sockets_cleanup): Reset initialized_sockets_version.
31364
31365 2009-08-03  Simon Josefsson  <simon@josefsson.org>
31366
31367         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
31368         different project/version.
31369
31370 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
31371             Bruno Haible  <bruno@clisp.org>
31372
31373         Tests for module 'pipe-filter-gi'.
31374         * modules/pipe-filter-gi-tests: New file.
31375         * tests/test-pipe-filter-gi1.sh: New file.
31376         * tests/test-pipe-filter-gi1.c: New file.
31377         * tests/test-pipe-filter-gi2.sh: New file.
31378         * tests/test-pipe-filter-gi2-main.c: New file.
31379         * tests/test-pipe-filter-gi2-child.c: New file.
31380
31381         New module 'pipe-filter-gi'.
31382         * lib/pipe-filter-gi.c: New file.
31383         * modules/pipe-filter-gi: New file.
31384
31385 2009-08-02  Bruno Haible  <bruno@clisp.org>
31386             Paolo Bonzini  <bonzini@gnu.org>
31387
31388         Tests for module 'pipe-filter-ii'.
31389         * modules/pipe-filter-ii-tests: New file.
31390         * tests/test-pipe-filter-ii1.sh: New file.
31391         * tests/test-pipe-filter-ii1.c: New file.
31392         * tests/test-pipe-filter-ii2.sh: New file.
31393         * tests/test-pipe-filter-ii2-main.c: New file.
31394         * tests/test-pipe-filter-ii2-child.c: New file.
31395
31396         New module 'pipe-filter-ii'.
31397         * lib/pipe-filter.h: New file.
31398         * lib/pipe-filter-ii.c: New file.
31399         * lib/pipe-filter-aux.h: New file.
31400         * modules/pipe-filter-ii: New file.
31401
31402 2009-08-02  Simon Josefsson  <simon@josefsson.org>
31403
31404         * lib/gc-libgcrypt.c: Change copyright to FSF.
31405         * lib/gc-gnulib.c: Likewise.
31406
31407 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
31408
31409         * lib/gethostname.c: Include limits.h.
31410
31411 2009-08-02  Simon Josefsson  <simon@josefsson.org>
31412             Bruno Haible  <bruno@clisp.org>
31413
31414         Ensure HOST_NAME_MAX as part of the gethostname module.
31415         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
31416         define also HOST_NAME_MAX.
31417         * tests/test-gethostname.c: Include <limits.h>.
31418         (main): Check also HOST_NAME_MAX.
31419         * doc/posix-headers/limits.texi: Document the mingw problem.
31420
31421 2009-08-02  Bruno Haible  <bruno@clisp.org>
31422
31423         * lib/gethostname.c (gethostname): Fix handling of large len argument.
31424         Add comments.
31425
31426 2009-03-31  Simon Josefsson  <simon@josefsson.org>
31427
31428         * lib/gethostname.c: Add Windows wrapper.
31429         * m4/gethostname.m4: Look for gethostname in -lws2_32.
31430         * modules/gethostname: Depend on sys_socket & errno, for also
31431         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
31432         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
31433
31434 2009-07-31  Jim Meyering  <meyering@redhat.com>
31435
31436         getloadavg: fix symbol name in comment
31437         * lib/getloadavg.c: Correct a typo I introduced when adding
31438         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
31439         Matt Kraai spotted the problem.
31440
31441 2009-07-29  Matt Kraai  <mkraai@beckman.com>
31442
31443         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
31444         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
31445         code also if ! defined N_NAME_POINTER.
31446         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
31447         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
31448         but the n_name member is a 12-byte array.
31449
31450 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
31451
31452         update-copyright: generalize comment handling
31453         * build-aux/update-copyright: Handle copyright statements
31454         within more comment styles.
31455         Document usage.
31456         Report any file with an external copyright holder or parse failure.
31457
31458 2009-07-29  Jim Meyering  <meyering@redhat.com>
31459
31460         mktime: correct setting of REPLACE_MKTIME
31461         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
31462
31463         update-copyright: new module
31464         * modules/update-copyright: New file.
31465         * build-aux/update-copyright: New file.
31466         * MODULES.html.sh (maint+release support): Add update-copyright.
31467
31468 2009-07-27  Bruno Haible  <bruno@clisp.org>
31469
31470         Fix compilation error when <ctime> is used and mktime is replaced.
31471         * lib/time.in.h (mktime): New declaration.
31472         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
31473         REPLACE_MKTIME instead of defining mktime in config.h.
31474         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
31475         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
31476         Reported by Ross McFarland <rwmcfa1@neces.com>.
31477
31478 2009-07-27  Bruno Haible  <bruno@clisp.org>
31479
31480         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
31481         Reported by Matt Kraai <mkraai@beckman.com>.
31482
31483 2009-07-25  Jim Meyering  <meyering@redhat.com>
31484
31485         maint.mk: avoid warnings about missing files
31486         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
31487         diagnostic when .prev-version does not exist.
31488         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
31489         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
31490         nonexistent cfg.mk.
31491         Suggestions from Simon Josefsson.
31492
31493 2009-07-25  Bruno Haible  <bruno@clisp.org>
31494
31495         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
31496         defined as macros. Needed on QNX 6.4.1.
31497         Reported by Matt Kraai <mkraai@beckman.com>.
31498
31499 2009-07-23  Jim Meyering  <meyering@redhat.com>
31500
31501         maint.mk: invoke "make dist" with a working value of XZ_OPT
31502         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
31503
31504 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
31505
31506         Make fseeko.c compile on QNX.
31507         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
31508
31509 2009-07-22  Peter Simons  <simons@cryp.to>
31510
31511         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
31512         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
31513         * lib/md4.h: Likewise.
31514         * lib/md5.h: Likewise.
31515         * lib/sha1.h: Likewise.
31516         * lib/sha256.h: Likewise.
31517         * lib/sha512.h: Likewise.
31518
31519         tests-sha1: don't assign literal string to 'char *' variable
31520         * tests/test-sha1.c (main): Declare locals with "const" to match
31521         attributes of the right hand side.
31522
31523 2009-07-21  Eric Blake  <ebb9@byu.net>
31524
31525         dup2: fix more mingw problems
31526         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
31527         fd to itself.
31528         * doc/posix-functions/dup2.texi (dup2): Document the bug.
31529         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
31530         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
31531         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
31532         care of mingw bugs.
31533
31534 2009-07-21  Jim Meyering  <meyering@redhat.com>
31535
31536         vc-list-files: avoid failure when /bin/sh is dash
31537         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
31538         On some Debian based systems, /bin/sh is a symlink to dash, and running
31539         this command would omit the "/" following each 'tests' prefix:
31540           dash -x build-aux/vc-list-files -C . tests
31541         That is because bash and dash work differently:
31542           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
31543           bash ok
31544           dash odd
31545
31546 2009-07-21  Eric Blake  <ebb9@byu.net>
31547
31548         dup2-tests: test previous patch
31549         * modules/dup2-tests: New file.
31550         * tests/test-dup2.c: Likewise.
31551         * tests/test-open.c (main): Avoid unspecified behavior.
31552         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
31553         test.
31554
31555         dup2: work around mingw and cygwin 1.5 bug
31556         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
31557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31558         * modules/unistd (Makefile.am): Substitute it.
31559         * lib/unistd.in.h (dup2): Declare the replacement.
31560         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
31561         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
31562         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
31563         * modules/execute (Depends-on): Add dup2.
31564         * modules/fseterr (Depends-on): Likewise.
31565         * modules/pipe (Depends-on): Likewise.
31566         * modules/posix_spawn-internal (Depends-on): Likewise.
31567
31568 2009-07-21  Bruno Haible  <bruno@clisp.org>
31569
31570         * modules/.gitattributes: New file.
31571
31572 2009-07-20  Bruno Haible  <bruno@clisp.org>
31573
31574         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
31575         (main): Use it.
31576
31577 2009-07-20  Eric Blake  <ebb9@byu.net>
31578
31579         test-pipe: make a bit more robust.
31580         * tests/test-pipe.c (myerr): Allow error messages regardless of
31581         what we do to stderr.
31582         (test_pipe): Rearrange to avoid deadlock.
31583         (child_main): Try a larger read, to ensure we avoided deadlock.
31584         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
31585         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
31586         if misused.
31587
31588 2009-07-19  Jim Meyering  <meyering@redhat.com>
31589
31590         fts: avoid false-positive cycle-detection
31591         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
31592         for each new command line argument.
31593
31594 2009-07-19  Bruno Haible  <bruno@clisp.org>
31595
31596         Fix build error on mingw with the modules sys_select and unistd.
31597         * modules/acl-tests (Depends-on): Add close.
31598         * modules/binary-io-tests (Depends-on): Likewise.
31599         * modules/closein-tests (Depends-on): Likewise.
31600         * modules/flock-tests (Depends-on): Likewise.
31601         * modules/fsync-tests (Depends-on): Likewise.
31602         * modules/lseek-tests (Depends-on): Likewise.
31603         * modules/pipe-tests (Depends-on): Likewise.
31604         * modules/posix_spawn-tests (Depends-on): Likewise.
31605         * modules/posix_spawnp-tests (Depends-on): Likewise.
31606         * modules/stat-time-tests (Depends-on): Likewise.
31607         * modules/yesno-tests (Depends-on): Likewise.
31608
31609 2009-07-19  Bruno Haible  <bruno@clisp.org>
31610
31611         Unify conditionals.
31612         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
31613         macros, not at the compiler macros.
31614         * lib/pipe.c: Likewise.
31615         * lib/execute.c: Likewise.
31616         * lib/spawni.c: Likewise.
31617
31618 2009-07-19  Bruno Haible  <bruno@clisp.org>
31619
31620         Fix handling of closed stdin/stdout/stderr on mingw.
31621         * lib/w32spawn.h: Include unistd.h.
31622         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
31623         file descriptor with O_NOINHERIT flag.
31624         (fd_safer_noinherit): New function, based on fd-safer.c.
31625         (dup_safer_noinherit): New function, based on dup-safer.c.
31626         (undup_safer_noinherit): New function.
31627         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
31628         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
31629         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
31630         instead of fd_safer.
31631         * tests/test-pipe.c: Include <windows.h>.
31632         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
31633         result.
31634
31635         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
31636         from main.
31637         (test_pipe): Pass an extra argument for disambiguation.
31638         (main): Invoke parent_main or child_main.
31639
31640         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
31641         consistently.
31642
31643 2009-07-18  Eric Blake  <ebb9@byu.net>
31644
31645         test-pipe: fix mingw build
31646         * tests/test-pipe.c (main): Avoid fcntl on mingw.
31647
31648 2009-07-18  Bruno Haible  <bruno@clisp.org>
31649
31650         * modules/pipe-tests (Makefile.am): Fix typo.
31651
31652 2009-07-18  Eric Blake  <ebb9@byu.net>
31653
31654         error: fix mingw build
31655         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
31656         Reported by Bruno Haible.
31657
31658         error: avoid undefined use of stdout
31659         * lib/error.c (error, error_at_line): Check that fd 1 is open
31660         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
31661         is handling faults and the close_stdout module wants to report the
31662         detection of closed stdout as an error.
31663
31664 2009-07-17  Eric Blake  <ebb9@byu.net>
31665
31666         pipe: be robust in face of closed fds
31667         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
31668         should cause child to misbehave.
31669         * modules/pipe-tests: New module.
31670         * tests/test-pipe.c: New file.
31671         * tests/test-pipe.sh: New file.
31672         Reported by Akim Demaille.
31673
31674 2009-07-14  Bruno Haible  <bruno@clisp.org>
31675
31676         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
31677         Reported by anonymous kc.
31678
31679 2009-07-07  Jim Meyering  <meyering@redhat.com>
31680
31681         maint.mk: don't look for translatable strings in *.m4 or *.mk
31682         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
31683         when searching for translatable strings.
31684
31685 2009-07-05  Jim Meyering  <meyering@redhat.com>
31686
31687         remove superfluous parentheses in STREQ definition
31688         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
31689         * lib/getugroups.c (STREQ): Likewise.
31690         * lib/fnmatch.c (STREQ): Likewise.
31691         Spotted by Bruno Haible.
31692
31693 2009-07-04  Jim Meyering  <meyering@redhat.com>
31694
31695         argv-iter: new module
31696         * MODULES.html.sh: Add argv-iter.
31697         * lib/argv-iter.c, lib/argv-iter.h: New files.
31698         * modules/argv-iter: New file.
31699         * modules/argv-iter-tests: New file.
31700         * tests/test-argv-iter.c: Test it.
31701
31702 2009-07-04  Bruno Haible  <bruno@clisp.org>
31703
31704         Fix assertion.
31705         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
31706         contains more exact copies of a given entry than file2, leave the extra
31707         copies unpaired rather than aborting.
31708         Reported by Eric Blake.
31709
31710 2009-07-02  Bruno Haible  <bruno@clisp.org>
31711
31712         Speedup git-merge-changelog for git cherry-pick.
31713         * lib/git-merge-changelog.c (struct entries_mapping): New type.
31714         (entries_mapping_get): New function, extracted from compute_mapping.
31715         (entries_mapping_reverse_get): New function.
31716         (compute_mapping): Add a 'full' argument. Return the result in a
31717         'struct entries_mapping'.
31718         (main): Update. Access the mappings through entries_mapping_get.
31719         Reported by Eric Blake.
31720
31721 2009-07-02  Bruno Haible  <bruno@clisp.org>
31722
31723         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
31724         best_i.
31725
31726 2009-07-02  Bruno Haible  <bruno@clisp.org>
31727
31728         Speed up approximate search for matching ChangeLog entries.
31729         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
31730         argument. Call fstrcmp_bounded instead of fstrcmp.
31731         (compute_mapping, try_split_merged_entry, main): Update callers.
31732
31733 2009-07-02  Bruno Haible  <bruno@clisp.org>
31734
31735         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
31736
31737 2009-06-30  Bruno Haible  <bruno@clisp.org>
31738
31739         Reduce the number of uc_is_cased calls.
31740         * lib/unicase.h (casing_suffix_context_t): Add
31741         'first_char_except_ignorable' field.
31742         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
31743         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
31744         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
31745         Update initializer.
31746         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
31747         case-ignorable characters.
31748         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
31749         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
31750         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
31751         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
31752         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
31753
31754 2009-06-30  Bruno Haible  <bruno@clisp.org>
31755
31756         Tests for module 'unicase/ignorable'.
31757         * modules/unicase/ignorable-tests: New file.
31758         * tests/unicase/test-ignorable.c: New file, generated by
31759         gen-uni-tables.
31760
31761         Tests for module 'unicase/cased'.
31762         * modules/unicase/cased-tests: New file.
31763         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
31764         * tests/unicase/test-predicate-part1.h: New file, derived from
31765         tests/unictype/test-predicate-part1.h.
31766         * tests/unicase/test-predicate-part2.h: New file, same as
31767         tests/unictype/test-predicate-part2.h.
31768
31769         Fix evaluation of "Before C" condition of FINAL_SIGMA.
31770         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
31771         (output_casing_properties): New function.
31772         (main): Call it.
31773         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
31774         * lib/unicase/cased.c: Include unictype/bitmap.h.
31775         (uc_is_cased): Define through a bitmap lookup.
31776         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
31777         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
31778         (uc_is_case_ignorable): Define through a bitmap lookup.
31779         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
31780         lib/unictype/bitmap.h.
31781         (Depends-on): Add inline. Clean up.
31782         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
31783         lib/unictype/bitmap.h.
31784         (Depends-on): Add inline. Clean up.
31785         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
31786         recognition.
31787         * tests/unicase/test-u16-tolower.c (main): Likewise.
31788         * tests/unicase/test-u32-tolower.c (main): Likewise.
31789
31790 2009-06-30  Bruno Haible  <bruno@clisp.org>
31791
31792         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
31793         * lib/unicase/u16-casemap.c: Likewise.
31794         * lib/unicase/u32-casemap.c: Likewise.
31795
31796 2009-06-29  Bruno Haible  <bruno@clisp.org>
31797
31798         Define u32_casefold as a wrapper around u32_ct_casefold.
31799         * lib/unicase/u32-casefold.c: Update.
31800         * modules/unicase/u32-casefold (Depends-on): Add
31801         unicase/u32-ct-casefold, unicase/empty-prefix-context,
31802         unicase/empty-suffix-context. Clean up.
31803
31804         Define u16_casefold as a wrapper around u16_ct_casefold.
31805         * lib/unicase/u16-casefold.c: Update.
31806         * modules/unicase/u16-casefold (Depends-on): Add
31807         unicase/u16-ct-casefold, unicase/empty-prefix-context,
31808         unicase/empty-suffix-context. Clean up.
31809
31810         Define u8_casefold as a wrapper around u8_ct_casefold.
31811         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
31812         * lib/unicase/u8-casefold.c: Update.
31813         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
31814         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31815
31816         Define u32_totitle as a wrapper around u32_ct_totitle.
31817         * lib/unicase/u32-totitle.c: Update.
31818         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
31819         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31820
31821         Define u16_totitle as a wrapper around u16_ct_totitle.
31822         * lib/unicase/u16-totitle.c: Update.
31823         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
31824         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31825
31826         Define u8_totitle as a wrapper around u8_ct_totitle.
31827         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
31828         functions.
31829         (FUNC): Delegate to U_CT_TOTITLE.
31830         * lib/unicase/u8-totitle.c: Update.
31831         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
31832         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31833
31834         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
31835         invocation.
31836         * modules/unicase/u32-tolower (Depends-on): Add
31837         unicase/empty-prefix-context, unicase/empty-suffix-context.
31838
31839         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
31840         invocation.
31841         * modules/unicase/u16-tolower (Depends-on): Add
31842         unicase/empty-prefix-context, unicase/empty-suffix-context.
31843
31844         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
31845         * modules/unicase/u8-tolower (Depends-on): Add
31846         unicase/empty-prefix-context, unicase/empty-suffix-context.
31847
31848         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
31849         invocation.
31850         * modules/unicase/u32-toupper (Depends-on): Add
31851         unicase/empty-prefix-context, unicase/empty-suffix-context.
31852
31853         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
31854         invocation.
31855         * modules/unicase/u16-toupper (Depends-on): Add
31856         unicase/empty-prefix-context, unicase/empty-suffix-context.
31857
31858         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
31859         * modules/unicase/u8-toupper (Depends-on): Add
31860         unicase/empty-prefix-context, unicase/empty-suffix-context.
31861
31862         New module 'unicase/u32-ct-casefold'.
31863         * lib/unicase/u32-ct-casefold.c: New file.
31864         * modules/unicase/u32-ct-casefold: New file.
31865
31866         New module 'unicase/u16-ct-casefold'.
31867         * lib/unicase/u16-ct-casefold.c: New file.
31868         * modules/unicase/u16-ct-casefold: New file.
31869
31870         New module 'unicase/u8-ct-casefold'.
31871         * lib/unicase/u8-ct-casefold.c: New file.
31872         * lib/unicase/u-ct-casefold.h: New file, derived from
31873         lib/unicase/u-casefold.h.
31874         * modules/unicase/u8-ct-casefold: New file.
31875
31876         New module 'unicase/u32-ct-totitle'.
31877         * lib/unicase/u32-ct-totitle.c: New file.
31878         * modules/unicase/u32-ct-totitle: New file.
31879
31880         New module 'unicase/u16-ct-totitle'.
31881         * lib/unicase/u16-ct-totitle.c: New file.
31882         * modules/unicase/u16-ct-totitle: New file.
31883
31884         New module 'unicase/u8-ct-totitle'.
31885         * lib/unicase/u8-ct-totitle.c: New file.
31886         * lib/unicase/u-ct-totitle.h: New file, derived from
31887         lib/unicase/u-totitle.h.
31888         * modules/unicase/u8-ct-totitle: New file.
31889
31890         New module 'unicase/u32-ct-tolower'.
31891         * lib/unicase/u32-ct-tolower.c: New file.
31892         * modules/unicase/u32-ct-tolower: New file.
31893
31894         New module 'unicase/u16-ct-tolower'.
31895         * lib/unicase/u16-ct-tolower.c: New file.
31896         * modules/unicase/u16-ct-tolower: New file.
31897
31898         New module 'unicase/u8-ct-tolower'.
31899         * lib/unicase/u8-ct-tolower.c: New file.
31900         * modules/unicase/u8-ct-tolower: New file.
31901
31902         New module 'unicase/u32-ct-toupper'.
31903         * lib/unicase/u32-ct-toupper.c: New file.
31904         * modules/unicase/u32-ct-toupper: New file.
31905
31906         New module 'unicase/u16-ct-toupper'.
31907         * lib/unicase/u16-ct-toupper.c: New file.
31908         * modules/unicase/u16-ct-toupper: New file.
31909
31910         New module 'unicase/u8-ct-toupper'.
31911         * lib/unicase/u8-ct-toupper.c: New file.
31912         * modules/unicase/u8-ct-toupper: New file.
31913
31914         Add context arguments to u*_casemap functions.
31915         * lib/unicase/unicasemap.h: Include unicase.h.
31916         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
31917         suffix_context arguments.
31918         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
31919         functions.
31920         (FUNC): Add prefix_context and suffix_context arguments. Use
31921         uc_is_cased and uc_is_case_ignorable.
31922         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
31923         * lib/unicase/u16-casemap.c: Likewise.
31924         * lib/unicase/u32-casemap.c: Likewise.
31925         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
31926         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
31927         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
31928         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
31929         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
31930         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
31931
31932         New module 'unicase/u32-suffix-context'.
31933         * lib/unicase/u32-suffix-context.c: New file.
31934         * modules/unicase/u32-suffix-context: New file.
31935
31936         New module 'unicase/u16-suffix-context'.
31937         * lib/unicase/u16-suffix-context.c: New file.
31938         * modules/unicase/u16-suffix-context: New file.
31939
31940         New module 'unicase/u8-suffix-context'.
31941         * lib/unicase/u8-suffix-context.c: New file.
31942         * lib/unicase/u-suffix-context.h: New file.
31943         * modules/unicase/u8-suffix-context: New file.
31944
31945         New module 'unicase/empty-suffix-context'.
31946         * lib/unicase/empty-suffix-context.c: New file.
31947         * modules/unicase/empty-suffix-context: New file.
31948
31949         New module 'unicase/u32-prefix-context'.
31950         * lib/unicase/u32-prefix-context.c: New file.
31951         * modules/unicase/u32-prefix-context: New file.
31952
31953         New module 'unicase/u16-prefix-context'.
31954         * lib/unicase/u16-prefix-context.c: New file.
31955         * modules/unicase/u16-prefix-context: New file.
31956
31957         New module 'unicase/u8-prefix-context'.
31958         * lib/unicase/u8-prefix-context.c: New file.
31959         * lib/unicase/u-prefix-context.h: New file.
31960         * lib/unicase/context.h: New file.
31961         * modules/unicase/u8-prefix-context: New file.
31962
31963         New module 'unicase/empty-prefix-context'.
31964         * lib/unicase/empty-prefix-context.c: New file.
31965         * modules/unicase/empty-prefix-context: New file.
31966
31967         New module 'unicase/ignorable'.
31968         * lib/unicase/ignorable.c: New file.
31969         * modules/unicase/ignorable: New file.
31970
31971         New module 'unicase/cased'.
31972         * lib/unicase/caseprop.h: New file.
31973         * lib/unicase/cased.c: New file.
31974         * modules/unicase/cased: New file.
31975
31976         New functions for case mapping of substrings.
31977         * lib/unicase.h (casing_prefix_context_t): New type.
31978         (unicase_empty_prefix_context): New variable.
31979         (u8_casing_prefix_context, u16_casing_prefix_context,
31980         u32_casing_prefix_context, u8_casing_prefixes_context,
31981         u16_casing_prefixes_context, u32_casing_prefixes_context): New
31982         declarations.
31983         (casing_suffix_context_t): New type.
31984         (unicase_empty_suffix_context): New variable.
31985         (u8_casing_suffix_context, u16_casing_suffix_context,
31986         u32_casing_suffix_context, u8_casing_suffixes_context,
31987         u16_casing_suffixes_context, u32_casing_suffixes_context,
31988         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
31989         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
31990         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
31991         declarations.
31992
31993 2009-06-28  Jim Meyering  <meyering@redhat.com>
31994
31995         boostrap: indent only with spaces
31996         * build-aux/bootstrap: Indent only with spaces, never TABs.
31997
31998         bootstrap: split long lines
31999         * build-aux/bootstrap: Keep line length < 80.
32000
32001         bootstrap: sync from coreutils
32002         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
32003         just as autoreconf does.  Verify a list of prerequisite
32004         package-name,version-number pairs if defined in bootstrap.conf.
32005         Refer to README-prereq, if prerequisites are not satisfied.
32006
32007 2009-06-27  Eric Blake  <ebb9@byu.net>
32008
32009         tests: add test for bogus NULL definition
32010         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
32011         * tests/test-stdlib.c: Likewise.
32012         * tests/test-string.c: Likewise.
32013         * tests/test-locale.c: Likewise.
32014         * tests/test-unistd.c: Likewise.
32015         * modules/stdio-tests (Depends-on): Add verify.
32016         * modules/stdlib-tests (Depends-on): Likewise.
32017         * modules/string-tests (Depends-on): Likewise.
32018         * modules/locale-tests (Depends-on): Likewise.
32019         * modules/unistd-tests (Depends-on): Likewise.
32020
32021 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
32022
32023         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
32024         self-explaining comment.
32025         * m4/selinux-selinux-h: Update serial.
32026         (gl_LIBSELINUX): New macro, adding a warning for missing development
32027         packages to code extracted from...
32028         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
32029         Add warning for missing development packages here, too.
32030
32031 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
32032
32033         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
32034
32035 2009-06-25  Eric Blake  <ebb9@byu.net>
32036
32037         version-etc: fix regression
32038         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
32039         gcc.
32040         (version_etc): Use it, to catch bugs with trailing NULL.
32041         * lib/version-etc.c (version_etc_arn): Delete unused argument.
32042         (version_etc_va): Fix logic bug.
32043         * modules/version-etc-tests: Add test.
32044         * tests/test-version-etc.c: New file.
32045         * tests/test-version-etc.sh: Likewise.
32046
32047 2009-06-25  Sam Steingold  <sds@gnu.org>
32048
32049         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
32050         mbtowc declaration.
32051
32052 2009-06-25  Eric Blake  <ebb9@byu.net>
32053
32054         fpurge: migrate into <stdio.h>
32055         * lib/fpurge.h: Delete...
32056         * lib/stdio.in.h (fpurge): ...and declare here, instead.
32057         * lib/fpurge.c (fpurge): Change declaring header.
32058         * modules/fpurge (Files): Drop deleted file.
32059         (Depends-on): Add stdio.
32060         (configure.ac): Set witness.
32061         * modules/stdio (Makefile.am): Support fpurge macros.
32062         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32063         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
32064         * lib/fflush.c: Update client.
32065         * tests/test-fpurge.c: Likewise.
32066         * NEWS: Mention the change.
32067
32068 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32069
32070         * lib/argp-version-etc.c (program_authors): Add const
32071         qualifier.
32072         * lib/version-etc.c: Fix typos in the comments.
32073         * modules/argp-version-etc: Depends on version-etc.
32074
32075 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32076
32077         argp-version-etc: new module.
32078
32079         * lib/argp-version-etc.c: New file.
32080         * lib/argp-version-etc.h: New file.
32081         * modules/argp-version-etc: New file.
32082         * modules/argp-version-etc-tests: New file.
32083         * tests/test-argp-version-etc.c: New test.
32084         * tests/test-argp-version-etc-1.sh: New test.
32085
32086 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32087
32088         Provide additional interfaces and documentation for version-etc
32089         module.
32090
32091         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
32092         interfaces.
32093         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
32094         prototypes.
32095
32096 2009-06-24  Bruno Haible  <bruno@clisp.org>
32097
32098         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
32099         HAVE_LIB${NAME} macro.
32100         Reported by Sam Steingold <sds@gnu.org>.
32101
32102 2009-06-23  Simon Josefsson  <simon@josefsson.org>
32103
32104         * modules/hash-tests (test_hash_LDADD): Link to libintl when
32105         needed.
32106
32107 2009-06-21  Bruno Haible  <bruno@clisp.org>
32108
32109         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
32110         work.
32111         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
32112         together with LIB${NAME}, LTLIB${NAME}.
32113         Reported by Sam Steingold <sds@gnu.org>.
32114
32115 2009-06-20  Jim Meyering  <meyering@redhat.com>
32116
32117         tests: make sc_require_test_exit_idiom more generic
32118         * top/maint.mk (Exit_witness_file): New overridable variable.
32119         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
32120         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
32121
32122 2009-06-19  Jim Meyering  <meyering@redhat.com>
32123
32124         hash: reverse order of src/dst parameters in an internal interface
32125         * lib/hash.c (transfer_entries): Reverse order of parameters to
32126         put DST before SRC.  Adjust callers.
32127
32128         tests: test-hash: avoid wholesale duplication
32129         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
32130         Instead, use a loop and add a single conditional.
32131
32132         tests: test-hash: allow seed selection via a command line argument
32133         * tests/test-hash.c (get_seed): New function.
32134         (main): Use it.
32135
32136 2009-06-19  Eric Blake  <ebb9@byu.net>
32137
32138         hash: avoid memory leak on allocation failure
32139         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
32140         failure.  Factor repeated algorithm...
32141         (transfer_entries): ...into new helper routine.
32142         (hash_delete): React to hash_rehash return value.
32143
32144         hash: reduce memory pressure in hash_rehash no-op case
32145         * lib/hash.c (next_prime): Avoid overflow.
32146         (hash_initialize): Factor bucket size computation...
32147         (compute_bucket_size): ...into new helper function.
32148         (hash_rehash): Use new function and open coding to reduce memory
32149         pressure, and avoid a memory leak in USE_OBSTACK code.
32150         Reported by Jim Meyering.
32151
32152 2009-06-18  Eric Blake  <ebb9@byu.net>
32153
32154         hash: make rotation more obvious
32155         * modules/hash (Depends-on): Add bitrotate and stdint.
32156         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
32157         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
32158         (SIZE_MAX): Rely on headers for definition.
32159         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
32160         (raw_hasher): Use rotr_sz.
32161         Suggested by Jim Meyering.
32162
32163         hash: fix memory leak in last patch
32164         * lib/hash.c (hash_rehash): Avoid memory leak.
32165
32166         hash: avoid no-op rehashing
32167         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
32168
32169         hash: provide default callback functions
32170         * lib/hash.c (raw_hasher, raw_comparator): New functions.
32171         (hash_initialize): Use them as defaults.
32172         * tests/test-hash.c (main): Test this.
32173
32174         hash: minor optimization
32175         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
32176         when possible.
32177         (hash_initialize): Document this promise.
32178         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
32179         * tests/test-hash.c (hash_compare_strings): Test this.
32180
32181 2009-06-18  Bruno Haible  <bruno@clisp.org>
32182
32183         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
32184         going to be replaced anyway.
32185
32186 2009-06-18  Bruno Haible  <bruno@clisp.org>
32187
32188         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
32189         in one place.
32190         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
32191         be replaced anyway.
32192
32193 2009-06-18  Eric Blake  <ebb9@byu.net>
32194
32195         hash: check for resize before insertion
32196         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
32197         threshold before insertion, so that a pathological hash_rehash
32198         that fills every bucket can still trigger another rehash.
32199
32200 2009-06-18  Jim Meyering  <meyering@redhat.com>
32201
32202         hash-tests: add a loop around the small tests
32203         * tests/test-hash.c (main): Repeat small tests with selected
32204         small initial table sizes.
32205
32206 2009-06-17  Eric Blake  <ebb9@byu.net>
32207
32208         hash: minor cleanups
32209         * lib/hash.h (hash_entry): Make opaque, by moving...
32210         * lib/hash.c (hash_entry): ...here.
32211         (hash_insert): Clarify restrictions on what can be inserted.
32212         (hash_get_next): Clarify when it is safe to remove an element
32213         during traversal.
32214         (check_tuning): Skip verification when tuning is known safe.
32215         (hash_initialize): Clarify restrictions on tuning.
32216
32217 2009-06-17  Jim Meyering  <jim@meyering.net>
32218         and Eric Blake  <ebb9@byu.net>
32219
32220         hash-tests: new module
32221         * modules/hash-tests: New file.
32222         * tests/test-hash.c: New file.
32223
32224 2009-06-17  Eric Blake  <ebb9@byu.net>
32225
32226         strstr-simple: document new module
32227         * MODULES.html.sh: Document new module.
32228
32229         strstr, strcasestr: replace on platforms with broken memchr
32230         * modules/strstr: Split into...
32231         * modules/strstr-simple: ...new module that does not care about
32232         performance, but does care about glibc bug.
32233         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
32234         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
32235         if platform memchr is broken, per Debian bug 521737.
32236         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
32237         memchr.
32238         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
32239         * doc/posix-functions/strstr.texi (strstr): Document the fix.
32240         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
32241         * modules/mountlist (Depends-on): Add strstr-simple.
32242         * modules/gen-uni-tables (Depends-on): Likewise.
32243         * modules/argz (Depends-on): Add strstr.
32244
32245 2009-06-17  Bruno Haible  <bruno@clisp.org>
32246
32247         * modules/posix_spawn-internal (Depends-on): Add errno.
32248
32249 2009-06-17  Bruno Haible  <bruno@clisp.org>
32250
32251         Define missing ESTALE on Interix 3.5.
32252         * lib/errno.in.h (ESTALE): Assign a value if missing.
32253         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
32254         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
32255         missing.
32256         * doc/posix-headers/errno.texi: Mention the Interix bug.
32257         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
32258
32259 2009-06-15  Eric Blake  <ebb9@byu.net>
32260
32261         memchr, memchr2: add valgrind exception
32262         * lib/memchr.valgrind: New file.
32263         * lib/memchr2.valgrind: New file.
32264         * modules/memchr (Files): Distribute valgrind file.
32265         * modules/memchr2 (Files): Likewise.
32266
32267         docs: memchr is no longer obsolete
32268         * MODULES.html.sh: Move memchr from obsolete to string.h section.
32269         * lib/string.in.h (memchr): Simplify logic.
32270
32271 2009-06-14  Jim Meyering  <meyering@redhat.com>
32272
32273         link-follow: fix the "checking..." message to not mention trailing slash
32274         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
32275         never considered trailing slashes.
32276
32277 2009-06-14  Bruno Haible  <bruno@clisp.org>
32278
32279         * m4/memchr.m4: Mention also the bug on IA-64.
32280         * doc/posix-functions/memchr.texi: Likewise.
32281
32282 2009-06-12  Eric Blake  <ebb9@byu.net>
32283
32284         memchr: detect broken x86_64 and alpha implementations
32285         * modules/memchr-tests (Depends-on): Move mmap detection...
32286         * modules/memchr (Depends-on): ...here.
32287         (configure.ac): Set indicator.
32288         * lib/string.in.h (memchr): Declare replacement.
32289         * modules/string (Makefile.am): Trigger replacement.
32290         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32291         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
32292         bugs.
32293         * doc/posix-functions/memchr.texi (memchr): Document the bug.
32294         * modules/getpagesize (License): Relax license.
32295
32296 2009-06-11  Bruno Haible  <bruno@clisp.org>
32297
32298         * lib/idpriv.h: Add more references.
32299
32300 2009-06-08  Bruno Haible  <bruno@clisp.org>
32301
32302         Tests for module 'idpriv-droptemp'.
32303         * modules/idpriv-droptemp-tests: New file.
32304         * tests/test-idpriv-droptemp.sh: New file.
32305         * tests/test-idpriv-droptemp.su.sh: New file.
32306         * tests/test-idpriv-droptemp.c: New file.
32307
32308         New module 'idpriv-droptemp'.
32309         * lib/idpriv-droptemp.c: New file.
32310         * modules/idpriv-droptemp: New file.
32311
32312 2009-06-08  Bruno Haible  <bruno@clisp.org>
32313
32314         Tests for module 'idpriv-drop'.
32315         * modules/idpriv-drop-tests: New file.
32316         * tests/test-idpriv-drop.sh: New file.
32317         * tests/test-idpriv-drop.su.sh: New file.
32318         * tests/test-idpriv-drop.c: New file.
32319
32320         New module 'idpriv-drop'.
32321         * lib/idpriv.h: New file.
32322         * lib-idpriv-drop.c: New file.
32323         * m4/idpriv.m4: New file.
32324         * modules/idpriv-drop: New file.
32325
32326 2009-06-08  Bruno Haible  <bruno@clisp.org>
32327
32328         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
32329         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32330         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32331         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32332         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32333         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32334         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32335
32336 2009-06-08  Eric Blake  <ebb9@byu.net>
32337
32338         test-strstr: use memory fence, when possible
32339         * tests/test-strstr.c (main): Use memory fence, in order to be
32340         more likely to trigger Debian bug 521737.
32341         * modules/strstr-tests (Files): Pull in additional files.
32342
32343         memchr: no longer obsolete, for wider field testing
32344         * modules/memchr (Status, Notice): Delete, this module is no
32345         longer obsolete.
32346         * modules/vasnprintf (Depends-on): Add memchr.
32347
32348 2009-06-07  Jim Meyering  <meyering@redhat.com>
32349
32350         hash: declare some functions with the warn_unused_result attribute
32351         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
32352
32353 2009-06-07  Bruno Haible  <bruno@clisp.org>
32354
32355         * tests/test-alignof.c: Don't test int64_t if it does not exist.
32356         Reported by Eric Blake.
32357
32358 2009-06-06  Eric Blake  <ebb9@byu.net>
32359
32360         test-alignof: fix typo with long double
32361         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
32362         compiler error.
32363
32364 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
32365
32366         Escape non-texinfo { and }s.
32367         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
32368         markup error.
32369
32370 2009-06-04  Jim Meyering  <meyering@redhat.com>
32371
32372         gitlog-to-changelog: don't infloop on an empty commit log
32373         * build-aux/gitlog-to-changelog: Warn about an empty log message.
32374         Reported by Boris Petersen <transacid@centerim.org>.
32375
32376 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
32377
32378         version-etc: extend for packagers
32379         Add three new configure options, intended for packagers:
32380           --with-packager="packager name"
32381           --with-packager-version="packager-specific version"
32382           --with-packager-bug-reports="packager bug reporting"
32383         An example with coreutils:
32384           $ ./configure \
32385             --with-packager=Gentoo \
32386             --with-packager-bug-report=http://bugs.gentoo.org/ \
32387             --with-packager-version="patchset 1.6"
32388           $ ./src/ls --version | head -n2
32389           ls (GNU coreutils) 7.1-dirty
32390           Packaged by Gentoo (patchset 1.6)
32391         Note that the bug reporting info via --help doesn't show up because
32392         coreutils uses its own custom emit_bug_reporting_address() implementation
32393         in src/system.h.  If it didn't, it'd look like:
32394           $ ./src/ls --help | tail -n4
32395           Report bugs to <bug-coreutils@gnu.org>.
32396           Report Gentoo bugs to <http://bugs.gentoo.org/>.
32397           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
32398           General help using GNU software: <http://www.gnu.org/gethelp/>.
32399         * lib/version-etc.c: Print new information, if provided.
32400         * m4/version-etc.m4: New file.
32401         * modules/version-etc (Files): Add m4/version-etc.m4.
32402         (configure.ac): Add gl_VERSION_ETC.
32403
32404 2009-05-31  Bruno Haible  <bruno@clisp.org>
32405
32406         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
32407         and 'int64_t'.
32408         * modules/alignof-tests (Dependencies): Add stdint.
32409         Reported by Eric Blake.
32410
32411 2009-05-31  Bruno Haible  <bruno@clisp.org>
32412
32413         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
32414         restriction due to compiler bugs.
32415         Reported by Eric Blake.
32416
32417 2009-05-31  Simon Josefsson  <simon@josefsson.org>
32418             Bruno Haible  <bruno@clisp.org>
32419
32420         Fix test-alignof failure.
32421         * lib/alignof.h (alignof_slot): New macro.
32422         (alignof_type): New macro, with the same semantics as the previous
32423         'alignof'.
32424         (alignof): Alias to alignof_slot.
32425         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
32426         check that the results are usable as constant expressions.
32427
32428 2009-05-31  Bruno Haible  <bruno@clisp.org>
32429
32430         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
32431         * tests/test-memchr.c (main): Check that memchr does not read past the
32432         first occurrence of the byte.
32433         * tests/test-strstr.c (main): Update comment.
32434         Suggested by Eric Blake.
32435
32436 2009-05-30  Bruno Haible  <bruno@clisp.org>
32437
32438         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
32439         detail how to use dumpbin.
32440         Reported by David Byron <dbyron@dbyron.com>.
32441
32442 2009-06-02  Simon Josefsson  <simon@josefsson.org>
32443
32444         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
32445
32446 2009-06-02  Simon Josefsson  <simon@josefsson.org>
32447
32448         * m4/manywarnings.m4: Add GCC 4.4 warnings.
32449
32450 2009-05-28  Bruno Haible  <bruno@clisp.org>
32451
32452         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
32453         build-aux/ files.
32454
32455 2009-05-28  Simon Josefsson  <simon@josefsson.org>
32456
32457         * gnulib-tool (func_import): Transform license on build-aux/ files too.
32458
32459 2009-05-27  Simon Josefsson  <simon@josefsson.org>
32460
32461         * gnulib-tool (sed_transform_main_lib_file)
32462         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
32463         regexps.
32464
32465 2009-05-26  Simon Josefsson  <simon@josefsson.org>
32466
32467         * tests/test-strstr.c: Add another self-test.
32468         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
32469         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
32470
32471 2009-05-23  Bruno Haible  <bruno@clisp.org>
32472
32473         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
32474         change.
32475
32476 2009-05-21  Bruno Haible  <bruno@clisp.org>
32477
32478         Simplify use of mode_t varargs.
32479         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
32480         uses 'mode_t' or 'int'.
32481         * lib/openat.c (openat): Likewise.
32482         * lib/open-safer.c (open_safer): Likewise.
32483         * m4/mode_t.m4: New file.
32484         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
32485         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
32486         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
32487         * modules/open (Files): Add m4/mode_t.m4.
32488         * modules/openat (Files): Likewise.
32489         * modules/fcntl-safer (Files): Likewise.
32490         Suggested by Eric Blake.
32491
32492 2009-05-21  Pádraig Brady  <P@draigbrady.com>
32493
32494         * doc/glibc-functions/fallocate.texi: New file.
32495         * doc/gnulib.texi: Include it.
32496
32497 2009-05-21  Eric Blake  <ebb9@byu.net>
32498             Bruno Haible  <bruno@clisp.org>
32499
32500         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
32501         invocations.
32502         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32503
32504 2009-05-21  Eric Blake  <ebb9@byu.net>
32505             Bruno Haible  <bruno@clisp.org>
32506
32507         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
32508         include_next. Fix of 2008-11-20 commit.
32509         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
32510         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
32511         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
32512         NEXT_MATH_H.
32513         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
32514         instead of NEXT_MATH_H.
32515
32516 2009-05-21  Bruno Haible  <bruno@clisp.org>
32517
32518         Avoid redefinition warnings for SIZE_MAX.
32519         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
32520         Reported by Simon Josefsson.
32521
32522 2009-05-21  Bruno Haible  <bruno@clisp.org>
32523
32524         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
32525         AC_CACHE_VAL.
32526
32527 2009-05-20  Bruno Haible  <bruno@clisp.org>
32528
32529         Make zeroptr.h work on mingw.
32530         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
32531         mprotect.
32532         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
32533         * modules/memchr2-tests (configure.ac): Likewise.
32534         * modules/memcmp-tests (configure.ac): Likewise.
32535         * modules/memmem-tests (configure.ac): Likewise.
32536         * modules/memrchr-tests (configure.ac): Likewise.
32537         Reported by Simon Josefsson.
32538
32539 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32540
32541         * tests/test-glob.c: Include string.h for strcmp prototype.
32542
32543 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32544
32545         * modules/getdelim (Depends-on): Add explicit stdint, although it
32546         was implicitly already pulled in via realloc-posix.
32547         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
32548
32549 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32550
32551         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
32552         G. Christensen" <tgc@jupiterrise.com>.
32553         * m4/sys_socket_h.m4: Check for sa_family_t.
32554         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
32555         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
32556         * tests/test-sys_socket.c: Check that sa_family_t works.
32557
32558 2009-05-18  Eric Blake  <ebb9@byu.net>
32559
32560         maint.mk: allow gnulib_dir in VPATH build
32561         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
32562
32563 2009-05-15  Jim Meyering  <meyering@redhat.com>
32564
32565         maint.mk: Give gnulib_dir a default definition.
32566         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
32567         Thus, most packages no longer need to specify this variable in cfg.mk
32568
32569 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
32570
32571         rename.m4: fix typos that would make non-mingw cross-configure fail
32572         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
32573
32574 2009-05-13  Eric Blake  <ebb9@byu.net>
32575
32576         mmap-anon: avoid out-of-order autoconf expansion
32577         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
32578         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
32579         * modules/memchr-tests (Depends-on): Add extensions.
32580         * modules/memchr2-tests (Depends-on): Add extensions.
32581         * modules/memcmp-tests (Depends-on): Add extensions.
32582         * modules/memmem-tests (Depends-on): Add extensions.
32583         * modules/memrchr-tests (Depends-on): Add extensions.
32584
32585 2009-05-13  Bruno Haible  <bruno@clisp.org>
32586
32587         Make some tests ISO C 99 compliant.
32588         * tests/zerosize-ptr.h: New file.
32589         * tests/test-memchr.c: Include zerosize-ptr.h.
32590         (main): Use a zero-size object pointer instead of NULL.
32591         * tests/test-memchr2.c: Include zerosize-ptr.h.
32592         (main): Use a zero-size object pointer instead of NULL.
32593         * tests/test-memcmp.c: Include zerosize-ptr.h.
32594         (main): Use a zero-size object pointer instead of NULL.
32595         * tests/test-memmem.c: Include zerosize-ptr.h.
32596         (main): Use a zero-size object pointer instead of NULL.
32597         * tests/test-memrchr.c: Include zerosize-ptr.h.
32598         (main): Use a zero-size object pointer instead of NULL.
32599         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
32600         m4/mmap-anon.m4.
32601         (Depends-on): Add getpagesize.
32602         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32603         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
32604         m4/mmap-anon.m4.
32605         (Depends-on): Add getpagesize.
32606         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32607         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
32608         m4/mmap-anon.m4.
32609         (Depends-on): Add getpagesize.
32610         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32611         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
32612         m4/mmap-anon.m4.
32613         (Depends-on): Add getpagesize.
32614         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32615         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
32616         m4/mmap-anon.m4.
32617         (Depends-on): Add getpagesize.
32618         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32619
32620 2009-05-12  Bruno Haible  <bruno@clisp.org>
32621
32622         Tests for module 'alignof'.
32623         * modules/alignof-tests: New file.
32624         * tests/test-alignof.c: New file.
32625
32626 2009-05-12  Bruno Haible  <bruno@clisp.org>
32627
32628         Fix alignof macro.
32629         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
32630         vendor compilers that are always correct.
32631
32632 2009-05-12  Bruno Haible  <bruno@clisp.org>
32633
32634         Make the MAP_ANONYMOUS detection work on HP-UX 11.
32635         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
32636         not whether its fully works.
32637
32638 2009-05-12  Bruno Haible  <bruno@clisp.org>
32639
32640         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
32641
32642 2009-05-12  Jim Meyering  <meyering@redhat.com>
32643
32644         * top/maint.mk: Adjust backslash alignment.
32645
32646 2009-05-11  Simon Josefsson  <simon@josefsson.org>
32647
32648         * top/maint.mk: Make $(srcdir)/build-aux configurable.
32649
32650 2009-05-11  Eric Blake  <ebb9@byu.net>
32651
32652         argp: avoid undefined behavior
32653         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
32654         macros.
32655
32656 2009-05-08  Simon Josefsson  <simon@josefsson.org>
32657
32658         * tests/test-vc-list-files-git.sh: Do git config of user.email and
32659         user.name to prevent git commit from complaining.
32660
32661 2009-05-10  Bruno Haible  <bruno@clisp.org>
32662
32663         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
32664         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
32665         it rewrites every file name only once.
32666         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
32667
32668 2009-05-08  Bruno Haible  <bruno@clisp.org>
32669
32670         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
32671         instead of 'max'.
32672
32673 2009-05-08  Simon Josefsson  <simon@josefsson.org>
32674
32675         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
32676         sockaddr_storage test.
32677
32678 2009-05-07  Simon Josefsson  <simon@josefsson.org>
32679
32680         * modules/sys_socket (Makefile.am): Substitute
32681         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
32682         * m4/sys_socket_h.m4: Check for sockaddr_storage.
32683         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
32684         * tests/test-sys_socket.c: Check sockaddr_storage.
32685
32686 2009-05-08  Bruno Haible  <bruno@clisp.org>
32687
32688         New module 'alignof'.
32689         * lib/alignof.h: New file.
32690         * modules/alignof: New file.
32691
32692 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32693             Bruno Haible  <bruno@clisp.org>
32694
32695         Fix test-file-has-acl on FreeBSD.
32696         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
32697         mask is implicitly added.
32698         * tests/test-file-has-acl.c: Include <signal.h>.
32699         (main): Terminate the test after 5 seconds.
32700         * modules/acl-tests (configure.ac): Check for alarm function.
32701
32702 2009-05-04  Bruno Haible  <bruno@clisp.org>
32703
32704         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
32705         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
32706         * modules/errno (configure.ac): Drop AC_REQUIRE.
32707         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
32708         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
32709
32710 2009-05-04  Simon Josefsson  <simon@josefsson.org>
32711
32712         * modules/glob-tests: New module.
32713         * tests/test-glob.c: Add.
32714
32715 2009-05-04  Simon Josefsson  <simon@josefsson.org>
32716
32717         * modules/fnmatch-tests: New module.
32718         * tests/test-fnmatch.c: Add.
32719
32720 2009-05-04  Eric Blake  <ebb9@byu.net>
32721
32722         maint: make the new no-submodule-changes rule VPATH-safe
32723         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
32724
32725 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32726             Bruno Haible  <bruno@clisp.org>
32727
32728         acl: Fix infinite loop on FreeBSD.
32729         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
32730         of return value from acl_get_entry.
32731         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
32732         Likewise.
32733
32734 2009-05-03  Bruno Haible  <bruno@clisp.org>
32735
32736         * lib/acl-internal.h (acl_entries): Clarify return value.
32737         * lib/acl_entries.c (acl_entries): Likewise.
32738
32739 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32740
32741         Bug fix in acl module.
32742         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
32743
32744 2009-05-03  Bruno Haible  <bruno@clisp.org>
32745
32746         Create gperf-generated file in the source dir, not in the build dir.
32747         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
32748         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
32749         * modules/unicase/locale-language (unicase/locale-languages.h):
32750         Likewise.
32751         * modules/unicase/special-casing (unicase/special-casing-table.h):
32752         Likewise.
32753         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
32754         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
32755         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
32756         Reported by Ralf Wildenhues.
32757
32758 2009-05-03  Bruno Haible  <bruno@clisp.org>
32759
32760         * modules/fnmatch (Description, configure.ac): Taken from
32761         fnmatch-posix.
32762         * modules/fnmatch-posix: Turn into a symbolic reference to the
32763         'fnmatch' module, and deprecate.
32764         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
32765
32766 2009-05-03  Bruno Haible  <bruno@clisp.org>
32767
32768         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
32769         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
32770         Reported by Ralf Wildenhues.
32771
32772 2009-05-04  Simon Josefsson  <simon@josefsson.org>
32773
32774         * m4/fnmatch.m4: Fix fnmatch re-define.
32775
32776 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32777
32778         priv-set: new module and tests; adapt write-any-file
32779         * lib/priv-set.c: New file.
32780         * lib/priv-set.h: New file.
32781         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
32782         * lib/write-any-file.c: Simplify by using priv-set module.
32783         * m4/priv-set.m4: New file.
32784         * modules/priv-set: New file.
32785         * modules/unlinkdir: Add dependency on priv-set module.
32786         * modules/write-any-file: Likewise.
32787
32788         Tests for module 'priv-set'.
32789         * modules/priv-set-tests: New file.
32790         * tests/test-priv-set.c: New file.
32791
32792 2009-05-03  Jim Meyering  <meyering@redhat.com>
32793             Bruno Haible  <bruno@clisp.org>
32794
32795         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
32796         use the converted UTF-8 variant of the name instead.
32797
32798 2009-05-03  Jim Meyering  <meyering@redhat.com>
32799
32800         tests: tighten some getdate tests
32801         * tests/test-getdate.c (main): Tighten tests: require equality,
32802         not just greater than.  Set TZ envvar to UTC0.
32803
32804 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
32805
32806         getdate: correctly interpret "next monday" when run on a Monday
32807         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
32808         that e.g., "next tues" (when run on a tuesday) results in a date
32809         that is one week in the future, and not today's date.
32810         I.e., add a week when the wday is the same as the current one.
32811         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
32812         and earlier by Martin Bernreuther and Jan Minář.
32813         * tests/test-getdate.c (main): Check that "next DAY" is always in
32814         the future and that "last DAY" is always in the past.
32815
32816 2009-05-02  Jim Meyering  <meyering@redhat.com>
32817
32818         build: ensure that a release build fails when a submodule is unclean
32819         * top/maint.mk (no-submodule-changes): New rule.
32820         (alpha beta major): Depend on it.
32821
32822 2009-05-02  Bruno Haible  <bruno@clisp.org>
32823
32824         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
32825         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
32826         shell variable gl_fnmatch_required to detect which variant is
32827         requested.
32828         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
32829         gl_FUNC_FNMATCH_POSIX.
32830         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
32831         exclude fnmatch-posix.
32832
32833 2009-05-02  Bruno Haible  <bruno@clisp.org>
32834
32835         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
32836         * modules/mbsrtowcs (License): Change to LGPLv2+.
32837         * modules/strnlen1 (License): Likewise.
32838         Reported by Simon Josefsson.
32839
32840 2009-05-02  Bruno Haible  <bruno@clisp.org>
32841
32842         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
32843         "cross".
32844         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
32845         gnulib-tool was called with option --source-base=lib.
32846
32847 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32848
32849         Use automake *-local hooks without commands, for extensibility.
32850         * modules/localcharset (Makefile.am): Rename install-exec-local
32851         rule to install-exec-localcharset, and make it a prerequisite of
32852         install-exec-local.  Likewise, rename the uninstall-local rule to
32853         uninstall-localcharset, and make it a prerequisite of the former.
32854
32855 2009-05-01  Bruno Haible  <bruno@clisp.org>
32856
32857         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
32858         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
32859         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
32860         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
32861         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
32862         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
32863         m4/locale-zh.m4, m4/codeset.m4.
32864
32865         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
32866         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
32867         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
32868         m4/locale-zh.m4.
32869
32870         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
32871         REPLACE_WCRTOMB if mbstate_t must be replaced.
32872         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
32873         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
32874
32875 2009-05-01  Bruno Haible  <bruno@clisp.org>
32876
32877         Avoid compiler warnings when redefining macros defined by <libintl.h>.
32878         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
32879         dngettext, dcngettext, textdomain, bindtextdomain,
32880         bind_textdomain_codeset): Undefine before redefining.
32881
32882 2009-04-30  Bruno Haible  <bruno@clisp.org>
32883
32884         Fix bug introduced on 2009-04-25.
32885         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
32886         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
32887         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
32888         is defined.
32889         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
32890         is defined.
32891         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
32892         is defined.
32893         Reported by Elbert_Pol <elbert.pol@gmail.com>.
32894
32895 2009-04-28  Bruno Haible  <bruno@clisp.org>
32896
32897         Comment tweaks.
32898         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
32899         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
32900         * lib/unicase.h (u*_casexfrm): Likewise.
32901         Reported by Paolo Bonzini.
32902
32903 2009-04-28  Bruno Haible  <bruno@clisp.org>
32904
32905         Fix a compilation error.
32906         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
32907         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
32908         Reported by Jim Meyering.
32909
32910 2009-04-27  Bruno Haible  <bruno@clisp.org>
32911
32912         New module 'libunistring'.
32913         * modules/libunistring: New file.
32914         * m4/libunistring.m4: New file.
32915         * MODULES.html.sh (Unicode string functions): Add it.
32916
32917 2009-04-27  Eric Blake  <ebb9@byu.net>
32918
32919         maint.mk: allow package-specific header to provide <config.h>
32920         * top/maint.mk (sc_require_config_h): New variable.
32921         (sc_require_config_h, sc_require_config_h_first): Use it.
32922
32923 2009-04-27  Simon Josefsson  <simon@josefsson.org>
32924
32925         * top/maint.mk (sc_avoid_if_before_free): Except
32926         useless-if-before-free script.
32927
32928 2009-04-27  Eric Blake  <ebb9@byu.net>
32929
32930         maintainer-makefile: depend on all required helper scripts
32931         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
32932         useless-if-before-free.
32933         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
32934         version, rather than assuming gnulib checkout is available.
32935         Reported by Simen Josefsson.
32936
32937 2009-04-26  Bruno Haible  <bruno@clisp.org>
32938
32939         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
32940         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
32941         "../" or "..".
32942
32943 2009-04-26  Bruno Haible  <bruno@clisp.org>
32944
32945         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
32946         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
32947         AC_LIB_HAVE_LINKFLAGS.
32948
32949 2009-04-26  Bruno Haible  <bruno@clisp.org>
32950
32951         Simplify calling convention of u*_conv_from_encoding.
32952         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
32953         u32_conv_from_encoding): Expect a resultbuf argument and return the
32954         result directly as a pointer.
32955         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
32956         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
32957         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
32958         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
32959         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
32960         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
32961         Update.
32962         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
32963         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
32964         * lib/vasnprintf.c (VASNPRINTF): Update.
32965         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
32966         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
32967         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
32968         * NEWS: Mention the change.
32969
32970 2009-04-26  Bruno Haible  <bruno@clisp.org>
32971
32972         Simplify calling convention of u*_conv_to_encoding.
32973         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
32974         u32_conv_to_encoding): Expect a resultbuf argument and return the
32975         result directly as a pointer.
32976         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
32977         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
32978         freeing scaled_offsets if mem_iconveha failed.
32979         * lib/unicase/u-casexfrm.h (FUNC): Update.
32980         * lib/uninorm/u-normxfrm.h (FUNC): Update.
32981         * lib/vasnprintf.c (VASNPRINTF): Update.
32982         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
32983         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
32984         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
32985         * NEWS: Mention the change.
32986
32987 2009-04-26  Bruno Haible  <bruno@clisp.org>
32988
32989         Avoid test failures on AIX and OSF/1.
32990         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
32991         malloc(0).
32992         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
32993         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
32994         Likewise.
32995         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
32996         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
32997         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
32998         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
32999         * doc/posix-functions/malloc.texi: Document the portability problem
33000         related to malloc(0).
33001
33002 2009-04-26  Bruno Haible  <bruno@clisp.org>
33003
33004         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
33005         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
33006         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
33007
33008 2009-04-25  Bruno Haible  <bruno@clisp.org>
33009
33010         Avoid link error when creating a namespace clean library.
33011         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
33012         as macro with arguments if already defined as an alias.
33013         * lib/signbitf.c (gl_signbitf): Don't undefine.
33014         * lib/signbitd.c (gl_signbitd): Don't undefine.
33015         * lib/signbitl.c (gl_signbitl): Don't undefine.
33016
33017 2009-04-25  Jim Meyering  <meyering@redhat.com>
33018
33019         vc-list-files: fix another quoting bug
33020         * build-aux/vc-list-files: Avoid sed backslash expansion
33021         of pathological directory names.
33022
33023 2009-04-25  Eric Blake  <ebb9@byu.net>
33024
33025         vc-list-files: fix shell quoting error
33026         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
33027         timestamp.
33028
33029 2009-04-25  Jim Meyering  <meyering@redhat.com>
33030
33031         vc-list-files: restore lost functionality with subdir argument
33032         * build-aux/vc-list-files: When given a non-"." sub-directory
33033         argument, substitute the $dir/ prefix back onto each resulting name.
33034         Otherwise, coreutils' root_tests check would fail.
33035
33036 2009-04-24  Eric Blake  <ebb9@byu.net>
33037
33038         vc-list-files: ignore git symlinks
33039         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
33040         than ls-files, to ignore git symlinks.
33041
33042         maint.mk: import improvements from m4
33043         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
33044         (move_if_change): Delete unused macro.
33045         (news-date-check, vc-diff-check): Support VPATH builds.
33046         (announcement): Likewise.  Split --bootstrap-tools list...
33047         (boostrap-tools): ...into separate list, which can be overridden
33048         in cfg.mk.
33049         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
33050         requiring dependency on useless-if-before-free module.
33051         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
33052         Support VPATH builds.
33053
33054 2009-04-24  Jim Meyering  <meyering@redhat.com>
33055
33056         maint.mk: remove coreutils-specific rules and variables
33057         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
33058         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
33059         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
33060
33061         maint.mk: remove obsolete rule
33062         * top/maint.mk (rel-check): Remove rule.
33063         (WGET, WGETFLAGS): Remove now-unused variables.
33064
33065 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33066
33067         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
33068         consistency.
33069
33070         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
33071         '$(PATH_SEPARATOR)' instead of ':'.
33072
33073 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33074
33075         * lib/getopt1.c (main): Use 'const' for static array.
33076
33077 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33078
33079         * top/maint.mk: Sync with coreutils.
33080         * NEWS: Explain incompatibilities.
33081
33082 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33083             Bruno Haible  <bruno@clisp.org>
33084
33085         Fix cross-compilation results.
33086         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
33087         statement, as third argument of AC_TRY_RUN.
33088         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
33089         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
33090         Likewise.
33091         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
33092         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
33093         Likewise.
33094         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
33095         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
33096         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
33097
33098 2009-04-20  Bruno Haible  <bruno@clisp.org>
33099
33100         Avoid test failure on mingw.
33101         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
33102
33103 2009-04-20  Bruno Haible  <bruno@clisp.org>
33104
33105         Avoid compilation error on mingw.
33106         * modules/localename-tests (Depends-on): Add locale.
33107
33108 2009-04-19  Bruno Haible  <bruno@clisp.org>
33109
33110         Support for building a shared library on Windows platforms.
33111         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
33112         (main): Test the presence of UNINORM_NFC here.
33113         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
33114         (main): Test the presence of UNINORM_NFD here.
33115         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
33116         (main): Test the presence of UNINORM_NFKC here.
33117         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
33118         (main): Test the presence of UNINORM_NFKD here.
33119
33120 2009-04-19  Bruno Haible  <bruno@clisp.org>
33121
33122         Avoid a compiler warning.
33123         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
33124         Change type of variable 'sequence'.
33125
33126 2009-04-19  Bruno Haible  <bruno@clisp.org>
33127
33128         * modules/configmake (Makefile.am): When the contents of configmake.h
33129         does not change, arrange to preserve its modification time.
33130
33131 2009-04-17  Simon Josefsson  <simon@josefsson.org>
33132
33133         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
33134         gettext domain.
33135
33136 2009-04-16  Jim Meyering  <meyering@redhat.com>
33137
33138         useless-if-before-free: improve conversion code
33139         * build-aux/useless-if-before-free: Adjust code-in-comment to match
33140         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
33141
33142 2009-04-14  Bruno Haible  <bruno@clisp.org>
33143
33144         * modules/fcntl (Depends-on): Add extensions.
33145         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
33146
33147 2009-04-12  Ben Pfaff  <blp@gnu.org>
33148
33149         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
33150         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
33151
33152 2009-03-20  Ben Pfaff  <blp@gnu.org>
33153
33154         Make rename replace existing destinations on Windows.
33155         * m4/rename.m4: Add test for Mingw.
33156         * lib/rename.c: Add rename replacement that uses MoveFileEx with
33157         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
33158         * doc/posix-functions/rename.texi: Document.
33159
33160 2009-04-10  Bruno Haible  <bruno@clisp.org>
33161
33162         New include file "iconveh.h".
33163         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
33164         * lib/striconveh.h: Include it.
33165         (enum iconv_ilseq_handler): Remove definition.
33166         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
33167         striconveh.h.
33168         * lib/striconveha.c: Include striconveh.h.
33169         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
33170         * modules/striconveh (Files): Add lib/iconveh.h.
33171         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
33172         lib/striconveh.h.
33173
33174 2009-04-10  Bruno Haible  <bruno@clisp.org>
33175
33176         * lib/uniconv.h: Update comment.
33177
33178 2009-04-10  Bruno Haible  <bruno@clisp.org>
33179
33180         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
33181         always.
33182         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
33183         * lib/unistr/u16-mbtouc-aux.c: Likewise.
33184         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
33185         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
33186         "unistring-notinline.h", so that the function gets defined always.
33187         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
33188         * lib/unistr/u8-uctomb.c: Likewise.
33189         * lib/unistr/u16-mbtouc.c: Likewise.
33190         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
33191         * lib/unistr/u16-uctomb.c: Likewise.
33192         * lib/unistr/u32-mbtouc.c: Likewise.
33193         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
33194         * lib/unistr/u32-uctomb.c: Likewise.
33195
33196 2009-04-10  Bruno Haible  <bruno@clisp.org>
33197
33198         Mark 'utime' obsolete.
33199         * modules/utime (Status, Notice): New sections.
33200         Suggested by Jim Meyering.
33201
33202         Fix cross-compile guess for utime test.
33203         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
33204         autoconf.
33205         * doc/posix-functions/utime.texi: Give more precisions.
33206         Reported by Jan <ipif@ymail.com>.
33207
33208 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
33209
33210         filevercmp: correct today's change
33211         * lib/filevercmp.c: Also handle coreutils' test inputs.
33212         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
33213
33214         Fix regression in 'filevercmp' module. Thanks Sven Joachim
33215         for reporting it.
33216         * lib/filevercmp.c: Special handle for "", "." and "..".
33217         * tests/test-filevercmp.c: Enlarge the set suite.
33218
33219 2009-04-07  Jim Meyering  <meyering@redhat.com>
33220
33221         useless-if-before-free: show how to remove braced useless free, too
33222         * build-aux/useless-if-before-free: still only in a comment, though.
33223
33224 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
33225
33226         maint.mk: import changes to syntax-check macros from coreutils
33227         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
33228         Use them in the relevant macros.
33229
33230 2009-04-06  Bruno Haible  <bruno@clisp.org>
33231
33232         Fix unportable use of bit-fields.
33233         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
33234         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
33235         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
33236
33237 2009-04-06  Bruno Haible  <bruno@clisp.org>
33238
33239         Avoid test failures on AIX and OSF/1.
33240         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
33241         that malloc(0) = NULL.
33242         * tests/unicase/test-u8-tolower.c (check): Likewise.
33243         * tests/unicase/test-u8-totitle.c (check): Likewise.
33244         * tests/unicase/test-u8-toupper.c (check): Likewise.
33245         * tests/unicase/test-u16-casefold.c (check): Likewise.
33246         * tests/unicase/test-u16-tolower.c (check): Likewise.
33247         * tests/unicase/test-u16-totitle.c (check): Likewise.
33248         * tests/unicase/test-u16-toupper.c (check): Likewise.
33249         * tests/unicase/test-u32-casefold.c (check): Likewise.
33250         * tests/unicase/test-u32-tolower.c (check): Likewise.
33251         * tests/unicase/test-u32-totitle.c (check): Likewise.
33252         * tests/unicase/test-u32-toupper.c (check): Likewise.
33253         * tests/uninorm/test-u8-nfc.c (check): Likewise.
33254         * tests/uninorm/test-u8-nfd.c (check): Likewise.
33255         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
33256         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
33257         * tests/uninorm/test-u16-nfc.c (check): Likewise.
33258         * tests/uninorm/test-u16-nfd.c (check): Likewise.
33259         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
33260         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
33261         * tests/uninorm/test-u32-nfc.c (check): Likewise.
33262         * tests/uninorm/test-u32-nfd.c (check): Likewise.
33263         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
33264         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
33265
33266 2009-04-05  Bruno Haible  <bruno@clisp.org>
33267
33268         Work around an autoconf limitation.
33269         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
33270         comment line if it would be longer than 3 KB.
33271
33272 2009-04-05  Bruno Haible  <bruno@clisp.org>
33273
33274         Avoid test failure with libiconv-1.13.
33275         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
33276         of the expected test results.
33277
33278 2009-04-05  Bruno Haible  <bruno@clisp.org>
33279
33280         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
33281         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
33282         that it should be installed.
33283
33284 2009-04-05  Bruno Haible  <bruno@clisp.org>
33285
33286         * gnulib-tool: New option --copy-file.
33287         (func_usage): Document it.
33288         (func_dest_tmpfilename): Moved out of func_import.
33289         (func_add_file, func_update_file): New functions, extracted from
33290         func_import.
33291         (func_import): Update.
33292
33293 2009-04-05  Karl Berry  <karl@gnu.org>
33294
33295         * README: prominently mention gnulib-tool.
33296         Rearrange sections so getting the code is near the top.
33297
33298 2009-04-05  Bruno Haible  <bruno@clisp.org>
33299
33300         * lib/unicase.h: Mention u*_cmp2.
33301         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33302         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
33303         * lib/unicase/ulc-casecmp.c: Likewise.
33304         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
33305         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
33306         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
33307         unistr/u8-cmp.
33308         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
33309         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
33310         unistr/u16-cmp.
33311         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
33312         unistr/u32-cmp.
33313
33314         * lib/uninorm.h: Mention u*_cmp2.
33315         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33316         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
33317         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
33318         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
33319         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
33320         unistr/u8-cmp.
33321         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
33322         unistr/u16-cmp.
33323         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
33324         unistr/u32-cmp.
33325
33326         New module 'unistr/u32-cmp2'.
33327         * lib/unistr/u32-cmp2.c: New file.
33328         * modules/unistr/u32-cmp2: New file.
33329
33330         New module 'unistr/u16-cmp2'.
33331         * lib/unistr/u16-cmp2.c: New file.
33332         * modules/unistr/u16-cmp2: New file.
33333
33334         New module 'unistr/u8-cmp2'.
33335         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
33336         * lib/unistr/u8-cmp2.c: New file.
33337         * lib/unistr/u-cmp2.h: New file.
33338         * modules/unistr/u8-cmp2: New file.
33339
33340 2009-04-05  Bruno Haible  <bruno@clisp.org>
33341
33342         * lib/unictype.h (uc_property_is_valid): New macro.
33343         * tests/unictype/test-pr_byname.c (main): Use it.
33344
33345         * lib/unistr.h: Doc fixes.
33346         * lib/uniconv.h: Doc fixes.
33347         * lib/unictype.h: Doc fixes.
33348
33349 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
33350
33351         Port coreutils 7.2 to Solaris 8.
33352
33353         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
33354         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
33355         for Solaris 8.  This is a bit of a hack, as it means it's the
33356         caller's responsibility to add -lnsl if needed, but most likely it
33357         won't be needed since only getaddrinfo uses this and getaddrinfo
33358         isn't needed on Solaris 8.
33359
33360         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
33361         problem to Solaris 8 encountered with coreutils 7.2, which
33362         resulted in a message "fnmatch.c:292: warning: passing argument 4
33363         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
33364         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
33365
33366 2009-04-03  Simon Josefsson  <simon@josefsson.org>
33367
33368         * m4/ld-version-script.m4: Add FIXME comment.
33369
33370 2009-04-02  Simon Josefsson  <simon@josefsson.org>
33371
33372         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
33373         SOVERSION variable.
33374
33375 2009-04-02  Bruno Haible  <bruno@clisp.org>
33376
33377         * Makefile (info, html, dvi, pdf): Combine the rules.
33378         Suggested by Jim Meyering.
33379
33380 2009-04-01  Bruno Haible  <bruno@clisp.org>
33381
33382         * Makefile (info, html, dvi, pdf): New targets.
33383         Reported by Reuben Thomas <rrt@sc3d.org>.
33384
33385 2009-04-01  Bruno Haible  <bruno@clisp.org>
33386
33387         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
33388         can be put into PATH.
33389         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
33390
33391 2009-04-01  Bruno Haible  <bruno@clisp.org>
33392
33393         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
33394
33395 2009-04-01  Bruno Haible  <bruno@clisp.org>
33396
33397         Rename module 'visibility'.
33398         * modules/lib-symbol-visibility: Renamed from modules/visibility.
33399         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
33400         * doc/gnulib.texi: Update.
33401         * MODULES.html.sh (Misc): Update.
33402         * NEWS: Mention the change.
33403
33404 2009-04-01  Simon Josefsson  <simon@josefsson.org>
33405
33406         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
33407         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
33408         Eric Blake <ebb9@byu.net> for review.
33409         * MODULES.html.sh: Add lib-msvc-compat.
33410         * doc/gnulib.texi: Link to new section.
33411         * m4/ld-output-def.m4: New file.
33412         * doc/ld-output-def.texi: New file.
33413
33414 2009-04-01  Simon Josefsson  <simon@josefsson.org>
33415
33416         Rename ld-version-script to lib-symbol-versions.  Suggested by
33417         Bruno Haible <bruno@clisp.org>.
33418         * modules/ld-version-script: Renamed to lib-symbol-versions.
33419         * doc/ld-version-script.texi: Fix module name.
33420         * MODULES.html.sh: Add lib-symbol-versions.
33421
33422 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33423
33424         * modules/u64-tests: New file.
33425         * tests/test-u64.c: New file.
33426
33427 2009-03-04  Simon Josefsson  <simon@josefsson.org>
33428
33429         * MODULES.html.sh: Mention u64.
33430         * modules/u64: New module.
33431         * modules/crypto/sha512: Depend on u64 module instead of providing
33432         u64.h.
33433
33434 2009-03-27  Eric Blake  <ebb9@byu.net>
33435
33436         test-strerror: make debugging EAI_SYSTEM easier
33437         * modules/getaddrinfo-tests (Depends-on): Add strerror.
33438         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
33439         failure was EAI_SYSTEM.
33440
33441 2009-03-25  Bruno Haible  <bruno@clisp.org>
33442
33443         Fix a problem with --enable-relocatable on Solaris 7.
33444         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
33445         since 2008-02-24.
33446
33447 2009-03-25  Eric Blake  <ebb9@byu.net>
33448
33449         test-sockets: avoid gcc warning
33450         * tests/test-sockets.c (main): Silence compiler warning.
33451
33452 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
33453
33454         New modules nproc, pthread, contributed by Glen Lenker.
33455
33456         * MODULES.html.sh: Add pthread, nproc.
33457         * lib/nproc.c: New file.
33458         * lib/nproc.h: New file.
33459         * lib/pthread.in.h: New file.
33460         * m4/pthread.m4: New file.
33461         * modules/nproc: New file.
33462         * modules/pthread: New file.
33463
33464 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33465
33466         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
33467         New variable.
33468
33469 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
33470
33471         filevercmp: handle simple~ and numbered.~3~ backup suffixes
33472         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
33473         * tests/test-filevercmp.c: Add tests for backup suffixes.
33474
33475 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33476
33477         * modules/stdlib (Depends-on): Add stdint, needed when defining
33478         struct random_data on, for example, HP-UX 10.20.  Reported by
33479         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33480
33481 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33482
33483         * lib/readline.c (readline): Call fflush on stdout after printing
33484         prompt.
33485
33486 2009-03-20  Bruno Haible  <bruno@clisp.org>
33487
33488         Remove dependency from 'close' module to -lws2_32 on native Windows.
33489         * lib/close-hook.h: New file.
33490         * lib/close-hook.c: New file.
33491         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
33492         w32sock.h.
33493         (_gl_close_fd_maybe_socket): Remove function.
33494         (rpl_close): Invoke execute_all_close_hooks instead of
33495         _gl_close_fd_maybe_socket.
33496         * lib/sockets.c: Include close-hook.h, w32sock.h.
33497         (close_fd_maybe_socket): New function, essentially from lib/close.c.
33498         (close_sockets_hook): New variable.
33499         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
33500         (gl_sockets_cleanup): Unregister it.
33501         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
33502         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
33503         * modules/close-hook: New file.
33504         * modules/close (Files): Remove lib/w32sock.h.
33505         (Depends-on): Add close-hook.
33506         (Link): Remove section.
33507         * modules/sockets (Files): Add lib/w32sock.h.
33508         (Depends-on): Add close-hook.
33509         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
33510         invocation.
33511         * NEWS: Mention that LIB_CLOSE is gone.
33512
33513 2009-03-23  Eric Blake  <ebb9@byu.net>
33514
33515         signal-tests: test previous patch
33516         * tests/test-signal.c: New file.
33517         * modules/signal-tests: Likewise.
33518
33519         signal.h: always support 'volatile sig_atomic_t'
33520         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
33521         (gl_SIGNAL_H_DEFAULTS): Add a default.
33522         * modules/signal (Makefile.am): Substitute if needed.
33523         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
33524         users can blindly add volatile.
33525         * doc/posix-headers/signal.texi (signal.h): Document it.
33526         Reported by Matthew Woehlke.
33527
33528 2009-03-23  Jim Meyering  <meyering@redhat.com>
33529
33530         pathmax: PATH_MAX: use pathconf only when available
33531         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
33532         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
33533         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
33534         This avoids a link failure in a PSP cross-compilation environment
33535         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
33536
33537         * lib/vasnprintf.c (divide): Fix typo in comment.
33538
33539 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33540
33541         * gnulib-tool (func_filter_filelist): Fix comment.
33542
33543 2009-03-20  Bruno Haible  <bruno@clisp.org>
33544
33545         Make sockets.h self-contained.
33546         * lib/sockets.c: Include sockets.h first.
33547         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
33548
33549 2009-03-19  Eric Blake  <ebb9@byu.net>
33550
33551         doc: mention more functions added in cygwin 1.7.0
33552         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
33553         addition.
33554         * doc/posix-functions/log2f.texi: Likewise.
33555
33556 2009-03-19  Jim Meyering  <meyering@redhat.com>
33557
33558         fsusage: avoid syntax error due to statement-before-declaration
33559         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
33560         after all declarations.  Reported by Matthew Woehlke in
33561         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
33562
33563 2009-03-18  Eric Blake  <ebb9@byu.net>
33564
33565         build-aux/compile: sync from automake
33566         * build-aux/compile: New file, from automake.
33567         * config/srclist.txt: Mention build-aux/compile.
33568
33569 2009-03-17  Bruno Haible  <bruno@clisp.org>
33570
33571         * lib/git-merge-changelog.c: Fix typo in comment.
33572         Reported by Reuben Thomas <rrt@sc3d.org>.
33573
33574 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
33575
33576         * m4/regex.m4: update and improve help for
33577         --without-included-regex.
33578
33579 2009-03-17  Simon Josefsson  <simon@josefsson.org>
33580
33581         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
33582         failure on missing include files.
33583
33584 2009-03-17  Eric Blake  <ebb9@byu.net>
33585
33586         doc: mention more functions added in cygwin 1.7.0
33587         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
33588         addition.
33589         * doc/posix-functions/fwscanf.texi: Likewise.
33590         * doc/posix-functions/swprintf.texi: Likewise.
33591         * doc/posix-functions/swscanf.texi: Likewise.
33592         * doc/posix-functions/vfwprintf.texi: Likewise.
33593         * doc/posix-functions/vfwscanf.texi: Likewise.
33594         * doc/posix-functions/vswprintf.texi: Likewise.
33595         * doc/posix-functions/vswscanf.texi: Likewise.
33596         * doc/posix-functions/vwprintf.texi: Likewise.
33597         * doc/posix-functions/vwscanf.texi: Likewise.
33598         * doc/posix-functions/wcscasecmp.texi: Likewise.
33599         * doc/posix-functions/wcsdup.texi: Likewise.
33600         * doc/posix-functions/wcsftime.texi: Likewise.
33601         * doc/posix-functions/wcsncasecmp.texi: Likewise.
33602         * doc/posix-functions/wprintf.texi: Likewise.
33603         * doc/posix-functions/wscanf.texi: Likewise.
33604         * doc/glibc-functions/gethostbyname2.texi: Likewise.
33605
33606 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33607
33608         maint.mk: really add $(AM_MAKEFLAGS)
33609         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
33610         was inadvertently omitted in the last commit.
33611         Spotted by Bruno Haible.
33612
33613         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
33614         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
33615         $(AM_MAKEFLAGS)' rather than plain `make'.
33616
33617         gnulib-tool: execute $MAKE not make
33618         * gnulib-tool: Default $MAKE to 'make'.
33619         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
33620         than make.  Initialize $MAKE in the do-autobuild script.
33621
33622         gnulib-tool: use $MAKE not make in generated files
33623         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
33624         make, in generated files.  Initialize $MAKE in the do-autobuild
33625         script.
33626
33627         * top/GNUmakefile (_have-git-version-gen): Fix typo.
33628
33629         GNUmakefile: disable parallelism only for multiple, recursive targets
33630         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
33631         additions in the Makefile.
33632         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
33633         by Automake.
33634         (.NOTPARALLEL): Only disable parallel builds if multiple targets
33635         are listed on the command line and at least one of them is
33636         listed in $(ALL_RECURSIVE_TARGETS).
33637
33638 2009-03-14  Bruno Haible  <bruno@clisp.org>
33639
33640         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
33641         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
33642         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
33643         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
33644         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
33645         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
33646         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
33647         unistr/u8-uctomb.
33648         * modules/unistr/u8-strchr (Depends-on): Likewise.
33649         * modules/unistr/u8-strrchr (Depends-on): Likewise.
33650         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
33651         unistr/u16-uctomb.
33652         * modules/unistr/u16-strchr (Depends-on): Likewise.
33653         * modules/unistr/u16-strrchr (Depends-on): Likewise.
33654
33655 2009-03-12  Bruno Haible  <bruno@clisp.org>
33656
33657         Work around select() bug on Interix 3.5.
33658         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
33659         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
33660         * m4/select.m4: New file.
33661         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
33662         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
33663         * modules/select (Files): Add m4/select.m4.
33664         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
33665         * modules/nanosleep (Depends-on): Add select.
33666         * modules/poll (Depends-on): Likewise.
33667         * doc/posix-functions/select.texi: Mention the Interix bug.
33668         Reported by Markus Duft <mduft@gentoo.org>.
33669
33670         * lib/select.c: Renamed from lib/winsock-select.c.
33671         * modules/select (Files): Add lib/select.c, remove
33672         lib/winsock-select.c.
33673         (configure.ac): Update.
33674
33675 2009-03-12  Jim Meyering  <meyering@redhat.com>
33676
33677         avoid gcc warnings about unused macro definitions
33678         * lib/readtokens.c (STREQ): Remove unused definition.
33679         * lib/xmalloc.c (SIZE_MAX): Likewise.
33680         * lib/openat-die.c (N_): Likewise.
33681         * lib/mountlist.c (SIZE_MAX): Remove definition.
33682         Instead, include <stdint.h>.
33683         * lib/readutmp.c: Likewise.
33684         * modules/readutmp (Depends-on): Add stdint.
33685         * modules/mountlist (Depends-on): Add stdint.
33686         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
33687
33688 2009-03-10  Bruno Haible  <bruno@clisp.org>
33689
33690         Tests for module 'mbmemcasecoll'.
33691         * modules/mbmemcasecoll-tests: New file.
33692         * tests/test-mbmemcasecoll1.sh: New file.
33693         * tests/test-mbmemcasecoll2.sh: New file.
33694         * tests/test-mbmemcasecoll3.sh: New file.
33695         * tests/test-mbmemcasecoll.c: New file.
33696
33697         New module 'mbmemcasecoll'.
33698         * lib/mbmemcasecoll.h: New file.
33699         * lib/mbmemcasecoll.c: New file.
33700         * modules/mbmemcasecoll: New file.
33701
33702         * tests/test-mbmemcasecmp.h: New file, extracted from
33703         tests/test-mbmemcasecmp.c.
33704         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
33705         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
33706         (main): Update.
33707         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
33708
33709 2009-03-09  Bruno Haible  <bruno@clisp.org>
33710
33711         Tests for module 'mbmemcasecmp'.
33712         * modules/mbmemcasecmp-tests: New file.
33713         * tests/test-mbmemcasecmp1.sh: New file.
33714         * tests/test-mbmemcasecmp2.sh: New file.
33715         * tests/test-mbmemcasecmp3.sh: New file.
33716         * tests/test-mbmemcasecmp.c: New file.
33717
33718         New module 'mbmemcasecmp'.
33719         * lib/mbmemcasecmp.h: New file.
33720         * lib/mbmemcasecmp.c: New file.
33721         * modules/mbmemcasecmp: New file.
33722
33723 2009-03-09  Bruno Haible  <bruno@clisp.org>
33724
33725         Tests for module 'unicase/ulc-casecoll'.
33726         * modules/unicase/ulc-casecoll-tests: New file.
33727         * tests/unicase/test-ulc-casecoll1.sh: New file.
33728         * tests/unicase/test-ulc-casecoll2.sh: New file.
33729         * tests/unicase/test-ulc-casecoll.c: New file.
33730
33731         New module 'unicase/ulc-casecoll'.
33732         * lib/unicase.h (ulc_casecoll): New declaration.
33733         * lib/unicase/ulc-casecoll.c: New file.
33734         * modules/unicase/ulc-casecoll: New file.
33735
33736         New module 'unicase/ulc-casexfrm'.
33737         * lib/unicase.h (ulc_casexfrm): New declaration.
33738         * lib/unicase/ulc-casexfrm.c: New file.
33739         * modules/unicase/ulc-casexfrm: New file.
33740
33741 2009-03-09  Bruno Haible  <bruno@clisp.org>
33742
33743         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
33744         invocations.
33745
33746         * m4/mbscasecmp.m4: Remove file.
33747         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
33748         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
33749
33750         * m4/mbscasestr.m4: Remove file.
33751         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
33752         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
33753
33754         * m4/mbschr.m4: Remove file.
33755         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
33756         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
33757
33758         * m4/mbscspn.m4: Remove file.
33759         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
33760         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
33761
33762         * m4/mbslen.m4: Remove file.
33763         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
33764         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
33765
33766         * m4/mbsncasecmp.m4: Remove file.
33767         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
33768         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
33769
33770         * m4/mbsnlen.m4: Remove file.
33771         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
33772         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
33773
33774         * m4/mbspbrk.m4: Remove file.
33775         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
33776         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
33777
33778         * m4/mbspcasecmp.m4: Remove file.
33779         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
33780         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
33781
33782         * m4/mbsrchr.m4: Remove file.
33783         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
33784         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
33785
33786         * m4/mbssep.m4: Remove file.
33787         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
33788         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
33789
33790         * m4/mbsspn.m4: Remove file.
33791         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
33792         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
33793
33794         * m4/mbsstr.m4: Remove file.
33795         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
33796         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
33797
33798         * m4/mbstok_r.m4: Remove file.
33799         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
33800         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
33801
33802         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
33803
33804         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
33805         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
33806
33807         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
33808
33809 2009-03-08  Bruno Haible  <bruno@clisp.org>
33810
33811         Tests for module 'unicase/ulc-casecmp'.
33812         * modules/unicase/ulc-casecmp-tests: New file.
33813         * tests/unicase/test-ulc-casecmp1.sh: New file.
33814         * tests/unicase/test-ulc-casecmp2.sh: New file.
33815         * tests/unicase/test-ulc-casecmp.c: New file.
33816
33817         New module 'unicase/ulc-casecmp'.
33818         * lib/unicase.h (ulc_casecmp): New declaration.
33819         * lib/unicase/ulc-casecmp.c: New file.
33820         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
33821         'const SRC_UNIT *'.
33822         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
33823         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
33824         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
33825         * modules/unicase/ulc-casecmp: New file.
33826
33827         Tests for module 'unicase/u32-is-cased'.
33828         * modules/unicase/u32-is-cased-tests: New file.
33829         * tests/unicase/test-u32-is-cased.c: New file.
33830
33831         Tests for module 'unicase/u16-is-cased'.
33832         * modules/unicase/u16-is-cased-tests: New file.
33833         * tests/unicase/test-u16-is-cased.c: New file.
33834
33835         Tests for module 'unicase/u8-is-cased'.
33836         * modules/unicase/u8-is-cased-tests: New file.
33837         * tests/unicase/test-u8-is-cased.c: New file.
33838         * tests/unicase/test-is-cased.h: New file.
33839
33840         New module 'unicase/u32-is-cased'.
33841         * lib/unicase/u32-is-cased.c: New file.
33842         * modules/unicase/u32-is-cased: New file.
33843
33844         New module 'unicase/u16-is-cased'.
33845         * lib/unicase/u16-is-cased.c: New file.
33846         * modules/unicase/u16-is-cased: New file.
33847
33848         New module 'unicase/u8-is-cased'.
33849         * lib/unicase/u8-is-cased.c: New file.
33850         * lib/unicase/u-is-cased.h: New file.
33851         * modules/unicase/u8-is-cased: New file.
33852
33853         Tests for module 'unicase/u32-is-casefolded'.
33854         * modules/unicase/u32-is-casefolded-tests: New file.
33855         * tests/unicase/test-u32-is-casefolded.c: New file.
33856
33857         Tests for module 'unicase/u16-is-casefolded'.
33858         * modules/unicase/u16-is-casefolded-tests: New file.
33859         * tests/unicase/test-u16-is-casefolded.c: New file.
33860
33861         Tests for module 'unicase/u8-is-casefolded'.
33862         * modules/unicase/u8-is-casefolded-tests: New file.
33863         * tests/unicase/test-u8-is-casefolded.c: New file.
33864         * tests/unicase/test-is-casefolded.h: New file.
33865
33866         New module 'unicase/u32-is-casefolded'.
33867         * lib/unicase/u32-is-casefolded.c: New file.
33868         * modules/unicase/u32-is-casefolded: New file.
33869
33870         New module 'unicase/u16-is-casefolded'.
33871         * lib/unicase/u16-is-casefolded.c: New file.
33872         * modules/unicase/u16-is-casefolded: New file.
33873
33874         New module 'unicase/u8-is-casefolded'.
33875         * lib/unicase/u8-is-casefolded.c: New file.
33876         * modules/unicase/u8-is-casefolded: New file.
33877
33878         Tests for module 'unicase/u32-is-titlecase'.
33879         * modules/unicase/u32-is-titlecase-tests: New file.
33880         * tests/unicase/test-u32-is-titlecase.c: New file.
33881
33882         Tests for module 'unicase/u16-is-titlecase'.
33883         * modules/unicase/u16-is-titlecase-tests: New file.
33884         * tests/unicase/test-u16-is-titlecase.c: New file.
33885
33886         Tests for module 'unicase/u8-is-titlecase'.
33887         * modules/unicase/u8-is-titlecase-tests: New file.
33888         * tests/unicase/test-u8-is-titlecase.c: New file.
33889         * tests/unicase/test-is-titlecase.h: New file.
33890
33891         New module 'unicase/u32-is-titlecase'.
33892         * lib/unicase/u32-is-titlecase.c: New file.
33893         * modules/unicase/u32-is-titlecase: New file.
33894
33895         New module 'unicase/u16-is-titlecase'.
33896         * lib/unicase/u16-is-titlecase.c: New file.
33897         * modules/unicase/u16-is-titlecase: New file.
33898
33899         New module 'unicase/u8-is-titlecase'.
33900         * lib/unicase/u8-is-titlecase.c: New file.
33901         * modules/unicase/u8-is-titlecase: New file.
33902
33903         Tests for module 'unicase/u32-is-lowercase'.
33904         * modules/unicase/u32-is-lowercase-tests: New file.
33905         * tests/unicase/test-u32-is-lowercase.c: New file.
33906
33907         Tests for module 'unicase/u16-is-lowercase'.
33908         * modules/unicase/u16-is-lowercase-tests: New file.
33909         * tests/unicase/test-u16-is-lowercase.c: New file.
33910
33911         Tests for module 'unicase/u8-is-lowercase'.
33912         * modules/unicase/u8-is-lowercase-tests: New file.
33913         * tests/unicase/test-u8-is-lowercase.c: New file.
33914         * tests/unicase/test-is-lowercase.h: New file.
33915
33916         New module 'unicase/u32-is-lowercase'.
33917         * lib/unicase/u32-is-lowercase.c: New file.
33918         * modules/unicase/u32-is-lowercase: New file.
33919
33920         New module 'unicase/u16-is-lowercase'.
33921         * lib/unicase/u16-is-lowercase.c: New file.
33922         * modules/unicase/u16-is-lowercase: New file.
33923
33924         New module 'unicase/u8-is-lowercase'.
33925         * lib/unicase/u8-is-lowercase.c: New file.
33926         * modules/unicase/u8-is-lowercase: New file.
33927
33928         Tests for module 'unicase/u32-is-uppercase'.
33929         * modules/unicase/u32-is-uppercase-tests: New file.
33930         * tests/unicase/test-u32-is-uppercase.c: New file.
33931
33932         Tests for module 'unicase/u16-is-uppercase'.
33933         * modules/unicase/u16-is-uppercase-tests: New file.
33934         * tests/unicase/test-u16-is-uppercase.c: New file.
33935
33936         Tests for module 'unicase/u8-is-uppercase'.
33937         * modules/unicase/u8-is-uppercase-tests: New file.
33938         * tests/unicase/test-u8-is-uppercase.c: New file.
33939         * tests/unicase/test-is-uppercase.h: New file.
33940
33941         New module 'unicase/u32-is-uppercase'.
33942         * lib/unicase/u32-is-uppercase.c: New file.
33943         * modules/unicase/u32-is-uppercase: New file.
33944
33945         New module 'unicase/u16-is-uppercase'.
33946         * lib/unicase/u16-is-uppercase.c: New file.
33947         * modules/unicase/u16-is-uppercase: New file.
33948
33949         New module 'unicase/u8-is-uppercase'.
33950         * lib/unicase/u8-is-uppercase.c: New file.
33951         * modules/unicase/u8-is-uppercase: New file.
33952
33953         New module 'unicase/u32-is-invariant'.
33954         * lib/unicase/u32-is-invariant.c: New file.
33955         * modules/unicase/u32-is-invariant: New file.
33956
33957         New module 'unicase/u16-is-invariant'.
33958         * lib/unicase/u16-is-invariant.c: New file.
33959         * modules/unicase/u16-is-invariant: New file.
33960
33961         New module 'unicase/u8-is-invariant'.
33962         * lib/unicase/u8-is-invariant.c: New file.
33963         * lib/unicase/invariant.h: New file.
33964         * lib/unicase/u-is-invariant.h: New file.
33965         * modules/unicase/u8-is-invariant: New file.
33966
33967         Tests for module 'unicase/u32-casecoll'.
33968         * modules/unicase/u32-casecoll-tests: New file.
33969         * tests/unicase/test-u32-casecoll.c: New file.
33970
33971         Tests for module 'unicase/u16-casecoll'.
33972         * modules/unicase/u16-casecoll-tests: New file.
33973         * tests/unicase/test-u16-casecoll.c: New file.
33974
33975         Tests for module 'unicase/u8-casecoll'.
33976         * modules/unicase/u8-casecoll-tests: New file.
33977         * tests/unicase/test-u8-casecoll.c: New file.
33978
33979         New module 'unicase/u32-casecoll'.
33980         * lib/unicase/u32-casecoll.c: New file.
33981         * modules/unicase/u32-casecoll: New file.
33982
33983         New module 'unicase/u16-casecoll'.
33984         * lib/unicase/u16-casecoll.c: New file.
33985         * modules/unicase/u16-casecoll: New file.
33986
33987         New module 'unicase/u8-casecoll'.
33988         * lib/unicase/u8-casecoll.c: New file.
33989         * lib/unicase/u-casecoll.h: New file.
33990         * modules/unicase/u8-casecoll: New file.
33991
33992         New module 'unicase/u32-casexfrm'.
33993         * lib/unicase/u32-casexfrm.c: New file.
33994         * modules/unicase/u32-casexfrm: New file.
33995
33996         New module 'unicase/u16-casexfrm'.
33997         * lib/unicase/u16-casexfrm.c: New file.
33998         * modules/unicase/u16-casexfrm: New file.
33999
34000         New module 'unicase/u8-casexfrm'.
34001         * lib/unicase/u8-casexfrm.c: New file.
34002         * lib/unicase/u-casexfrm.h: New file.
34003         * modules/unicase/u8-casexfrm: New file.
34004
34005         Tests for module 'unicase/u32-casecmp'.
34006         * modules/unicase/u32-casecmp-tests: New file.
34007         * tests/unicase/test-u32-casecmp.c: New file.
34008
34009         Tests for module 'unicase/u16-casecmp'.
34010         * modules/unicase/u16-casecmp-tests: New file.
34011         * tests/unicase/test-u16-casecmp.c: New file.
34012
34013         Tests for module 'unicase/u8-casecmp'.
34014         * modules/unicase/u8-casecmp-tests: New file.
34015         * tests/unicase/test-u8-casecmp.c: New file.
34016         * tests/unicase/test-casecmp.h: New file.
34017
34018         New module 'unicase/u32-casecmp'.
34019         * lib/unicase/u32-casecmp.c: New file.
34020         * modules/unicase/u32-casecmp: New file.
34021
34022         New module 'unicase/u16-casecmp'.
34023         * lib/unicase/u16-casecmp.c: New file.
34024         * modules/unicase/u16-casecmp: New file.
34025
34026         New module 'unicase/u8-casecmp'.
34027         * lib/unicase/u8-casecmp.c: New file.
34028         * lib/unicase/u-casecmp.h: New file.
34029         * modules/unicase/u8-casecmp: New file.
34030
34031         Tests for module 'unicase/u32-casefold'.
34032         * modules/unicase/u32-casefold-tests: New file.
34033         * tests/unicase/test-u32-casefold.c: New file.
34034
34035         Tests for module 'unicase/u16-casefold'.
34036         * modules/unicase/u16-casefold-tests: New file.
34037         * tests/unicase/test-u16-casefold.c: New file.
34038
34039         Tests for module 'unicase/u8-casefold'.
34040         * modules/unicase/u8-casefold-tests: New file.
34041         * tests/unicase/test-u8-casefold.c: New file.
34042
34043         New module 'unicase/u32-casefold'.
34044         * lib/unicase/u32-casefold.c: New file.
34045         * modules/unicase/u32-casefold: New file.
34046
34047         New module 'unicase/u16-casefold'.
34048         * lib/unicase/u16-casefold.c: New file.
34049         * modules/unicase/u16-casefold: New file.
34050
34051         New module 'unicase/u8-casefold'.
34052         * lib/unicase/u8-casefold.c: New file.
34053         * lib/unicase/u-casefold.h: New file.
34054         * modules/unicase/u8-casefold: New file.
34055
34056         New module 'unicase/tocasefold'.
34057         * lib/unicase/casefold.h: New file.
34058         * lib/unicase/tocasefold.c: New file.
34059         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
34060         * modules/unicase/tocasefold: New file.
34061
34062         Tests for module 'unicase/u32-totitle'.
34063         * modules/unicase/u32-totitle-tests: New file.
34064         * tests/unicase/test-u32-totitle.c: New file.
34065
34066         Tests for module 'unicase/u16-totitle'.
34067         * modules/unicase/u16-totitle-tests: New file.
34068         * tests/unicase/test-u16-totitle.c: New file.
34069
34070         Tests for module 'unicase/u8-totitle'.
34071         * modules/unicase/u8-totitle-tests: New file.
34072         * tests/unicase/test-u8-totitle.c: New file.
34073
34074         New module 'unicase/u32-totitle'.
34075         * lib/unicase/u32-totitle.c: New file.
34076         * modules/unicase/u32-totitle: New file.
34077
34078         New module 'unicase/u16-totitle'.
34079         * lib/unicase/u16-totitle.c: New file.
34080         * modules/unicase/u16-totitle: New file.
34081
34082         New module 'unicase/u8-totitle'.
34083         * lib/unicase/u8-totitle.c: New file.
34084         * lib/unicase/u-totitle.h: New file.
34085         * modules/unicase/u8-totitle: New file.
34086
34087         Tests for module 'unicase/u32-tolower'.
34088         * modules/unicase/u32-tolower-tests: New file.
34089         * tests/unicase/test-u32-tolower.c: New file.
34090
34091         Tests for module 'unicase/u16-tolower'.
34092         * modules/unicase/u16-tolower-tests: New file.
34093         * tests/unicase/test-u16-tolower.c: New file.
34094
34095         Tests for module 'unicase/u8-tolower'.
34096         * modules/unicase/u8-tolower-tests: New file.
34097         * tests/unicase/test-u8-tolower.c: New file.
34098
34099         New module 'unicase/u32-tolower'.
34100         * lib/unicase/u32-tolower.c: New file.
34101         * modules/unicase/u32-tolower: New file.
34102
34103         New module 'unicase/u16-tolower'.
34104         * lib/unicase/u16-tolower.c: New file.
34105         * modules/unicase/u16-tolower: New file.
34106
34107         New module 'unicase/u8-tolower'.
34108         * lib/unicase/u8-tolower.c: New file.
34109         * modules/unicase/u8-tolower: New file.
34110
34111         Tests for module 'unicase/u32-toupper'.
34112         * modules/unicase/u32-toupper-tests: New file.
34113         * tests/unicase/test-u32-toupper.c: New file.
34114
34115         Tests for module 'unicase/u16-toupper'.
34116         * modules/unicase/u16-toupper-tests: New file.
34117         * tests/unicase/test-u16-toupper.c: New file.
34118
34119         Tests for module 'unicase/u8-toupper'.
34120         * modules/unicase/u8-toupper-tests: New file.
34121         * tests/unicase/test-u8-toupper.c: New file.
34122
34123         New module 'unicase/u32-toupper'.
34124         * lib/unicase/u32-toupper.c: New file.
34125         * modules/unicase/u32-toupper: New file.
34126
34127         New module 'unicase/u16-toupper'.
34128         * lib/unicase/u16-toupper.c: New file.
34129         * modules/unicase/u16-toupper: New file.
34130
34131         New module 'unicase/u8-toupper'.
34132         * lib/unicase/u8-toupper.c: New file.
34133         * modules/unicase/u8-toupper: New file.
34134
34135         New module 'unicase/u32-casemap'.
34136         * lib/unicase/u32-casemap.c: New file.
34137         * modules/unicase/u32-casemap: New file.
34138
34139         New module 'unicase/u16-casemap'.
34140         * lib/unicase/u16-casemap.c: New file.
34141         * modules/unicase/u16-casemap: New file.
34142
34143         New module 'unicase/u8-casemap'.
34144         * lib/unicase/unicasemap.h: New file.
34145         * lib/unicase/u8-casemap.c: New file.
34146         * lib/unicase/u-casemap.h: New file.
34147         * modules/unicase/u8-casemap: New file.
34148
34149         New module 'unicase/special-casing'.
34150         * lib/unicase/special-casing.h: New file.
34151         * lib/unicase/special-casing.c: New file.
34152         * lib/unicase/special-casing-table.gperf: New file, generated by
34153         gen-uni-tables.c.
34154         * modules/unicase/special-casing: New file.
34155
34156         Tests for module 'unicase/locale-language'.
34157         * modules/unicase/locale-language-tests: New file.
34158         * tests/unicase/test-locale-language.sh: New file.
34159         * tests/unicase/test-locale-language.c: New file.
34160
34161         New module 'unicase/locale-language'.
34162         * lib/unicase/locale-language.c: New file.
34163         * lib/unicase/locale-languages.gperf: New file.
34164         * modules/unicase/locale-language: New file.
34165
34166         Generate more tables for case conversion and case folding.
34167         * lib/gen-uni-tables.c (SCC_*): New enum items.
34168         (struct special_casing_rule): New type.
34169         (casing_rules, num_casing_rules, allocated_casing_rules): New
34170         variables.
34171         (add_casing_rule, fill_casing_rules): New functions.
34172         (struct casefold_rule): New type.
34173         (casefolding_rules, num_casefolding_rules,
34174         allocated_casefolding_rules): New variables.
34175         (fill_casefolding_rules): New function.
34176         (unicode_casefold): New variable.
34177         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
34178         sort_casing_rules, output_casing_rules): New functions.
34179         (main): Accept to more arguments: SpecialCasing.txt and
34180         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
34181         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
34182         Output mapping for casefolding.
34183
34184         * lib/unicase.h: Include stdbool.h, uninorm.h.
34185         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
34186         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
34187         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
34188         arguments.
34189         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
34190         resultp arguments.
34191         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
34192         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
34193         resultp arguments.
34194         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
34195         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
34196         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
34197         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
34198         declarations.
34199         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
34200
34201 2009-03-08  Bruno Haible  <bruno@clisp.org>
34202
34203         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34204         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
34205         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
34206         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34207
34208 2009-03-07  Bruno Haible  <bruno@clisp.org>
34209
34210         Adjust u*_normcmp, u*_normcoll API.
34211         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34212         u16_normcoll, u32_normcoll): Change failure conventions.
34213         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
34214         errno and return -1.
34215         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34216
34217 2009-03-07  Bruno Haible  <bruno@clisp.org>
34218
34219         Tests for module 'uninorm/u32-normcoll'.
34220         * modules/uninorm/u32-normcoll-tests: New file.
34221         * tests/uninorm/test-u32-normcoll.c: New file.
34222
34223         Tests for module 'uninorm/u16-normcoll'.
34224         * modules/uninorm/u16-normcoll-tests: New file.
34225         * tests/uninorm/test-u16-normcoll.c: New file.
34226
34227         Tests for module 'uninorm/u8-normcoll'.
34228         * modules/uninorm/u8-normcoll-tests: New file.
34229         * tests/uninorm/test-u8-normcoll.c: New file.
34230
34231 2009-03-07  Bruno Haible  <bruno@clisp.org>
34232
34233         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
34234         tests/uninorm/test-u32-normcmp.c.
34235         * tests/uninorm/test-u32-normcmp.c: Include it.
34236         (test_nonascii): New function, extracted from main. Add some more
34237         tests.
34238         (main): Invoke test_ascii and test_nonascii.
34239         * modules/uninorm/u32-normcmp-tests (Files): Add
34240         tests/uninorm/test-u32-normcmp.h.
34241         (Depends-on): Remove uninorm/u32-normcmp.
34242
34243         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
34244         tests/uninorm/test-u16-normcmp.c.
34245         * tests/uninorm/test-u16-normcmp.c: Include it.
34246         (test_nonascii): New function, extracted from main. Add some more
34247         tests.
34248         (main): Invoke test_ascii and test_nonascii.
34249         * modules/uninorm/u16-normcmp-tests (Files): Add
34250         tests/uninorm/test-u16-normcmp.h.
34251         (Depends-on): Remove uninorm/u16-normcmp.
34252
34253         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
34254         tests/uninorm/test-u8-normcmp.c.
34255         * tests/uninorm/test-u8-normcmp.c: Include it.
34256         (test_nonascii): New function, extracted from main. Add some more
34257         tests.
34258         (main): Invoke test_ascii and test_nonascii.
34259         * modules/uninorm/u8-normcmp-tests (Files): Add
34260         tests/uninorm/test-u8-normcmp.h.
34261         (Depends-on): Remove uninorm/u8-normcmp.
34262
34263 2009-03-07  Bruno Haible  <bruno@clisp.org>
34264
34265         New module 'uninorm/u32-normcoll'.
34266         * lib/uninorm/u32-normcoll.c: New file.
34267         * modules/uninorm/u32-normcoll: New file.
34268
34269         New module 'uninorm/u16-normcoll'.
34270         * lib/uninorm/u16-normcoll.c: New file.
34271         * modules/uninorm/u16-normcoll: New file.
34272
34273         New module 'uninorm/u8-normcoll'.
34274         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
34275         declarations.
34276         * lib/uninorm/u8-normcoll.c: New file.
34277         * lib/uninorm/u-normcoll.h: New file.
34278         * modules/uninorm/u8-normcoll: New file.
34279
34280         New module 'uninorm/u32-normxfrm'.
34281         * lib/uninorm/u32-normxfrm.c: New file.
34282         * modules/uninorm/u32-normxfrm: New file.
34283
34284         New module 'uninorm/u16-normxfrm'.
34285         * lib/uninorm/u16-normxfrm.c: New file.
34286         * modules/uninorm/u16-normxfrm: New file.
34287
34288         New module 'uninorm/u8-normxfrm'.
34289         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
34290         declarations.
34291         * lib/uninorm/u8-normxfrm.c: New file.
34292         * lib/uninorm/u-normxfrm.h: New file.
34293         * modules/uninorm/u8-normxfrm: New file.
34294
34295 2009-03-07  Bruno Haible  <bruno@clisp.org>
34296
34297         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
34298         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
34299         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
34300
34301 2009-03-07  Bruno Haible  <bruno@clisp.org>
34302
34303         New module 'memxfrm'.
34304         * lib/memxfrm.h: New file.
34305         * lib/memxfrm.c: New file.
34306         * modules/memxfrm: New file.
34307
34308 2009-03-07  Bruno Haible  <bruno@clisp.org>
34309
34310         New module 'memcmp2'.
34311         * lib/memcmp2.h: New file.
34312         * lib/memcmp2.c: New file.
34313         * modules/memcmp2: New file.
34314
34315 2009-03-07  Bruno Haible  <bruno@clisp.org>
34316
34317         Tests for module 'uninorm/decomposing-form'.
34318         * modules/uninorm/decomposing-form-tests: New file.
34319         * tests/uninorm/test-decomposing-form.c: New file.
34320
34321         New module 'uninorm/decomposing-form'.
34322         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
34323         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
34324         Add 'decomposing_variant' field.
34325         * lib/uninorm/decomposing-form.c: New file.
34326         * lib/uninorm/nfc.c (uninorm_nfc): Update.
34327         * lib/uninorm/nfd.c (uninorm_nfd): Update.
34328         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
34329         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
34330         * modules/uninorm/decomposing-form: New file.
34331         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
34332         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
34333
34334 2009-03-07  Bruno Haible  <bruno@clisp.org>
34335
34336         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
34337         strings.
34338
34339 2009-03-06  Bruno Haible  <bruno@clisp.org>
34340
34341         Tests for module 'uninorm/u32-normcmp'.
34342         * tests/uninorm/test-u32-normcmp.c: New file.
34343         * modules/uninorm/u32-normcmp-tests: New file.
34344
34345         Tests for module 'uninorm/u16-normcmp'.
34346         * tests/uninorm/test-u16-normcmp.c: New file.
34347         * modules/uninorm/u16-normcmp-tests: New file.
34348
34349         Tests for module 'uninorm/u8-normcmp'.
34350         * tests/uninorm/test-u8-normcmp.c: New file.
34351         * modules/uninorm/u8-normcmp-tests: New file.
34352
34353         New module 'uninorm/u32-normcmp'.
34354         * lib/uninorm/u32-normcmp.c: New file.
34355         * modules/uninorm/u32-normcmp: New file.
34356
34357         New module 'uninorm/u16-normcmp'.
34358         * lib/uninorm/u16-normcmp.c: New file.
34359         * modules/uninorm/u16-normcmp: New file.
34360
34361         New module 'uninorm/u8-normcmp'.
34362         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
34363         declarations.
34364         * lib/uninorm/u8-normcmp.c: New file.
34365         * lib/uninorm/u-normcmp.h: New file.
34366         * modules/uninorm/u8-normcmp: New file.
34367
34368 2009-03-06  Bruno Haible  <bruno@clisp.org>
34369
34370         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
34371         Reported by Eric Blake.
34372
34373 2009-03-06  Eric Blake  <ebb9@byu.net>
34374             Bruno Haible  <bruno@clisp.org>
34375
34376         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
34377         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
34378         condition.
34379         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34380         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
34381         condition.
34382         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34383
34384 2009-03-06  Eric Blake  <ebb9@byu.net>
34385
34386         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
34387         to avoid compiler warnings.
34388         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
34389
34390 2009-03-05  Bruno Haible  <bruno@clisp.org>
34391
34392         * tests/test-ftell.c (main): Disable test beyond end of file on
34393         FreeMiNT.
34394         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
34395
34396 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
34397
34398         * lib/filevercmp.c: Move hidden files up in ordering.
34399         * tests/test-filevercmp.c: Add tests for hidden files.
34400
34401 2009-03-04  Bruno Haible  <bruno@clisp.org>
34402
34403         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
34404         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
34405         AM_CFLAGS.
34406         Reported by Simon Josefsson.
34407
34408 2009-03-03  Bruno Haible  <bruno@clisp.org>
34409
34410         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
34411         Reported by Simon Josefsson.
34412
34413         * doc/ld-version-script.texi: Update node reference.
34414
34415 2009-03-03  Bruno Haible  <bruno@clisp.org>
34416
34417         * modules/visibility (License): Change to 'unlimited'.
34418         Suggested by Simon Josefsson.
34419
34420 2009-03-03  Jim Meyering  <meyering@redhat.com>
34421
34422         unlinkdir: cannot_unlink_dir may modify process state
34423         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
34424         it's neither thread-safe nor appropriate for use in a library.
34425
34426 2009-03-03  Eric Blake  <ebb9@byu.net>
34427
34428         test-closein: silence test under Darwin
34429         * tests/test-closein.sh: Ignore stderr from cat, since we don't
34430         care if it dies from EPIPE or EBADF.
34431
34432 2009-03-03  Bruno Haible  <bruno@clisp.org>
34433
34434         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
34435         earlier.
34436         * doc/visibility.texi: Fix @node and @section.
34437
34438 2009-03-03  Simon Josefsson  <simon@josefsson.org>
34439
34440         * doc/gnulib.texi: Link to sections for ld version script and
34441         visibility.
34442         * doc/visibility.texi: Add @node and @section.
34443         * modules/ld-version-script: New module.
34444         * m4/ld-version-script.m4: New file.
34445         * doc/ld-version-script.texi: New file.
34446
34447 2009-03-02  David Lutterkort  <lutter@redhat.com>
34448
34449         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
34450         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34451
34452 2009-03-02  Bruno Haible  <bruno@clisp.org>
34453
34454         * doc/visibility.texi: Mention libtool's -export-symbols option.
34455
34456 2009-03-02  Jim Meyering  <meyering@redhat.com>
34457
34458         announce-gen: new option: --no-print-checksums
34459         * build-aux/announce-gen (usage): Describe it.
34460         (print_checksums): Print a newline here, not in the [*] footnote.
34461         (main): Honor it.
34462
34463 2009-03-01  Bruno Haible  <bruno@clisp.org>
34464
34465         Use socklen_t in the native Windows replacements prototypes.
34466         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
34467         instead of 'int'.
34468         * lib/getsockopt.c (rpl_getsockopt): Likewise.
34469         * lib/setsockopt.c (rpl_setsockopt): Likewise.
34470         * modules/getsockopt (Depends-on): Add socklen.
34471         * modules/setsockopt (Depends-on): Add socklen.
34472
34473 2009-03-01  Bruno Haible  <bruno@clisp.org>
34474
34475         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
34476         least 4.2.
34477
34478 2009-03-01  Eric Blake  <ebb9@byu.net>
34479             Bruno Haible  <bruno@clisp.org>
34480
34481         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
34482         error messages.
34483         * lib/wait-process.c (wait_subprocess): Omit error message about
34484         deadly signal sent to the child of termsigp != NULL.
34485
34486 2009-03-01  Eric Blake  <ebb9@byu.net>
34487
34488         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
34489
34490 2009-03-01  Bruno Haible  <bruno@clisp.org>
34491
34492         Avoid a gcc warning.
34493         * tests/test-sched.c (b): Make global.
34494         Reported by Eric Blake.
34495
34496 2009-01-19  Martin Lambers  <marlam@marlam.de>
34497
34498         Provide POSIX semantics for socket timeout options on W32.
34499         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
34500         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
34501         * modules/setsockopt: Depend on sys_time module for struct timeval.
34502         * modules/getsockopt: Depend on sys_time module for struct timeval.
34503
34504 2009-03-01  Simon Josefsson  <simon@josefsson.org>
34505
34506         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
34507         __USE_GNU, for consistency with netdb.in.h.
34508         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34509
34510 2009-03-01  Bruno Haible  <bruno@clisp.org>
34511
34512         More support for FreeMiNT.
34513         * lib/fseeko.c (rpl_fseeko): Complete last commit.
34514         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34515
34516 2009-03-01  Bruno Haible  <bruno@clisp.org>
34517
34518         More support for FreeMiNT.
34519         * lib/fpurge.c (fpurge): Correct last commit.
34520         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34521
34522 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34523
34524         Fix unportable awk script in vc-list-files.
34525         * build-aux/vc-list-files: In the replacement awk script, use
34526         substr with a second argument of 1, not zero.
34527         Report by Simon Josefsson.
34528
34529 2009-02-28  Bruno Haible  <bruno@clisp.org>
34530
34531         More support for FreeMiNT.
34532         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
34533         to FreeMiNT today.
34534         * lib/fwriting.c (fwriting): Likewise.
34535         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
34536
34537 2009-02-28  Bruno Haible  <bruno@clisp.org>
34538
34539         * tests/test-freadseek.c (main): Disable test beyond end of file on
34540         FreeMiNT.
34541         * tests/test-ftello.c (main): Likewise.
34542         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
34543
34544 2009-02-28  Bruno Haible  <bruno@clisp.org>
34545
34546         Add tentative support for FreeMiNT.
34547         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
34548         * lib/fpurge.c (fpurge): Likewise.
34549         * lib/freadable.c (freadable): Likewise.
34550         * lib/freading.c (freading): Likewise.
34551         * lib/freadptr.c (freadptr): Likewise.
34552         * lib/freadseek.c (freadptrinc): Likewise.
34553         * lib/fseeko.c (rpl_fseeko): Likewise.
34554         * lib/fseterr.c (fseterr): Likewise.
34555         * lib/fwritable.c (fwritable): Likewise.
34556         * lib/fwriting.c (fwriting): Likewise.
34557         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
34558         Hourihane.
34559         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34560
34561 2009-02-28  Bruno Haible  <bruno@clisp.org>
34562
34563         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
34564         SIGCHLD.
34565         Reported by Jim Meyering.
34566
34567 2009-02-28  Bruno Haible  <bruno@clisp.org>
34568
34569         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
34570         Mention the results of these tests on various platforms.
34571         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
34572         order.
34573         * doc/posix-functions/printf.texi: Likewise.
34574         * doc/posix-functions/snprintf.texi: Likewise.
34575         * doc/posix-functions/sprintf.texi: Likewise.
34576         * doc/posix-functions/vfprintf.texi: Likewise.
34577         * doc/posix-functions/vprintf.texi: Likewise.
34578         * doc/posix-functions/vsnprintf.texi: Likewise.
34579         * doc/posix-functions/vsprintf.texi: Likewise.
34580         * doc/glibc-functions/obstack_printf.texi: Likewise.
34581         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
34582
34583 2009-02-28  Bruno Haible  <bruno@clisp.org>
34584
34585         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
34586         Reported by Loïc Minier <lool@dooz.org>.
34587
34588 2009-02-27  Bruno Haible  <bruno@clisp.org>
34589
34590         * gnulib-tool (func_import): Make the sed expression used to create the
34591         sed script for updating the .gitignore file POSIX compliant.
34592         Reported by Eric Blake.
34593
34594 2009-02-27  Bruno Haible  <bruno@clisp.org>
34595
34596         * gnulib-tool (sed): Don't alias as "sed --posix".
34597         Reported by Eric Blake.
34598
34599 2009-02-27  Bruno Haible  <bruno@clisp.org>
34600
34601         Avoid test link errors.
34602         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
34603         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
34604         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
34605         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
34606         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34607
34608 2009-02-27  Bruno Haible  <bruno@clisp.org>
34609
34610         Avoid spurious "(cached)" in configure output.
34611         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
34612         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
34613         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
34614         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
34615         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
34616         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
34617         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
34618         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
34619         Reported by Eric Blake.
34620
34621 2009-02-27  Eric Blake  <ebb9@byu.net>
34622
34623         printf: fix regression in previous patch
34624         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
34625
34626 2009-02-27  Bruno Haible  <bruno@clisp.org>
34627
34628         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
34629         value.
34630         * lib/stdint.in.h: Likewise.
34631         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
34632
34633 2009-02-27  Eric Blake  <ebb9@byu.net>
34634
34635         doc: mention more functions added in cygwin 1.7.0
34636         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
34637         addition.
34638         * doc/posix-functions/open_wmemstream.texi: Likewise.
34639         * doc/posix-functions/wcsnlen.texi: Likewise.
34640         * doc/posix-functions/wcsnrtombs.texi: Likewise.
34641         * doc/posix-functions/wcstod.texi: Likewise.
34642         * doc/posix-functions/wcstof.texi: Likewise.
34643         * doc/posix-functions/wcstoimax.texi: Likewise.
34644         * doc/posix-functions/wcstok.texi: Likewise.
34645         * doc/posix-functions/wcstoumax.texi: Likewise.
34646
34647         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
34648         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
34649         * doc/posix-functions/fprintf.texi: Update.
34650         * doc/posix-functions/printf.texi: Update.
34651         * doc/posix-functions/snprintf.texi: Update.
34652         * doc/posix-functions/sprintf.texi: Update.
34653         * doc/posix-functions/vfprintf.texi: Update.
34654         * doc/posix-functions/vprintf.texi: Update.
34655         * doc/posix-functions/vsnprintf.texi: Update.
34656         * doc/posix-functions/vsprintf.texi: Update.
34657         * doc/glibc-functions/obstack_printf.texi: Update.
34658         * doc/glibc-functions/obstack_vprintf.texi: Update.
34659
34660 2009-02-26  Eric Blake  <ebb9@byu.net>
34661
34662         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
34663         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
34664         compilation bug by using runtime conversion.
34665         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
34666         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
34667         * modules/ceill-tests (Files): Use nan.h.
34668         * modules/floorl-tests (Files): Likewise.
34669         * modules/frexpl-tests (Files): Likewise.
34670         * modules/isnanl-tests (Files): Likewise.
34671         * modules/ldexpl-tests (Files): Likewise.
34672         * modules/roundl-tests (Files): Likewise.
34673         * modules/truncl-tests (Files): Likewise.
34674         * tests/test-ceill.c (main): Use a working NaN.
34675         * tests/test-floorl.c (main): Likewise.
34676         * tests/test-frexpl.c (main): Likewise.
34677         * tests/test-isnan.c (test_long_double): Likewise.
34678         * tests/test-isnanl.h (main): Likewise.
34679         * tests/test-ldexpl.h (main): Likewise.
34680         * tests/test-roundl.h (main): Likewise.
34681         * tests/test-truncl.h (main): Likewise.
34682         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
34683
34684 2009-02-26  Eric Blake  <ebb9@byu.net>
34685             Bruno Haible  <bruno@clisp.org>
34686
34687         Work around a *printf bug with %ls on Solaris.
34688         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
34689         precision is specified, sprintf stops converting the wide string
34690         argument when the number of bytes that have been produced by this
34691         conversion equals or exceeds the precision.
34692         * doc/posix-functions/fprintf.texi: Update.
34693         * doc/posix-functions/printf.texi: Update.
34694         * doc/posix-functions/snprintf.texi: Update.
34695         * doc/posix-functions/sprintf.texi: Update.
34696         * doc/posix-functions/vfprintf.texi: Update.
34697         * doc/posix-functions/vprintf.texi: Update.
34698         * doc/posix-functions/vsnprintf.texi: Update.
34699         * doc/posix-functions/vsprintf.texi: Update.
34700         * doc/glibc-functions/obstack_printf.texi: Update.
34701         * doc/glibc-functions/obstack_vprintf.texi: Update.
34702
34703 2009-02-26  Eric Blake  <ebb9@byu.net>
34704
34705         stdlib: favor compiler check of random.h
34706         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
34707         to avoid an ObjC random.h installed by Swarm.
34708
34709 2009-02-26  Bruno Haible  <bruno@clisp.org>
34710
34711         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
34712         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
34713         Reported by Gary V. Vaughan <gary@gnu.org>.
34714
34715 2009-02-26  Bruno Haible  <bruno@clisp.org>
34716
34717         Fix *printf behaviour regarding the %ls directive.
34718         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
34719         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
34720         NEED_PRINTF_DIRECTIVE_LS.
34721         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
34722         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34723         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34724         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
34725         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
34726         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
34727         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
34728         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34729         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34730         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34731         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34732         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
34733         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34734         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34735         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34736         * doc/posix-functions/fprintf.texi: Update.
34737         * doc/posix-functions/printf.texi: Update.
34738         * doc/posix-functions/snprintf.texi: Update.
34739         * doc/posix-functions/sprintf.texi: Update.
34740         * doc/posix-functions/vfprintf.texi: Update.
34741         * doc/posix-functions/vprintf.texi: Update.
34742         * doc/posix-functions/vsnprintf.texi: Update.
34743         * doc/posix-functions/vsprintf.texi: Update.
34744         * doc/glibc-functions/obstack_printf.texi: Update.
34745         * doc/glibc-functions/obstack_vprintf.texi: Update.
34746         Reported by Eric Blake.
34747
34748 2009-02-25  Bruno Haible  <bruno@clisp.org>
34749
34750         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
34751         with known value.
34752         Reported by Gary V. Vaughan <gary@gnu.org>.
34753
34754 2009-02-25  Bruno Haible  <bruno@clisp.org>
34755
34756         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
34757         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
34758         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
34759         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
34760         Reported by Gary V. Vaughan <gary@gnu.org>.
34761
34762 2009-02-25  Bruno Haible  <bruno@clisp.org>
34763
34764         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
34765         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
34766         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
34767         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
34768         Reported by Gary V. Vaughan <gary@gnu.org>.
34769
34770 2009-02-25  Eric Blake  <ebb9@byu.net>
34771
34772         tests: skip fseek/ftell tests if ungetc is broken
34773         * m4/ungetc.m4: New file.
34774         * modules/fseek-tests: Split test, so ungetc dependency is
34775         separate from rest of test.
34776         * modules/fseeko-tests: Likewise.
34777         * modules/ftell-tests: Likewise.
34778         * modules/ftello-tests: Likewise.
34779         * tests/test-fseek.c (main): Isolate ungetc dependency.
34780         * tests/test-fseeko.c (main): Likewise.
34781         * tests/test-ftell.c (main): Likewise.
34782         * tests/test-ftello.c (main): Likewise.
34783         * tests/test-fseek2.sh: New file.
34784         * tests/test-fseeko2.sh: Likewise.
34785         * tests/test-ftell2.sh: Likewise.
34786         * tests/test-ftello2.sh: Likewise.
34787
34788 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
34789
34790         test-getaddrinfo: fix usage of skip return code 77
34791         * tests/test-gettaddrinfo.c: Return skip code 77 only
34792         for first occurance of skip (4x77 is not 77)
34793
34794 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
34795
34796         strtod: avoid C99 decl-after-statement
34797         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
34798
34799 2009-02-24  Eric Blake  <ebb9@byu.net>
34800
34801         strtod: detect HP-UX 11.31 bug
34802         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
34803         Reported by Gary V. Vaughan.
34804
34805 2009-02-23  Bruno Haible  <bruno@clisp.org>
34806
34807         Fix invalid read past end of memory block.
34808         * lib/vasnprintf.c (DCHAR_SET): Define.
34809         (local_wcslen): Define only when needed.
34810         (local_strnlen, local_wcsnlen): New functions.
34811         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
34812         directives that involve a conversion ourselves.
34813         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
34814         wcsnlen, mbrtowc, wcrtomb.
34815         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
34816         * tests/test-vasprintf-posix.c (test_function): Likewise.
34817         * tests/test-snprintf-posix.h (test_function): Likewise.
34818         * tests/test-sprintf-posix.h (test_function): Likewise.
34819         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34820
34821 2009-02-22  Bruno Haible  <bruno@clisp.org>
34822
34823         Implement new clarified decomposition of Hangul syllables.
34824         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
34825         of type LTV, return only a pairwise decomposition.
34826         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
34827         Likewise.
34828         * tests/uninorm/test-decomposition.c (main): Updated expected result.
34829         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
34830         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
34831
34832 2009-02-22  Bruno Haible  <bruno@clisp.org>
34833
34834         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
34835         zero-length results and shrink excess allocated memory.
34836         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
34837         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
34838         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
34839         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
34840         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
34841         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
34842         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
34843         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
34844         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
34845         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
34846         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
34847         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
34848
34849 2009-02-21  Bruno Haible  <bruno@clisp.org>
34850
34851         * doc/gnulib.texi: Include safe-alloc.texi earlier.
34852         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
34853         spaces after a period. Put a space between a macro name and its
34854         argument list. Trivial rewordings.
34855         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
34856         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
34857         (main): Return 0 explicitly.
34858
34859 2009-02-21  Bruno Haible  <bruno@clisp.org>
34860
34861         Tests for module 'uninorm/filter'.
34862         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
34863         * modules/uninorm/filter-tests: New file.
34864
34865         New module 'uninorm/filter'.
34866         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
34867         uninorm_filter_flush, uninorm_filter_free): New declarations.
34868         * lib/uninorm/uninorm-filter.c: New file.
34869         * modules/uninorm/filter: New file.
34870
34871 2009-02-21  Bruno Haible  <bruno@clisp.org>
34872
34873         Tests for module 'uninorm/nfkc'.
34874         * tests/uninorm/test-nfkc.c: New file.
34875         * tests/uninorm/test-u8-nfkc.c: New file.
34876         * tests/uninorm/test-u16-nfkc.c: New file.
34877         * tests/uninorm/test-u32-nfkc.c: New file.
34878         * tests/uninorm/test-u32-nfkc-big.sh: New file.
34879         * tests/uninorm/test-u32-nfkc-big.c: New file.
34880         * modules/uninorm/nfkc-tests: New file.
34881
34882         New module 'uninorm/nfkc'.
34883         * lib/uninorm/nfkc.c: New file.
34884         * modules/uninorm/nfkc: New file.
34885
34886         Tests for module 'uninorm/nfkd'.
34887         * tests/uninorm/test-nfkd.c: New file.
34888         * tests/uninorm/test-u8-nfkd.c: New file.
34889         * tests/uninorm/test-u16-nfkd.c: New file.
34890         * tests/uninorm/test-u32-nfkd.c: New file.
34891         * tests/uninorm/test-u32-nfkd-big.sh: New file.
34892         * tests/uninorm/test-u32-nfkd-big.c: New file.
34893         * modules/uninorm/nfkd-tests: New file.
34894
34895         New module 'uninorm/nfkd'.
34896         * lib/uninorm/nfkd.c: New file.
34897         * modules/uninorm/nfkd: New file.
34898
34899         Tests for module 'uninorm/nfc'.
34900         * tests/uninorm/test-nfc.c: New file.
34901         * tests/uninorm/test-u8-nfc.c: New file.
34902         * tests/uninorm/test-u16-nfc.c: New file.
34903         * tests/uninorm/test-u32-nfc.c: New file.
34904         * tests/uninorm/test-u32-nfc-big.sh: New file.
34905         * tests/uninorm/test-u32-nfc-big.c: New file.
34906         * modules/uninorm/nfc-tests: New file.
34907
34908         New module 'uninorm/nfc'.
34909         * lib/uninorm/nfc.c: New file.
34910         * modules/uninorm/nfc: New file.
34911
34912         Tests for module 'uninorm/nfd'.
34913         * tests/uninorm/test-nfd.c: New file.
34914         * tests/uninorm/test-u8-nfd.c: New file.
34915         * tests/uninorm/test-u16-nfd.c: New file.
34916         * tests/uninorm/test-u32-nfd.c: New file.
34917         * tests/uninorm/test-u32-nfd-big.sh: New file.
34918         * tests/uninorm/test-u32-nfd-big.c: New file.
34919         * tests/uninorm/test-u32-normalize-big.h: New file.
34920         * tests/uninorm/test-u32-normalize-big.c: New file.
34921         * tests/uninorm/NormalizationTest.txt: New file, created from
34922         Unicode 5.1.0 NormalizationTest.txt.
34923         * modules/uninorm/nfd-tests: New file.
34924
34925         New module 'uninorm/nfd'.
34926         * lib/uninorm/nfd.c: New file.
34927         * modules/uninorm/nfd: New file.
34928
34929         New module 'uninorm/u32-normalize'.
34930         * lib/uninorm/u32-normalize.c: New file.
34931         * modules/uninorm/u32-normalize: New file.
34932
34933         New module 'uninorm/u16-normalize'.
34934         * lib/uninorm/u16-normalize.c: New file.
34935         * modules/uninorm/u16-normalize: New file.
34936
34937         New module 'uninorm/u8-normalize'.
34938         * lib/uninorm/u8-normalize.c: New file.
34939         * lib/uninorm/normalize-internal.h: New file.
34940         * lib/uninorm/u-normalize-internal.h: New file.
34941         * modules/uninorm/u8-normalize: New file.
34942
34943         New module 'uninorm/decompose-internal'.
34944         * lib/uninorm/decompose-internal.c: New file.
34945         * modules/uninorm/decompose-internal: New file.
34946
34947         Tests for module 'uninorm/composition'.
34948         * tests/uninorm/test-composition.c: New file.
34949         * modules/uninorm/composition-tests: New file.
34950
34951         New module 'uninorm/composition'.
34952         * lib/uninorm/composition.c: New file.
34953         * lib/uninorm/composition-table.gperf: New file, generated by
34954         gen-uni-tables.
34955         * modules/uninorm/composition: New file.
34956
34957         Tests for module 'uninorm/compat-decomposition'.
34958         * tests/uninorm/test-compat-decomposition.c: New file.
34959         * modules/uninorm/compat-decomposition-tests: New file.
34960
34961         New module 'uninorm/compat-decomposition'.
34962         * lib/uninorm/decompose-internal.h: New file.
34963         * lib/uninorm/compat-decomposition.c: New file.
34964         * modules/uninorm/compat-decomposition: New file.
34965
34966         Tests for module 'uninorm/canonical-decomposition'.
34967         * tests/uninorm/test-canonical-decomposition.c: New file.
34968         * modules/uninorm/canonical-decomposition-tests: New file.
34969
34970         New module 'uninorm/canonical-decomposition'.
34971         * lib/uninorm/canonical-decomposition.c: New file.
34972         * modules/uninorm/canonical-decomposition: New file.
34973
34974         Tests for module 'uninorm/decomposition'.
34975         * tests/uninorm/test-decomposition.c: New file.
34976         * modules/uninorm/decomposition-tests: New file.
34977
34978         New module 'uninorm/decomposition'.
34979         * lib/uninorm/decomposition.c: New file.
34980         * modules/uninorm/decomposition: New file.
34981
34982         New module 'uninorm/decomposition-table'.
34983         * lib/uninorm/decomposition-table.h: New file.
34984         * lib/uninorm/decomposition-table.c: New file.
34985         * lib/uninorm/decomposition-table1.h: New file, generated by
34986         gen-uni-tables.
34987         * lib/uninorm/decomposition-table2.h: New file, generated by
34988         gen-uni-tables.
34989         * modules/uninorm/decomposition-table: New file.
34990
34991         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
34992         (UC_DECOMP_*): New enumeration items.
34993         (get_decomposition): New function.
34994         (struct decomp_table): New type.
34995         (output_decomposition, output_decomposition_tables): New functions.
34996         (unicode_composition_exclusions): New variable.
34997         (fill_composition_exclusions, debug_output_composition_tables): New
34998         functions.
34999         (main): Accept one more argument. Invoke fill_composition_exclusions.
35000         Output decomposition and composition tables.
35001
35002         New module 'uninorm/base'.
35003         * lib/uninorm.h: New file.
35004         * lib/unictype.h: Update comment.
35005         * modules/uninorm/base: New file.
35006
35007 2009-02-21  David Lutterkort  <lutter@redhat.com>
35008
35009         Tests for module 'safe-alloc'.
35010         * tests/test-safe-alloc.c: New file.
35011         * modules/safe-alloc-tests: New file.
35012
35013         New module 'safe-alloc'.
35014         * lib/safe-alloc.h: New file.
35015         * lib/safe-alloc.c: New file.
35016         * m4/safe-alloc.m4: New file.
35017         * modules/safe-alloc: New file.
35018         * doc/safe-alloc.texi: New file.
35019         * doc/gnulib.texi: Include it.
35020         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
35021         safe-alloc.
35022
35023 2009-02-18  Bruno Haible  <bruno@clisp.org>
35024
35025         Fix link error on non-glibc systems.
35026         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
35027         variable.
35028         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35029
35030 2009-02-18  Jim Meyering  <meyering@redhat.com>
35031
35032         fts: avoid used-uninitialized error due to recent change
35033         * lib/fts.c (fts_read): Guard uses of the new member,
35034         parent->fts_n_dirs_remaining, since it's not relevant for
35035         the parent of a directory specified on the command-line.
35036
35037 2009-02-17  James Youngman  <jay@gnu.org>
35038             Bruno Haible  <bruno@clisp.org>
35039
35040         * m4/include_next.m4: Reformulate comment.
35041
35042 2009-02-16  Jim Meyering  <meyering@redhat.com>
35043
35044         fts: add #if guards so that the fts_lgpl module still builds
35045         * lib/fts.c: Guard just-added hash-table-using parts with
35046         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
35047         Reported by Simon Josefsson.
35048
35049 2009-02-15  Bruno Haible  <bruno@clisp.org>
35050
35051         * modules/array-mergesort-tests: New file.
35052         * tests/test-array-mergesort.c: New file.
35053
35054         New module 'array-mergesort'.
35055         * modules/array-mergesort: New file.
35056         * lib/array-mergesort.h: New file.
35057
35058 2009-02-15  Bruno Haible  <bruno@clisp.org>
35059
35060         Fix 2009-02-07 commit.
35061         * lib/gen-uni-tables.c (output_predicate, output_category,
35062         output_combclass, output_bidi_category, output_decimal_digit,
35063         output_digit, output_numeric, output_mirror, output_scripts,
35064         output_ident_category, output_simple_mapping): Fix format directives.
35065         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
35066
35067 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
35068
35069         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
35070         fixes are available from IBM.
35071
35072 2009-02-13  Jim Meyering  <meyering@redhat.com>
35073
35074         fts: arrange not to stat non-directories in more cases
35075         This makes GNU find (when it doesn't need to stat each file)
35076         *much* more efficient at traversing reiserfs file systems.
35077         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
35078         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
35079         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
35080         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
35081         (leaf_optimization_applies): New function.
35082         (LCO_hash, LCO_compare): New helper functions.
35083         (link_count_optimize_ok): New function.
35084         (fts_stat): Initialize new member (if dir).
35085         (fts_read): Decrement parent's fts_n_dirs_remaining count if
35086         we've just stat'ed a directory.  Skip the stat call when possible.
35087         ---
35088         Note this AFS-related exchange:
35089         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
35090         and note find's pioctl call in find/fstype.c.
35091         But that is necessary only if you want to enable the
35092         optimization for AFS, and for now, I don't.
35093
35094         fts: move a function definition "up" (no semantic change)
35095         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
35096         "up" to precede upcoming use of a related function.
35097
35098 2009-02-11  Jim Meyering  <meyering@redhat.com>
35099
35100         fts: correct internal computation of nlinks (optimization-related)
35101         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
35102         whether the current entry is a directory, so don't test it.
35103
35104 2009-02-10  Bruno Haible  <bruno@clisp.org>
35105
35106         Tests for module 'uniwbrk/ulc-wordbreaks'.
35107         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
35108         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
35109         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
35110
35111         Tests for module 'uniwbrk/u32-wordbreaks'.
35112         * modules/uniwbrk/u32-wordbreaks-tests: New file.
35113         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
35114
35115         Tests for module 'uniwbrk/u16-wordbreaks'.
35116         * modules/uniwbrk/u16-wordbreaks-tests: New file.
35117         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
35118
35119         Tests for module 'uniwbrk/u8-wordbreaks'.
35120         * modules/uniwbrk/u8-wordbreaks-tests: New file.
35121         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
35122
35123 2009-02-10  Bruno Haible  <bruno@clisp.org>
35124
35125         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
35126         property.
35127         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
35128         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
35129         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
35130
35131 2009-02-10  Simon Josefsson  <simon@josefsson.org>
35132
35133         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
35134         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
35135
35136 2009-02-10  Bruno Haible  <bruno@clisp.org>
35137
35138         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
35139         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
35140         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
35141         * lib/unilbrk/u8-possible-linebreaks.c: Update.
35142         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
35143         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
35144
35145 2009-02-09  Simon Josefsson  <simon@josefsson.org>
35146
35147         * lib/sockets.h (gl_fd_to_handle): New function.
35148
35149         * tests/test-sockets.c: Call gl_fd_to_handle.
35150
35151 2009-02-09  Bruno Haible  <bruno@clisp.org>
35152
35153         * doc/havelib.texi: Document the conventions on bi-arch systems.
35154
35155 2009-02-08  Bruno Haible  <bruno@clisp.org>
35156
35157         Document the AC_LIB_LINKFLAGS macro.
35158         * doc/havelib.texi: New file, mostly written on 2005-05-24.
35159         * doc/gnulib.texi: Include it.
35160
35161 2009-02-08  Bruno Haible  <bruno@clisp.org>
35162
35163         Fix wrong order of sections, compared to TOC.
35164         * doc/gnulib.texi: Include relocatable-maint.texi after the
35165         "Regular expressions" node, not before.
35166
35167 2009-02-08  Bruno Haible  <bruno@clisp.org>
35168
35169         Tests for module 'unicase/totitle'.
35170         * modules/unicase/totitle-tests: New file.
35171
35172         Tests for module 'unicase/tolower'.
35173         * modules/unicase/tolower-tests: New file.
35174
35175         Tests for module 'unicase/toupper'.
35176         * modules/unicase/toupper-tests: New file.
35177         * tests/unicase/test-mapping-part1.h: New file.
35178         * tests/unicase/test-mapping-part2.h: New file.
35179
35180         New module 'unicase/totitle'.
35181         * modules/unicase/totitle: New file.
35182         * lib/unicase/totitle.c: New file.
35183
35184         New module 'unicase/tolower'.
35185         * modules/unicase/tolower: New file.
35186         * lib/unicase/tolower.c: New file.
35187
35188         New module 'unicase/toupper'.
35189         * modules/unicase/toupper: New file.
35190         * lib/unicase/toupper.c: New file.
35191         * lib/unicase/simple-mapping.h: New file.
35192
35193         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
35194         (mapping_table): New structure.
35195         (output_simple_mapping): New function.
35196         (main): Invoke output_simple_mapping_test and output_simple_mapping.
35197         * modules/gen-uni-tables (Description): Update.
35198         * lib/unicase/toupper.h: New file, automatically generated by
35199         gen-uni-tables.
35200         * lib/unicase/tolower.h: New file, automatically generated by
35201         gen-uni-tables.
35202         * lib/unicase/totitle.h: New file, automatically generated by
35203         gen-uni-tables.
35204         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
35205         gen-uni-tables.
35206         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
35207         gen-uni-tables.
35208         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
35209         gen-uni-tables.
35210
35211         New module 'unicase/base'.
35212         * modules/unicase/base: New file.
35213         * lib/unicase.h: New file.
35214
35215 2009-02-08  Bruno Haible  <bruno@clisp.org>
35216
35217         New module 'uniwbrk/ulc-wordbreaks'.
35218         * modules/uniwbrk/ulc-wordbreaks: New file.
35219         * lib/uniwbrk/ulc-wordbreaks.c: New file.
35220
35221         New module 'uniwbrk/u32-wordbreaks'.
35222         * modules/uniwbrk/u32-wordbreaks: New file.
35223         * lib/uniwbrk/u32-wordbreaks.c: New file.
35224
35225         New module 'uniwbrk/u16-wordbreaks'.
35226         * modules/uniwbrk/u16-wordbreaks: New file.
35227         * lib/uniwbrk/u16-wordbreaks.c: New file.
35228
35229         New module 'uniwbrk/u8-wordbreaks'.
35230         * modules/uniwbrk/u8-wordbreaks: New file.
35231         * lib/uniwbrk/u8-wordbreaks.c: New file.
35232         * lib/uniwbrk/u-wordbreaks.h: New file.
35233
35234         New module 'uniwbrk/table'.
35235         * modules/uniwbrk/table: New file.
35236         * lib/uniwbrk/wbrktable.h: New file.
35237         * lib/uniwbrk/wbrktable.c: New file.
35238
35239         New module 'uniwbrk/wordbreak-property'.
35240         * modules/uniwbrk/wordbreak-property: New file.
35241         * lib/uniwbrk/wordbreak-property.c: New file.
35242
35243         * lib/gen-uni-tables.c (WBP_*): New enum items.
35244         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
35245         (unicode_org_wbp): New variable.
35246         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
35247         New functions.
35248         (wbp_table): New structure.
35249         (output_wbp, output_wbrk_tables): New functions.
35250         (main): Accept additional argument. Invoke fill_org_wbp,
35251         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
35252         output_wbrk_tables.
35253         * modules/gen-uni-tables (Description): Update.
35254         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
35255         gen-uni-tables.
35256
35257         New module 'uniwbrk/base'.
35258         * modules/uniwbrk/base: New file.
35259         * lib/uniwbrk.h: New file.
35260
35261 2009-02-08  Bruno Haible  <bruno@clisp.org>
35262
35263         Update to Unicode 5.1.0.
35264         * lib/gen-uni-tables.c (is_property_alphabetic): Include
35265         U+2185..U+2188.
35266         (is_property_default_ignorable_code_point): Don't include characters
35267         of category Cc or Cs and not-a-characters.
35268         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
35269         U+0D79, U+109E, U+109F, U+A60C.
35270         * lib/unictype/bidi_of.h: Regenerated.
35271         * lib/unictype/blocks.h: Regenerated.
35272         * lib/unictype/categ_C.h: Regenerated.
35273         * lib/unictype/categ_Cf.h: Regenerated.
35274         * lib/unictype/categ_Cn.h: Regenerated.
35275         * lib/unictype/categ_L.h: Regenerated.
35276         * lib/unictype/categ_Ll.h: Regenerated.
35277         * lib/unictype/categ_Lm.h: Regenerated.
35278         * lib/unictype/categ_Lo.h: Regenerated.
35279         * lib/unictype/categ_Lu.h: Regenerated.
35280         * lib/unictype/categ_M.h: Regenerated.
35281         * lib/unictype/categ_Mc.h: Regenerated.
35282         * lib/unictype/categ_Me.h: Regenerated.
35283         * lib/unictype/categ_Mn.h: Regenerated.
35284         * lib/unictype/categ_N.h: Regenerated.
35285         * lib/unictype/categ_Nd.h: Regenerated.
35286         * lib/unictype/categ_Nl.h: Regenerated.
35287         * lib/unictype/categ_No.h: Regenerated.
35288         * lib/unictype/categ_P.h: Regenerated.
35289         * lib/unictype/categ_Pd.h: Regenerated.
35290         * lib/unictype/categ_Pe.h: Regenerated.
35291         * lib/unictype/categ_Pf.h: Regenerated.
35292         * lib/unictype/categ_Pi.h: Regenerated.
35293         * lib/unictype/categ_Po.h: Regenerated.
35294         * lib/unictype/categ_Ps.h: Regenerated.
35295         * lib/unictype/categ_S.h: Regenerated.
35296         * lib/unictype/categ_Sk.h: Regenerated.
35297         * lib/unictype/categ_Sm.h: Regenerated.
35298         * lib/unictype/categ_So.h: Regenerated.
35299         * lib/unictype/categ_of.h: Regenerated.
35300         * lib/unictype/combining.h: Regenerated.
35301         * lib/unictype/ctype_alnum.h: Regenerated.
35302         * lib/unictype/ctype_alpha.h: Regenerated.
35303         * lib/unictype/ctype_graph.h: Regenerated.
35304         * lib/unictype/ctype_lower.h: Regenerated.
35305         * lib/unictype/ctype_print.h: Regenerated.
35306         * lib/unictype/ctype_punct.h: Regenerated.
35307         * lib/unictype/ctype_upper.h: Regenerated.
35308         * lib/unictype/decdigit.h: Regenerated.
35309         * lib/unictype/digit.h: Regenerated.
35310         * lib/unictype/mirror.h: Regenerated.
35311         * lib/unictype/numeric.h: Regenerated.
35312         * lib/unictype/pr_alphabetic.h: Regenerated.
35313         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
35314         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
35315         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
35316         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
35317         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
35318         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
35319         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
35320         * lib/unictype/pr_combining.h: Regenerated.
35321         * lib/unictype/pr_dash.h: Regenerated.
35322         * lib/unictype/pr_decimal_digit.h: Regenerated.
35323         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
35324         * lib/unictype/pr_deprecated.h: Regenerated.
35325         * lib/unictype/pr_diacritic.h: Regenerated.
35326         * lib/unictype/pr_extender.h: Regenerated.
35327         * lib/unictype/pr_format_control.h: Regenerated.
35328         * lib/unictype/pr_grapheme_base.h: Regenerated.
35329         * lib/unictype/pr_grapheme_extend.h: Regenerated.
35330         * lib/unictype/pr_grapheme_link.h: Regenerated.
35331         * lib/unictype/pr_id_continue.h: Regenerated.
35332         * lib/unictype/pr_id_start.h: Regenerated.
35333         * lib/unictype/pr_ideographic.h: Regenerated.
35334         * lib/unictype/pr_ignorable_control.h: Regenerated.
35335         * lib/unictype/pr_lowercase.h: Regenerated.
35336         * lib/unictype/pr_math.h: Regenerated.
35337         * lib/unictype/pr_numeric.h: Regenerated.
35338         * lib/unictype/pr_other_alphabetic.h: Regenerated.
35339         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
35340         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
35341         * lib/unictype/pr_other_id_continue.h: Regenerated.
35342         * lib/unictype/pr_other_lowercase.h: Regenerated.
35343         * lib/unictype/pr_other_math.h: Regenerated.
35344         * lib/unictype/pr_punctuation.h: Regenerated.
35345         * lib/unictype/pr_sentence_terminal.h: Regenerated.
35346         * lib/unictype/pr_soft_dotted.h: Regenerated.
35347         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
35348         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
35349         * lib/unictype/pr_unified_ideograph.h: Regenerated.
35350         * lib/unictype/pr_uppercase.h: Regenerated.
35351         * lib/unictype/pr_xid_continue.h: Regenerated.
35352         * lib/unictype/pr_xid_start.h: Regenerated.
35353         * lib/unictype/pr_zero_width.h: Regenerated.
35354         * lib/unictype/scripts.h: Regenerated.
35355         * lib/unictype/scripts_byname.gperf: Regenerated.
35356         * lib/unictype/sy_java_ident.h: Regenerated.
35357         * lib/unilbrk/lbrkprop1.h: Regenerated.
35358         * lib/unilbrk/lbrkprop2.h: Regenerated.
35359         * tests/unictype/test-categ_C.c: Regenerated.
35360         * tests/unictype/test-categ_Cf.c: Regenerated.
35361         * tests/unictype/test-categ_Cn.c: Regenerated.
35362         * tests/unictype/test-categ_L.c: Regenerated.
35363         * tests/unictype/test-categ_Ll.c: Regenerated.
35364         * tests/unictype/test-categ_Lm.c: Regenerated.
35365         * tests/unictype/test-categ_Lo.c: Regenerated.
35366         * tests/unictype/test-categ_Lu.c: Regenerated.
35367         * tests/unictype/test-categ_M.c: Regenerated.
35368         * tests/unictype/test-categ_Mc.c: Regenerated.
35369         * tests/unictype/test-categ_Me.c: Regenerated.
35370         * tests/unictype/test-categ_Mn.c: Regenerated.
35371         * tests/unictype/test-categ_N.c: Regenerated.
35372         * tests/unictype/test-categ_Nd.c: Regenerated.
35373         * tests/unictype/test-categ_Nl.c: Regenerated.
35374         * tests/unictype/test-categ_No.c: Regenerated.
35375         * tests/unictype/test-categ_P.c: Regenerated.
35376         * tests/unictype/test-categ_Pd.c: Regenerated.
35377         * tests/unictype/test-categ_Pe.c: Regenerated.
35378         * tests/unictype/test-categ_Pf.c: Regenerated.
35379         * tests/unictype/test-categ_Pi.c: Regenerated.
35380         * tests/unictype/test-categ_Po.c: Regenerated.
35381         * tests/unictype/test-categ_Ps.c: Regenerated.
35382         * tests/unictype/test-categ_S.c: Regenerated.
35383         * tests/unictype/test-categ_Sk.c: Regenerated.
35384         * tests/unictype/test-categ_Sm.c: Regenerated.
35385         * tests/unictype/test-categ_So.c: Regenerated.
35386         * tests/unictype/test-ctype_alnum.c: Regenerated.
35387         * tests/unictype/test-ctype_alpha.c: Regenerated.
35388         * tests/unictype/test-ctype_graph.c: Regenerated.
35389         * tests/unictype/test-ctype_lower.c: Regenerated.
35390         * tests/unictype/test-ctype_print.c: Regenerated.
35391         * tests/unictype/test-ctype_punct.c: Regenerated.
35392         * tests/unictype/test-ctype_upper.c: Regenerated.
35393         * tests/unictype/test-decdigit.h: Regenerated.
35394         * tests/unictype/test-digit.h: Regenerated.
35395         * tests/unictype/test-numeric.h: Regenerated.
35396         * tests/unictype/test-pr_alphabetic.c: Regenerated.
35397         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
35398         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
35399         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
35400         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
35401         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
35402         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
35403         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
35404         * tests/unictype/test-pr_combining.c: Regenerated.
35405         * tests/unictype/test-pr_dash.c: Regenerated.
35406         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
35407         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
35408         * tests/unictype/test-pr_deprecated.c: Regenerated.
35409         * tests/unictype/test-pr_diacritic.c: Regenerated.
35410         * tests/unictype/test-pr_extender.c: Regenerated.
35411         * tests/unictype/test-pr_format_control.c: Regenerated.
35412         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
35413         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
35414         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
35415         * tests/unictype/test-pr_id_continue.c: Regenerated.
35416         * tests/unictype/test-pr_id_start.c: Regenerated.
35417         * tests/unictype/test-pr_ideographic.c: Regenerated.
35418         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
35419         * tests/unictype/test-pr_lowercase.c: Regenerated.
35420         * tests/unictype/test-pr_math.c: Regenerated.
35421         * tests/unictype/test-pr_numeric.c: Regenerated.
35422         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
35423         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
35424         Regenerated.
35425         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
35426         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
35427         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
35428         * tests/unictype/test-pr_other_math.c: Regenerated.
35429         * tests/unictype/test-pr_punctuation.c: Regenerated.
35430         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
35431         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
35432         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
35433         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
35434         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
35435         * tests/unictype/test-pr_uppercase.c: Regenerated.
35436         * tests/unictype/test-pr_xid_continue.c: Regenerated.
35437         * tests/unictype/test-pr_xid_start.c: Regenerated.
35438         * tests/unictype/test-pr_zero_width.c: Regenerated.
35439
35440         Update to Unicode 5.1.0.
35441         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
35442         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
35443         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
35444         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
35445         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
35446         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
35447         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
35448         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
35449         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
35450         (nonspacing_table_ind): Update.
35451         * tests/uniwidth/test-uc_width2.sh: Update expected result.
35452
35453         Update to Unicode 5.1.0.
35454         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
35455         code transform.
35456         * lib/uniname/uniname.c (unicode_character_name,
35457         unicode_name_character): Add the range 0x1Fxxx to the code transform.
35458         * lib/uniname/uninames.h: Regenerated.
35459         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
35460
35461 2009-02-07  Bruno Haible  <bruno@clisp.org>
35462
35463         Merge gen-ctype and gen-lbrk into a single program.
35464         * lib/gen-uni-tables.c: New file, incorporating
35465         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
35466         Add directory prefixes to the names of the generated files.
35467         * lib/unictype/gen-ctype.c: Remove file.
35468         * lib/unilbrk/gen-lbrk.c: Remove file.
35469         * modules/gen-uni-tables: New file.
35470         * modules/unictype/gen-ctype: Remove file.
35471         * modules/unilbrk/gen-lbrk: Remove file.
35472
35473 2009-02-07  Bruno Haible  <bruno@clisp.org>
35474
35475         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
35476
35477         New module 'unistr/u32-strcoll'.
35478         * modules/unistr/u32-strcoll: New file.
35479         * lib/unistr/u32-strcoll.c: New file.
35480
35481         New module 'unistr/u16-strcoll'.
35482         * modules/unistr/u16-strcoll: New file.
35483         * lib/unistr/u16-strcoll.c: New file.
35484
35485         New module 'unistr/u8-strcoll'.
35486         * modules/unistr/u8-strcoll: New file.
35487         * lib/unistr/u8-strcoll.c: New file.
35488         * lib/unistr/u-strcoll.h: New file.
35489
35490 2009-02-07  Bruno Haible  <bruno@clisp.org>
35491
35492         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
35493         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
35494         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
35495         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
35496         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
35497         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
35498
35499 2009-02-07  Bruno Haible  <bruno@clisp.org>
35500
35501         Make 64-bit clean.
35502         * lib/unictype/gen-ctype.c (output_predicate, output_category,
35503         output_combclass, output_bidi_category, output_decimal_digit,
35504         output_digit, output_numeric, output_mirror, output_scripts,
35505         output_ident_category): Use proper width specifier in format strings.
35506
35507 2009-02-07  Bruno Haible  <bruno@clisp.org>
35508
35509         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
35510         failure behaviour.
35511
35512 2009-02-07  Jim Meyering  <meyering@redhat.com>
35513
35514         regex: avoid compilation failure with upcoming gcc-4.4
35515         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
35516         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
35517         "... error: integer overflow in preprocessor expression".
35518
35519 2009-02-05  Ben Pfaff  <blp@gnu.org>
35520
35521         Fix link errors on Windows when close module is used.
35522         * modules/close: Add $(LIB_CLOSE) to Link section.
35523         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
35524         $(LIB_CLOSE) on Windows.
35525
35526 2009-02-05  Jim Meyering  <meyering@redhat.com>
35527
35528         still avoid unused-parameter warnings, but do it cleanly
35529         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
35530         (get_fs_usage): Cast to void instead.
35531         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
35532         (dev_from_mount_options, read_file_system_list): Cast to void.
35533         Prompted by Bruno Haible.
35534
35535 2009-02-04  Jim Meyering  <meyering@redhat.com>
35536
35537         fsusage.c: correct copyright year
35538         * lib/fsusage.c: Reflect year in which the change is pushed into
35539
35540         avoid misc. warnings
35541         * lib/fsusage.c (UNUSED_PARAM): Define.
35542         (get_fs_usage): Mark parameter "disk" as unused.
35543         * lib/getugroups.c (getgrent): Use "void" in prototype.
35544         * lib/mountlist.c: Mark unused parameters.
35545         (read_file_system_list): Declare a local with "const".
35546         * lib/nanosleep.c (getnow): Declare static.
35547         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
35548
35549         dirfd: set errno upon failure
35550         * lib/dirfd.c: Include <errno.h>.
35551         Set errno to ENOTSUP when returning -1.
35552         * modules/dirfd (Depends-on): Add errno.
35553         Suggested by John Kodis <kodis@comcast.net>.
35554
35555 2009-02-01  Bruno Haible  <bruno@clisp.org>
35556
35557         Don't assume sizeof (long) >= sizeof (void *).
35558         * lib/memcmp.c: Include stdint.h.
35559         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
35560         srcp2 to 'const byte *'.
35561         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
35562         types to uintptr_t.
35563         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
35564         * modules/memcmp (Depends-on): Add stdint.
35565         Reported by Ozkan Sezer <sezeroz@gmail.com>.
35566
35567 2009-01-30  Eric Blake  <ebb9@byu.net>
35568
35569         fix more require-before-expand issues
35570         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
35571         expand, AC_PROG_AWK.
35572         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
35573
35574 2009-01-28  Eric Blake  <ebb9@byu.net>
35575
35576         version-etc: use consistent URL formatting
35577         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
35578         Improve formatting.  Use fputs for string without %.
35579
35580 2009-01-28  Jim Meyering  <meyering@redhat.com>
35581
35582         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
35583         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
35584         "underquoted definition of NAME" from autoconf-2.59.
35585
35586 2009-01-28  Bruno Haible  <bruno@clisp.org>
35587
35588         * doc/gnulib.texi: Add "Obsolete modules" to index.
35589
35590 2009-01-28  Jim Meyering  <meyering@redhat.com>
35591
35592         useless-if-before-free: recognize more variants
35593         * build-aux/useless-if-before-free: Also recognize e.g.,
35594         if (NULL != p) free (p);
35595
35596 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
35597
35598         test-getaddrinfo: skip (don't fail) this test when there's no network
35599         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
35600         on the presumption that it means you lack network access.
35601
35602 2009-01-26  Jim Meyering  <meyering@redhat.com>
35603
35604         fflush: avoid warnings on modern systems
35605         * lib/fflush.c (rpl_fflush): Move declarations of locals,
35606         pos and result, into scopes where they're used.
35607
35608 2009-01-26  Eric Blake  <ebb9@byu.net>
35609
35610         Silence warning reintroduced by recent extensions patch.
35611         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
35612         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
35613         autoconf.
35614
35615         Backport improved autoconf semantics of AC_DEFUN_ONCE.
35616         * m4/00gnulib.m4: New file.
35617         * gnulib-tool (func_get_filelist): Always use it.
35618         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
35619         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
35620
35621 2009-01-25  Bruno Haible  <bruno@clisp.org>
35622
35623         Make test-quotearg work on MacOS X and AIX.
35624         * tests/test-quotearg.sh: New file.
35625         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
35626         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
35627         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
35628         include <libintl.h>.
35629         (fake_locale): Remove variable.
35630         (gettext, dgettext, dcgettext): Remove functions.
35631         (main): Instead of setting a fake locale, set a real locale. Call
35632         textdomain and bindtextdomain.
35633         * modules/quotearg-tests (Files): Add the new files.
35634         (Depends-on): Add gettext, setenv, unsetenv.
35635         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
35636         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
35637         Augment TESTS_ENVIRONMENT.
35638
35639 2009-01-25  Bruno Haible  <bruno@clisp.org>
35640
35641         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
35642         fr_FR.ISO8859-1 locale on MacOS X.
35643         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
35644         ja_JP.eucJP locale on MacOS X.
35645         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
35646         zh_CN.GB18030 locale on MacOS X.
35647
35648 2009-01-25  Bruno Haible  <bruno@clisp.org>
35649
35650         Avoid link errors on MacOS X 10.3.
35651         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
35652         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
35653
35654 2009-01-25  Bruno Haible  <bruno@clisp.org>
35655
35656         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
35657         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
35658         * modules/pipe (Files): Remove m4/posix_spawn.m4.
35659         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
35660         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
35661         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
35662         posix_spawnattr_init, posix_spawnattr_setsigmask,
35663         posix_spawnattr_setflags, posix_spawnattr_destroy.
35664
35665         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
35666         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
35667         * modules/execute (Files): Remove m4/posix_spawn.m4.
35668         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
35669         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
35670         posix_spawnattr_init, posix_spawnattr_setsigmask,
35671         posix_spawnattr_setflags, posix_spawnattr_destroy.
35672
35673 2009-01-25  Bruno Haible  <bruno@clisp.org>
35674
35675         * lib/glthread/threadlib.c: Include <stdlib.h>.
35676
35677 2009-01-25  Bruno Haible  <bruno@clisp.org>
35678
35679         * lib/glthread/threadlib.c (dummy): New declaration.
35680
35681 2009-01-25  Bruno Haible  <bruno@clisp.org>
35682
35683         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
35684         multibyte characters also for the GB18030 encoding. Don't crash when
35685         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
35686
35687 2009-01-25  Bruno Haible  <bruno@clisp.org>
35688
35689         Avoid redefining 'struct random_data' on OSF/1 5.1.
35690         * lib/stdlib.in.h: Include <random.h> if it exists.
35691         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
35692         HAVE_RANDOM_H. Include <random.h> when testing whether
35693         'struct random_data' exists.
35694         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
35695
35696 2009-01-25  Bruno Haible  <bruno@clisp.org>
35697
35698         Don't install charset.alias on MacOS X >= 10.3.
35699         * lib/localcharset.c (DARWIN7): New macro.
35700         (get_charset_aliases): Hardcode the result for Darwin7.
35701         * modules/localcharset (install-exec-local): Don't install
35702         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
35703
35704 2009-01-25  Bruno Haible  <bruno@clisp.org>
35705
35706         Don't install charset.alias on mingw and Cygwin.
35707         * modules/localcharset (install-exec-local): Don't install
35708         charset.alias on mingw and Cygwin, if the file does not yet exist.
35709         The result for these platforms is hardcoded in localcharset.c.
35710
35711 2009-01-25  Bruno Haible  <bruno@clisp.org>
35712
35713         Make it possible again to use AC_GNU_SOURCE together with gnulib.
35714         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
35715         before requiring AC_USE_SYSTEM_EXTENSIONS.
35716
35717 2009-01-25  Jim Meyering  <meyering@redhat.com>
35718
35719         c-strtod: avoid warnings
35720         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
35721         "assignment discards qualifiers from pointer target type" warnings.
35722
35723 2009-01-24  Bruno Haible  <bruno@clisp.org>
35724
35725         Add support for non-UTF-8 locales on MacOS X.
35726         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
35727         canonical encodings. For Darwin 7 and newer, don't map traditional
35728         encodings to UTF-8.
35729         Reported by Vincent Lefevre <vincent@vinc17.org>
35730         at <http://savannah.gnu.org/bugs/?25235>.
35731
35732 2009-01-24  Bruno Haible  <bruno@clisp.org>
35733
35734         * doc/gnulib.texi (Obsolete modules): New section.
35735         Reported by Mike Frysinger <vapier@gentoo.org>.
35736
35737 2009-01-24  Bruno Haible  <bruno@clisp.org>
35738
35739         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
35740         (%.dvi): New rule.
35741
35742 2009-01-24  Bruno Haible  <bruno@clisp.org>
35743
35744         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
35745         Reported by Eric Blake.
35746
35747 2009-01-24  Bruno Haible  <bruno@clisp.org>
35748
35749         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
35750         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
35751         Reported by Gary V. Vaughan <gary@gnu.org>.
35752
35753 2009-01-24  Bruno Haible  <bruno@clisp.org>
35754
35755         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
35756
35757 2009-01-23  Bruno Haible  <bruno@clisp.org>
35758
35759         Make c-strtod, c-strtold usable in libraries.
35760         * lib/c-strtod.c: Include string.h instead of xalloc.h.
35761         (C_STRTOD): Call strdup instead of xstrdup.
35762         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
35763         * modules/c-strtold (Depends-on): Likewise.
35764         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
35765         * NEWS: Mention the change.
35766         Reported by Michael Gold <mgold@ncf.ca>.
35767
35768 2009-01-23  Jim Meyering  <meyering@redhat.com>
35769
35770         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
35771         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
35772         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
35773
35774 2009-01-23  Simon Josefsson  <simon@josefsson.org>
35775
35776         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
35777         GNU CoreUtils.
35778         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
35779         * modules/version-etc (Description): Update.
35780
35781 2009-01-22  Bruno Haible  <bruno@clisp.org>
35782
35783         Cache the C locale object.
35784         * lib/c-strtod.c (c_locale_cache): New variable.
35785         (c_locale): New function.
35786         (C_STRTOD): Use it, and don't call freelocale.
35787         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
35788         Suggested by Paolo Bonzini.
35789
35790 2009-01-21  Bruno Haible  <bruno@clisp.org>
35791
35792         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
35793         conditions other than overflow.
35794
35795 2009-01-21  Bruno Haible  <bruno@clisp.org>
35796
35797         * lib/c-strtod.c: Include errno.h.
35798         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
35799         value from STRTOD_L and STRTOD.
35800
35801 2009-01-21  Bruno Haible  <bruno@clisp.org>
35802         and Jim Meyering  <meyering@redhat.com>
35803
35804         nanosleep: skip configure test (fail it) for apple universal builds
35805         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
35806         universal builds, assume that nanosleep does not work.
35807         * modules/nanosleep (Depends-on): Add multiarch.
35808
35809         mktime: skip configure test (fail it) for apple universal builds
35810         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
35811         universal builds, assume that mktime does not work.
35812         * modules/mktime (Depends-on): Add multiarch.
35813
35814 2009-01-21  Eric Blake  <ebb9@byu.net>
35815
35816         multiarch: avoid expand-before-require warning
35817         * modules/multiarch (configure.ac): Require, rather than expand,
35818         gl_MULTIARCH.
35819         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
35820         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
35821         enforce that all clients require it.  Partial reversion of
35822         2008-12-29 patch.
35823
35824         error: avoid expand-before-require warning
35825         * modules/errno (configure.ac): Require, rather than expand,
35826         gl_HEADER_ERRNO_H.
35827         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
35828         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
35829         enforce that all clients require it.
35830
35831         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
35832         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
35833         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
35834         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
35835
35836 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
35837
35838         Revert:
35839         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
35840
35841         regex: do not depend on obsolete modules.
35842         * modules/regex: Remove memcmp and memmove.
35843
35844 2009-01-20  Bruno Haible  <bruno@clisp.org>
35845
35846         Make the 'link' module link on Windows NT 4.
35847         * lib/link.c (_WIN32_WINNT): Don't define.
35848         (CreateHardLinkFuncType): New type.
35849         (CreateHardLinkFunc, initialized): New variables.
35850         (initialize): New function.
35851         (link): Invoke CreateHardLink indirectly through the function pointer.
35852
35853 2009-01-20  Bruno Haible  <bruno@clisp.org>
35854
35855         Fix compilation failure on mingw.
35856         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
35857
35858 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
35859
35860         * doc/c-strtod.texi: Mention a couple of restrictions.
35861
35862 2009-01-20  Jim Meyering  <meyering@redhat.com>
35863
35864         gettimeofday: move more declarations out of functions
35865         * lib/gettimeofday.c: Move extern declarations of tzset and
35866         gmtime out of containing functions.  Prompted by Bruno Haible.
35867
35868 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
35869
35870         regex: do not depend on obsolete modules.
35871         * modules/regex: Remove memcmp and memmove.
35872
35873 2009-01-19  Bruno Haible  <bruno@clisp.org>
35874
35875         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
35876         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
35877         gl_BIGENDIAN, not AC_C_BIGENDIAN.
35878         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
35879         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
35880
35881 2009-01-19  Bruno Haible  <bruno@clisp.org>
35882
35883         * tests/test-link.c: Include <errno.h>.
35884         (main): Exit with code 77 when a hard link cannot be created due to
35885         the file system.
35886         * tests/test-link.sh: Skip test when a hard link cannot be created due
35887         to the file system.
35888         Suggested by Eric Blake.
35889
35890 2009-01-19  Martin Lambers  <marlam@marlam.de>
35891
35892         * modules/link-tests: New file.
35893         * tests/test-link.sh: New file.
35894         * tests/test-link.c: New file.
35895
35896 2009-01-19  Eric Blake  <ebb9@byu.net>
35897
35898         doc: mention another function added in cygwin 1.7.0
35899         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
35900         Another new function in cygwin 1.7.
35901
35902 2009-01-19  Bruno Haible  <bruno@clisp.org>
35903
35904         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
35905         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
35906         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
35907         gl_BIGENDIAN, not AC_C_BIGENDIAN.
35908         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35909         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
35910         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
35911         * m4/md4.m4 (gl_MD4): Likewise.
35912         * m4/md5.m4 (gl_MD5): Likewise.
35913         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
35914         * m4/sha1.m4 (gl_SHA1): Likewise.
35915         * m4/sha256.m4 (gl_SHA256): Likewise.
35916         * m4/sha512.m4 (gl_SHA512): Likewise.
35917
35918 2009-01-19  Bruno Haible  <bruno@clisp.org>
35919
35920         * modules/uniname/uniname-tests (Depends-on): Add progname.
35921         * tests/uniname/test-uninames.c: Include progname.h.
35922         (main): Call set_program_name.
35923
35924         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
35925         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
35926         (main): Call set_program_name.
35927
35928         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
35929         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
35930         (main): Call set_program_name.
35931
35932         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
35933         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
35934         (main): Call set_program_name.
35935
35936         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
35937         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
35938         (main): Call set_program_name.
35939
35940         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
35941         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
35942         (main): Call set_program_name.
35943
35944         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
35945         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
35946         (main): Call set_program_name.
35947
35948         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
35949         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
35950         (main): Call set_program_name.
35951
35952         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
35953         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
35954         (main): Call set_program_name.
35955
35956 2009-01-19  Eric Blake  <ebb9@byu.net>
35957
35958         test-unistd: test previous patch
35959         * tests/test-unistd.c: Test *_FILENO macros.
35960
35961         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
35962         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
35963         Guarantee a definition.
35964         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
35965         * modules/unistd-safer (Depends-on): Add dependency on unistd.
35966         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
35967         * lib/dup-safer.c (STDERR_FILENO): Likewise.
35968         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
35969         Likewise.
35970         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
35971         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
35972         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
35973         Likewise.
35974         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
35975         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
35976         (STDERR_FILENO): Likewise.
35977         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
35978         (STDERR_FILENO): Likewise.
35979         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
35980         (STDERR_FILENO): Likewise.
35981         Reported by Elbert Pol.
35982
35983 2009-01-19  Eric Blake  <ebb9@byu.net>
35984
35985         doc: mention more functions added in cygwin 1.7.0
35986         * doc/posix-functions/abort.texi (abort): Update wording related
35987         to cygwin.
35988         * doc/posix-functions/daylight.texi (daylight): Likewise.
35989         * doc/posix-functions/optarg.texi (optarg): Likewise.
35990         * doc/posix-functions/optarg.texi (opterr): Likewise.
35991         * doc/posix-functions/optarg.texi (optind): Likewise.
35992         * doc/posix-functions/optarg.texi (optopt): Likewise.
35993         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
35994         worked in 1.5.x, and was withdrawn in 1.7.
35995         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
35996         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
35997         cygwin versions.
35998         * doc/posix-functions/perror.texi (perror): Likewise.
35999         * doc/posix-functions/printf.texi (printf): Likewise.
36000         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
36001         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
36002         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
36003         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
36004         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
36005         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
36006         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
36007         Likewise.
36008         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
36009         Likewise.
36010         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
36011         this function.
36012         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
36013         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
36014         Likewise.
36015         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
36016         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
36017         * doc/posix-functions/confstr.texi (confstr): Likewise.
36018         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
36019         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
36020         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
36021         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
36022         * doc/posix-functions/fputws.texi (fputws): Likewise.
36023         * doc/posix-functions/fwide.texi (fwide): Likewise.
36024         * doc/posix-functions/getwc.texi (getwc): Likewise.
36025         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
36026         * doc/posix-functions/putwc.texi (putwc): Likewise.
36027         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
36028         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
36029         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
36030         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
36031         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
36032         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
36033         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
36034         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
36035         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
36036         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
36037         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
36038
36039 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36040
36041         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
36042         * lib/ioctl.c: Include <sys/ioctl.h>.
36043
36044 2009-01-19  Simon Josefsson  <simon@josefsson.org>
36045
36046         * modules/getdate-tests (Depends-on): Add progname.
36047         * tests/test-getdate.c: Use progname module, to avoid link errors
36048         on non-glibc systems.
36049
36050 2009-01-18  Simon Josefsson  <simon@josefsson.org>
36051
36052         * modules/filenamecat-tests (Depends-on): Add progname.
36053         * modules/fstrcmp-tests (Depends-on): Likewise.
36054
36055         * tests/test-filenamecat.c: Use progname module, to avoid link
36056         errors on non-glibc systems.
36057         * tests/test-fstrcmp.c: Likewise.
36058
36059 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36060
36061         gettimeofday: avoid warning: nested extern declaration of 'localtime'
36062         * lib/gettimeofday.c: Move extern declaration out of function.
36063
36064 2009-01-18  Bruno Haible  <bruno@clisp.org>
36065
36066         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
36067         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
36068         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
36069
36070 2009-01-18  Bruno Haible  <bruno@clisp.org>
36071
36072         * lib/strftime.c (MEMPCPY): Remove unused macro.
36073         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
36074
36075 2009-01-18  Martin Lambers  <marlam@marlam.de>
36076
36077         New module 'link'.
36078         * lib/unistd.in.h (link): New declaration.
36079         * lib/link.c: New file.
36080         * m4/link.m4: New file.
36081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
36082         HAVE_LINK.
36083         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
36084         * modules/link: New file.
36085         * doc/posix-functions/link.texi: Mention the new module.
36086
36087 2009-01-18  Bruno Haible  <bruno@clisp.org>
36088
36089         * tests/test-avltree_list.c (main): Call set_program_name.
36090         * tests/test-avltree_oset.c (main): Likewise.
36091         * tests/test-obstack-printf.c: Include progname.h.
36092         (main): Call set_program_name.
36093         * tests/test-quotearg.c: Include progname.h.
36094         (main): Call set_program_name.
36095         * tests/test-xmemdup0.c: Include progname.h.
36096         (main): Call set_program_name.
36097
36098 2009-01-18  Bruno Haible  <bruno@clisp.org>
36099
36100         New module 'alphasort'.
36101         * lib/dirent.in.h (alphasort): New declaration.
36102         * lib/alphasort.c: New file, from glibc with modifications.
36103         * m4/alphasort.m4: New file.
36104         * modules/alphasort: New file.
36105         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
36106         HAVE_ALPHASORT.
36107         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
36108         HAVE_ALPHASORT.
36109         * doc/posix-functions/alphasort.texi: Mention the new module and the
36110         portability problems.
36111
36112 2009-01-18  Bruno Haible  <bruno@clisp.org>
36113
36114         New module 'scandir'.
36115         * lib/dirent.in.h (scandir): New declaration.
36116         * lib/scandir.c: New file, from glibc with modifications.
36117         * m4/scandir.m4: New file.
36118         * modules/scandir: New file.
36119         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
36120         HAVE_SCANDIR.
36121         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
36122         HAVE_SCANDIR.
36123         * doc/posix-functions/scandir.texi: Mention the new module and the
36124         portability problems.
36125
36126 2009-01-17  Bruno Haible  <bruno@clisp.org>
36127
36128         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
36129         Update documentation.
36130         (func_remove_suffix): Escape all dots in the suffix. Update
36131         documentation.
36132         (func_filter_filelist): Update documentation.
36133         Reported by Ralf Wildenhues.
36134
36135 2009-01-17  Bruno Haible  <bruno@clisp.org>
36136
36137         * modules/dprintf-posix-tests: New file.
36138         * tests/test-dprintf-posix.sh: New file.
36139         * tests/test-dprintf-posix.c: New file.
36140
36141         New modules 'dprintf', 'dprintf-posix'.
36142         * lib/stdio.in.h (dprintf): New declaration.
36143         * lib/dprintf.c: New file.
36144         * m4/dprintf.m4: New file.
36145         * m4/dprintf-posix.m4: New file.
36146         * modules/dprintf: New file.
36147         * modules/dprintf-posix: New file.
36148         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
36149         HAVE_DPRINTF, REPLACE_DPRINTF.
36150         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
36151         HAVE_DPRINTF, REPLACE_DPRINTF.
36152         * doc/posix-functions/dprintf.texi: Mention the new modules.
36153
36154 2009-01-17  Bruno Haible  <bruno@clisp.org>
36155
36156         * modules/vdprintf-posix-tests: New file.
36157         * tests/test-vdprintf-posix.sh: New file.
36158         * tests/test-vdprintf-posix.c: New file.
36159
36160         New modules 'vdprintf', 'vdprintf-posix'.
36161         * lib/stdio.in.h (vdprintf): New declaration.
36162         * lib/vdprintf.c: New file.
36163         * m4/vdprintf.m4: New file.
36164         * m4/vdprintf-posix.m4: New file.
36165         * modules/vdprintf: New file.
36166         * modules/vdprintf-posix: New file.
36167         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
36168         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36169         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
36170         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36171         * doc/posix-functions/vdprintf.texi: Mention the new modules.
36172
36173 2009-01-17  Bruno Haible  <bruno@clisp.org>
36174
36175         Fix replacement of fopen on mingw.
36176         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
36177         mingw.
36178
36179 2009-01-17  Bruno Haible  <bruno@clisp.org>
36180
36181         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
36182         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
36183
36184 2009-01-17  Bruno Haible  <bruno@clisp.org>
36185
36186         Avoid test-fflush2.sh failure on mingw.
36187         * tests/test-fflush2.c: Include binary-io.h.
36188         (main): Put standard input into binary mode.
36189         * modules/fflush-tests (Depends-on): Add binary-io.
36190
36191 2009-01-17  Bruno Haible  <bruno@clisp.org>
36192
36193         * lib/wchar.in.h: In another particular situation, include only the
36194         system's <wchar.h> file.
36195         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
36196         Reported by Albert Chin-A-Young <china@thewrittenword.com>
36197         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
36198
36199 2009-01-17  Bruno Haible  <bruno@clisp.org>
36200
36201         Support for stripping executables in --enable-relocatable.
36202         * build-aux/install-reloc: Expect one more argument, or an environment
36203         variable RELOC_STRIP_PROG. If set, strip the destination program and
36204         its wrapper.
36205         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
36206         RELOC_STRIP_PROG.
36207         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
36208         to set RELOCATABLE_STRIP.
36209         * NEWS: Mention the new Makefile requirement.
36210
36211 2009-01-17  Bruno Haible  <bruno@clisp.org>
36212
36213         * build-aux/install-reloc: Remove debugging information left over by
36214         C compiler on MacOS X.
36215
36216 2009-01-17  Bruno Haible  <bruno@clisp.org>
36217
36218         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
36219         * lib/progreloc.c (find_executable): Fix type of pointer passed to
36220         _NSGetExecutablePath.
36221
36222 2009-01-16  Jim Meyering  <meyering@redhat.com>
36223
36224         strerror: avoid warnings about discarding "const"
36225         * lib/strerror.c (rpl_strerror): Instead of returning a const
36226         string from each and every "case", use a variable, and add a single
36227         cast after the switch.
36228
36229 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
36230
36231         * lib/arpa_inet.in.h: Add extern "C" block for C++.
36232
36233 2009-01-16  Bruno Haible  <bruno@clisp.org>
36234
36235         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
36236         array initializer syntax that also works in C++ mode.
36237         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36238
36239 2009-01-16  Jim Meyering  <meyering@redhat.com>
36240
36241         poll: suppress a warning
36242         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
36243         to ignore "...unsigned expression < 0 is always false" warnings.
36244
36245 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
36246
36247         poll: remove declarations of unused variables
36248         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
36249         sockbuf and optlen.
36250
36251 2009-01-15  Bruno Haible  <bruno@clisp.org>
36252
36253         Make fflush-after-ungetc POSIX compliant on BSD systems.
36254         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
36255         (clear_ungetc_buffer): Implement also for other systems.
36256         (rpl_fflush): On glibc systems, invoke
36257         clear_ungetc_buffer_preserving_position. Otherwise, invoke
36258         clear_ungetc_buffer after fetching the stream's position, not before.
36259
36260 2009-01-15  Bruno Haible  <bruno@clisp.org>
36261
36262         Make fflush-after-ungetc POSIX compliant on glibc systems.
36263         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
36264         after ungetc.
36265         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
36266         (rpl_fflush): On glibc systems, simply call the system's fflush
36267         function after clearing the ungetc buffer.
36268         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
36269         Instead, lseek only to the end of file, then use the system's fseeko
36270         for the rest. On glibc systems, reset the EOF indicator bit.
36271
36272 2009-01-15  Jim Meyering  <meyering@redhat.com>
36273
36274         openmp.m4: revert quote-adding change, for portability to older autoconf
36275         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
36276         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
36277         Simon Josefsson noticed the problem when using autoconf-2.61.
36278
36279 2009-01-15  Bruno Haible  <bruno@clisp.org>
36280
36281         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
36282         * tests/test-fflush2.c (ASSERT): Always fail.
36283         (main): Add two tests for fflush() after ungetc(), taking into account
36284         the Austin Group's clarification.
36285         Suggested by Eric Blake.
36286
36287 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
36288
36289         mktime.m4: remove K&R-style function prototypes
36290         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
36291         for the Sun C++ compiler.
36292
36293 2009-01-14  Bruno Haible  <bruno@clisp.org>
36294
36295         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
36296         while including <wchar.h>.
36297         * lib/wchar.in.h: In two particular situations on HP-UX, include only
36298         the system's <wchar.h> file.
36299         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36300
36301 2009-01-14  Bruno Haible  <bruno@clisp.org>
36302
36303         * m4/csharp.m4: Don't mention gettext on the serial number line.
36304         * m4/csharpexec.m4: Likewise.
36305         * m4/eaccess.m4: Likewise.
36306         * m4/javaexec.m4: Likewise.
36307         * m4/sig_atomic_t.m4: Likewise.
36308         * m4/tmpdir.m4: Likewise.
36309         * m4/intldir.m4: Bump gettext version.
36310         * m4/lib-ld.m4: Likewise.
36311
36312 2009-01-14  Bruno Haible  <bruno@clisp.org>
36313
36314         * lib/progname.c (set_program_name): Add more comments.
36315         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
36316
36317 2009-01-14  Simon Josefsson  <simon@josefsson.org>
36318
36319         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
36320         were sys/stat.h does not define it.
36321
36322 2009-01-14  Jim Meyering  <meyering@redhat.com>
36323
36324         many *.m4 files: improve m4 quoting
36325         99% of this change was performed by running the following commands:
36326         git ls-files | grep '\.m4$' | xargs perl -pi \
36327           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
36328           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36329           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36330           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
36331         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
36332         The remainder were to add Copyright dates, increment serial numbers,
36333         undo some changes in comments, exclude m4/intl.m4, and add quotes
36334         around the "1" in ",1" where the unusual spacing prohibited the
36335         above regexps from doing the job.  For more details, see
36336         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
36337         * m4/acl.m4: Modified.
36338         * m4/afs.m4: Likewise.
36339         * m4/alloca.m4: Likewise.
36340         * m4/argp.m4: Likewise.
36341         * m4/argz.m4: Likewise.
36342         * m4/atexit.m4: Likewise.
36343         * m4/bison-i18n.m4: Likewise.
36344         * m4/bison.m4: Likewise.
36345         * m4/byteswap.m4: Likewise.
36346         * m4/c-stack.m4: Likewise.
36347         * m4/c-strtod.m4: Likewise.
36348         * m4/calloc.m4: Likewise.
36349         * m4/canonicalize-lgpl.m4: Likewise.
36350         * m4/chown.m4: Likewise.
36351         * m4/clock_time.m4: Likewise.
36352         * m4/codeset.m4: Likewise.
36353         * m4/copy-file.m4: Likewise.
36354         * m4/csharp.m4: Likewise.
36355         * m4/csharpcomp.m4: Likewise.
36356         * m4/csharpexec.m4: Likewise.
36357         * m4/d-ino.m4: Likewise.
36358         * m4/d-type.m4: Likewise.
36359         * m4/dirfd.m4: Likewise.
36360         * m4/double-slash-root.m4: Likewise.
36361         * m4/eaccess.m4: Likewise.
36362         * m4/eealloc.m4: Likewise.
36363         * m4/environ.m4: Likewise.
36364         * m4/errno_h.m4: Likewise.
36365         * m4/euidaccess.m4: Likewise.
36366         * m4/execute.m4: Likewise.
36367         * m4/fatal-signal.m4: Likewise.
36368         * m4/fchdir.m4: Likewise.
36369         * m4/fcntl_h.m4: Likewise.
36370         * m4/fileblocks.m4: Likewise.
36371         * m4/filenamecat.m4: Likewise.
36372         * m4/findprog.m4: Likewise.
36373         * m4/flexmember.m4: Likewise.
36374         * m4/fnmatch.m4: Likewise.
36375         * m4/fopen.m4: Likewise.
36376         * m4/fpending.m4: Likewise.
36377         * m4/fprintf-posix.m4: Likewise.
36378         * m4/free.m4: Likewise.
36379         * m4/frexp.m4: Likewise.
36380         * m4/frexpl.m4: Likewise.
36381         * m4/fsusage.m4: Likewise.
36382         * m4/ftruncate.m4: Likewise.
36383         * m4/gc-camellia.m4: Likewise.
36384         * m4/gc-random.m4: Likewise.
36385         * m4/gc.m4: Likewise.
36386         * m4/getaddrinfo.m4: Likewise.
36387         * m4/getcwd-abort-bug.m4: Likewise.
36388         * m4/getcwd-path-max.m4: Likewise.
36389         * m4/getdate.m4: Likewise.
36390         * m4/getdomainname.m4: Likewise.
36391         * m4/getgroups.m4: Likewise.
36392         * m4/gethostname.m4: Likewise.
36393         * m4/gethrxtime.m4: Likewise.
36394         * m4/getline.m4: Likewise.
36395         * m4/getloadavg.m4: Likewise.
36396         * m4/getndelim2.m4: Likewise.
36397         * m4/getpass.m4: Likewise.
36398         * m4/gettext.m4: Likewise.
36399         * m4/gettime.m4: Likewise.
36400         * m4/gettimeofday.m4: Likewise.
36401         * m4/gnulib-common.m4: Likewise.
36402         * m4/group-member.m4: Likewise.
36403         * m4/host-os.m4: Likewise.
36404         * m4/iconv.m4: Likewise.
36405         * m4/iconv_open.m4: Likewise.
36406         * m4/inet_ntop.m4: Likewise.
36407         * m4/inet_pton.m4: Likewise.
36408         * m4/inline.m4: Likewise.
36409         * m4/intldir.m4: Likewise.
36410         * m4/intlmacosx.m4: Likewise.
36411         * m4/intmax.m4: Likewise.
36412         * m4/intmax_t.m4: Likewise.
36413         * m4/inttypes.m4: Likewise.
36414         * m4/inttypes_h.m4: Likewise.
36415         * m4/inttypes-pri.m4: Likewise.
36416         * m4/isapipe.m4: Likewise.
36417         * m4/isnand.m4: Likewise.
36418         * m4/isnanf.m4: Likewise.
36419         * m4/isnanl.m4: Likewise.
36420         * m4/javacomp.m4: Likewise.
36421         * m4/javaexec.m4: Likewise.
36422         * m4/jm-winsz1.m4: Likewise.
36423         * m4/jm-winsz2.m4: Likewise.
36424         * m4/lchown.m4: Likewise.
36425         * m4/lcmessage.m4: Likewise.
36426         * m4/ldexpl.m4: Likewise.
36427         * m4/lib-ld.m4: Likewise.
36428         * m4/lib-link.m4: Likewise.
36429         * m4/libsigsegv.m4: Likewise.
36430         * m4/link-follow.m4: Likewise.
36431         * m4/localcharset.m4: Likewise.
36432         * m4/locale-fr.m4: Likewise.
36433         * m4/locale-ja.m4: Likewise.
36434         * m4/locale-tr.m4: Likewise.
36435         * m4/locale-zh.m4: Likewise.
36436         * m4/lock.m4: Likewise.
36437         * m4/longlong.m4: Likewise.
36438         * m4/ls-mntd-fs.m4: Likewise.
36439         * m4/lstat.m4: Likewise.
36440         * m4/malloc.m4: Likewise.
36441         * m4/mathl.m4: Likewise.
36442         * m4/mbrtowc.m4: Likewise.
36443         * m4/mbstate_t.m4: Likewise.
36444         * m4/mbswidth.m4: Likewise.
36445         * m4/memchr.m4: Likewise.
36446         * m4/memcmp.m4: Likewise.
36447         * m4/memcpy.m4: Likewise.
36448         * m4/memmem.m4: Likewise.
36449         * m4/memmove.m4: Likewise.
36450         * m4/mempcpy.m4: Likewise.
36451         * m4/memrchr.m4: Likewise.
36452         * m4/memset.m4: Likewise.
36453         * m4/minmax.m4: Likewise.
36454         * m4/mkdir-slash.m4: Likewise.
36455         * m4/mkdtemp.m4: Likewise.
36456         * m4/mktime.m4: Likewise.
36457         * m4/mmap-anon.m4: Likewise.
36458         * m4/mountlist.m4: Likewise.
36459         * m4/nanosleep.m4: Likewise.
36460         * m4/nls.m4: Likewise.
36461         * m4/nocrash.m4: Likewise.
36462         * m4/open.m4: Likewise.
36463         * m4/openat.m4: Likewise.
36464         * m4/openmp.m4: Likewise.
36465         * m4/pathmax.m4: Likewise.
36466         * m4/perl.m4: Likewise.
36467         * m4/physmem.m4: Likewise.
36468         * m4/pipe.m4: Likewise.
36469         * m4/po.m4: Likewise.
36470         * m4/poll.m4: Likewise.
36471         * m4/posixtm.m4: Likewise.
36472         * m4/posixver.m4: Likewise.
36473         * m4/printf-frexp.m4: Likewise.
36474         * m4/printf-frexpl.m4: Likewise.
36475         * m4/printf-posix.m4: Likewise.
36476         * m4/printf-posix-rpl.m4: Likewise.
36477         * m4/printf.m4: Likewise.
36478         * m4/progtest.m4: Likewise.
36479         * m4/putenv.m4: Likewise.
36480         * m4/readline.m4: Likewise.
36481         * m4/readlink.m4: Likewise.
36482         * m4/readutmp.m4: Likewise.
36483         * m4/realloc.m4: Likewise.
36484         * m4/regex.m4: Likewise.
36485         * m4/relocatable.m4: Likewise.
36486         * m4/relocatable-lib.m4: Likewise.
36487         * m4/rename-dest-slash.m4: Likewise.
36488         * m4/rename.m4: Likewise.
36489         * m4/rmdir-errno.m4: Likewise.
36490         * m4/rmdir.m4: Likewise.
36491         * m4/roundf.m4: Likewise.
36492         * m4/roundl.m4: Likewise.
36493         * m4/rpmatch.m4: Likewise.
36494         * m4/save-cwd.m4: Likewise.
36495         * m4/selinux-selinux-h.m4: Likewise.
36496         * m4/setenv.m4: Likewise.
36497         * m4/settime.m4: Likewise.
36498         * m4/sig2str.m4: Likewise.
36499         * m4/sig_atomic_t.m4: Likewise.
36500         * m4/signalblocking.m4: Likewise.
36501         * m4/signbit.m4: Likewise.
36502         * m4/sigpipe.m4: Likewise.
36503         * m4/sockets.m4: Likewise.
36504         * m4/sockpfaf.m4: Likewise.
36505         * m4/st_dm_mode.m4: Likewise.
36506         * m4/stat-time.m4: Likewise.
36507         * m4/stdbool.m4: Likewise.
36508         * m4/stdint.m4: Likewise.
36509         * m4/stdint_h.m4: Likewise.
36510         * m4/stpcpy.m4: Likewise.
36511         * m4/stpncpy.m4: Likewise.
36512         * m4/strcase.m4: Likewise.
36513         * m4/strchrnul.m4: Likewise.
36514         * m4/strcspn.m4: Likewise.
36515         * m4/strdup.m4: Likewise.
36516         * m4/strftime.m4: Likewise.
36517         * m4/strndup.m4: Likewise.
36518         * m4/strnlen.m4: Likewise.
36519         * m4/strpbrk.m4: Likewise.
36520         * m4/strptime.m4: Likewise.
36521         * m4/strsep.m4: Likewise.
36522         * m4/strtod.m4: Likewise.
36523         * m4/strtoimax.m4: Likewise.
36524         * m4/strtok_r.m4: Likewise.
36525         * m4/strtol.m4: Likewise.
36526         * m4/strtoll.m4: Likewise.
36527         * m4/strtoul.m4: Likewise.
36528         * m4/strtoull.m4: Likewise.
36529         * m4/strtoumax.m4: Likewise.
36530         * m4/strverscmp.m4: Likewise.
36531         * m4/threadlib.m4: Likewise.
36532         * m4/timegm.m4: Likewise.
36533         * m4/tm_gmtoff.m4: Likewise.
36534         * m4/tmpdir.m4: Likewise.
36535         * m4/tmpfile.m4: Likewise.
36536         * m4/tzset.m4: Likewise.
36537         * m4/uintmax_t.m4: Likewise.
36538         * m4/unlinkdir.m4: Likewise.
36539         * m4/unlocked-io.m4: Likewise.
36540         * m4/uptime.m4: Likewise.
36541         * m4/userspec.m4: Likewise.
36542         * m4/utimbuf.m4: Likewise.
36543         * m4/utime.m4: Likewise.
36544         * m4/utimes-null.m4: Likewise.
36545         * m4/utimes.m4: Likewise.
36546         * m4/vararrays.m4: Likewise.
36547         * m4/vasnprintf.m4: Likewise.
36548         * m4/vfprintf-posix.m4: Likewise.
36549         * m4/vprintf-posix.m4: Likewise.
36550         * m4/wait-process.m4: Likewise.
36551         * m4/wchar_t.m4: Likewise.
36552         * m4/wint_t.m4: Likewise.
36553         * m4/write-any-file.m4: Likewise.
36554         * m4/yield.m4: Likewise.
36555
36556 2009-01-13  Bruno Haible  <bruno@clisp.org>
36557
36558         Avoid test-copy-file.sh failures when ACL support insufficient.
36559         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
36560         TESTS_ENVIRONMENT.
36561         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
36562         Reported by Jim Meyering.
36563
36564 2009-01-13  Bruno Haible  <bruno@clisp.org>
36565
36566         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
36567         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
36568         * modules/unistdio/u8-printf-parse (Files): Likewise.
36569         * modules/unistdio/u32-printf-parse (Files): Likewise.
36570         * modules/unistdio/ulc-printf-parse (Files): Likewise.
36571
36572 2009-01-13  Simon Josefsson  <simon@josefsson.org>
36573
36574         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
36575         and m4/inttypes_h.m4 too.
36576
36577 2009-01-12  Eric Blake  <ebb9@byu.net>
36578
36579         tests: IRIX 6.2 cc can't compile -0.0 into .data
36580         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
36581         rather than at compile-time.
36582         * tests/test-floorl.c (minus_zero): Likewise.
36583         * tests/test-frexpl.c (minus_zero): Likewise.
36584         * tests/test-isnan.c (minus_zerol): Likewise.
36585         * tests/test-isnanl.h (minus_zero): Likewise.
36586         * tests/test-ldexpl.c (minus_zero): Likewise.
36587         * tests/test-roundl.c (minus_zero): Likewise.
36588         * tests/test-signbit.c (minus_zerol): Likewise.
36589         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
36590         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
36591         * tests/test-truncl.c (minus_zero): Likewise.
36592         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
36593         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
36594         Reported by Tom G. Christensen and Nelson H. F. Beebe.
36595
36596 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36597
36598         regex: fix glibc bug 9697
36599         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
36600         handling.
36601
36602 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36603
36604         regex: fix glibc bug 697
36605         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
36606         being NULL also if there are no backreferences.
36607
36608 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36609
36610         regex: merge glibc changes
36611         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
36612         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
36613         re_string_skip_chars, re_string_reconstruct): Likewise.
36614         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
36615
36616 2009-01-07  Jim Meyering  <meyering@redhat.com>
36617
36618         poll: filter through cppi
36619         * lib/poll.c: Indent cpp directives to reflect nesting.
36620
36621 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
36622
36623         poll: don't return uninitialized
36624         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
36625
36626 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
36627
36628         avoid compile failure on AIX 6.1
36629         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
36630         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
36631
36632 2009-01-04  Jim Meyering  <meyering@redhat.com>
36633
36634         remove duplicate inclusion of <stdio.h>
36635         * tests/test-fprintf-posix.c: Likewise.
36636         * tests/test-printf-posix.c: Likewise.
36637         * tests/test-snprintf-posix.c: Likewise.
36638         * tests/test-sprintf-posix.c: Likewise.
36639         * tests/test-vasprintf-posix.c: Likewise.
36640         * tests/test-vfprintf-posix.c: Likewise.
36641         * tests/test-vprintf-posix.c: Likewise.
36642         * tests/test-vsnprintf-posix.c: Likewise.
36643         * tests/test-vsprintf-posix.c: Likewise.
36644
36645 2009-01-03  Jim Meyering  <meyering@redhat.com>
36646
36647         gnulib-tool: fix sed-based filtering
36648         * gnulib-tool (func_filter_filelist): Remove extra backslash
36649         in sed_fff_filter definition.
36650
36651 2009-01-02  Jim Meyering  <meyering@redhat.com>
36652
36653         strftime: avoid compilation failure on Solaris 2.6
36654         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
36655         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
36656         Don't #define mbrlen or mbsinit, since now they're guaranteed to
36657         be available.  Reported by Tom G. Christensen.  Details in
36658         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
36659
36660 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36661             Bruno Haible  <bruno@clisp.org>
36662
36663         Speed up gnulib-tool by doing more string processing through shell
36664         built-ins.
36665         * gnulib-tool (fast_func_append): New variable.
36666         (func_remove_prefix, func_remove_suffix): New functions.
36667         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
36668         (func_filter_filelist): New function.
36669         (func_get_dependencies): Use func_remove_suffix instead of sed.
36670         (func_get_automake_snippet): Use func_filter_filelist instead of a
36671         subshell and sed invocation.
36672
36673 2009-01-01  Bruno Haible  <bruno@clisp.org>
36674
36675         Fix a security bug.
36676         * gnulib-tool (func_import, import, update): Don't allow the characters
36677         '"', '$', '`', '\' in macro arguments that become part of commands that
36678         are evaluated.
36679
36680 2009-01-01  Bruno Haible  <bruno@clisp.org>
36681
36682         * gnulib-tool (func_reset_sigpipe): Add more comments.
36683
36684 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36685
36686         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
36687         func_emit_tests_Makefile_am, func_import): Abort loops early if we
36688         already know the answer.
36689
36690 2009-01-01  Jim Meyering  <meyering@redhat.com>
36691
36692         * lib/version-etc.c (version_etc_va): Update copyright year.
36693
36694 2008-12-30  Bruno Haible  <bruno@clisp.org>
36695
36696         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
36697         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
36698         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
36699
36700 2008-12-29  Eric Blake  <ebb9@byu.net>
36701
36702         multiarch: avoid autoconf AC_REQUIRE bug
36703         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
36704         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
36705         2.63 and older.
36706         Reported by Bruno Haible, and analyzed in
36707         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
36708
36709 2008-12-29  Bruno Haible  <bruno@clisp.org>
36710
36711         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
36712         files in subdirectories correctly.
36713         Reported by Ralf Wildenhues.
36714
36715 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36716
36717         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
36718         rather than 'join FILE -', for Solaris join.
36719
36720 2008-12-29  Bruno Haible  <bruno@clisp.org>
36721
36722         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
36723         quoting.
36724         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
36725         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
36726         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
36727         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
36728         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
36729         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
36730         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
36731         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
36732         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
36733         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
36734         * m4/nls.m4 (AM_NLS): Likewise.
36735         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
36736         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
36737         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
36738         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
36739         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
36740         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
36741         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
36742         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
36743         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
36744         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
36745         * m4/xsize.m4 (gl_XSIZE): Likewise.
36746         Suggested by Jim Meyering.
36747
36748 2008-11-17  Bruce Korb  <bkorb@gnu.org>
36749
36750         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
36751         * lib/parse-duration.c: use a switch instead of cascading if's.
36752
36753 2008-12-29  Eric Blake  <ebb9@byu.net>
36754
36755         wchar.h: supply WEOF on Irix 5.3
36756         * lib/wchar.in.h (wint_t): Also supply WEOF.
36757         * lib/wctype.in.h (wint_t): Likewise.
36758         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
36759         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
36760         Reported by Tom G. Christensen.
36761
36762 2008-12-26  Bruno Haible  <bruno@clisp.org>
36763
36764         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
36765         i486, i586, i686.
36766
36767 2008-12-26  Bruno Haible  <bruno@clisp.org>
36768
36769         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
36770
36771 2008-12-26  Bruno Haible  <bruno@clisp.org>
36772
36773         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
36774         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
36775         not __STDC_CONSTANT_MACROS.
36776         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
36777
36778 2008-12-25  Bruno Haible  <bruno@clisp.org>
36779
36780         Add support for universal builds to vasnprintf.
36781         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
36782         universal builds, guess no.
36783         * modules/vasnprintf-posix (Depends-on): Add multiarch.
36784         * modules/vasprintf-posix (Depends-on): Likewise.
36785         * modules/fprintf-posix (Depends-on): Likewise.
36786         * modules/vfprintf-posix (Depends-on): Likewise.
36787         * modules/snprintf-posix (Depends-on): Likewise.
36788         * modules/vsnprintf-posix (Depends-on): Likewise.
36789         * modules/sprintf-posix (Depends-on): Likewise.
36790         * modules/vsprintf-posix (Depends-on): Likewise.
36791         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36792         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36793         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36794         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36795         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36796         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36797         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36798
36799         Add support for universal builds to <inttypes.h>.
36800         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
36801         _SCNu64_PREFIX): In Apple
36802         universal builds, define directly, using _LP64.
36803         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
36804         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
36805         * modules/inttypes (Depends-on): Add multiarch.
36806         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
36807
36808         Add support for universal builds to <stdint.h>.
36809         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
36810         universal builds, define directly, using _LP64.
36811         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
36812         Apple universal builds, don't test for the size and suffix of ptrdiff_t
36813         and size_t.
36814         * modules/stdint (Depends-on): Add multiarch.
36815         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
36816
36817         New module 'multiarch'.
36818         * modules/multiarch: New file.
36819         * m4/multiarch.m4: New file.
36820
36821 2008-12-25  Bruno Haible  <bruno@clisp.org>
36822
36823         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
36824
36825 2008-12-25  Bruno Haible  <bruno@clisp.org>
36826
36827         * modules/btowc (License): Relicense under LGPLv2+.
36828         * modules/mbsinit (License): Likewise.
36829         * modules/mbrtowc (License): Likewise.
36830         * modules/wcrtomb (License): Likewise.
36831         * modules/streq (License): Likewise.
36832         Reported by David Lutterkort <lutter@redhat.com>.
36833
36834 2008-12-23  Bruno Haible  <bruno@clisp.org>
36835
36836         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
36837
36838 2008-12-23  Bruno Haible  <bruno@clisp.org>
36839
36840         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
36841         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
36842         GETADDRINFO_LIB, not in LIBS.
36843         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
36844         * modules/canon-host (Link): Likewise.
36845         * NEWS: Mention the change.
36846         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
36847         GETADDRINFO_LIB.
36848
36849 2008-12-22  Bruno Haible  <bruno@clisp.org>
36850
36851         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
36852         * doc/posix-functions/iswalpha_l.texi: Likewise.
36853         * doc/posix-functions/iswblank_l.texi: Likewise.
36854         * doc/posix-functions/iswcntrl_l.texi: Likewise.
36855         * doc/posix-functions/iswctype_l.texi: Likewise.
36856         * doc/posix-functions/iswdigit_l.texi: Likewise.
36857         * doc/posix-functions/iswgraph_l.texi: Likewise.
36858         * doc/posix-functions/iswlower_l.texi: Likewise.
36859         * doc/posix-functions/iswprint_l.texi: Likewise.
36860         * doc/posix-functions/iswpunct_l.texi: Likewise.
36861         * doc/posix-functions/iswspace_l.texi: Likewise.
36862         * doc/posix-functions/iswupper_l.texi: Likewise.
36863         * doc/posix-functions/iswxdigit_l.texi: Likewise.
36864         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
36865         * doc/posix-functions/open_wmemstream.texi: Likewise.
36866         * doc/posix-functions/swscanf.texi: Likewise.
36867         * doc/posix-functions/towctrans_l.texi: Likewise.
36868         * doc/posix-functions/towlower.texi: Likewise.
36869         * doc/posix-functions/towlower_l.texi: Likewise.
36870         * doc/posix-functions/towupper.texi: Likewise.
36871         * doc/posix-functions/towupper_l.texi: Likewise.
36872         * doc/posix-functions/vfwprintf.texi: Likewise.
36873         * doc/posix-functions/vfwscanf.texi: Likewise.
36874         * doc/posix-functions/vswscanf.texi: Likewise.
36875         * doc/posix-functions/vwprintf.texi: Likewise.
36876         * doc/posix-functions/vwscanf.texi: Likewise.
36877         * doc/posix-functions/wcpcpy.texi: Likewise.
36878         * doc/posix-functions/wcpncpy.texi: Likewise.
36879         * doc/posix-functions/wcscasecmp.texi: Likewise.
36880         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
36881         * doc/posix-functions/wcscoll_l.texi: Likewise.
36882         * doc/posix-functions/wcsdup.texi: Likewise.
36883         * doc/posix-functions/wcsncasecmp.texi: Likewise.
36884         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
36885         * doc/posix-functions/wcsnlen.texi: Likewise.
36886         * doc/posix-functions/wcsnrtombs.texi: Likewise.
36887         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
36888         * doc/posix-functions/wctrans_l.texi: Likewise.
36889         * doc/posix-functions/wctype_l.texi: Likewise.
36890         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
36891         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
36892         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
36893         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
36894         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
36895         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
36896         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
36897         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
36898         * doc/glibc-functions/wcschrnul.texi: Likewise.
36899         * doc/glibc-functions/wcsftime_l.texi: Likewise.
36900         * doc/glibc-functions/wcstod_l.texi: Likewise.
36901         * doc/glibc-functions/wcstof_l.texi: Likewise.
36902         * doc/glibc-functions/wcstol_l.texi: Likewise.
36903         * doc/glibc-functions/wcstold_l.texi: Likewise.
36904         * doc/glibc-functions/wcstoll_l.texi: Likewise.
36905         * doc/glibc-functions/wcstoq.texi: Likewise.
36906         * doc/glibc-functions/wcstoul_l.texi: Likewise.
36907         * doc/glibc-functions/wcstoull_l.texi: Likewise.
36908         * doc/glibc-functions/wcstouq.texi: Likewise.
36909         * doc/glibc-functions/wmempcpy.texi: Likewise.
36910
36911 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
36912             Eric Blake  <ebb9@byu.net>
36913             Paolo Bonzini  <bonzini@gnu.org>
36914             Bruno Haible  <bruno@clisp.org>
36915
36916         Make c-stack work on Haiku.
36917         * lib/c-stack.c (SA_ONSTACK): Define fallback.
36918         (c_stack_action): Use SA_ONSTACK flag.
36919
36920 2008-12-22  Bruno Haible  <bruno@clisp.org>
36921
36922         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
36923
36924 2008-12-22  Bruno Haible  <bruno@clisp.org>
36925
36926         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
36927         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
36928         being overridden.
36929         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
36930         New macros.
36931         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
36932         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
36933         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
36934         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
36935
36936 2008-12-22  Bruno Haible  <bruno@clisp.org>
36937
36938         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
36939         from test code.
36940
36941 2008-12-22  Eric Blake  <ebb9@byu.net>
36942
36943         Avoid gcc warnings on cygwin.
36944         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
36945         Avoid unused variable.
36946         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
36947         Likewise.
36948
36949 2008-12-22  Bruno Haible  <bruno@clisp.org>
36950
36951         Remove HAVE_MBRTOWC conditionals.
36952         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
36953         (mbscasecmp): Assume mbrtowc function.
36954         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
36955         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
36956         * lib/mbschr.c: Include mbuiter.h unconditionally.
36957         (mbschr): Assume mbrtowc function.
36958         * lib/mbscspn.c: Include mbuiter.h unconditionally.
36959         (mbscspn): Assume mbrtowc function.
36960         * lib/mbslen.c: Include mbuiter.h unconditionally.
36961         (mbslen): Assume mbrtowc function.
36962         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
36963         (mbsncasecmp): Assume mbrtowc function.
36964         * lib/mbsnlen.c: Include mbiter.h unconditionally.
36965         (mbsnlen): Assume mbrtowc function.
36966         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
36967         (mbspbrk): Assume mbrtowc function.
36968         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
36969         (mbspcasecmp): Assume mbrtowc function.
36970         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
36971         (mbsrchr): Assume mbrtowc function.
36972         * lib/mbssep.c: Include mbuiter.h unconditionally.
36973         (mbssep): Assume mbrtowc function.
36974         * lib/mbsspn.c: Include mbuiter.h unconditionally.
36975         (mbsspn): Assume mbrtowc function.
36976         * lib/mbsstr.c: Include mbuiter.h unconditionally.
36977         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
36978         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
36979         (mbstok_r): Assume mbrtowc function.
36980         * lib/propername.c: Include mbuiter.h unconditionally.
36981         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
36982         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
36983         (trim2): Assume mbrtowc function.
36984         * lib/mbswidth.c (mbsinit): Remove fallback definition.
36985         (mbsnwidth): Assume mbrtowc function.
36986         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
36987         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
36988         fallback definitions.
36989         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
36990
36991 2008-12-22  Bruno Haible  <bruno@clisp.org>
36992
36993         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
36994
36995 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
36996
36997         * modules/regex: Request emulations for the mb*/wc* functions we need.
36998         * m4/regex.m4: Don't look for those functions here.
36999         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
37000
37001 2008-12-22  Bruno Haible  <bruno@clisp.org>
37002
37003         * modules/fnmatch (Depends-on): Remove duplicated dependency.
37004
37005 2008-12-21  Bruno Haible  <bruno@clisp.org>
37006
37007         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
37008         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
37009         (Include): Remove conditionalization.
37010         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
37011         (Include): Remove conditionalization.
37012         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
37013         (Include): Remove conditionalization.
37014         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
37015         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37016         * NEWS: Mention the change.
37017         Reported by Alan Hourihane <alanh@fairlite.co.uk>
37018         via Sergey Poznyakoff <gray@gnu.org.ua>.
37019
37020 2008-12-21  Bruno Haible  <bruno@clisp.org>
37021
37022         * MODULES.html.sh (Extended multibyte and wide character utilities
37023         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
37024         wcrtomb, wcsrtombs.
37025         (Support for systems lacking POSIX:2008): Add accept, bind, close,
37026         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
37027         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
37028         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
37029
37030 2008-12-21  Bruno Haible  <bruno@clisp.org>
37031
37032         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
37033
37034 2008-12-21  Bruno Haible  <bruno@clisp.org>
37035
37036         * modules/wcsnrtombs-tests: New file.
37037         * tests/test-wcsnrtombs1.sh: New file.
37038         * tests/test-wcsnrtombs2.sh: New file.
37039         * tests/test-wcsnrtombs3.sh: New file.
37040         * tests/test-wcsnrtombs4.sh: New file.
37041         * tests/test-wcsnrtombs.c: New file.
37042
37043         New module 'wcsnrtombs'.
37044         * lib/wchar.in.h (wcsnrtombs): New declaration.
37045         * lib/wcsnrtombs.c: New file.
37046         * lib/wcsrtombs-state.c: New file.
37047         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
37048         (internal_state): Remove variable.
37049         * m4/wcsnrtombs.m4: New file.
37050         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
37051         compilation units.
37052         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
37053         HAVE_WCSNRTOMBS.
37054         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
37055         HAVE_WCSNRTOMBS.
37056         * modules/wcsnrtombs: New file.
37057         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
37058         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
37059
37060 2008-12-21  Bruno Haible  <bruno@clisp.org>
37061
37062         * modules/wcsrtombs-tests: New file.
37063         * tests/test-wcsrtombs1.sh: New file.
37064         * tests/test-wcsrtombs2.sh: New file.
37065         * tests/test-wcsrtombs3.sh: New file.
37066         * tests/test-wcsrtombs4.sh: New file.
37067         * tests/test-wcsrtombs.c: New file.
37068
37069         New module 'wcsrtombs'.
37070         * lib/wchar.in.h (wcsrtombs): New declaration.
37071         * lib/wcsrtombs.c: New file.
37072         * m4/wcsrtombs.m4: New file.
37073         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
37074         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37075         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
37076         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37077         * modules/wcsrtombs: New file.
37078         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
37079         bugs.
37080
37081 2008-12-21  Bruno Haible  <bruno@clisp.org>
37082
37083         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
37084         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
37085         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
37086         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
37087         if not correct.
37088         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
37089         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
37090         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37091         m4/locale-zh.m4, m4/codeset.m4.
37092         * doc/posix-functions/wcrtomb.texi: Document the bug.
37093
37094 2008-12-21  Bruno Haible  <bruno@clisp.org>
37095
37096         Work around a btowc() bug on IRIX 6.5.
37097         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
37098         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
37099         REPLACE_WTOBC if not.
37100         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
37101         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
37102         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
37103
37104 2008-12-21  Bruno Haible  <bruno@clisp.org>
37105
37106         * modules/wcrtomb-tests: New file.
37107         * tests/test-wcrtomb.sh: New file.
37108         * tests/test-wcrtomb.c: New file.
37109
37110         New module 'wcrtomb'.
37111         * lib/wchar.in.h (wcrtomb): New declaration.
37112         * lib/wcrtomb.c: New file.
37113         * m4/wcrtomb.m4: New file.
37114         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
37115         HAVE_WCRTOMB.
37116         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
37117         HAVE_WCRTOMB.
37118         * modules/wcrtomb: New file.
37119         * doc/posix-functions/wcrtomb.texi: Mention the new module.
37120
37121 2008-12-21  Bruno Haible  <bruno@clisp.org>
37122
37123         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
37124         * modules/mbsrtowcs (Files): Likewise.
37125         * modules/wctob (Files): Likewise.
37126         * modules/c-strcase-tests (Files): Likewise.
37127         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37128         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37129         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37130         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37131         * modules/vasnprintf-posix-tests (Files): Likewise.
37132
37133 2008-12-21  William Pursell  <bill.pursell@gmail.com>
37134
37135         gitlog-to-changelog: pass all command-line arguments to git-log
37136         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
37137         it is sometimes convenient to filter the commits in various ways.
37138         gitlog-to-changelog only allows --since to specify a start date,
37139         but git-log itself supports many other filtering mechanisms.
37140         At the moment, I want to filter by branch name.  Rather than
37141         adding a --branch option to gitlog-to-changelog, it seems more
37142         flexible to simply pass all options directly to git-log and let
37143         git do the work.  Notice that this effectively makes --since a
37144         redundant option for gitlog-to-changelog, but removing it would
37145         require current usage to change since calls would then require
37146         an additional '--'.
37147
37148 2008-12-21  Bruno Haible  <bruno@clisp.org>
37149
37150         * modules/mbsnrtowcs-tests: New file.
37151         * tests/test-mbsnrtowcs1.sh: New file.
37152         * tests/test-mbsnrtowcs2.sh: New file.
37153         * tests/test-mbsnrtowcs3.sh: New file.
37154         * tests/test-mbsnrtowcs4.sh: New file.
37155         * tests/test-mbsnrtowcs.c: New file.
37156
37157         New module 'mbsnrtowcs'.
37158         * lib/wchar.in.h (mbsnrtowcs): New declaration.
37159         * lib/mbsnrtowcs.c: New file.
37160         * lib/mbsrtowcs-state.c: New file.
37161         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
37162         (internal_state): Remove variable.
37163         * m4/mbsnrtowcs.m4: New file.
37164         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
37165         compilation units.
37166         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
37167         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37168         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
37169         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37170         * modules/mbsnrtowcs: New file.
37171         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
37172         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
37173         portability problem.
37174
37175 2008-12-21  Bruno Haible  <bruno@clisp.org>
37176
37177         Work around mbsrtowcs bug.
37178         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
37179         (gl_FUNC_MBSRTOWCS): Invoke it.
37180         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37181         m4/locale-zh.m4.
37182         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
37183
37184 2008-12-21  Bruno Haible  <bruno@clisp.org>
37185
37186         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
37187
37188 2008-12-21  Bruno Haible  <bruno@clisp.org>
37189
37190         Update doc for AIX.
37191         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
37192         16-bit wchar_t type.
37193         * doc/posix-functions/btowc.texi: Likewise.
37194         * doc/posix-functions/fgetwc.texi: Likewise.
37195         * doc/posix-functions/fgetws.texi: Likewise.
37196         * doc/posix-functions/fputwc.texi: Likewise.
37197         * doc/posix-functions/fputws.texi: Likewise.
37198         * doc/posix-functions/fwide.texi: Likewise.
37199         * doc/posix-functions/fwprintf.texi: Likewise.
37200         * doc/posix-functions/fwscanf.texi: Likewise.
37201         * doc/posix-functions/getwchar.texi: Likewise.
37202         * doc/posix-functions/getwc.texi: Likewise.
37203         * doc/posix-functions/iswalnum.texi: Likewise.
37204         * doc/posix-functions/iswalpha.texi: Likewise.
37205         * doc/posix-functions/iswblank.texi: Likewise.
37206         * doc/posix-functions/iswcntrl.texi: Likewise.
37207         * doc/posix-functions/iswctype.texi: Likewise.
37208         * doc/posix-functions/iswdigit.texi: Likewise.
37209         * doc/posix-functions/iswgraph.texi: Likewise.
37210         * doc/posix-functions/iswlower.texi: Likewise.
37211         * doc/posix-functions/iswprint.texi: Likewise.
37212         * doc/posix-functions/iswpunct.texi: Likewise.
37213         * doc/posix-functions/iswspace.texi: Likewise.
37214         * doc/posix-functions/iswupper.texi: Likewise.
37215         * doc/posix-functions/iswxdigit.texi: Likewise.
37216         * doc/posix-functions/mbrtowc.texi: Likewise.
37217         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37218         * doc/posix-functions/mbstowcs.texi: Likewise.
37219         * doc/posix-functions/mbtowc.texi: Likewise.
37220         * doc/posix-functions/putwchar.texi: Likewise.
37221         * doc/posix-functions/putwc.texi: Likewise.
37222         * doc/posix-functions/swprintf.texi: Likewise.
37223         * doc/posix-functions/tolower.texi: Likewise.
37224         * doc/posix-functions/toupper.texi: Likewise.
37225         * doc/posix-functions/towctrans.texi: Likewise.
37226         * doc/posix-functions/ungetwc.texi: Likewise.
37227         * doc/posix-functions/vswprintf.texi: Likewise.
37228         * doc/posix-functions/wcrtomb.texi: Likewise.
37229         * doc/posix-functions/wcscat.texi: Likewise.
37230         * doc/posix-functions/wcschr.texi: Likewise.
37231         * doc/posix-functions/wcscmp.texi: Likewise.
37232         * doc/posix-functions/wcscoll.texi: Likewise.
37233         * doc/posix-functions/wcscpy.texi: Likewise.
37234         * doc/posix-functions/wcscspn.texi: Likewise.
37235         * doc/posix-functions/wcsftime.texi: Likewise.
37236         * doc/posix-functions/wcslen.texi: Likewise.
37237         * doc/posix-functions/wcsncat.texi: Likewise.
37238         * doc/posix-functions/wcsncmp.texi: Likewise.
37239         * doc/posix-functions/wcsncpy.texi: Likewise.
37240         * doc/posix-functions/wcspbrk.texi: Likewise.
37241         * doc/posix-functions/wcsrchr.texi: Likewise.
37242         * doc/posix-functions/wcsrtombs.texi: Likewise.
37243         * doc/posix-functions/wcsspn.texi: Likewise.
37244         * doc/posix-functions/wcsstr.texi: Likewise.
37245         * doc/posix-functions/wcstod.texi: Likewise.
37246         * doc/posix-functions/wcstof.texi: Likewise.
37247         * doc/posix-functions/wcstoimax.texi: Likewise.
37248         * doc/posix-functions/wcstok.texi: Likewise.
37249         * doc/posix-functions/wcstold.texi: Likewise.
37250         * doc/posix-functions/wcstoll.texi: Likewise.
37251         * doc/posix-functions/wcstol.texi: Likewise.
37252         * doc/posix-functions/wcstombs.texi: Likewise.
37253         * doc/posix-functions/wcstoull.texi: Likewise.
37254         * doc/posix-functions/wcstoul.texi: Likewise.
37255         * doc/posix-functions/wcstoumax.texi: Likewise.
37256         * doc/posix-functions/wcswidth.texi: Likewise.
37257         * doc/posix-functions/wcsxfrm.texi: Likewise.
37258         * doc/posix-functions/wctob.texi: Likewise.
37259         * doc/posix-functions/wctomb.texi: Likewise.
37260         * doc/posix-functions/wctrans.texi: Likewise.
37261         * doc/posix-functions/wctype.texi: Likewise.
37262         * doc/posix-functions/wcwidth.texi: Likewise.
37263         * doc/posix-functions/wmemchr.texi: Likewise.
37264         * doc/posix-functions/wmemcmp.texi: Likewise.
37265         * doc/posix-functions/wmemcpy.texi: Likewise.
37266         * doc/posix-functions/wmemmove.texi: Likewise.
37267         * doc/posix-functions/wmemset.texi: Likewise.
37268         * doc/posix-functions/wprintf.texi: Likewise.
37269         * doc/posix-functions/wscanf.texi: Likewise.
37270
37271 2008-12-21  Bruno Haible  <bruno@clisp.org>
37272
37273         Update doc for HP-UX 11.11.
37274         * doc/posix-functions/btowc.texi: Clarify that the function is missing
37275         in HP-UX version 11.00, not in all versions of HP-UX 11.
37276         * doc/posix-functions/fwide.texi: Likewise.
37277         * doc/posix-functions/fwprintf.texi: Likewise.
37278         * doc/posix-functions/fwscanf.texi: Likewise.
37279         * doc/posix-functions/inet_ntop.texi: Likewise.
37280         * doc/posix-functions/inet_pton.texi: Likewise.
37281         * doc/posix-functions/mbrlen.texi: Likewise.
37282         * doc/posix-functions/mbrtowc.texi: Likewise.
37283         * doc/posix-functions/mbsinit.texi: Likewise.
37284         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37285         * doc/posix-functions/swprintf.texi: Likewise.
37286         * doc/posix-functions/swscanf.texi: Likewise.
37287         * doc/posix-functions/towctrans.texi: Likewise.
37288         * doc/posix-functions/vfwprintf.texi: Likewise.
37289         * doc/posix-functions/vswprintf.texi: Likewise.
37290         * doc/posix-functions/vwprintf.texi: Likewise.
37291         * doc/posix-functions/wcrtomb.texi: Likewise.
37292         * doc/posix-functions/wcsrtombs.texi: Likewise.
37293         * doc/posix-functions/wcsstr.texi: Likewise.
37294         * doc/posix-functions/wctob.texi: Likewise.
37295         * doc/posix-functions/wctrans.texi: Likewise.
37296         * doc/posix-functions/wmemchr.texi: Likewise.
37297         * doc/posix-functions/wmemcmp.texi: Likewise.
37298         * doc/posix-functions/wmemcpy.texi: Likewise.
37299         * doc/posix-functions/wmemmove.texi: Likewise.
37300         * doc/posix-functions/wmemset.texi: Likewise.
37301         * doc/posix-functions/wprintf.texi: Likewise.
37302         * doc/posix-functions/wscanf.texi: Likewise.
37303
37304 2008-12-21  Bruno Haible  <bruno@clisp.org>
37305
37306         Work around a portability problem.
37307         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
37308         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
37309
37310 2008-12-20  Bruno Haible  <bruno@clisp.org>
37311
37312         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
37313         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
37314         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
37315         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
37316         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
37317
37318         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
37319         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
37320         set.
37321         (GNULIB_defined_mbstate_t): New macro.
37322         (mbsinit): Redefine if REPLACE_MBSINIT is set.
37323         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
37324         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
37325         reuses the system's mbrtowc function but works around the bugs.
37326         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
37327         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
37328         macros.
37329         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
37330         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
37331         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
37332         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
37333         REPLACE_MBSINIT if mbsinit needs to be overridden.
37334         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
37335         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37336         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
37337         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37338         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37339         m4/locale-zh.m4.
37340         (Depends): Add mbsinit.
37341         * modules/mbsinit (Depends): Add mbrtowc.
37342         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
37343
37344 2008-12-20  Bruno Haible  <bruno@clisp.org>
37345
37346         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
37347         so that there are no conversion errors on AIX.
37348         * tests/test-mbsrtowcs.c (main): LIkewise.
37349
37350 2008-12-20  Bruno Haible  <bruno@clisp.org>
37351
37352         Work around wctob bug on Solaris <= 9.
37353         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
37354         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
37355         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
37356         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
37357         * modules/wctob (Files): Add m4/locale-fr.m4.
37358         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
37359
37360 2008-12-20  Bruno Haible  <bruno@clisp.org>
37361
37362         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
37363         /dev/null.
37364         * tests/test-select-in.sh: Likewise.
37365         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37366
37367 2008-12-20  Bruno Haible  <bruno@clisp.org>
37368
37369         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
37370         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
37371         Cygwin 1.5.x.
37372
37373 2008-12-20  Bruno Haible  <bruno@clisp.org>
37374
37375         Ensure mbstate_t is defined on HP-UX 11.11.
37376         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
37377         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
37378         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
37379         AC_USE_SYSTEM_EXTENSIONS.
37380         * modules/fnmatch (Depends-on): Add extensions.
37381         * modules/mbrlen (Depends-on): Likewise.
37382         * modules/mbrtowc (Depends-on): Likewise.
37383         * modules/mbsinit (Depends-on): Likewise.
37384         * modules/mbsrtowcs (Depends-on): Likewise.
37385         * modules/mbswidth (Depends-on): Likewise.
37386         * modules/quotearg (Depends-on): Likewise.
37387         * modules/strftime (Depends-on): Likewise.
37388
37389 2008-12-20  Bruno Haible  <bruno@clisp.org>
37390
37391         Ensure wctob is declared on IRIX 6.5.
37392         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
37393         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
37394         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
37395         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
37396         of HAVE_WCTOB.
37397         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
37398         HAVE_WCTOB.
37399         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
37400
37401 2008-12-19  Bruno Haible  <bruno@clisp.org>
37402
37403         * modules/mbsrtowcs-tests: New file.
37404         * tests/test-mbsrtowcs1.sh: New file.
37405         * tests/test-mbsrtowcs2.sh: New file.
37406         * tests/test-mbsrtowcs3.sh: New file.
37407         * tests/test-mbsrtowcs4.sh: New file.
37408         * tests/test-mbsrtowcs.c: New file.
37409
37410         New module 'mbsrtowcs'.
37411         * lib/wchar.in.h (mbsrtowcs): New declaration.
37412         * lib/mbsrtowcs.c: New file.
37413         * m4/mbsrtowcs.m4: New file.
37414         * modules/mbsrtowcs: New file.
37415         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
37416         HAVE_MBSRTOWCS.
37417         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
37418         HAVE_MBSRTOWCS.
37419         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
37420
37421 2008-12-19  Bruno Haible  <bruno@clisp.org>
37422
37423         New module 'mbrlen'.
37424         * lib/wchar.in.h (mbrlen): New declaration.
37425         * lib/mbrlen.c: New file.
37426         * m4/mbrlen.m4: New file.
37427         * modules/mbrlen: New file.
37428         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
37429         HAVE_MBRLEN.
37430         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
37431         HAVE_MBRLEN.
37432         * doc/posix-functions/mbrlen.texi: Document the new module.
37433
37434 2008-12-19  Bruno Haible  <bruno@clisp.org>
37435
37436         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
37437         * modules/mbrtowc (Depends-on): Add verify.
37438         Suggested by Paul Eggert.
37439
37440 2008-12-18  Bruno Haible  <bruno@clisp.org>
37441
37442         * modules/mbsinit-tests: New file.
37443         * tests/test-mbsinit.sh: New file.
37444         * tests/test-mbsinit.c: New file.
37445
37446 2008-12-18  Bruno Haible  <bruno@clisp.org>
37447
37448         * modules/mbrtowc-tests: New file.
37449         * tests/test-mbrtowc1.sh: New file.
37450         * tests/test-mbrtowc2.sh: New file.
37451         * tests/test-mbrtowc3.sh: New file.
37452         * tests/test-mbrtowc4.sh: New file.
37453         * tests/test-mbrtowc.c: New file.
37454
37455         New module 'mbrtowc'.
37456         * lib/wchar.in.h (mbstate_t): Override when the system does not have
37457         mbsinit and mbrtowc.
37458         (mbrtowc): New declaration.
37459         * lib/mbrtowc.c: New file.
37460         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
37461         * modules/mbrtowc: New file.
37462         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
37463         HAVE_MBRTOWC.
37464         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
37465         HAVE_MBRTOWC.
37466         * doc/posix-functions/mbrtowc.texi: Document the new module.
37467
37468 2008-12-18  Bruno Haible  <bruno@clisp.org>
37469
37470         New module 'wctob'.
37471         * lib/wchar.in.h (wctob): New declaration.
37472         * lib/wctob.c: New file.
37473         * m4/wctob.m4: New file.
37474         * modules/wctob: New file.
37475         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
37476         HAVE_WCTOB.
37477         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
37478         * doc/posix-functions/wctob.texi: Document the new module.
37479
37480 2008-12-18  Bruno Haible  <bruno@clisp.org>
37481
37482         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
37483         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
37484
37485 2008-12-18  Simon Josefsson  <simon@josefsson.org>
37486
37487         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
37488         G. Christensen" <tgc@jupiterrise.com>.
37489
37490         * lib/flock.c: Need to include errno.h.  Reported by "Tom
37491         G. Christensen" <tgc@jupiterrise.com>.
37492
37493         * lib/flock.c: Need to include string.h.  Reported by "Tom
37494         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
37495         <ebb9@byu.net>.
37496
37497 2008-12-18  Bruno Haible  <bruno@clisp.org>
37498
37499         * m4/locale-ja.m4: New file, from GNU gettext.
37500
37501 2008-12-17  Bruno Haible  <bruno@clisp.org>
37502
37503         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
37504         Suggested by Eric Blake.
37505
37506 2008-12-17  Bruno Haible  <bruno@clisp.org>
37507
37508         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
37509
37510 2008-12-17  Bruno Haible  <bruno@clisp.org>
37511
37512         * lib/mbsinit.c: Include verify.h. Verify an assumption.
37513         * modules/mbsinit (Depends-on): Add verify.
37514         Suggested by Paul Eggert.
37515
37516 2008-12-17  Bruno Haible  <bruno@clisp.org>
37517
37518         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
37519         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
37520         gl_FUNC_MBRTOWC.
37521         * m4/mbiter.m4 (gl_MBITER): LIkewise.
37522         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
37523         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
37524         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
37525         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
37526         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
37527         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
37528         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
37529         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
37530         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
37531         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
37532         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
37533         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
37534         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
37535         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
37536         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
37537         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
37538         * modules/trim (configure.ac): Likewise.
37539
37540 2008-12-17  Bruno Haible  <bruno@clisp.org>
37541
37542         * modules/btowc-tests: New file.
37543         * tests/test-btowc1.sh: New file.
37544         * tests/test-btowc2.sh: New file.
37545         * tests/test-btowc.c: New file.
37546
37547         New module 'btowc'.
37548         * lib/wchar.in.h (btowc): New declaration.
37549         * lib/btowc.c: New file.
37550         * m4/btowc.m4: New file.
37551         * modules/btowc: New file.
37552         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
37553         HAVE_BTOWC.
37554         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
37555         * doc/posix-functions/btowc.texi: Document the new module.
37556
37557 2008-12-17  Bruno Haible  <bruno@clisp.org>
37558
37559         New module 'mbsinit'.
37560         * lib/wchar.in.h (mbsinit): New declaration.
37561         * lib/mbsinit.c: New file.
37562         * m4/mbsinit.m4: New file.
37563         * modules/mbsinit: New file.
37564         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
37565         HAVE_MBSINIT.
37566         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
37567         HAVE_MBSINIT.
37568         * doc/posix-functions/mbsinit.texi: Document the new module.
37569
37570 2008-12-16  Bruno Haible  <bruno@clisp.org>
37571
37572         * lib/unistd.in.h: Add comment.
37573         * tests/test-environ.c: Don't include <stdlib.h>.
37574
37575 2008-12-16  Bruno Haible  <bruno@clisp.org>
37576
37577         * lib/parse-duration.h (parse_duration): Document return value
37578         convention.
37579         * lib/parse-duration.c: Include specification header first. Add
37580         comments.
37581         (_): Remove macro.
37582         (parse_year_month_day, parse_hour_minute_second): Move side effects
37583         outside of strchr call.
37584         (parse_non_iso8601): Move side effects outside of isspace call.
37585         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
37586         call.
37587
37588 2008-12-16  Bruno Haible  <bruno@clisp.org>
37589
37590         * tests/test-parse-duration.sh: Produce no output when the test
37591         succeeds.
37592
37593 2008-12-16  Bruno Haible  <bruno@clisp.org>
37594
37595         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
37596         expressions.
37597
37598 2008-12-15  Bruno Haible  <bruno@clisp.org>
37599
37600         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
37601         * doc/glibc-functions/flistxattr.texi: Likewise.
37602         * doc/glibc-functions/fopencookie.texi: Likewise.
37603         * doc/glibc-functions/fremovexattr.texi: Likewise.
37604         * doc/glibc-functions/fsetxattr.texi: Likewise.
37605         * doc/glibc-functions/getxattr.texi: Likewise.
37606         * doc/glibc-functions/lgetxattr.texi: Likewise.
37607         * doc/glibc-functions/listxattr.texi: Likewise.
37608         * doc/glibc-functions/llistxattr.texi: Likewise.
37609         * doc/glibc-functions/lremovexattr.texi: Likewise.
37610         * doc/glibc-functions/lsetxattr.texi: Likewise.
37611         * doc/glibc-functions/removexattr.texi: Likewise.
37612         * doc/glibc-functions/setxattr.texi: Likewise.
37613         * doc/posix-functions/open_memstream.texi: Likewise.
37614
37615 2008-12-15  Eric Blake  <ebb9@byu.net>
37616
37617         Update doc for cygwin 1.7.
37618         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
37619         functions.
37620         * doc/posix-functions/fchmodat.texi: Likewise.
37621         * doc/posix-functions/fchownat.texi: Likewise.
37622         * doc/posix-functions/fdopendir.texi: Likewise.
37623         * doc/posix-functions/fmemopen.texi: Likewise.
37624         * doc/posix-functions/freeaddrinfo.texi: Likewise.
37625         * doc/posix-functions/fstatat.texi: Likewise.
37626         * doc/posix-functions/futimens.texi: Likewise.
37627         * doc/posix-functions/gai_strerror.texi: Likewise.
37628         * doc/posix-functions/getaddrinfo.texi: Likewise.
37629         * doc/posix-functions/getnameinfo.texi: Likewise.
37630         * doc/posix-functions/if_freenameindex.texi: Likewise.
37631         * doc/posix-functions/if_indextoname.texi: Likewise.
37632         * doc/posix-functions/if_nameindex.texi: Likewise.
37633         * doc/posix-functions/if_nametoindex.texi: Likewise.
37634         * doc/posix-functions/insque.texi: Likewise.
37635         * doc/posix-functions/linkat.texi: Likewise.
37636         * doc/posix-functions/llrint.texi: Likewise.
37637         * doc/posix-functions/llrintf.texi: Likewise.
37638         * doc/posix-functions/llrintl.texi: Likewise.
37639         * doc/posix-functions/lockf.texi: Likewise.
37640         * doc/posix-functions/lrintl.texi: Likewise.
37641         * doc/posix-functions/mkdirat.texi: Likewise.
37642         * doc/posix-functions/mkfifoat.texi: Likewise.
37643         * doc/posix-functions/mknodat.texi: Likewise.
37644         * doc/posix-functions/mq_close.texi: Likewise.
37645         * doc/posix-functions/mq_getattr.texi: Likewise.
37646         * doc/posix-functions/mq_notify.texi: Likewise.
37647         * doc/posix-functions/mq_open.texi: Likewise.
37648         * doc/posix-functions/mq_receive.texi: Likewise.
37649         * doc/posix-functions/mq_send.texi: Likewise.
37650         * doc/posix-functions/mq_setattr.texi: Likewise.
37651         * doc/posix-functions/mq_timedreceive.texi: Likewise.
37652         * doc/posix-functions/mq_timedsend.texi: Likewise.
37653         * doc/posix-functions/mq_unlink.texi: Likewise.
37654         * doc/posix-functions/open_memstream.texi: Likewise.
37655         * doc/posix-functions/openat.texi: Likewise.
37656         * doc/posix-functions/posix_fadvise.texi: Likewise.
37657         * doc/posix-functions/posix_fallocate.texi: Likewise.
37658         * doc/posix-functions/posix_madvise.texi: Likewise.
37659         * doc/posix-functions/posix_memalign.texi: Likewise.
37660         * doc/posix-functions/posix_openpt.texi: Likewise.
37661         * doc/posix-functions/readlinkat.texi: Likewise.
37662         * doc/posix-functions/remque.texi: Likewise.
37663         * doc/posix-functions/renameat.texi: Likewise.
37664         * doc/posix-functions/rintl.texi: Likewise.
37665         * doc/posix-functions/sem_unlink.texi: Likewise.
37666         * doc/posix-functions/shm_open.texi: Likewise.
37667         * doc/posix-functions/shm_unlink.texi: Likewise.
37668         * doc/posix-functions/signgam.texi: Likewise.
37669         * doc/posix-functions/sigset.texi: Likewise.
37670         * doc/posix-functions/stpcpy.texi: Likewise.
37671         * doc/posix-functions/stpncpy.texi: Likewise.
37672         * doc/posix-functions/strerror.texi: Likewise.
37673         * doc/posix-functions/strtod.texi: Likewise.
37674         * doc/posix-functions/symlinkat.texi: Likewise.
37675         * doc/posix-functions/unlinkat.texi: Likewise.
37676         * doc/posix-functions/utimensat.texi: Likewise.
37677         * doc/glibc-functions/bindresvport.texi: Likewise.
37678         * doc/glibc-functions/dn_expand.texi: Likewise.
37679         * doc/glibc-functions/exp10.texi: Likewise.
37680         * doc/glibc-functions/exp10f.texi: Likewise.
37681         * doc/glibc-functions/fgetxattr.texi: Likewise.
37682         * doc/glibc-functions/flistxattr.texi: Likewise.
37683         * doc/glibc-functions/fopencookie.texi: Likewise.
37684         * doc/glibc-functions/freeifaddrs.texi: Likewise.
37685         * doc/glibc-functions/fremovexattr.texi: Likewise.
37686         * doc/glibc-functions/fsetxattr.texi: Likewise.
37687         * doc/glibc-functions/getifaddrs.texi: Likewise.
37688         * doc/glibc-functions/getxattr.texi: Likewise.
37689         * doc/glibc-functions/lgetxattr.texi: Likewise.
37690         * doc/glibc-functions/listxattr.texi: Likewise.
37691         * doc/glibc-functions/llistxattr.texi: Likewise.
37692         * doc/glibc-functions/lremovexattr.texi: Likewise.
37693         * doc/glibc-functions/lsetxattr.texi: Likewise.
37694         * doc/glibc-functions/pow10.texi: Likewise.
37695         * doc/glibc-functions/pow10f.texi: Likewise.
37696         * doc/glibc-functions/rcmd_af.texi: Likewise.
37697         * doc/glibc-functions/removexattr.texi: Likewise.
37698         * doc/glibc-functions/res_init.texi: Likewise.
37699         * doc/glibc-functions/res_mkquery.texi: Likewise.
37700         * doc/glibc-functions/res_query.texi: Likewise.
37701         * doc/glibc-functions/res_querydomain.texi: Likewise.
37702         * doc/glibc-functions/res_send.texi: Likewise.
37703         * doc/glibc-functions/rresvport_af.texi: Likewise.
37704         * doc/glibc-functions/setxattr.texi: Likewise.
37705         * doc/glibc-functions/strcasestr.texi: Likewise.
37706
37707 2008-12-15  Bruno Haible  <bruno@clisp.org>
37708
37709         Fix compilation error on OSF/1 4.0.
37710         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
37711         <sys/time.h>, simply delegate to the system header.
37712         Reported by Daniel Richard G. <oss@teragram.com>.
37713
37714 2008-12-15  Bruno Haible  <bruno@clisp.org>
37715
37716         * doc/posix-functions/openat.texi: Mention the 'openat' module.
37717         * doc/posix-functions/fchmodat.texi: Likewise.
37718         * doc/posix-functions/fchownat.texi: Likewise.
37719         * doc/posix-functions/fdopendir.texi: Likewise.
37720         * doc/posix-functions/fstatat.texi: Likewise.
37721         * doc/posix-functions/mkdirat.texi: Likewise.
37722         * doc/posix-functions/unlinkat.texi: Likewise.
37723
37724 2008-12-14  Bruno Haible  <bruno@clisp.org>
37725
37726         Update doc for POSIX:2008.
37727         * doc/posix-functions/faccessat.texi: New file.
37728         * doc/posix-functions/fchmodat.texi: New file.
37729         * doc/posix-functions/fchownat.texi: New file.
37730         * doc/posix-functions/fdopendir.texi: New file.
37731         * doc/posix-functions/fstatat.texi: New file.
37732         * doc/posix-functions/futimens.texi: New file.
37733         * doc/posix-functions/linkat.texi: New file.
37734         * doc/posix-functions/mkdirat.texi: New file.
37735         * doc/posix-functions/mkfifoat.texi: New file.
37736         * doc/posix-functions/mknodat.texi: New file.
37737         * doc/posix-functions/open_wmemstream.texi: New file.
37738         * doc/posix-functions/openat.texi: New file.
37739         * doc/posix-functions/psiginfo.texi: New file.
37740         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
37741         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
37742         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
37743         * doc/posix-functions/readlinkat.texi: New file.
37744         * doc/posix-functions/renameat.texi: New file.
37745         * doc/posix-functions/strerror_l.texi: New file.
37746         * doc/posix-functions/symlinkat.texi: New file.
37747         * doc/posix-functions/unlinkat.texi: New file.
37748         * doc/posix-functions/utimensat.texi: New file.
37749         * doc/gnulib.texi (Function Substitutes): Add these subsections.
37750
37751 2008-12-14  Bruno Haible  <bruno@clisp.org>
37752
37753         Update doc for POSIX:2008.
37754         * doc/posix-functions/alphasort.texi: Renamed from
37755         doc/glibc-functions/alphasort.texi.
37756         * doc/posix-functions/dirfd.texi: Renamed from
37757         doc/glibc-functions/dirfd.texi.
37758         * doc/posix-functions/dprintf.texi: Renamed from
37759         doc/glibc-functions/dprintf.texi.
37760         * doc/posix-functions/duplocale.texi: Renamed from
37761         doc/glibc-functions/duplocale.texi.
37762         * doc/posix-functions/fexecve.texi: Renamed from
37763         doc/glibc-functions/fexecve.texi.
37764         * doc/posix-functions/fmemopen.texi: Renamed from
37765         doc/glibc-functions/fmemopen.texi.
37766         * doc/posix-functions/freelocale.texi: Renamed from
37767         doc/glibc-functions/freelocale.texi.
37768         * doc/posix-functions/getdate_err.texi: Renamed from
37769         doc/glibc-functions/getdate_err.texi.
37770         * doc/posix-functions/isalnum_l.texi: Renamed from
37771         doc/glibc-functions/isalnum_l.texi.
37772         * doc/posix-functions/isalpha_l.texi: Renamed from
37773         doc/glibc-functions/isalpha_l.texi.
37774         * doc/posix-functions/isblank_l.texi: Renamed from
37775         doc/glibc-functions/isblank_l.texi.
37776         * doc/posix-functions/iscntrl_l.texi: Renamed from
37777         doc/glibc-functions/iscntrl_l.texi.
37778         * doc/posix-functions/isdigit_l.texi: Renamed from
37779         doc/glibc-functions/isdigit_l.texi.
37780         * doc/posix-functions/isgraph_l.texi: Renamed from
37781         doc/glibc-functions/isgraph_l.texi.
37782         * doc/posix-functions/islower_l.texi: Renamed from
37783         doc/glibc-functions/islower_l.texi.
37784         * doc/posix-functions/isprint_l.texi: Renamed from
37785         doc/glibc-functions/isprint_l.texi.
37786         * doc/posix-functions/ispunct_l.texi: Renamed from
37787         doc/glibc-functions/ispunct_l.texi.
37788         * doc/posix-functions/isspace_l.texi: Renamed from
37789         doc/glibc-functions/isspace_l.texi.
37790         * doc/posix-functions/isupper_l.texi: Renamed from
37791         doc/glibc-functions/isupper_l.texi.
37792         * doc/posix-functions/iswalnum_l.texi: Renamed from
37793         doc/glibc-functions/iswalnum_l.texi.
37794         * doc/posix-functions/iswalpha_l.texi: Renamed from
37795         doc/glibc-functions/iswalpha_l.texi.
37796         * doc/posix-functions/iswblank_l.texi: Renamed from
37797         doc/glibc-functions/iswblank_l.texi.
37798         * doc/posix-functions/iswcntrl_l.texi: Renamed from
37799         doc/glibc-functions/iswcntrl_l.texi.
37800         * doc/posix-functions/iswctype_l.texi: Renamed from
37801         doc/glibc-functions/iswctype_l.texi.
37802         * doc/posix-functions/iswdigit_l.texi: Renamed from
37803         doc/glibc-functions/iswdigit_l.texi.
37804         * doc/posix-functions/iswgraph_l.texi: Renamed from
37805         doc/glibc-functions/iswgraph_l.texi.
37806         * doc/posix-functions/iswlower_l.texi: Renamed from
37807         doc/glibc-functions/iswlower_l.texi.
37808         * doc/posix-functions/iswprint_l.texi: Renamed from
37809         doc/glibc-functions/iswprint_l.texi.
37810         * doc/posix-functions/iswpunct_l.texi: Renamed from
37811         doc/glibc-functions/iswpunct_l.texi.
37812         * doc/posix-functions/iswspace_l.texi: Renamed from
37813         doc/glibc-functions/iswspace_l.texi.
37814         * doc/posix-functions/iswupper_l.texi: Renamed from
37815         doc/glibc-functions/iswupper_l.texi.
37816         * doc/posix-functions/iswxdigit_l.texi: Renamed from
37817         doc/glibc-functions/iswxdigit_l.texi.
37818         * doc/posix-functions/isxdigit_l.texi: Renamed from
37819         doc/glibc-functions/isxdigit_l.texi.
37820         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
37821         doc/glibc-functions/mbsnrtowcs.texi.
37822         * doc/posix-functions/mkdtemp.texi: Renamed from
37823         doc/glibc-functions/mkdtemp.texi.
37824         * doc/posix-functions/newlocale.texi: Renamed from
37825         doc/glibc-functions/newlocale.texi.
37826         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
37827         doc/glibc-functions/nl_langinfo_l.texi.
37828         * doc/posix-functions/open_memstream.texi: Renamed from
37829         doc/glibc-functions/open_memstream.texi.
37830         * doc/posix-functions/opterr.texi: Renamed from
37831         doc/glibc-functions/opterr.texi.
37832         * doc/posix-functions/optind.texi: Renamed from
37833         doc/glibc-functions/optind.texi.
37834         * doc/posix-functions/optopt.texi: Renamed from
37835         doc/glibc-functions/optopt.texi.
37836         * doc/posix-functions/psignal.texi: Renamed from
37837         doc/glibc-functions/psignal.texi.
37838         * doc/posix-functions/scandir.texi: Renamed from
37839         doc/glibc-functions/scandir.texi.
37840         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
37841         doc/glibc-functions/sched_get_priority_min.texi.
37842         * doc/posix-functions/signgam.texi: Renamed from
37843         doc/glibc-functions/signgam.texi.
37844         * doc/posix-functions/stpcpy.texi: Renamed from
37845         doc/glibc-functions/stpcpy.texi.
37846         * doc/posix-functions/stpncpy.texi: Renamed from
37847         doc/glibc-functions/stpncpy.texi.
37848         * doc/posix-functions/strcasecmp_l.texi: Renamed from
37849         doc/glibc-functions/strcasecmp_l.texi.
37850         * doc/posix-functions/strcoll_l.texi: Renamed from
37851         doc/glibc-functions/strcoll_l.texi.
37852         * doc/posix-functions/strfmon_l.texi: Renamed from
37853         doc/glibc-functions/strfmon_l.texi.
37854         * doc/posix-functions/strftime_l.texi: Renamed from
37855         doc/glibc-functions/strftime_l.texi.
37856         * doc/posix-functions/strncasecmp_l.texi: Renamed from
37857         doc/glibc-functions/strncasecmp_l.texi.
37858         * doc/posix-functions/strndup.texi: Renamed from
37859         doc/glibc-functions/strndup.texi.
37860         * doc/posix-functions/strnlen.texi: Renamed from
37861         doc/glibc-functions/strnlen.texi.
37862         * doc/posix-functions/strsignal.texi: Renamed from
37863         doc/glibc-functions/strsignal.texi.
37864         * doc/posix-functions/strxfrm_l.texi: Renamed from
37865         doc/glibc-functions/strxfrm_l.texi.
37866         * doc/posix-functions/timer_gettime.texi: Renamed from
37867         doc/glibc-functions/timer_gettime.texi.
37868         * doc/posix-functions/tolower_l.texi: Renamed from
37869         doc/glibc-functions/tolower_l.texi.
37870         * doc/posix-functions/toupper_l.texi: Renamed from
37871         doc/glibc-functions/toupper_l.texi.
37872         * doc/posix-functions/towctrans_l.texi: Renamed from
37873         doc/glibc-functions/towctrans_l.texi.
37874         * doc/posix-functions/towlower_l.texi: Renamed from
37875         doc/glibc-functions/towlower_l.texi.
37876         * doc/posix-functions/towupper_l.texi: Renamed from
37877         doc/glibc-functions/towupper_l.texi.
37878         * doc/posix-functions/uselocale.texi: Renamed from
37879         doc/glibc-functions/uselocale.texi.
37880         * doc/posix-functions/vdprintf.texi: Renamed from
37881         doc/glibc-functions/vdprintf.texi.
37882         * doc/posix-functions/wcpcpy.texi:
37883         Renamed from doc/glibc-functions/wcpcpy.texi.
37884         * doc/posix-functions/wcpncpy.texi: Renamed from
37885         doc/glibc-functions/wcpncpy.texi.
37886         * doc/posix-functions/wcscasecmp.texi: Renamed from
37887         doc/glibc-functions/wcscasecmp.texi.
37888         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
37889         doc/glibc-functions/wcscasecmp_l.texi.
37890         * doc/posix-functions/wcscoll_l.texi: Renamed from
37891         doc/glibc-functions/wcscoll_l.texi.
37892         * doc/posix-functions/wcsdup.texi: Renamed from
37893         doc/glibc-functions/wcsdup.texi.
37894         * doc/posix-functions/wcsncasecmp.texi: Renamed from
37895         doc/glibc-functions/wcsncasecmp.texi.
37896         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
37897         doc/glibc-functions/wcsncasecmp_l.texi.
37898         * doc/posix-functions/wcsnlen.texi: Renamed from
37899         doc/glibc-functions/wcsnlen.texi.
37900         * doc/posix-functions/wcsnrtombs.texi: Renamed from
37901         doc/glibc-functions/wcsnrtombs.texi.
37902         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
37903         doc/glibc-functions/wcsxfrm_l.texi.
37904         * doc/posix-functions/wctrans_l.texi: Renamed from
37905         doc/glibc-functions/wctrans_l.texi.
37906         * doc/posix-functions/wctype_l.texi: Renamed from
37907         doc/glibc-functions/wctype_l.texi.
37908         * doc/gnulib.texi (Function Substitutes): Add these subsections.
37909         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
37910         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
37911         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
37912         these subsections.
37913         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
37914         Remove sections.
37915
37916 2008-12-14  Bruno Haible  <bruno@clisp.org>
37917
37918         Update doc for POSIX:2008.
37919         * doc/posix-functions/*.texi: Update URL of POSIX specification.
37920
37921 2008-12-14  Bruno Haible  <bruno@clisp.org>
37922
37923         Update doc for POSIX:2008.
37924         * doc/pastposix-functions/bcmp.texi: Renamed from
37925         doc/posix-functions/bcmp.texi.
37926         * doc/pastposix-functions/bcopy.texi: Renamed from
37927         doc/posix-functions/bcopy.texi.
37928         * doc/pastposix-functions/bsd_signal.texi: Renamed from
37929         doc/posix-functions/bsd_signal.texi.
37930         * doc/pastposix-functions/bzero.texi: Renamed from
37931         doc/posix-functions/bzero.texi.
37932         * doc/pastposix-functions/ecvt.texi: Renamed from
37933         doc/posix-functions/ecvt.texi.
37934         * doc/pastposix-functions/fcvt.texi: Renamed from
37935         doc/posix-functions/fcvt.texi.
37936         * doc/pastposix-functions/ftime.texi: Renamed from
37937         doc/posix-functions/ftime.texi.
37938         * doc/pastposix-functions/gcvt.texi: Renamed from
37939         doc/posix-functions/gcvt.texi.
37940         * doc/pastposix-functions/getcontext.texi: Renamed from
37941         doc/posix-functions/getcontext.texi.
37942         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
37943         doc/posix-functions/gethostbyaddr.texi.
37944         * doc/pastposix-functions/gethostbyname.texi: Renamed from
37945         doc/posix-functions/gethostbyname.texi.
37946         * doc/pastposix-functions/getwd.texi: Renamed from
37947         doc/posix-functions/getwd.texi.
37948         * doc/pastposix-functions/h_errno.texi: Renamed from
37949         doc/posix-functions/h_errno.texi.
37950         * doc/pastposix-functions/index.texi: Renamed from
37951         doc/posix-functions/index.texi.
37952         * doc/pastposix-functions/makecontext.texi: Renamed from
37953         doc/posix-functions/makecontext.texi.
37954         * doc/pastposix-functions/mktemp.texi: Renamed from
37955         doc/posix-functions/mktemp.texi.
37956         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
37957         doc/posix-functions/pthread_attr_getstackaddr.texi.
37958         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
37959         doc/posix-functions/pthread_attr_setstackaddr.texi.
37960         * doc/pastposix-functions/rindex.texi: Renamed from
37961         doc/posix-functions/rindex.texi.
37962         * doc/pastposix-functions/scalb.texi: Renamed from
37963         doc/posix-functions/scalb.texi.
37964         * doc/pastposix-functions/setcontext.texi: Renamed from
37965         doc/posix-functions/setcontext.texi.
37966         * doc/pastposix-functions/swapcontext.texi: Renamed from
37967         doc/posix-functions/swapcontext.texi.
37968         * doc/pastposix-functions/ualarm.texi: Renamed from
37969         doc/posix-functions/ualarm.texi.
37970         * doc/pastposix-functions/usleep.texi: Renamed from
37971         doc/posix-functions/usleep.texi.
37972         * doc/pastposix-functions/vfork.texi: Renamed from
37973         doc/posix-functions/vfork.texi.
37974         * doc/pastposix-functions/wcswcs.texi: Renamed from
37975         doc/posix-functions/wcswcs.texi.
37976         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
37977         (Function Substitutes): Update.
37978
37979 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37980
37981         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
37982         m4/strerror.m4.
37983
37984 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37985             Bruno Haible  <bruno@clisp.org>
37986
37987         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
37988
37989 2008-12-13  Bruno Haible  <bruno@clisp.org>
37990
37991         * modules/strtoull (Depends-on): Remove unistd.
37992
37993 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37994
37995         * modules/strtoull (Depends-on): Add stdlib.
37996
37997 2008-12-11  Simon Josefsson  <simon@josefsson.org>
37998
37999         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
38000
38001 2008-12-10  Jim Meyering  <meyering@redhat.com>
38002
38003         gl_ASSERT: don't say assertions are disabled when they're not
38004         * m4/assert.m4 (gl_ASSERT): Do not make configure report
38005         "checking whether to enable assertions... no", when they are in
38006         fact enabled.  This is solely a bug in the output of configure.
38007         In spite of saying "no", NDEBUG was not defined in that case.
38008         Also, as noted by Eric Blake, leave assertions enabled upon
38009         --enable-assert=INVALID.
38010
38011 2008-12-10  Bruno Haible  <bruno@clisp.org>
38012
38013         Change MODULES.html to refer to POSIX:2008 where possible.
38014         * MODULES.html.sh (POSIX2008_URL): New variable.
38015         (posix_headers): Remove sys/timeb, ucontext.
38016         (posix2001_headers): New variable.
38017         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
38018         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
38019         index, makecontext, mktemp, pthread_attr_getstackaddr,
38020         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
38021         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
38022         (posix2001_functions): New variable.
38023         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
38024         otherwise.
38025
38026 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38027
38028         add missing include to parse-duration.c
38029         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
38030         * modules/parse-duration (Depends-on): Add xalloc.
38031
38032         fix sed script reading maint.mk
38033         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
38034         (syntax-check-rules): Use it.
38035
38036 2008-12-09  Bruno Haible  <bruno@clisp.org>
38037
38038         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
38039         MacOS X 10.4/PowerPC.
38040         Reported by Simon Josefsson.
38041
38042 2008-12-08  Jim Meyering  <meyering@redhat.com>
38043
38044         work around mingw's lack of some S_IF definitions
38045         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
38046         Reported by Simon Josefsson.
38047
38048 2008-12-08  Bruno Haible  <bruno@clisp.org>
38049
38050         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
38051         applied to variables. Needed on MacOS X 10.4/PowerPC.
38052         Reported by Simon Josefsson.
38053
38054 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
38055         and Eric Blake  <ebb9@byu.net>
38056
38057         assert: honor --enable-assert
38058         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
38059         order to honor --enable-assert, rather than treating it as a
38060         synonym for --disable-assert.
38061
38062 2008-12-08  Jim Meyering  <meyering@redhat.com>
38063
38064         * lib/posixtm.c: Remove now-useless declaration of mktime.
38065
38066         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
38067
38068 2008-12-07  Bruno Haible  <bruno@clisp.org>
38069
38070         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
38071         test_once): Mark functions as static.
38072         * tests/test-tls.c (test_tls): Likewise.
38073
38074 2008-12-07  Bruno Haible  <bruno@clisp.org>
38075
38076         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
38077         iconv_register_autodetect.
38078
38079 2008-12-07  Jim Meyering  <meyering@redhat.com>
38080
38081         posixtm.c: avoid a warning
38082         * lib/posixtm.c (posixtime): Don't initialize tm0.
38083         It's no longer needed to placate gcc4's -Wuninitialized,
38084         and the attempt to placate would elicit a new warning.
38085
38086         unicodeio.c: mark unused parameters
38087         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38088         (fallback_failure_callback): Likewise.
38089
38090 2008-12-07  Bruno Haible  <bruno@clisp.org>
38091
38092         * gnulib-tool (func_create_testdir): When building the tests
38093         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
38094         Reported by Simon Josefsson.
38095
38096 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38097
38098         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
38099
38100 2008-12-06  Bruno Haible  <bruno@clisp.org>
38101
38102         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
38103         Suggested by Eric Blake.
38104
38105 2008-12-06  Bruno Haible  <bruno@clisp.org>
38106
38107         Fix a c-stack test failure on MacOS X.
38108         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
38109         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
38110         handler for SIGBUS as well.
38111         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
38112         install a signal handler for SIGBUS as well.
38113         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
38114
38115 2008-12-06  Bruno Haible  <bruno@clisp.org>
38116
38117         Advocacy documentation.
38118         * doc/gnulib-intro.texi (Benefits): New section.
38119         * doc/gnulib.texi: Update.
38120
38121 2008-12-06  Bruno Haible  <bruno@clisp.org>
38122
38123         Document the 'manywarnings' module.
38124         * doc/manywarnings.texi: New file.
38125         * doc/gnulib.texi: Include it.
38126
38127 2008-12-05  Eric Blake  <ebb9@byu.net>
38128
38129         tests: silence some gcc warnings
38130         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
38131         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
38132         type mismatches.
38133
38134 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38135             Bruno Haible  <bruno@clisp.org>
38136
38137         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
38138
38139 2008-11-29  Jim Meyering  <meyering@redhat.com>
38140
38141         unicodeio.c: mark unused parameters
38142         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38143         (fallback_failure_callback): Likewise.
38144
38145         fts: fix a thinko
38146         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
38147         (set_stat_type): Return S_IF*-valued "type" directly.
38148         Prompted by James Youngman's spotting a related bug.
38149         Confirmed by further testing through find.
38150
38151         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
38152         * lib/fts.c (D_TYPE): Define.
38153         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
38154         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
38155         (s_ifmt_shift_bits): New function.
38156         (set_stat_type): New function.
38157         (fts_build): When not calling fts_stat, call set_stat_type
38158         to propagate dirent.d_type info to fts_read caller.
38159         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
38160         fts_statp->st_mode type information may be valid.
38161
38162 2008-11-28  Simon Josefsson  <simon@josefsson.org>
38163
38164         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
38165         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
38166         <sds@gnu.org>.
38167
38168 2008-11-20  Bruno Haible  <bruno@clisp.org>
38169
38170         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
38171         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
38172         INCLUDE_NEXT.
38173         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
38174         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
38175         * modules/math (Makefile.am): Substitute
38176         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
38177         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38178
38179 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
38180             Bruno Haible  <bruno@clisp.org>
38181
38182         * lib/stdint.in.h: Define all type macros so that their expansion is
38183         a single typedef'ed token. Fixes a compilation failure in Boost which
38184         does "using ::int8_t;".
38185
38186 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38187
38188         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
38189         gl_MANYWARN_ALL_GCC.
38190         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
38191         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
38192         * modules/manywarnings: New file.
38193         * MODULES.html.sh: Mention manywarnings module.
38194
38195 2008-11-18  Bruno Haible  <bruno@clisp.org>
38196
38197         * doc/gnulib-tool.texi (Unit tests): New section.
38198
38199 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38200
38201         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
38202         paths like 'lib/po/foo.po'.
38203
38204 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38205
38206         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
38207         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
38208
38209 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38210
38211         * m4/warnings.m4: Use CPPFLAGS to really check whether the
38212         parameter works.
38213
38214 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38215
38216         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
38217
38218 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38219
38220         * modules/parse-duration-tests: New file.
38221         * tests/test-parse-duration.sh: New file.
38222         * tests/test-parse-duration.c: New file.
38223
38224         New module 'parse-duration'.
38225         * lib/parse-duration.h: New file.
38226         * lib/parse-duration.c: New file.
38227         * modules/parse-duration: New file.
38228
38229 2008-11-17  Bruno Haible  <bruno@clisp.org>
38230
38231         * tests/test-select-out.sh: Comment out the first pipe test.
38232         Reported by Simon Josefsson.
38233
38234 2008-11-17  Bruno Haible  <bruno@clisp.org>
38235
38236         * modules/getaddrinfo (Depends-on): Add servent, hostent.
38237         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
38238         gl_HOSTENT.
38239
38240 2008-11-17  Bruno Haible  <bruno@clisp.org>
38241
38242         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
38243         -lnetwork and -lnet. Needed for Haiku and BeOS.
38244
38245 2008-11-16  Bruno Haible  <bruno@clisp.org>
38246
38247         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
38248
38249 2008-11-16  Bruno Haible  <bruno@clisp.org>
38250
38251         Avoid test failure on Haiku.
38252         * tests/test-fsync.c: Include <errno.h>.
38253         (main): Don't require that fsync (0) fails.
38254
38255 2008-11-15  Bruno Haible  <bruno@clisp.org>
38256
38257         New module 'hostent'.
38258         * modules/hostent: New file.
38259         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
38260
38261 2008-11-15  Bruno Haible  <bruno@clisp.org>
38262
38263         New module 'servent'.
38264         * modules/servent: New file.
38265         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
38266
38267 2008-11-15  Bruno Haible  <bruno@clisp.org>
38268
38269         Avoid generating same test program with two different rules.
38270         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
38271         test-frexp to test-frexp-nolibm.
38272         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
38273         test-frexpl to test-frexpl-nolibm.
38274
38275 2008-11-15  Bruno Haible  <bruno@clisp.org>
38276
38277         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
38278         $(FREXPL_LIBM).
38279
38280 2008-11-15  Bruno Haible  <bruno@clisp.org>
38281
38282         * lib/netdb.in.h: Activate the definitions also when the system's
38283         <netdb.h> has 'struct addrinfo'.
38284         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
38285         EAI_OVERFLOW or AI_NUMERICSERV.
38286         * doc/posix-headers/netdb.texi: Document the problem.
38287
38288 2008-11-15  Bruno Haible  <bruno@clisp.org>
38289
38290         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
38291
38292         Make the 'sched' module work on platforms where <sched.h> exists but
38293         is incomplete (such as Haiku).
38294         * lib/sched.in.h; Include the system's <sched.h> if it exists.
38295         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
38296         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
38297         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
38298         HAVE_STRUCT_SCHED_PARAM.
38299         * modules/sched (Depends-on): Add include_next.
38300         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
38301         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
38302         * doc/posix-headers/sched.texi: Document the issue.
38303
38304 2008-11-13  Jim Meyering  <meyering@redhat.com>
38305
38306         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
38307         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
38308         test would fail due to the difference in the Report bugs to ...
38309         line.  The expected address is empty, "<>", while the actual
38310         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
38311
38312 2008-11-12  Bruno Haible  <bruno@clisp.org>
38313
38314         lstat: don't compile lstat.c on systems lacking lstat
38315         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
38316         which don't have lstat; this is handled by lib/sys_stat.in.h already.
38317         Reported by Daniel P. Berrange via Jim Meyering.
38318
38319 2008-11-12  Jim Meyering  <meyering@redhat.com>
38320
38321         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
38322
38323 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38324
38325         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
38326         instead.
38327
38328 2008-11-12  Bruno Haible  <bruno@clisp.org>
38329
38330         * lib/unicodeio.c: Include unistr.h.
38331         (utf8_wctomb): Remove function.
38332         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
38333
38334 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38335
38336         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
38337         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
38338         <bruno@clisp.org>.
38339         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
38340
38341 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38342
38343         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
38344         * doc/gnulib.texi: Add section for warnings.
38345
38346 2008-11-11  Bruno Haible  <bruno@clisp.org>
38347
38348         * lib/sockets.h: Add a comment.
38349
38350 2008-11-11  Karl Berry  <karl@gnu.org>
38351
38352         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
38353
38354 2008-11-11  Eric Blake  <ebb9@byu.net>
38355
38356         fdl.texi: avoid git symlinks
38357         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
38358
38359 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38360
38361         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
38362
38363 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38364
38365         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
38366         (gl_WARN_ADD): Substitute $2 if literal.
38367
38368 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38369
38370         * m4/warning.m4: Remove.
38371
38372 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38373
38374         * m4/warnings.m4: Almost complete rewrite. :-)
38375
38376 2008-11-10  Simon Josefsson  <simon@josefsson.org>
38377
38378         * modules/warnings: New module.
38379         * m4/warnings.m4: New file.
38380         * MODULES.html.sh: Mention warnings module.
38381         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
38382         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38383
38384 2008-11-10  Eric Blake  <ebb9@byu.net>
38385
38386         fdl.texi: make a symlink to the latest version
38387         * doc/standards.texi: Revert today's earlier change.
38388         * doc/fdl-1.2.texi: Rename from old fdl.texi...
38389         * doc/fdl.texi: ...and replace this with a symlink to the newer
38390         fdl-1.3.texi.
38391
38392 2008-11-10  Bruno Haible  <bruno@clisp.org>
38393
38394         * tests/test-select-fd.c (main): Accept the result file name as fourth
38395         argument.
38396         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
38397         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
38398
38399 2008-11-10  Bruno Haible  <bruno@clisp.org>
38400
38401         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
38402         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
38403         as autoconf-substituted macros.
38404         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
38405         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
38406         gl_NETDB_H_DEFAULTS. Set these variables.
38407         * modules/netdb (Makefile.am): Substitute these variables.
38408
38409 2008-11-10  Eric Blake  <ebb9@byu.net>
38410
38411         standards.texi: include correct file for FDL 1.3
38412         * doc/standards.texi (GNU Free Documentation License): Change
38413         include file to pull in FDL 1.3, not 1.2.
38414
38415         fdl.texi: revert accidental change to license
38416         * doc/fdl.texi: This is FDL 1.2, not 1.3.
38417
38418 2008-11-10  Bruno Haible  <bruno@clisp.org>
38419
38420         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
38421         cross-compiling guesses also when the native compile gives no result.
38422
38423 2008-11-10  Bruno Haible  <bruno@clisp.org>
38424
38425         * lib/spawni.c (__spawni): Force variable into the stack.
38426
38427 2008-11-10  Bruno Haible  <bruno@clisp.org>
38428
38429         Add support for Haiku.
38430         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
38431         glibc and BeOS, but also on Haiku.
38432         * lib/fpurge.c (fpurge): Likewise.
38433         * lib/freadable.c (freadable): Likewise.
38434         * lib/freadahead.c (freadahead): Likewise.
38435         * lib/freading.c (freading): Likewise.
38436         * lib/freadptr.c (freadptr): Likewise.
38437         * lib/freadseek.c (freadptrinc): Likewise.
38438         * lib/fseeko.c (rpl_fseeko): Likewise.
38439         * lib/fseterr.c (fseterr): Likewise.
38440         * lib/fwritable.c (fwritable): Likewise.
38441         * lib/fwriting.c (fwriting): Likewise.
38442         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
38443
38444 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
38445
38446         * lib/config.charset: Treat Haiku like BeOS.
38447
38448 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
38449
38450         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
38451         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
38452
38453 2008-11-08  Bruno Haible  <bruno@clisp.org>
38454
38455         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
38456         AC_CACHE_CHECK.
38457
38458 2008-11-08  Bruno Haible  <bruno@clisp.org>
38459
38460         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
38461
38462 2008-11-08  Bruno Haible  <bruno@clisp.org>
38463
38464         * tests/test-select-fd.c: New file.
38465         * tests/test-select-in.sh: New file.
38466         * tests/test-select-out.sh: New file.
38467         * tests/test-select-stdin.c: New file.
38468         * modules/select-tests (Files): Add the new files.
38469         (Depends-on): Add gettimeofday.
38470         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
38471         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
38472         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
38473
38474 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
38475             Bruno Haible  <bruno@clisp.org>
38476
38477         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
38478
38479 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
38480
38481         * build-aux/pmccabe2html: Added support for C++ source files.
38482
38483 2008-11-05  Ben Pfaff  <blp@gnu.org>
38484
38485         Fix lib/close.c build on Windows.
38486         * modules/close (Files): Add lib/w32sock.h.
38487
38488 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
38489
38490         Accept Bison's NEWS format.
38491         * build-aux/announce-gen (print_news_deltas): Tweak
38492         $re_prefix.
38493
38494 2008-11-04  Bruno Haible  <bruno@clisp.org>
38495
38496         * modules/random_r (Maintainer): Add glibc.
38497
38498 2008-11-04  Simon Josefsson  <simon@josefsson.org>
38499
38500         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
38501         by karl@freefriends.org (Karl Berry).
38502         * doc/alloca.texi: Likewise.
38503         * doc/c-ctype.texi: Likewise.
38504         * doc/c-strcase.texi: Likewise.
38505         * doc/c-strcaseeq.texi: Likewise.
38506         * doc/c-strcasestr.texi: Likewise.
38507         * doc/c-strstr.texi: Likewise.
38508         * doc/c-strtod.texi: Likewise.
38509         * doc/c-strtold.texi: Likewise.
38510         * doc/ctime.texi: Likewise.
38511         * doc/error.texi: Likewise.
38512         * doc/fdl.texi: Likewise.
38513         * doc/gcd.texi: Likewise.
38514         * doc/getdate.texi: Likewise.
38515         * doc/gnulib-intro.texi: Likewise.
38516         * doc/gnulib-tool.texi: Likewise.
38517         * doc/gnulib.texi: Likewise.
38518         * doc/inet_ntoa.texi: Likewise.
38519         * doc/maintain.texi: Likewise.
38520         * doc/make-stds.texi: Likewise.
38521         * doc/quote.texi: Likewise.
38522         * doc/regexprops-generic.texi: Likewise.
38523         * doc/standards.texi: Likewise.
38524         * doc/verify.texi: Likewise.
38525         * doc/visibility.texi: Likewise.
38526         * doc/gnulib.texi (GNU Free Documentation License): Include
38527         fdl-1.3.texi instead of fdl.texi.
38528
38529 2008-11-04  Simon Josefsson  <simon@josefsson.org>
38530
38531         * doc/fdl-1.3.texi: New file, from
38532         <http://www.gnu.org/licenses/fdl-1.3.texi>.
38533         * modules/fdl-1.3: Add.
38534         * MODULES.html.sh: Add fdl-1.3.
38535
38536 2008-11-03  Bruno Haible  <bruno@clisp.org>
38537
38538         Make determination of absolute name of header file work with AIX xlc.
38539         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
38540         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
38541         preprocessing.
38542         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38543         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
38544
38545 2008-11-03  Simon Josefsson  <simon@josefsson.org>
38546
38547         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
38548         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
38549         <ludo@gnu.org>.
38550
38551 2008-11-02  Bruno Haible  <bruno@clisp.org>
38552
38553         Mark 'strpbrk' obsolete.
38554         * modules/strpbrk (Status, Notice): New sections.
38555         * modules/strtok_r (Depends-on): Add strpbrk.
38556
38557 2008-11-02  Bruno Haible  <bruno@clisp.org>
38558
38559         Mark 'strdup' obsolete.
38560         * modules/strdup (Status, Notice): New sections.
38561         * modules/findprog (Depends-on): Add strdup.
38562         * modules/getaddrinfo (Depends-on): Likewise.
38563         * modules/localename (Depends-on): Likewise.
38564         * modules/relocatable-lib (Depends-on): Likewise.
38565         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
38566         * modules/relocatable-prog (Depends-on): Likewise.
38567         * modules/trim (Depends-on): Likewise.
38568         * modules/unictype/gen-ctype (Depends-on): Likewise.
38569         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
38570
38571 2008-11-02  Bruno Haible  <bruno@clisp.org>
38572
38573         Mark 'strcspn' obsolete.
38574         * modules/strcspn (Status, Notice): New sections.
38575
38576 2008-11-02  Bruno Haible  <bruno@clisp.org>
38577
38578         Mark 'rmdir' obsolete.
38579         * modules/rmdir (Status, Notice): New sections.
38580         * modules/clean-temp (Depends-on): Add rmdir.
38581         * modules/openat (Depends-on): Likewise.
38582
38583 2008-11-02  Bruno Haible  <bruno@clisp.org>
38584
38585         Mark 'raise' obsolete.
38586         * modules/raise (Status, Notice): New sections.
38587         (Include): Specify <signal.h>.
38588         * modules/stdio (Depends-on): Add raise.
38589         * modules/write (Depends-on): Likewise.
38590
38591 2008-11-02  Bruno Haible  <bruno@clisp.org>
38592
38593         Mark 'memset' obsolete.
38594         * modules/memset (Status, Notice): New sections.
38595
38596 2008-11-02  Bruno Haible  <bruno@clisp.org>
38597
38598         Mark 'memmove' obsolete.
38599         * modules/memmove (Status, Notice): New sections.
38600         * modules/argp (Depends-on): Add memmove.
38601         * modules/argz (Depends-on): Likewise.
38602         * modules/canonicalize (Depends-on): Likewise.
38603         * modules/canonicalize-lgpl (Depends-on): Likewise.
38604         * modules/fts (Depends-on): Likewise.
38605         * modules/getcwd (Depends-on): Likewise.
38606         * modules/human (Depends-on): Likewise.
38607         * modules/regex (Depends-on): Likewise.
38608         * modules/striconveh (Depends-on): Likewise.
38609         * modules/trim (Depends-on): Likewise.
38610         * modules/unistr/u8-move (Depends-on): Likewise.
38611         * modules/unistr/u16-move (Depends-on): Likewise.
38612         * modules/unistr/u32-move (Depends-on): Likewise.
38613
38614 2008-11-02  Bruno Haible  <bruno@clisp.org>
38615
38616         Mark 'memcpy' obsolete.
38617         * modules/memcpy (Status, Notice): New sections.
38618
38619 2008-11-02  Bruno Haible  <bruno@clisp.org>
38620
38621         Mark 'memcmp' obsolete.
38622         * modules/memcmp (Status, Notice): New sections.
38623         * modules/argmatch (Depends-on): Add memchr.
38624         * modules/backupfile (Depends-on): Likewise.
38625         * modules/c-strcasestr (Depends-on): Likewise.
38626         * modules/crypto/des (Depends-on): Likewise.
38627         * modules/csharpcomp (Depends-on): Likewise.
38628         * modules/fnmatch (Depends-on): Likewise.
38629         * modules/git-merge-changelog (Depends-on): Likewise.
38630         * modules/isnand (Depends-on): Likewise.
38631         * modules/isnand-nolibm (Depends-on): Likewise.
38632         * modules/isnanf (Depends-on): Likewise.
38633         * modules/isnanf-nolibm (Depends-on): Likewise.
38634         * modules/isnanl (Depends-on): Likewise.
38635         * modules/isnanl-nolibm (Depends-on): Likewise.
38636         * modules/mbchar (Depends-on): Likewise.
38637         * modules/memcoll (Depends-on): Likewise.
38638         * modules/quotearg (Depends-on): Likewise.
38639         * modules/regex (Depends-on): Likewise.
38640         * modules/relocatable-prog (Depends-on): Likewise.
38641         * modules/same (Depends-on): Likewise.
38642         * modules/signbit (Depends-on): Likewise.
38643         * modules/strcasestr-simple (Depends-on): Likewise.
38644         * modules/unictype/gen-ctype (Depends-on): Likewise.
38645         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
38646         * modules/uniname/uniname (Depends-on): Likewise.
38647         * modules/unistr/u8-cmp (Depends-on): Likewise.
38648
38649 2008-11-02  Bruno Haible  <bruno@clisp.org>
38650
38651         Mark 'memchr' obsolete.
38652         * modules/memchr (Status, Notice): New sections.
38653         * modules/argp (Depends-on): Add memchr.
38654         * modules/base64 (Depends-on): Likewise.
38655         * modules/c-strcasestr (Depends-on): Likewise.
38656         * modules/chdir-long (Depends-on): Likewise.
38657         * modules/fnmatch (Depends-on): Likewise.
38658         * modules/getsubopt (Depends-on): Likewise.
38659         * modules/git-merge-changelog (Depends-on): Likewise.
38660         * modules/glob (Depends-on): Likewise.
38661         * modules/strcasestr-simple (Depends-on): Likewise.
38662         * modules/strnlen (Depends-on): Likewise.
38663
38664 2008-11-02  Bruno Haible  <bruno@clisp.org>
38665
38666         Mark 'atexit' obsolete.
38667         * modules/atexit (Status, Notice): New sections.
38668         * modules/chdir-long (Depends-on): Add atexit.
38669         * modules/wait-process (Depends-on): Likewise.
38670
38671 2008-11-02  Bruno Haible  <bruno@clisp.org>
38672
38673         * gnulib-tool: New option --with-obsolete.
38674         (func_usage): Document it.
38675         (func_modules_transitive_closure): Drop obsolete dependencies if
38676         incobsolete is not true.
38677         (func_import): Read and save the incobsolete variable to the cache.
38678
38679 2008-11-02  Bruno Haible  <bruno@clisp.org>
38680
38681         * modules/TEMPLATE-EXTENDED: New field 'Status'.
38682         * gnulib-tool: New option --extract-status.
38683         (func_usage): Document it.
38684         (sed_extract_prog): Recognize it.
38685         (func_get_status): New function.
38686
38687 2008-10-30  Simon Josefsson  <simon@josefsson.org>
38688
38689         * modules/sockets (License): Change from LGPL to LGPLv2+.
38690
38691 2008-10-28  Simon Josefsson  <simon@josefsson.org>
38692
38693         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
38694
38695 2008-10-28  Simon Josefsson  <simon@josefsson.org>
38696
38697         * MODULES.html.sh (Support for systems lacking POSIX:2001):
38698         Mention times and sys_times.
38699         * modules/sys_times, modules/sys_times-tests: New modules.
38700         * modules/times, modules/times-tests: Likewise
38701         * m4/sys_times_h.m4: New file.
38702         * lib/sys_times.in.h: Likewise
38703         * lib/times.c: Likewise.
38704         * tests/test-sys_times.c: Likewise.
38705         * tests/test-times.c: Likewise.
38706         * doc/posix-headers/sys_times.texi: Update.
38707         * doc/posix-functions/times.texi: Update.
38708
38709 2008-10-28  Jim Meyering  <meyering@redhat.com>
38710
38711         * modules/tempname (Depends-on): Add lstat.
38712
38713         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
38714
38715 2008-10-28  Simon Josefsson  <simon@josefsson.org>
38716
38717         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
38718         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
38719         using idiom used elsewhere in gnulib.
38720
38721 2008-10-27  Jim Meyering  <meyering@redhat.com>
38722
38723         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
38724
38725 2008-10-27  Simon Josefsson  <simon@josefsson.org>
38726
38727         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
38728         TESTS_ENVIRONMENT, for shell scripts that needs to call built
38729         programs.
38730         * tests/test-argp-2.sh: Use $EXEEXT when needed.
38731
38732 2008-10-27  Simon Josefsson  <simon@josefsson.org>
38733
38734         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
38735
38736 2008-10-27  Bruno Haible  <bruno@clisp.org>
38737
38738         * tests/test-lstat.c: Include <stdio.h>.
38739
38740 2008-10-27  Simon Josefsson  <simon@josefsson.org>
38741
38742         * modules/lstat-tests: New module.
38743         * tests/test-lstat.c: New file.
38744
38745 2008-10-26  Jim Meyering  <meyering@redhat.com>
38746
38747         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
38748
38749 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38750             Bruno Haible  <bruno@clisp.org>
38751
38752         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
38753         * modules/configmake (Include): Add a note that the include must come
38754         after all system headers.
38755         * lib/javaversion.c: Include configmake.h after all other includes.
38756
38757 2008-10-26  Bruno Haible  <bruno@clisp.org>
38758
38759         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
38760         HAVE_STRUCT_RANDOM_DATA to 1.
38761         (gl_STDLIB_H): Simplify.
38762
38763 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38764
38765         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
38766         substitute HAVE_STRUCT_RANDOM_DATA.
38767         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
38768         random_data.
38769         * modules/stdlib (Makefile.am): Substitute
38770         HAVE_STRUCT_RANDOM_DATA.
38771
38772 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38773
38774         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
38775         * doc/gnulib-intro.texi (Copyright): Likewise.
38776
38777 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38778
38779         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
38780         findings.
38781
38782 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
38783             Bruno Haible  <bruno@clisp.org>
38784
38785         * lib/unistd.in.h: Include <winsock2.h>.
38786         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
38787         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
38788         Provide dummy declarations.
38789         (gethostname): Override.
38790         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
38791         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
38792         gl_PREREQ_SYS_H_WINSOCK2.
38793         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
38794         * doc/posix-functions/gethostname.texi: More details.
38795
38796 2008-10-25  Bruno Haible  <bruno@clisp.org>
38797
38798         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
38799         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
38800         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
38801
38802         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
38803         here ...
38804         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
38805         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
38806         gl_UNISTD_H_DEFAULTS.
38807
38808 2008-10-25  Eric Blake  <ebb9@byu.net>
38809
38810         signbit: avoid spurious compiler failure
38811         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
38812         declarations inside function.
38813
38814 2008-10-24  Simon Josefsson  <simon@josefsson.org>
38815             Bruno Haible  <bruno@clisp.org>
38816
38817         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
38818         * modules/random_r (Depends-on): Add stdint.
38819
38820 2008-10-24  Bruno Haible  <bruno@clisp.org>
38821
38822         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
38823         Eggert.
38824         * modules/strerror (License): Likewise.
38825
38826 2008-10-24  Jim Meyering  <meyering@redhat.com>
38827
38828         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
38829         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
38830
38831 2008-10-24  Eric Blake  <ebb9@byu.net>
38832
38833         getgroups: fix compilation when getgroups is available
38834         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
38835         but with <config.h> override of getgroups disabled.
38836
38837 2008-10-24  Simon Josefsson  <simon@josefsson.org>
38838
38839         * doc/gnulib.texi (Header files): Add note about C++ problems.
38840         Explained by Bruno Haible <bruno@clisp.org>.
38841
38842 2008-10-23  Bruno Haible  <bruno@clisp.org>
38843
38844         Define a dummy SA_NODEFER macro on Interix.
38845         * lib/signal.in.h (SA_NODEFER): Define fallback.
38846         Reported by Aleksey Cheusov <cheusov@tut.by> via
38847         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
38848
38849 2008-10-23  Bruno Haible  <bruno@clisp.org>
38850
38851         * modules/freadahead (License): Change to LGPLv2+.
38852         Suggested by Simon Josefsson.
38853
38854 2008-10-23  Jim Meyering  <meyering@redhat.com>
38855
38856         random_r: new module
38857         * modules/random_r: New file.
38858         * m4/random_r.m4: New file.
38859         * lib/random_r.c: New file, from glibc.
38860         * modules/random_r-tests: New file.
38861         * tests/test-random_r.c: New file.
38862         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
38863          Declare.
38864         (RAND_MAX): Define.
38865         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
38866         * modules/stdlib: Substitute them, too.
38867         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
38868         * doc/glibc-functions/initstate_r.texi: Mention the new module.
38869         * doc/glibc-functions/random_r.texi: Likewise.
38870         * doc/glibc-functions/setstate_r.texi: Likewise.
38871         * doc/glibc-functions/srandom_r.texi: Likewise.
38872         * config/srclist.txt: Mention it.
38873
38874 2008-10-23  David Lutterkort  <lutter@redhat.com>
38875
38876         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
38877         link requirement
38878
38879 2008-10-23  Jim Meyering  <meyering@redhat.com>
38880
38881         selinux-h: mark parameters of stub functions as intentionally unused
38882         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
38883         * lib/se-context.in.h: Likewise.
38884
38885 2008-10-22  Simon Josefsson  <simon@josefsson.org>
38886
38887         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
38888
38889 2008-10-22  Simon Josefsson  <simon@josefsson.org>
38890
38891         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
38892
38893 2008-10-22  Eric Blake  <ebb9@byu.net>
38894
38895         glthread/thread: avoid compiler warning
38896         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
38897         Add unreachable abort to silence compiler.
38898
38899 2008-10-22  Eric Blake  <ebb9@byu.net>
38900
38901         netdb: also supply struct addrinfo for cygwin 1.5.x
38902         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
38903         older cygwin.
38904         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
38905         cygwin.
38906         * doc/posix-headers/netdb.texi (netdb.h): Document this.
38907
38908 2008-10-22  Bruno Haible  <bruno@clisp.org>
38909
38910         * users.txt: Update entry about pspp.
38911
38912 2008-10-21  Bruno Haible  <bruno@clisp.org>
38913
38914         Simplification.
38915         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
38916         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
38917
38918         Simplification.
38919         * lib/ioctl.c (ioctl): Don't undefine.
38920         * lib/socket.c (socket): Don't undefine.
38921
38922         Remove unused module indicator macros.
38923         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
38924         GNULIB_$1 as a C macro.
38925
38926         * doc/posix-functions/close.texi: Undo last change.
38927         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
38928         Windows platforms.
38929
38930 2008-10-21  Bruno Haible  <bruno@clisp.org>
38931
38932         Add gethostname() declaration to <unistd.h>.
38933         * lib/unistd.in.h (gethostname): New declaration.
38934         * lib/gethostname.c: Include <unistd.h>.
38935         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
38936         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
38937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
38938         and HAVE_GETHOSTNAME.
38939         * modules/gethostname (Depends-on): Add unistd.
38940         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38941         (Include): Specify <unistd.h>.
38942         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
38943         HAVE_GETHOSTNAME.
38944         * tests/test-gethostname.c: Include <unistd.h> first.
38945
38946 2008-10-21  Bruno Haible  <bruno@clisp.org>
38947
38948         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
38949         * modules/select-tests (Depends-on): Likewise.
38950         Reported by Simon Josefsson.
38951
38952 2008-10-21  Simon Josefsson  <simon@josefsson.org>
38953
38954         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
38955         * lib/accept.c: New file, based on winsock.c.
38956         * lib/bind.c: New file, based on winsock.c.
38957         * lib/connect.c: New file, based on winsock.c.
38958         * lib/getpeername.c: New file, based on winsock.c.
38959         * lib/getsockname.c: New file, based on winsock.c.
38960         * lib/getsockopt.c: New file, based on winsock.c.
38961         * lib/ioctl.c: New file, based on winsock.c.
38962         * lib/listen.c: New file, based on winsock.c.
38963         * lib/recv.c: New file, based on winsock.c.
38964         * lib/recvfrom.c: New file, based on winsock.c.
38965         * lib/send.c: New file, based on winsock.c.
38966         * lib/sendto.c: New file, based on winsock.c.
38967         * lib/setsockopt.c: New file, based on winsock.c.
38968         * lib/shutdown.c: New file, based on winsock.c.
38969         * lib/socket.c: New file, based on winsock.c.
38970         * lib/w32sock.h: New file, based on winsock.c.
38971         * lib/winsock.c: Remove file.
38972         * modules/accept: Likewise.
38973         * modules/bind: Likewise.
38974         * modules/connect: Likewise.
38975         * modules/getpeername: Likewise.
38976         * modules/getsockname: Likewise.
38977         * modules/getsockopt: Likewise.
38978         * modules/ioctl: Likewise.
38979         * modules/listen: Likewise.
38980         * modules/recv: Likewise.
38981         * modules/recvfrom: Likewise.
38982         * modules/send: Likewise.
38983         * modules/sendto: Likewise.
38984         * modules/setsockopt: Likewise.
38985         * modules/shutdown: Likewise.
38986         * modules/socket: Use socket.c instead of winsock.c.
38987         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
38988         * doc/posix-functions/accept.texi: Doc fix.
38989         * doc/posix-functions/bind.texi: Doc fix.
38990         * doc/posix-functions/close.texi: Doc fix.
38991         * doc/posix-functions/connect.texi: Doc fix.
38992         * doc/posix-functions/getpeername.texi: Doc fix.
38993         * doc/posix-functions/getsockname.texi: Doc fix.
38994         * doc/posix-functions/getsockopt.texi: Doc fix.
38995         * doc/posix-functions/ioctl.texi: Doc fix.
38996         * doc/posix-functions/listen.texi: Doc fix.
38997         * doc/posix-functions/recv.texi: Doc fix.
38998         * doc/posix-functions/recvfrom.texi: Doc fix.
38999         * doc/posix-functions/send.texi: Doc fix.
39000         * doc/posix-functions/sendto.texi: Doc fix.
39001         * doc/posix-functions/setsockopt.texi: Doc fix.
39002         * doc/posix-functions/shutdown.texi: Doc fix.
39003         * doc/posix-functions/socket.texi: Doc fix.
39004
39005 2008-10-20  Bruno Haible  <bruno@clisp.org>
39006
39007         Take into account the role of SIGABRT_COMPAT on Windows 2008.
39008         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
39009         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
39010         as an alias for SIGABRT.
39011         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
39012         (sigaction): Map it to SIGABRT.
39013         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
39014
39015 2008-10-20  Bruno Haible  <bruno@clisp.org>
39016
39017         * lib/fts.c: Don't include lstat.h.
39018         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
39019
39020         Move the lstat() declaration to <sys/stat.h>.
39021         * lib/lstat.h: Remove file.
39022         * lib/sys_stat.in.h: Add special invocation convention.
39023         (lstat): New declaration.
39024         * lib/lstat.c (orig_lstat): New function.
39025         (rpl_lstat): Use orig_lstat instead of lstat.
39026         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
39027         AC_C_INLINE. Set REPLACE_LSTAT.
39028         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
39029         and REPLACE_LSTAT.
39030         * modules/lstat (Files): Remove lib/lstat.h.
39031         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39032         (Include): Specify <sys/stat.h> instead of lstat.h.
39033         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
39034         REPLACE_LSTAT.
39035         * NEWS: Mention the change.
39036
39037 2008-10-20  Bruno Haible  <bruno@clisp.org>
39038
39039         * modules/posix_spawn-tests: New file.
39040         * tests/test-posix_spawn3.c: New file.
39041
39042 2008-10-20  Bruno Haible  <bruno@clisp.org>
39043
39044         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
39045         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39046         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
39047         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39048         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
39049
39050 2008-10-20  Bruno Haible  <bruno@clisp.org>
39051
39052         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
39053         of posix_spawn on AIX 5.3.
39054
39055 2008-10-20  Bruno Haible  <bruno@clisp.org>
39056
39057         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
39058
39059 2008-10-20  Bruno Haible  <bruno@clisp.org>
39060
39061         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
39062         of AC_LANG_PROGRAM.
39063
39064 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39065
39066         * lib/netdb.in.h: Don't define GNU specific constants until they
39067         are supported or needed.  Reported by Bruno Haible
39068         <bruno@clisp.org>.
39069
39070 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39071
39072         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
39073
39074 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39075
39076         * lib/getaddrinfo.h: Remove file.
39077         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
39078         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
39079         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
39080         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
39081         * modules/netdb: Substitute GNULIB_GETADDRINFO.
39082         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
39083         * tests/test-getaddrinfo.c: Likewise.
39084         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
39085         * NEWS: Mention change.
39086
39087 2008-10-19  Bruno Haible  <bruno@clisp.org>
39088
39089         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
39090
39091 2008-10-19  Bruno Haible  <bruno@clisp.org>
39092
39093         * lib/wait-process.c: Include simply <sys/wait.h>.
39094         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
39095         WIFSTOPPED): Remove fallback definitions.
39096         * modules/wait-process (Depends-on): Add sys_wait.
39097
39098         New module 'sys_wait'.
39099         * modules/sys_wait: New file.
39100         * lib/sys_wait.in.h: New file, partially copied from
39101         lib/wait-process.c.
39102         * m4/sys_wait_h.m4: New file.
39103         * doc/posix-headers/sys_wait.texi: Mention the new module.
39104
39105 2008-10-19  Bruno Haible  <bruno@clisp.org>
39106
39107         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
39108
39109 2008-10-19  Bruno Haible  <bruno@clisp.org>
39110
39111         Assume that waitpid() fills an 'int' status, not a 'union wait'.
39112         * lib/wait-process.c (WAIT_T): Remove type.
39113         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
39114         (wait_subprocess): Update.
39115
39116 2008-10-19  Bruno Haible  <bruno@clisp.org>
39117
39118         New module 'atoll'.
39119         * modules/atoll: New file.
39120         * lib/stdlib.in.h (atoll): New declaration.
39121         * lib/atoll.c: New file, from glibc with modifications.
39122         * m4/atoll.m4: New file.
39123         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
39124         HAVE_ATOLL.
39125         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
39126         * doc/posix-functions/atoll.texi: Mention the new module.
39127
39128 2008-10-19  Bruno Haible  <bruno@clisp.org>
39129
39130         Add strtoull() declaration to <stdlib.h>.
39131         * lib/stdlib.in.h (strtoull): New declaration.
39132         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39133         Set HAVE_STRTOULL.
39134         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
39135         HAVE_STRTOULL.
39136         * modules/strtoull (Depends-on): Add stdlib.
39137         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39138         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
39139         HAVE_STRTOULL.
39140
39141 2008-10-19  Bruno Haible  <bruno@clisp.org>
39142
39143         Add strtoll() declaration to <stdlib.h>.
39144         * lib/stdlib.in.h (strtoll): New declaration.
39145         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39146         Set HAVE_STRTOLL.
39147         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
39148         HAVE_STRTOLL.
39149         * modules/strtoll (Depends-on): Add stdlib.
39150         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39151         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
39152
39153 2008-10-19  Bruno Haible  <bruno@clisp.org>
39154
39155         * modules/bcopy (Depends-on): Add strings.
39156         (Include): Specify <strings.h>.
39157
39158 2008-10-19  Bruno Haible  <bruno@clisp.org>
39159
39160         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
39161
39162 2008-10-19  Bruno Haible  <bruno@clisp.org>
39163
39164         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
39165         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
39166         mingw.
39167
39168 2008-10-19  Bruno Haible  <bruno@clisp.org>
39169
39170         * lib/atanl.c: Don't include isnanl.h.
39171         * lib/cosl.c: Likewise.
39172         * lib/ldexpl.c: Likewise.
39173         * lib/logl.c: Likewise.
39174         * lib/sinl.c: Likewise.
39175         * lib/sqrtl.c: Likewise.
39176         * lib/tanl.c: Likewise.
39177
39178         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
39179         * lib/isnanf.h: Remove file.
39180         * lib/isnand.h: Remove file.
39181         * lib/isnanl.h: Remove file.
39182         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
39183         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
39184         macros.
39185         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
39186         HAVE_ISNANF, don't define it as a C macro.
39187         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
39188         HAVE_ISNAND, don't define it as a C macro.
39189         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
39190         HAVE_ISNANL, don't define it as a C macro.
39191         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
39192         HAVE_ISNAN[FDL].
39193         * modules/isnanf (Files): Remove lib/isnanf.h.
39194         (Depends-on): Add math.
39195         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39196         (Include): Specify <math.h> instead of isnanf.h.
39197         * modules/isnand (Files): Remove lib/isnand.h.
39198         (Depends-on): Add math.
39199         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39200         (Include): Specify <math.h> instead of isnand.h.
39201         * modules/isnanl (Files): Remove lib/isnanl.h.
39202         (Depends-on): Add math.
39203         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39204         (Include): Specify <math.h> instead of isnanl.h.
39205         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
39206         HAVE_ISNAN[FDL].
39207         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
39208         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
39209         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
39210         * NEWS: Mention the change.
39211
39212 2008-10-18  Bruno Haible  <bruno@clisp.org>
39213
39214         Add getusershell(), setusershell(), endusershell() declarations to
39215         <unistd.h>.
39216         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
39217         declarations.
39218         * lib/getusershell.c: Include unistd.h.
39219         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
39220         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39221         HAVE_GETUSERSHELL.
39222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
39223         and HAVE_GETUSERSHELL.
39224         * modules/getusershell (Depends-on): Add unistd, extensions.
39225         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39226         (Include): Specify <unistd.h>.
39227         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
39228         HAVE_GETUSERSHELL.
39229
39230 2008-10-18  Bruno Haible  <bruno@clisp.org>
39231
39232         Add a getloadavg() declaration to <stdlib.h>.
39233         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
39234         getloadavg declaration.
39235         (getloadavg): New declaration.
39236         * lib/getloadavg.c: Include <stdlib.h> first.
39237         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
39238         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
39239         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
39240         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
39241         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39242         * modules/getloadavg (Depends-on): Add stdlib, extensions.
39243         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39244         (Include): Specify <stdlib.h>.
39245         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
39246         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39247
39248 2008-10-18  Bruno Haible  <bruno@clisp.org>
39249
39250         * lib/dirchownmod.c: Don't include lchmod.h.
39251
39252         Move the lchmod() declaration to <sys/stat.h>.
39253         * lib/lchmod.h: Remove file.
39254         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
39255         (lchmod): New declaration, moved here from lib/lchown.h.
39256         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
39257         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
39258         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
39259         and HAVE_LCHMOD.
39260         * modules/lchmod (Files): Remove lib/lchmod.h.
39261         (Depends-on): Add sys_stat, extensions.
39262         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39263         (Include): Specify <sys/stat.h> instead of lchmod.h.
39264         * modules/sys_stat (Depends-on): Add link-warning.
39265         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
39266         definition of GL_LINK_WARNING.
39267         * NEWS: Mention the change.
39268
39269 2008-10-18  Bruno Haible  <bruno@clisp.org>
39270
39271         * lib/fchdir.c: Don't include dirfd.h.
39272         * lib/fts.c: Likewise.
39273         * lib/getcwd.c: Likewise.
39274         * lib/glob.c: Likewise.
39275
39276         Move the dirfd() declaration to <dirent.h>.
39277         * lib/dirfd.h: Remove file.
39278         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
39279         (dirfd): New declaration.
39280         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
39281         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
39282         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
39283         HAVE_DECL_DIRFD.
39284         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
39285         HAVE_DECL_DIRFD.
39286         * modules/dirfd (Files): Remove lib/dirfd.h.
39287         (Depends-on): Add dirent, extensions.
39288         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
39289         (Include): Specify <dirent.h> instead of dirfd.h.
39290         * modules/dirent (Depends-on): Add link-warning.
39291         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
39292         definition of GL_LINK_WARNING.
39293         * NEWS: Mention the change.
39294
39295 2008-10-18  Bruno Haible  <bruno@clisp.org>
39296
39297         Move the euidaccess() declaration to <unistd.h>.
39298         * lib/euidaccess.h: Remove file.
39299         * lib/unistd.in.h (euidaccess): New declaration.
39300         * lib/euidaccess.c: Don't include euidaccess.h.
39301         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
39302         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
39303         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
39304         and HAVE_EUIDACCESS.
39305         * modules/euidaccess (Files): Remove lib/euidaccess.h.
39306         (Depends-on): Add unistd.
39307         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39308         (Include): Specify <unistd.h> instead of euidaccess.h.
39309         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
39310         HAVE_EUIDACCESS.
39311         * NEWS: Mention the change.
39312
39313 2008-10-18  Bruno Haible  <bruno@clisp.org>
39314
39315         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
39316
39317         Move the getdomainname() declaration to <unistd.h>.
39318         * lib/getdomainname.h: Remove file.
39319         * lib/unistd.in.h (getdomainname): New declaration.
39320         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
39321         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
39322         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39323         HAVE_GETDOMAINNAME.
39324         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39325         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
39326         * modules/getdomainname (Files): Remove lib/getdomainname.h.
39327         (Depends-on): Add unistd, extensions.
39328         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39329         (Includes): Specify <unistd.h> instead of getdomainname.h.
39330         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
39331         HAVE_GETDOMAINNAME.
39332         * NEWS: Mention the change.
39333
39334 2008-10-18  Bruno Haible  <bruno@clisp.org>
39335
39336         * modules/dirent: New file.
39337         * m4/dirent_h.m4: New file.
39338         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
39339         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
39340         * modules/fchdir (Files): Remove lib/dirent.in.h.
39341         (Depends-on): Add dirent.
39342         (Makefile.am): Move rules to modules/dirent.
39343         * doc/posix-headers/dirent.texi: Mention the new module.
39344
39345 2008-10-18  Bruno Haible  <bruno@clisp.org>
39346
39347         Avoid -Wunused-parameter warnings in public gnulib header files.
39348         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
39349         macro.
39350         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
39351
39352 2008-10-18  Bruno Haible  <bruno@clisp.org>
39353
39354         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
39355         * doc/glibc-functions/error.texi: Mention the module 'error'.
39356         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
39357         * doc/glibc-functions/getdomainname.texi: Mention the module
39358         'getdomainname'.
39359         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
39360         * doc/glibc-functions/getpagesize.texi: Mention the module
39361         'getpagesize'.
39362         * doc/glibc-functions/getusershell.texi: Mention the module
39363         'getusershell'.
39364         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
39365         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
39366         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
39367         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
39368         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
39369         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
39370         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
39371         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
39372         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
39373         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
39374         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
39375         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
39376         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
39377         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
39378
39379 2008-10-17  Bruno Haible  <bruno@clisp.org>
39380
39381         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
39382         HP-UX and IRIX, use -0.0L.
39383         * tests/test-ceill.c (minus_zero): Likewise.
39384         * tests/test-floorl.c (minus_zero): Likewise.
39385         * tests/test-frexpl.c (minus_zero): Likewise.
39386         * tests/test-isnan.c (minus_zerol): Likewise.
39387         * tests/test-isnanl.h (minus_zero): Likewise.
39388         * tests/test-ldexpl.c (minus_zero): Likewise.
39389         * tests/test-roundl.c (minus_zero): Likewise.
39390         * tests/test-signbit.c (minus_zerol): Likewise.
39391         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39392         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39393         * tests/test-truncl.c (minus_zero): Likewise.
39394         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39395         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39396         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
39397         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39398
39399 2008-10-17  Bruno Haible  <bruno@clisp.org>
39400
39401         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
39402         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
39403         that it gets activated only for gcc >= 3.0.
39404         * lib/dirent.in.h: Likewise.
39405         * lib/errno.in.h: Likewise.
39406         * lib/fcntl.in.h: Likewise.
39407         * lib/float.in.h: Likewise.
39408         * lib/iconv.in.h: Likewise.
39409         * lib/inttypes.in.h: Likewise.
39410         * lib/locale.in.h: Likewise.
39411         * lib/math.in.h: Likewise.
39412         * lib/netdb.in.h: Likewise.
39413         * lib/netinet_in.in.h: Likewise.
39414         * lib/search.in.h: Likewise.
39415         * lib/signal.in.h: Likewise.
39416         * lib/spawn.in.h: Likewise.
39417         * lib/stdarg.in.h: Likewise.
39418         * lib/stdint.in.h: Likewise.
39419         * lib/stdio.in.h: Likewise.
39420         * lib/stdlib.in.h: Likewise.
39421         * lib/string.in.h: Likewise.
39422         * lib/strings.in.h: Likewise.
39423         * lib/sys_file.in.h: Likewise.
39424         * lib/sys_ioctl.in.h: Likewise.
39425         * lib/sys_select.in.h: Likewise.
39426         * lib/sys_socket.in.h: Likewise.
39427         * lib/sys_stat.in.h: Likewise.
39428         * lib/sys_time.in.h: Likewise.
39429         * lib/sysexits.in.h: Likewise.
39430         * lib/time.in.h: Likewise.
39431         * lib/unistd.in.h: Likewise.
39432         * lib/wchar.in.h: Likewise.
39433         * lib/wctype.in.h: Likewise.
39434         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39435
39436 2008-10-17  Jim Meyering  <meyering@redhat.com>
39437
39438         ignore-value: don't depend on inline module
39439         * modules/ignore-value (Depends-on): Remove 'inline'.
39440         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
39441         Suggestion from Bruno Haible.
39442
39443 2008-10-17  Bruno Haible  <bruno@clisp.org>
39444
39445         New implementation of condition variables for Win32.
39446         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
39447         (gl_linked_waitqueue_t): New type.
39448         (gl_cond_t): Use it.
39449         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
39450         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
39451         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
39452         (glthread_cond_init_func, glthread_cond_wait_func,
39453         glthread_cond_timedwait_func, glthread_cond_signal_func,
39454         glthread_cond_broadcast_func, glthread_cond_destroy_func):
39455         Reimplemented on the basis of gl_linked_waitqueue_t.
39456         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
39457         gl_waitqueue_t.
39458         (gl_rwlock_t): Update.
39459         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
39460
39461 2008-10-17  Simon Josefsson  <simon@josefsson.org>
39462
39463         * modules/recvfrom (Depends-on): Add dependency on getpeername.
39464         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39465
39466 2008-10-17  Jim Meyering  <meyering@redhat.com>
39467
39468         ignore-value: new module
39469         * modules/ignore-value: New file.
39470         * lib/ignore-value.h: New file.
39471         * MODULES.html.sh (Compiler warning management): New section,
39472         just for this module.  More to come.
39473
39474 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39475
39476         open-safer.c: avoid 'signed and unsigned in conditional...' warning
39477         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
39478         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
39479
39480 2008-10-16  Jim Meyering  <meyering@redhat.com>
39481
39482         openat-die.c: avoid 'no previous prototype' warning
39483         * lib/openat-die.c: Include "openat.h".
39484         Reported by Reuben Thomas <rrt@sc3d.org>.
39485
39486 2008-10-16  Simon Josefsson  <simon@josefsson.org>
39487
39488         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
39489         * lib/netdb.in.h: Fix typo.
39490         Reported by Bruno Haible  <bruno@clisp.org>
39491
39492         * lib/netdb.in.h: Include sys/socket.h for platforms without
39493         netdb.h, to get structures like hostent on MinGW.
39494         * modules/netdb (Depends-on): Add sys_socket.
39495
39496 2008-10-15  Simon Josefsson  <simon@josefsson.org>
39497
39498         * modules/netdb, modules/netdb-tests: New file.
39499         * m4/netdb_h.m4: New file.
39500         * lib/netdb.in.h: Add, currently just an empty file pending
39501         definitions.
39502         * tests/test-netdb.c: New file.
39503         * doc/posix-headers/netdb.texi: Mention that we replace it if
39504         needed.
39505         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39506         netdb.
39507
39508 2008-10-15  Simon Josefsson  <simon@josefsson.org>
39509
39510         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
39511         with code.
39512
39513 2008-10-13  Bruno Haible  <bruno@clisp.org>
39514
39515         * lib/glthread/cond.c (glthread_cond_wait_func,
39516         glthread_cond_timedwait_func): Add a comment.
39517
39518 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39519
39520         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
39521         * tests/test-select.c: Likewise,
39522
39523 2008-10-13  Bruno Haible  <bruno@clisp.org>
39524
39525         * lib/glthread/cond.c (glthread_cond_wait_func,
39526         glthread_cond_timedwait_func): Fix variable name.
39527         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39528
39529 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
39530
39531         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
39532         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
39533         struct sockaddr.sa_len.
39534         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
39535
39536 2008-10-13  Simon Josefsson  <simon@josefsson.org>
39537
39538         * build-aux/pmccabe2html: Add css and css_url parameters.
39539
39540 2008-10-12  Bruno Haible  <bruno@clisp.org>
39541
39542         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
39543         calling aclx_get.
39544         Reported by Rainer Tammer <tammer@tammer.net>.
39545
39546 2008-10-12  Bruno Haible  <bruno@clisp.org>
39547
39548         Use msvcrt aware primitives for creation/termination of Win32 threads.
39549         * lib/glthread/thread.c: Include <process.h>.
39550         (glthread_create_func): Use _beginthreadex instead of CreateThread.
39551         (wrapper_func): Update signature.
39552         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
39553
39554 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39555             Bruno Haible  <bruno@clisp.org>
39556
39557         Provide a Win32 implementation of the 'cond' module.
39558         * lib/glthread/cond.h [USE_WIN32]: New implementation.
39559         * lib/glthread/cond.c (glthread_cond_init_func,
39560         glthread_cond_wait_func, glthread_cond_timedwait_func,
39561         glthread_cond_signal_func, glthread_cond_broadcast_func,
39562         glthread_cond_destroy_func) [USE_WIN32]: New functions.
39563         * modules/cond (Dependencies): Add gettimeofday.
39564
39565 2008-10-11  Bruno Haible  <bruno@clisp.org>
39566
39567         Make sleep work on older versions of mingw.
39568         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
39569         only whether it exists.
39570         * doc/posix-functions/sleep.texi: Mention the problem with older
39571         versions of mingw.
39572
39573 2008-10-11  Bruno Haible  <bruno@clisp.org>
39574
39575         New module 'shutdown'.
39576         * modules/shutdown: New file.
39577         * lib/sys_socket.in.h (shutdown): New declaration.
39578         * lib/winsock.c (shutdown): New function.
39579         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
39580         GNULIB_SHUTDOWN.
39581         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
39582         * doc/posix-functions/shutdown.texi: Document the new module.
39583
39584 2008-10-11  Jim Meyering  <meyering@redhat.com>
39585
39586         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
39587
39588 2008-10-11  Bruno Haible  <bruno@clisp.org>
39589
39590         New module 'fclose'.
39591         * modules/fclose: New file.
39592         * lib/stdio.in.h (fclose): New declaration.
39593         * lib/fclose.c: New file.
39594         * m4/fclose.m4: New file.
39595         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
39596         REPLACE_FCLOSE.
39597         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
39598         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
39599         REPLACE_FCLOSE.
39600         * modules/close (Depends-on): fclose.
39601         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
39602
39603 2008-10-11  Bruno Haible  <bruno@clisp.org>
39604
39605         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
39606         set errno and don't call _close.
39607
39608 2008-10-10  Bruno Haible  <bruno@clisp.org>
39609
39610         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
39611         ACL, not afterwards. Fixes test failure on Cygwin.
39612
39613 2008-10-09  Ben Pfaff  <blp@gnu.org>
39614
39615         * build-aux/announce-gen: Fix gnulib version related part of usage
39616         message.  Die with a useful error message if no tarballs are
39617         found.
39618
39619 2008-10-10  Jim Meyering  <meyering@redhat.com>
39620
39621         bootstrap: use git's --depth=N option only if it's supported
39622         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
39623         recognize the --depth option.  Reported by Pádraig Brady.
39624
39625 2008-10-09  Bruno Haible  <bruno@clisp.org>
39626
39627         New module 'ioctl'.
39628         * modules/ioctl: New file.
39629         * lib/sys_socket.in.h (ioctl): Remove declaration.
39630         * lib/winsock.c: Include <sys/ioctl.h>.
39631         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
39632         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
39633         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
39634         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
39635         * doc/posix-functions/ioctl.texi: Mention the new module.
39636
39637 2008-10-09  Bruno Haible  <bruno@clisp.org>
39638
39639         New module 'sys_ioctl'.
39640         * lib/sys_ioctl.in.h: New file.
39641         * m4/sys_ioctl_h.m4: New file.
39642         * modules/sys_ioctl: New file.
39643         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
39644
39645 2008-10-09  Bruno Haible  <bruno@clisp.org>
39646
39647         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
39648         * lib/winsock.c: Include <stdarg.h>.
39649         (rpl_ioctl): Change to second argument 'int' and then varargs.
39650
39651 2008-10-09  Bruno Haible  <bruno@clisp.org>
39652
39653         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
39654         when the sys_socket module is present and the system has <winsock2.h>.
39655
39656 2008-10-09  Bruno Haible  <bruno@clisp.org>
39657
39658         * doc/posix-functions/close.texi: Mention module 'close' instead of
39659         module 'sys_socket'.
39660
39661 2008-10-09  Bruno Haible  <bruno@clisp.org>
39662
39663         * doc/glibc-headers/sys_ioctl.texi: New file.
39664         * doc/gnulib.texi: Include it.
39665
39666 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39667             Bruno Haible  <bruno@clisp.org>
39668
39669         Combine the two replacements of 'close'.
39670         * lib/sys_socket.in.h (close): Define to a reminder to include
39671         <unistd.h>.
39672         (_gl_close_fd_maybe_socket): New declaration.
39673         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
39674         * lib/winsock.c (close): Remove undefinition.
39675         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
39676         needed for the gnulib module 'close'.
39677         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
39678         define to an error symbol or to a warning, if suitable.
39679         * lib/close.c: Include <sys/socket.h>.
39680         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
39681         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
39682         UNISTD_H_HAVE_WINSOCK2_H.
39683         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
39684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39685         UNISTD_H_HAVE_WINSOCK2_H.
39686         * modules/sys_socket (Files): Add m4/unistd_h.m4.
39687         (configure.ac): Set a module indicator.
39688         (Makefile.am): Substitute GNULIB_CLOSE.
39689         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
39690         * modules/poll-tests (Depends-on): Add close.
39691         * modules/select-tests (Depends-on): Likewise.
39692
39693 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39694             Bruno Haible  <bruno@clisp.org>
39695
39696         New module 'close'.
39697         * modules/close: New file.
39698         * lib/unistd.in.h (close): Move declaration out of the
39699         FCHDIR_REPLACEMENT scope.
39700         (_gl_unregister_fd): New declaration.
39701         * lib/close.c: New file.
39702         * lib/fchdir.c (rpl_close): Remove function.
39703         * m4/close.m4: New file.
39704         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
39705         close.
39706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
39707         REPLACE_CLOSE.
39708         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
39709         REPLACE_CLOSE.
39710         * modules/fchdir (Depends-on): Add close.
39711
39712 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39713             Bruno Haible  <bruno@clisp.org>
39714
39715         * lib/fcntl.in.h (open): Simplify conditionals.
39716         (_gl_register_fd): New declaration.
39717         * lib/fchdir.c (rpl_open): Remove function.
39718         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
39719         also.
39720         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
39721         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
39722         open.
39723
39724 2008-10-09  Jim Meyering  <meyering@redhat.com>
39725
39726         GNUmakefile: use the more name-space-friendly "_version"
39727         * top/GNUmakefile (_dummy): Update.
39728         (_version): Rename from "version".
39729
39730 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39731             Bruno Haible  <bruno@clisp.org>
39732
39733         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
39734         rpl_close.
39735         (_gl_register_fd): New function, extracted from rpl_open.
39736         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
39737         (rpl_open, rpl_opendir): Use _gl_register_fd.
39738
39739 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39740
39741         Fix organization of 'open' replacement.
39742         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
39743         (gl_FUNC_OPEN): Use it.
39744         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
39745
39746 2008-10-08  Bruno Haible  <bruno@clisp.org>
39747
39748         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
39749
39750 2008-10-08  Simon Josefsson  <simon@josefsson.org>
39751
39752         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
39753         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
39754         listen).
39755
39756 2008-10-08  Eric Blake  <ebb9@byu.net>
39757
39758         GNUmakefile: add 'make version' target
39759         * top/GNUmakefile (_curr-ver): Split version update rules...
39760         (version): ...into a target.
39761
39762 2008-10-07  Bruno Haible  <bruno@clisp.org>
39763
39764         Use a more portable replacement expression for -0.0L.
39765         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
39766         instead of -0.0L. Fix m4 quotation.
39767
39768         * tests/test-signbit.c: Include <float.h>.
39769         (minus_zero): New variable.
39770         (test_signbitl): Use minus_zero instead of -zero.
39771         * modules/signbit-tests (Depends-on): Add float.
39772
39773         * tests/test-ceill.c: Include <float.h>.
39774         (zero): Remove variable.
39775         (minus_zero): New variable.
39776         (main): Use minus_zero instead of -zero.
39777         * modules/ceill-tests (Depends-on): Add float.
39778
39779         * tests/test-floorl.c: Include <float.h>.
39780         (zero): Remove variable.
39781         (minus_zero): New variable.
39782         (main): Use minus_zero instead of -zero.
39783         * modules/floorl-tests (Depends-on): Add float.
39784
39785         * tests/test-roundl.c: Include <float.h>.
39786         (zero): Remove variable.
39787         (minus_zero): New variable.
39788         (main): Use minus_zero instead of -zero.
39789         * modules/roundl-tests (Depends-on): Add float.
39790
39791         * tests/test-truncl.c: Include <float.h>.
39792         (zero): Remove variable.
39793         (minus_zero): New variable.
39794         (main): Use minus_zero instead of -zero.
39795         * modules/truncl-tests (Depends-on): Add float.
39796
39797         * tests/test-frexpl.c (zero): Remove variable.
39798         (minus_zero): New variable.
39799         (main): Use minus_zero instead of -zero.
39800         * modules/frexpl-tests (Depends-on): Add float.
39801
39802         * tests/test-isnan.c (zerol): Remove variable.
39803         (minus_zerol): New variable.
39804         (test_long_double): Use minus_zerol instead of -zerol.
39805         * modules/isnan-tests (Depends-on): Add float.
39806
39807         * tests/test-isnanl.h (zero): Remove variable.
39808         (minus_zero): New variable.
39809         (main): Use minus_zero instead of -zero.
39810         * modules/isnanl-nolibm-tests (Depends-on): Add float.
39811         * modules/isnanl-tests (Depends-on): Add float.
39812
39813         * tests/test-ldexpl.c (zero): Remove variable.
39814         (minus_zero): New variable.
39815         (main): Use minus_zero instead of -zero.
39816         * modules/ldexpl-tests (Depends-on): Add float.
39817
39818         * tests/test-snprintf-posix.h (zerol): Remove variable.
39819         (minus_zerol): New variable.
39820         (test_function): Use minus_zerol instead of -zerol.
39821         * modules/snprintf-posix-tests (Depends-on): Add float.
39822         * modules/vsnprintf-posix-tests (Depends-on): Add float.
39823
39824         * tests/test-sprintf-posix.h (zerol): Remove variable.
39825         (minus_zerol): New variable.
39826         (test_function): Use minus_zerol instead of -zerol.
39827         * modules/sprintf-posix-tests (Depends-on): Add float.
39828         * modules/vsprintf-posix-tests (Depends-on): Add float.
39829
39830         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
39831         (minus_zerol): New variable.
39832         (test_function): Use minus_zerol instead of -zerol.
39833         * modules/vasnprintf-posix-tests (Depends-on): Add float.
39834
39835         * tests/test-vasprintf-posix.c (zerol): Remove variable.
39836         (minus_zerol): New variable.
39837         (test_function): Use minus_zerol instead of -zerol.
39838         * modules/vasprintf-posix-tests (Depends-on): Add float.
39839
39840 2008-10-07  Simon Josefsson  <simon@josefsson.org>
39841
39842         * MODULES.html.sh (Support for building documentation): Mention
39843         pmccabe2html.  Sort entries.
39844
39845         Add pmccabe2html module, from gnupdf.
39846         * build-aux/pmccabe.css: New file.
39847         * build-aux/pmccabe2html: New file.
39848         * m4/pmccabe2html.m4: New file.
39849         * modules/pmccabe2html: New file.
39850
39851 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
39852
39853         flock: new module
39854         * MODULES.html.sh: Add to list of modules.
39855         * lib/flock.c: flock implementation for Windows and Unix systems
39856         which have fcntl.
39857         * doc/glibc-functions/flock.texi: Update documentation.
39858         * lib/sys_file.in.h: <sys/file.h> header file.
39859         * m4/flock.m4: M4 macros.
39860         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
39861         * modules/flock: flock module.
39862         * modules/flock-tests: flock tests module.
39863         * modules/sys_file: sys/file.h module.
39864         * tests/test-flock.c: test suite for flock.
39865
39866 2008-10-06  Jim Meyering  <meyering@redhat.com>
39867
39868         bootstrap: check for LT_INIT more portably still ;-)
39869         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
39870         Spotted by Bruno Haible.
39871
39872 2008-10-06  Eric Blake  <ebb9@byu.net>
39873
39874         test-signbit: avoid tripping Irix cc bug on -0.0L
39875         * tests/test-signbit.c (minus_zerol): Delete, and replace with
39876         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
39877         entire testsuite consistent and avoids an Irix 6.2 bug.
39878
39879 2008-10-05  Bruno Haible  <bruno@clisp.org>
39880             Jim Meyering  <jim@meyering.net>
39881
39882         Add an option for ignoring EPIPE during close_stdout.
39883         * lib/closeout.h: Include <stdbool.h>.
39884         (close_stdout_set_ignore_EPIPE): New declaration.
39885         * lib/closeout.c: Include <stdbool.h>.
39886         (ignore_EPIPE): New variable.
39887         (close_stdout_set_ignore_EPIPE): New function.
39888         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
39889         * lib/close-stream.c (close_stream): Mention the possible EPIPE
39890         failure.
39891         * modules/closeout (Depends-on): Add stdbool.
39892
39893 2008-10-05  Bruno Haible  <bruno@clisp.org>
39894
39895         * modules/accept: New file.
39896         * modules/bind: New file.
39897         * modules/connect: New file.
39898         * modules/getpeername: New file.
39899         * modules/getsockname: New file.
39900         * modules/getsockopt: New file.
39901         * modules/listen: New file.
39902         * modules/recv: New file.
39903         * modules/recvfrom: New file.
39904         * modules/send: New file.
39905         * modules/sendto: New file.
39906         * modules/setsockopt: New file.
39907         * modules/socket: New file.
39908         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
39909         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
39910         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
39911         the particular module is requested. Add a link warning when the
39912         particular module is not requested.
39913         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
39914         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
39915         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
39916         the particular module is requested.
39917         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
39918         gl_SYS_SOCKET_H_DEFAULTS): New macros.
39919         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
39920         * modules/sys_socket (Depends-on): Add link-warning.
39921         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
39922         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
39923         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
39924         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
39925         GL_LINK_WARNING.
39926         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
39927         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
39928         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
39929         * doc/posix-functions/getpeername.texi: Mention the new module
39930         'getpeername'.
39931         * doc/posix-functions/getsockname.texi: Mention the new module
39932         'getsockname'.
39933         * doc/posix-functions/getsockopt.texi: Mention the new module
39934         'getsockopt'.
39935         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
39936         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
39937         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
39938         * doc/posix-functions/send.texi: Mention the new module 'send'.
39939         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
39940         * doc/posix-functions/setsockopt.texi: Mention the new module
39941         'setsockopt'.
39942         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
39943         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
39944         listen, connect, accept.
39945         * modules/select-tests (Depends-on): Likewise.
39946
39947 2008-10-05  Bruno Haible  <bruno@clisp.org>
39948
39949         * lib/winsock.c (strerror): Remove unused #undef.
39950         (rpl_close): Remove unused local variable.
39951
39952         * modules/sys_socket (Depends-on); Add errno.
39953
39954 2008-10-05  Bruno Haible  <bruno@clisp.org>
39955
39956         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
39957         (select): Add a link warning when the 'select' module is not used.
39958         * modules/sys_select (Depends-on): Add link-warning.
39959         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
39960         Suggested by Paolo Bonzini.
39961
39962 2008-10-05  Jim Meyering  <meyering@redhat.com>
39963
39964         bootstrap: check for LT_INIT more portably
39965         * build-aux/bootstrap: Avoid using grep -E, since it's not
39966         portable enough.  Suggestion from Bruno Haible.
39967
39968 2008-10-05  Bruno Haible  <bruno@clisp.org>
39969
39970         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
39971         as being fixed by gnulib.
39972
39973 2008-10-05  Bruno Haible  <bruno@clisp.org>
39974
39975         * modules/select-tests: New file, mostly copied from
39976         modules/sys_select-tests.
39977         * tests/test-select.c: New file, mostly copied from
39978         tests/test-sys_select.c.
39979         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
39980         * modules/sys_select-tests (Depends-on): Remove all dependencies.
39981         (Makefile.am): Remove test_sys_select_LDADD.
39982
39983         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
39984         to an undefined symbol, for an error message.
39985         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
39986         (gl_SYS_SELECT_H_DEFAULTS): New macro.
39987         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
39988         winsock-select.c here.
39989         * modules/sys_select (Files): Remove lib/winsock-select.c.
39990         (Depends-on): Remove alloca.
39991         (Makefile.am): Substitute GNULIB_SELECT.
39992         * modules/select: New file.
39993         * doc/posix-functions/select.texi: Update.
39994
39995 2008-10-05  Bruno Haible  <bruno@clisp.org>
39996
39997         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
39998         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
39999         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
40000         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
40001         getdtablesize.
40002         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
40003         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
40004
40005 2008-10-05  Bruno Haible  <bruno@clisp.org>
40006
40007         * modules/getdtablesize-tests: New file.
40008         * tests/test-getdtablesize.c: New file.
40009
40010         New module 'getdtablesize'.
40011         * lib/unistd.in.h (getdtablesize): New declaration.
40012         * lib/getdtablesize.c: New file.
40013         * m4/getdtablesize.m4: New file.
40014         * modules/getdtablesize: New file.
40015         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40016         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
40017         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
40018         HAVE_GETDTABLESIZE.
40019         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
40020
40021 2008-10-05  Bruno Haible  <bruno@clisp.org>
40022
40023         * modules/sched (Makefile.am): Fix typo.
40024         Reported by Simon Josefsson.
40025
40026 2008-10-05  Jim Meyering  <meyering@redhat.com>
40027
40028         bootstrap: check for LT_INIT, too
40029         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
40030         are deprecated.  Suggestion from Ralf Wildenhues.
40031
40032 2008-10-05  Bruno Haible  <bruno@clisp.org>
40033
40034         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
40035         overriding them by ours.
40036         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
40037
40038 2008-10-05  Jim Meyering  <meyering@redhat.com>
40039
40040         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
40041         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
40042         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
40043
40044 2008-10-04  Bruno Haible  <bruno@clisp.org>
40045
40046         * modules/dup2 (License): Change to LGPLv2+.
40047         * modules/sleep (License): Likewise.
40048         * modules/perror (License): Likewise.
40049         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
40050         Blake.
40051         * modules/signal (License): Likewise.
40052         * modules/sigprocmask (License): Likewise.
40053         * modules/raise (License): Change to LGPLv2+, with approval by Jim
40054         Meyering.
40055
40056 2008-10-04  Bruno Haible  <bruno@clisp.org>
40057
40058         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
40059         Reported by Rainer Tammer <tammer@tammer.net>.
40060
40061 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
40062             Bruno Haible  <bruno@clisp.org>
40063
40064         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
40065         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
40066         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
40067
40068 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
40069
40070         filevercmp: new module
40071         * lib/filevercmp.h: New function filevercmp comparing version strings.
40072         * lib/filevercmp.c: Implementation of filevercmp function.
40073         * modules/filevercmp: Module metadata.
40074         * tests/test-filevercmp.c: Unit test for new module.
40075         * modules/filevercmp-tests: Unit test metadata.
40076         * MODULES.html.sh: Add filevercmp module.
40077
40078 2008-10-03  Bruno Haible  <bruno@clisp.org>
40079
40080         * lib/c-ctype.h: Add comment.
40081         Reported by Jim Meyering.
40082
40083 2008-10-02  Bruno Haible  <bruno@clisp.org>
40084
40085         * modules/posix_spawn-internal (Depends-on): Add 'open'.
40086
40087 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40088
40089         * build-aux/bootstrap: Allow renaming bootstrap, and change the
40090         name of bootstrap.conf accordingly.
40091
40092 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40093
40094         * build-aux/bootstrap: Install git-merge-changelog configuration
40095         items into .gitconfig if needed.
40096
40097 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40098
40099         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
40100         git repository, and initialize/update it accordingly.
40101
40102 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
40103
40104         * modules/fsync-tests: New file.
40105         * tests/test-fsync.c: New file.
40106
40107         New module 'fsync'.
40108         * lib/fsync.c: New file.
40109         * m4/fsync.m4: New file.
40110         * modules/fsync: New file.
40111         * lib/unistd.in.h (fsync): New declaration.
40112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
40113         GNULIB_FSYNC and HAVE_FSYNC.
40114         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
40115         * MODULES.html.sh (posix_functions): Add fsync.
40116         * doc/posix-functions/fsync.texi: Mention the new module.
40117
40118 2008-10-02  Jim Meyering  <meyering@redhat.com>
40119
40120         fts.c: sync with similar code from coreutils' remove.c
40121         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
40122         Guard also with "#if defined __linux__", since for now at least,
40123         this code is Linux-kernel-specific.
40124
40125 2008-10-02  Jim Meyering  <meyering@redhat.com>
40126
40127         fts: bug fixes
40128         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
40129         Include <sys/vfs.h>, not <sys/statfs.h>.
40130
40131         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
40132         Include <sys/vfs.h>, not <sys/statfs.h>.
40133
40134 2008-10-01  Bruno Haible  <bruno@clisp.org>
40135
40136         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
40137         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
40138         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
40139         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
40140         * doc/posix-functions/posix_spawnp.texi: Likewise.
40141         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
40142         whether posix_spawn actually works.
40143         * m4/pipe.m4 (gl_PIPE): Likewise.
40144         * modules/execute (Files): Add m4/posix_spawn.m4.
40145         * modules/pipe (Files): Add m4/posix_spawn.m4.
40146         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
40147
40148 2008-10-01  Jim Meyering  <meyering@redhat.com>
40149
40150         remove trailing spaces
40151         * NEWS: Likewise.
40152         * lib/poll.c (poll): Likewise.
40153         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
40154         * lib/winsock.c (rpl_close): Likewise.
40155         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
40156         * modules/yield: Likewise.
40157         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
40158         * tests/test-sys_select.c (connect_to_socket): Likewise.
40159
40160         fts.c: adjust a new interface to be more generally useful
40161         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
40162         (fts_build): Adjust caller.
40163
40164 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40165
40166         * modules/cond-tests: New file.
40167         * tests/test-cond.c: New file.
40168
40169 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40170             Bruno Haible  <bruno@clisp.org>
40171
40172         * modules/cond (Dependencies): Add errno, time.
40173         * lib/glthread/cond.h: Include <time.h>.
40174         (gl_cond_define, gl_cond_define_initialized): Use the same definition
40175         across platforms.
40176
40177 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40178             Bruno Haible  <bruno@clisp.org>
40179
40180         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
40181
40182 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40183             Bruno Haible  <bruno@clisp.org>
40184
40185         * modules/tls-tests (Depends-on): Add thread, yield.
40186         (configure.ac): Remove all checks.
40187         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
40188         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40189         gl_thread_self): Remove definitions. Include glthread/thread.h and
40190         glthread/yield.h instead.
40191         (test_tls): Pass an additional NULL argument to gl_thread_join.
40192
40193 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40194             Bruno Haible  <bruno@clisp.org>
40195
40196         * modules/lock-tests (Depends-on): Add thread, yield.
40197         (configure.ac): Remove all checks.
40198         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
40199         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40200         gl_thread_self): Remove definitions. Include glthread/thread.h and
40201         glthread/yield.h instead.
40202         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
40203         additional NULL argument to gl_thread_join.
40204
40205 2008-09-30  Bruno Haible  <bruno@clisp.org>
40206
40207         Fix the Win32 implementation of the 'thread' module.
40208         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
40209         pointer type.
40210         (gl_thread_self): Invoke gl_thread_self_func.
40211         (gl_thread_self_func): New declaration.
40212         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
40213         (do_init_self_key, init_self_key): New functions.
40214         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
40215         Remove some fields.
40216         (running_threads, running_lock): Remove variables.
40217         (get_current_thread_handle): New function.
40218         (gl_thread_self_func, wrapper_func, glthread_create_func,
40219         glthread_join_func, gl_thread_exit_func): Largely rewritten and
40220         simplified.
40221
40222 2008-09-30  Bruno Haible  <bruno@clisp.org>
40223
40224         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
40225         files.
40226
40227 2008-09-30  Jim Meyering  <meyering@redhat.com>
40228
40229         fts.m4: correct the test for statfs.f_type
40230         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
40231         when checking for statfs.f_type.
40232
40233 2008-09-15  Simon Josefsson  <simon@josefsson.org>
40234
40235         tests: avoid some compiler warnings
40236         * tests/test-memchr.c (main): Pass NULL indirectly.
40237         * tests/test-getdate.c (main): Remove unused variable 'ret'.
40238
40239 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
40240
40241         getdate.y: disallow countable dayshifts like "4 yesterday ago"
40242         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
40243         exactly specified dayshifts.
40244         (dayshift): New rule.
40245         (rel): Add dayshift.
40246         (relative_time_table) [tomorrow, yesterday, today, now]:
40247         Use tDAY_SHIFT in place of tDAY_UNIT.
40248         * tests/test-getdate.c: Add tests for now-disallowed countable
40249         dayshifts, e.g., "4 yesterday ago".
40250
40251 2008-09-29  Bruno Haible  <bruno@clisp.org>
40252
40253         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
40254         * tests/test-posix_spawn1.in.sh: Renamed from
40255         tests/test-posix_spawn.in.sh.
40256         * tests/test-posix_spawn2.c: New file.
40257         * tests/test-posix_spawn2.in.sh: New file.
40258         * modules/posix_spawnp-tests (Files): Update.
40259         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
40260
40261 2008-09-29  Bruno Haible  <bruno@clisp.org>
40262
40263         Propagate effects of putenv/setenv/unsetenv to child processes.
40264         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
40265         * lib/pipe.c (create_pipe): Likewise.
40266
40267 2008-09-29  Bruno Haible  <bruno@clisp.org>
40268
40269         Enable use of shell scripts as executables in mingw.
40270         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
40271         run the program as a shell script.
40272         * lib/pipe.c (create_pipe): Likewise.
40273         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
40274         resulting array.
40275
40276 2008-09-29  Eric Blake  <ebb9@byu.net>
40277
40278         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
40279
40280 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
40281
40282         * doc/posix-functions/accept.texi: Update mingw problems.
40283         * doc/posix-functions/bind.texi: Update mingw problems.
40284         * doc/posix-functions/close.texi: Update mingw problems.
40285         * doc/posix-functions/connect.texi: Update mingw problems.
40286         * doc/posix-functions/getpeername.texi: Update mingw problems.
40287         * doc/posix-functions/getsockname.texi: Update mingw problems.
40288         * doc/posix-functions/getsockopt.texi: Update mingw problems.
40289         * doc/posix-functions/ioctl.texi: Update mingw problems.
40290         * doc/posix-functions/listen.texi: Update mingw problems.
40291         * doc/posix-functions/recv.texi: Update mingw problems.
40292         * doc/posix-functions/recvfrom.texi: Update mingw problems.
40293         * doc/posix-functions/select.texi: Update mingw problems.
40294         * doc/posix-functions/send.texi: Update mingw problems.
40295         * doc/posix-functions/sendto.texi: Update mingw problems.
40296         * doc/posix-functions/setsockopt.texi: Update mingw problems.
40297         * doc/posix-functions/socket.texi: Update mingw problems.
40298
40299 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
40300             Bruno Haible  <bruno@clisp.org>
40301
40302         * lib/sys_select.in.h: Include sys/time.h.
40303         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
40304         * modules/sys_select: Depend on sys_time.
40305         * tests/test-sys_select.c: Test that sys/select.h defines struct
40306         timeval fully.
40307
40308 2008-09-29  Bruno Haible  <bruno@clisp.org>
40309
40310         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
40311         * lib/sys_select.in.h: Likewise.
40312
40313 2008-09-29  Bruno Haible  <bruno@clisp.org>
40314
40315         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
40316
40317 2008-09-29  Bruno Haible  <bruno@clisp.org>
40318
40319         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
40320         Set LIBSOCKET instead of augmenting LIBS.
40321         * modules/sockets (Link): New section.
40322         * modules/sockets-tests (test_sockets_LDADD): New variable.
40323         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
40324         * modules/poll-tests (test_poll_LDADD): New variable.
40325         * NEWS: Document the change.
40326
40327 2008-09-29  Bruno Haible  <bruno@clisp.org>
40328
40329         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
40330         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
40331         ARPA_INET_H directly.
40332         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40333
40334 2008-09-28  Bruno Haible  <bruno@clisp.org>
40335
40336         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
40337         from gl_HEADER_SYS_SOCKET.
40338         (gl_HEADER_SYS_SOCKET): Invoke it.
40339         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40340
40341 2008-09-28  Bruno Haible  <bruno@clisp.org>
40342
40343         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
40344         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
40345         Needed on OSF/1 4.0.
40346
40347 2008-09-28  Bruno Haible  <bruno@clisp.org>
40348
40349         Override open more carefully.
40350         * lib/open.c (orig_open): New function.
40351         (rpl_open): Use orig_open instead of open.
40352         * lib/fcntl.in.h: Add special invocation convention.
40353         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
40354         (gl_FUNC_OPEN): Invoke it.
40355
40356         Override freopen more carefully.
40357         * lib/freopen.c (orig_freopen): New function.
40358         (rpl_freopen): Use orig_freopen instead of freopen.
40359         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
40360         (gl_FUNC_FREOPEN): Invoke it.
40361
40362         Override fopen more carefully.
40363         * lib/fopen.c (orig_fopen): New function.
40364         (rpl_fopen): Use orig_fopen instead of fopen.
40365         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
40366         (gl_FUNC_FOPEN): Invoke it.
40367         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
40368
40369 2008-09-28  Bruno Haible  <bruno@clisp.org>
40370
40371         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
40372         SIGPIPE.
40373
40374 2008-09-28  Bruno Haible  <bruno@clisp.org>
40375
40376         * tests/test-sigaction.c (handler, main): Disable the check whether
40377         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
40378         glibc systems with LinuxThreads.
40379
40380 2008-09-28  Bruno Haible  <bruno@clisp.org>
40381
40382         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
40383
40384         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
40385         with AIX xlc.
40386         * lib/fcntl.in.h (open): Likewise.
40387         Reported by Rainer Tammer <tammer@tammer.net>.
40388
40389 2008-09-28  Bruno Haible  <bruno@clisp.org>
40390
40391         * modules/posix_spawnp-tests: New file.
40392         * tests/test-posix_spawn.c: New file.
40393         * tests/test-posix_spawn.in.sh: New file.
40394
40395         New module 'posix_spawnp'.
40396         * modules/posix_spawnp: New file.
40397         * lib/spawnp.c: New file, from GNU libc with modifications.
40398         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
40399
40400         New module 'posix_spawn'.
40401         * modules/posix_spawn: New file.
40402         * lib/spawn.c: New file, from GNU libc with modifications.
40403         * doc/posix-functions/posix_spawn.texi: Mention the new module.
40404
40405         New module 'posix_spawnattr_destroy'.
40406         * modules/posix_spawnattr_destroy: New file.
40407         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
40408         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
40409         module.
40410
40411         New module 'posix_spawnattr_setsigmask'.
40412         * modules/posix_spawnattr_setsigmask: New file.
40413         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
40414         modifications.
40415         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
40416         new module.
40417
40418         New module 'posix_spawnattr_getsigmask'.
40419         * modules/posix_spawnattr_getsigmask: New file.
40420         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
40421         modifications.
40422         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
40423         new module.
40424
40425         New module 'posix_spawnattr_setsigdefault'.
40426         * modules/posix_spawnattr_setsigdefault: New file.
40427         * lib/spawnattr_setdefault.c: New file, from GNU libc with
40428         modifications.
40429         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
40430         new module.
40431
40432         New module 'posix_spawnattr_getsigdefault'.
40433         * modules/posix_spawnattr_getsigdefault: New file.
40434         * lib/spawnattr_getdefault.c: New file, from GNU libc with
40435         modifications.
40436         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
40437         new module.
40438
40439         New module 'posix_spawnattr_setschedpolicy'.
40440         * modules/posix_spawnattr_setschedpolicy: New file.
40441         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
40442         modifications.
40443         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
40444         new module.
40445
40446         New module 'posix_spawnattr_getschedpolicy'.
40447         * modules/posix_spawnattr_getschedpolicy: New file.
40448         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
40449         modifications.
40450         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
40451         new module.
40452
40453         New module 'posix_spawnattr_setschedparam'.
40454         * modules/posix_spawnattr_setschedparam: New file.
40455         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
40456         modifications.
40457         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
40458         new module.
40459
40460         New module 'posix_spawnattr_getschedparam'.
40461         * modules/posix_spawnattr_getschedparam: New file.
40462         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
40463         modifications.
40464         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
40465         new module.
40466
40467         New module 'posix_spawnattr_setpgroup'.
40468         * modules/posix_spawnattr_setpgroup: New file.
40469         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
40470         modifications.
40471         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
40472         module.
40473
40474         New module 'posix_spawnattr_getpgroup'.
40475         * modules/posix_spawnattr_getpgroup: New file.
40476         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
40477         modifications.
40478         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
40479         module.
40480
40481         New module 'posix_spawnattr_setflags'.
40482         * modules/posix_spawnattr_setflags: New file.
40483         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
40484         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
40485         module.
40486
40487         New module 'posix_spawnattr_getflags'.
40488         * modules/posix_spawnattr_getflags: New file.
40489         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
40490         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
40491         module.
40492
40493         New module 'posix_spawnattr_init'.
40494         * modules/posix_spawnattr_init: New file.
40495         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
40496         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
40497         module.
40498
40499         New module 'posix_spawn_file_actions_destroy'.
40500         * modules/posix_spawn_file_actions_destroy: New file.
40501         * lib/spawn_faction_destroy.c: New file, from GNU libc with
40502         modifications.
40503         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
40504         the new module.
40505
40506         New module 'posix_spawn_file_actions_addopen'.
40507         * modules/posix_spawn_file_actions_addopen: New file.
40508         * lib/spawn_faction_addopen.c: New file, from GNU libc with
40509         modifications.
40510         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
40511         the new module.
40512
40513         New module 'posix_spawn_file_actions_adddup2'.
40514         * modules/posix_spawn_file_actions_adddup2: New file.
40515         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
40516         modifications.
40517         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
40518         the new module.
40519
40520         New module 'posix_spawn_file_actions_addclose'.
40521         * modules/posix_spawn_file_actions_addclose: New file.
40522         * lib/spawn_faction_addclose.c: New file, from GNU libc with
40523         modifications.
40524         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
40525         the new module.
40526
40527         New module 'posix_spawn_file_actions_init'.
40528         * modules/posix_spawn_file_actions_init: New file.
40529         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
40530         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
40531         new module.
40532
40533         New module 'posix_spawn-internal'.
40534         * modules/posix_spawn-internal: New file.
40535         * lib/spawn_int.h: New file, from GNU libc with modifications.
40536         * lib/spawni.c: New file, from GNU libc with modifications.
40537         * m4/posix_spawn.m4: New file.
40538
40539         New module 'spawn'.
40540         * modules/spawn: New file.
40541         * lib/spawn.in.h: New file, from GNU libc with modifications.
40542         * m4/spawn_h.m4: New file.
40543         * doc/posix-headers/spawn.texi: Mention the new module.
40544
40545 2008-09-28  Bruno Haible  <bruno@clisp.org>
40546
40547         * modules/sched-tests: New file.
40548         * tests/test-sched.c: New file.
40549
40550         New module 'sched'.
40551         * modules/sched: New file.
40552         * lib/sched.in.h: New file.
40553         * m4/sched_h.m4: New file.
40554         * doc/posix-headers/sched.texi: Mention the new module.
40555
40556 2008-09-27  Eric Blake  <ebb9@byu.net>
40557
40558         Fix previous patch, and tweak references to $0.
40559         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
40560         (func_version, func_gnulib_dir): Don't call this program
40561         gnulib-tool.
40562         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
40563         with using $0 in function.
40564         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
40565         (func_fatal_error): Reuse the name the user invoked us with.
40566
40567 2008-09-27  Bruno Haible  <bruno@clisp.org>
40568
40569         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
40570         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
40571         (gl_ICONV_H): Not here.
40572         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
40573         instead of assigning ICONV_H directly.
40574
40575         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
40576         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
40577         WCHAR_H directly.
40578
40579 2008-09-27  Bruno Haible  <bruno@clisp.org>
40580
40581         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
40582         * modules/arpa_inet (Depends-on): Add link-warning.
40583         (Makefile.am): Insert the definition of GL_LINK-WARNING.
40584         * modules/unistd (Makefile.am): Likewise.
40585
40586 2008-09-26  Bruno Haible  <bruno@clisp.org>
40587
40588         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
40589         variables.
40590         (func_version): Essentially copied from gnulib-tool.
40591         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
40592         func_readlink): Copied from gnulib-tool.
40593
40594 2008-09-26  Bruno Haible  <bruno@clisp.org>
40595
40596         * gnulib-tool (func_version): Change directory to $gnulib_dir before
40597         invoking git-version-gen.
40598
40599 2008-09-26  Bruno Haible  <bruno@clisp.org>
40600
40601         * posix-modules: Update to directory names changed on 2008-01-19.
40602         Remove commas in output before splitting into words. No more need to
40603         avoid 'ftruncate' since 2007-02-19.
40604
40605 2008-09-26  Bruno Haible  <bruno@clisp.org>
40606
40607         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
40608
40609 2008-09-26  Bruno Haible  <bruno@clisp.org>
40610
40611         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
40612         * modules/fwriteerror (Depends-on): Add errno.
40613
40614 2008-09-26  Bruno Haible  <bruno@clisp.org>
40615
40616         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
40617         * tests/test-vc-list-files-cvs.sh: Likewise.
40618
40619 2008-09-26  Bruno Haible  <bruno@clisp.org>
40620
40621         * doc/posix-headers/sys_resource.texi: Reorder items.
40622
40623 2008-09-26  Jim Meyering  <meyering@redhat.com>
40624
40625         fts: tweak inode comparison function
40626         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
40627         inode numbers, as documented.
40628
40629         fts: sort dirent entries on inode number before traversing
40630         This avoids a quadratic, seek-related performance penalty when
40631         operating on a directory containing many entries (measurable at 10k;
40632         3.5 hours at 2 million entries with a cold cache) on certain types
40633         of file systems, including ext3 and ext4, but not tmpfs.
40634         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
40635         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
40636         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
40637         (fs_handles_readdir_ordered_dirents_efficiently): New function.
40638         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
40639         (fts_build): Set the stat.st_ino member from D_INO.
40640         If it is likely to be useful, sort dirent entries on inode number.
40641
40642         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
40643         and the struct statfs.f_type member.
40644         * modules/fts (Depends-on): Add d-ino.
40645
40646 2008-09-26  Bruno Haible  <bruno@clisp.org>
40647
40648         * modules/sigpipe-die (Depends-on): Add sigpipe.
40649
40650         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
40651         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
40652         and GNULIB_STDIO_H_SIGPIPE are set.
40653         * lib/stdio-write.c: New file.
40654         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
40655         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
40656         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
40657         REPLACE_STDIO_WRITE_FUNCS.
40658         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
40659         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
40660         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
40661         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
40662         * modules/stdio (Files): Add lib/stdio-write.c.
40663         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
40664         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
40665         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
40666         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
40667         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
40668         REPLACE_FPRINTF_POSIX.
40669         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
40670         REPLACE_PRINTF_POSIX.
40671         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
40672         REPLACE_VFPRINTF_POSIX.
40673         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
40674         REPLACE_VPRINTF_POSIX.
40675         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
40676         SIGPIPE issue.
40677         * doc/posix-functions/fputc.texi: Likewise.
40678         * doc/posix-functions/fputs.texi: Likewise.
40679         * doc/posix-functions/fwrite.texi: Likewise.
40680         * doc/posix-functions/printf.texi: Likewise.
40681         * doc/posix-functions/putc.texi: Likewise.
40682         * doc/posix-functions/putchar.texi: Likewise.
40683         * doc/posix-functions/puts.texi: Likewise.
40684         * doc/posix-functions/vfprintf.texi: Likewise.
40685         * doc/posix-functions/vprintf.texi: Likewise.
40686
40687         * modules/safe-write (Depends-on): Add write.
40688
40689         * modules/sigpipe-tests: New file.
40690         * tests/test-sigpipe.c: New file.
40691         * tests/test-sigpipe.sh: New file.
40692
40693         * modules/write: New file.
40694         * lib/unistd.in.h: Include <sys/types.h>.
40695         (write): New declaration.
40696         * lib/write.c: New file.
40697         * m4/write.m4: New file.
40698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40699         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
40700         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
40701         GNULIB_WRITE, REPLACE_WRITE.
40702         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
40703         and the SIGPIPE issue.
40704
40705         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
40706         (raise): New declaration.
40707         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
40708         (ext_signal): New function.
40709         (rpl_raise): New function.
40710         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
40711         GNULIB_SIGNAL_H_SIGPIPE.
40712         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
40713         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
40714
40715         * modules/sigpipe: New file.
40716         * m4/sigpipe.m4: New file.
40717
40718 2008-09-25  Derek Price  <derek@ximbiot.com>
40719             Bruno Haible  <bruno@clisp.org>
40720
40721         * gnulib-tool (func_import): Report all license incompatibilities, not
40722         just the first one.
40723
40724 2008-09-25  Bruno Haible  <bruno@clisp.org>
40725
40726         * gnulib-tool (func_import): When computing the edits, consider not
40727         only the Makefile.ams that exist but also those that will be generated.
40728
40729 2008-09-25  Simon Josefsson  <simon@josefsson.org>
40730
40731         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
40732         fixes gnulib-tool --test warning about duplicate dependency.
40733
40734 2008-09-25  Bruno Haible  <bruno@clisp.org>
40735
40736         * gnulib-tool: Don't ask the user to perform edits in the generated
40737         Makefile.ams.
40738         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
40739         apply to the Makefile.am being generated.
40740         (func_emit_tests_Makefile_am): Execute edits that apply to the
40741         Makefile.am being generated.
40742         (func_import): Setup list of Makefile.am edits before emitting the
40743         Makefile.ams, not at the end.
40744         (func_create_testdir): Update.
40745         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40746
40747 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40748
40749         * gnulib-tool (func_import): Store the --tests-base option in the
40750         comment in gnulib-cache.m4.
40751
40752 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
40753
40754         * NEWS: Document increased portability that sys_select now provides.
40755
40756         * lib/sys_select.in.h: Install select wrapper.
40757         * lib/sys_socket.in.h: Use more descriptive name when there is no
40758         select wrapper.
40759         * lib/winsock-select.c: New.
40760         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
40761         Require gl_HEADER_SYS_SOCKET.
40762         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
40763         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
40764         * tests/test-sys_select.c: Add functional tests.
40765
40766 2008-09-24  Eric Blake  <ebb9@byu.net>
40767
40768         open, fopen: close fd leak in last patch
40769         * lib/open.c (rpl_open): Close fd before returning error.
40770         * lib/fopen.c (rpl_fopen): Close fd before returning error.
40771         * doc/posix-functions/open.texi (open): Document that Irix also
40772         has the bug.
40773         * doc/posix-functions/fopen.texi (fopen): Likewise.
40774         Reported by Paolo Bonzini.
40775
40776 2008-09-24  Bruno Haible  <bruno@clisp.org>
40777
40778         Ensure that a filename ending in a slash cannot be used to access a
40779         non-directory.
40780         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
40781         to check whether it's really a directory.
40782         * lib/fopen.c: Include fcntl.h, unistd.h.
40783         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
40784         and fdopen().
40785         * modules/fopen (Depends-on): Add unistd.
40786         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
40787         * tests/test-fopen.c (main): Likewise.
40788         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
40789         * doc/posix-functions/fopen.texi: Likewise.
40790         Reported by Eric Blake.
40791
40792 2008-09-23  Eric Blake  <ebb9@byu.net>
40793
40794         c-stack: avoid compiler optimizations when provoking overflow
40795         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
40796         recursion harder to optimize, to ensure a stack overflow occurs.
40797         * tests/test-c-stack.c (recurse): Likewise.
40798         Borrowed from libsigsegv.
40799
40800         c-stack: work around Irix sigaltstack bug
40801         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
40802         whether sigaltstack uses wrong end of stack_t (copied in part from
40803         libsigsegv).
40804         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
40805         Irix bug, without requiring an over-allocation.
40806         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
40807         bug.
40808
40809         fopen: document mingw bug on directories
40810         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
40811         not allowing a stream visiting a directory, even though reading
40812         from such a stream is not portable.
40813
40814 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
40815
40816         * lib/poll.c: Rewrite.
40817         * modules/poll: Depend on alloca.
40818
40819 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
40820
40821         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
40822         instead define prototypes for a full set of wrappers.  Ensure
40823         that Cygwin does not use the compatibility code, which is only
40824         for MinGW.
40825         * lib/winsock.c: New.
40826         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
40827         * modules/sys_socket: Add lib/winsock.c.
40828
40829         * modules/poll-tests: Add errno and perror.
40830         * tests/test-poll.c: Use ioctl, not ioctlsocket.
40831
40832 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
40833
40834         * tests/test-poll.c: Downgrade minimum needed Winsock version.
40835
40836 2008-09-23  Bruno Haible  <bruno@clisp.org>
40837
40838         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
40839         * doc/glibc-functions/*: Likewise.
40840
40841 2008-09-23  Simon Josefsson  <simon@josefsson.org>
40842
40843         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
40844         success.
40845
40846 2008-09-22  Eric Blake  <ebb9@byu.net>
40847             Bruno Haible  <bruno@clisp.org>
40848
40849         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
40850         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
40851         supply %A but mishandle pseudo-NaN.
40852         Reported by Simon Josefsson.
40853
40854 2008-09-21  Bruno Haible  <bruno@clisp.org>
40855
40856         * tests/test-lock.c (main): Tweak skip message.
40857         * tests/test-tls.c (main): Likewise.
40858
40859 2008-09-21  Bruno Haible  <bruno@clisp.org>
40860
40861         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
40862         whether 'struct sigaction' has sa_sigaction here...
40863         (gl_PREREQ_SIG_HANDLER_H): ... not here.
40864         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
40865
40866 2008-09-21  Bruno Haible  <bruno@clisp.org>
40867
40868         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
40869         section.
40870         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
40871         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
40872         the new section.
40873         (Support for obsolete systems lacking POSIX:2001): New section.
40874         (String handling <string.h>): Move strdup to the new section.
40875         Suggested by Simon Josefsson and Paolo Bonzini.
40876
40877 2008-09-21  Bruno Haible  <bruno@clisp.org>
40878
40879         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
40880         exponents in %e and %g results on 'long double'. Needed for mingw's
40881         improved *printf functions.
40882         * tests/test-vasprintf-posix.c (test_function): Likewise.
40883         * tests/test-snprintf-posix.h (test_function): Likewise.
40884         * tests/test-sprintf-posix.h (test_function): Likewise.
40885         Reported by Eric Blake.
40886
40887 2008-09-21  Bruno Haible  <bruno@clisp.org>
40888
40889         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
40890         * tests/test-sprintf-posix.h (test_function): Likewise.
40891
40892 2008-09-21  Bruno Haible  <bruno@clisp.org>
40893
40894         * modules/getpass (Depends-on): Add strdup-posix.
40895
40896         New module 'strdup-posix'.
40897         * modules/strdup-posix: New file.
40898         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
40899         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
40900         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40901         REPLACE_STRDUP.
40902         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
40903         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
40904         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40905         strdup-posix.
40906
40907         * modules/strdup (Depends-on): Remove malloc-posix.
40908
40909 2008-09-20  Bruno Haible  <bruno@clisp.org>
40910
40911         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
40912         Wildenhues.
40913
40914 2008-09-20  Bruno Haible  <bruno@clisp.org>
40915
40916         Ensure that wint_t gets defined on IRIX 5.3.
40917         * lib/wchar.in.h (wint_t): Define if not defined by the system.
40918         * lib/wctype.in.h (wint_t): Likewise.
40919         (__wctype_wint_t): Remove type.
40920         (isw*): Use wint_t instead of __wctype_wint_t.
40921         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
40922         * modules/wchar (Files): Add m4/wint_t.m4.
40923         (Makefile.am): Substitute HAVE_WINT_T.
40924         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
40925         * tests/test-wctype.c: Check that wint_t is defined.
40926         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
40927         * doc/posix-headers/wctype.texi: Likewise.
40928         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40929
40930 2008-09-18  Bruno Haible  <bruno@clisp.org>
40931
40932         * gnulib-tool (func_exit): Update comment.
40933
40934 2008-09-18  Simon Josefsson  <simon@josefsson.org>
40935
40936         * modules/getaddrinfo (Depends-on): Remove strdup, this module
40937         assumes strdup exists and does not depend on strdup to return
40938         ENOMEM on out of memory conditions.
40939
40940 2008-09-18  Bruno Haible  <bruno@clisp.org>
40941
40942         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
40943         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
40944         digits for the exponent.
40945
40946 2008-09-18  Jim Meyering  <meyering@redhat.com>
40947             Bruno Haible  <bruno@clisp.org>
40948
40949         * lib/vasnprintf.c (decimal_point_char): Define also if
40950         NEED_PRINTF_INFINITE_LONG_DOUBLE.
40951
40952 2008-09-16  Bruno Haible  <bruno@clisp.org>
40953         and Eric Blake  <ebb9@byu.net>
40954
40955         vasnprintf: support Irix 5.3
40956         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
40957         that mishandle long double infinity.
40958         Reported by Tom G. Christensen.
40959
40960 2008-09-16  Bruno Haible  <bruno@clisp.org>
40961
40962         * doc/glibc-functions/scandir.texi: Mention the function is missing on
40963         Solaris 9.
40964         * doc/glibc-functions/alphasort.texi: Likewise.
40965         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
40966
40967 2008-09-16  Jim Meyering  <meyering@redhat.com>
40968
40969         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
40970         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
40971         a umask modification leak out of a subshell.  Otherwise, the
40972         opensolaris /bin/sh would be accepted and thus cause unwarranted
40973         failures in the coreutils test suite.
40974
40975 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
40976
40977         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
40978         to succeed.
40979
40980 2008-09-16  Jim Meyering  <meyering@redhat.com>
40981
40982         avoid spurious test failure when library is built without ACL support
40983         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
40984         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
40985         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
40986         * tests/test-copy-acl.sh: Likewise.
40987
40988 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40989
40990         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
40991         based on character occurrence counts.
40992
40993 2008-09-15  Eric Blake  <ebb9@byu.net>
40994
40995         tests: avoid some compiler warnings
40996         * tests/test-memchr.c (main): Pass NULL indirectly.
40997         * tests/test-closein.c (main): Avoid unused variable.
40998
40999 2008-09-15  Bruno Haible  <bruno@clisp.org>
41000
41001         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
41002         are missing on OpenBSD 4.0 individually.
41003         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41004
41005 2008-09-15  Bruno Haible  <bruno@clisp.org>
41006
41007         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
41008         * doc/posix-functions/strerror.texi: Mention also Cygwin.
41009         * doc/posix-functions/perror.texi: Likewise.
41010         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
41011         is missing.
41012         Reported by Eric Blake.
41013
41014         * lib/errno.in.h: Use replacement values >= 2000.
41015         Reported by Eric Blake.
41016
41017 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41018
41019         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
41020         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
41021         limit.
41022         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
41023         compareseq was aborted.
41024
41025 2008-09-14  Bruno Haible  <bruno@clisp.org>
41026
41027         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
41028         yvec_edit_count.
41029         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
41030         (fstrcmp_bounded): Simplify result computation accordingly.
41031
41032 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41033
41034         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
41035         (fstrcmp): Define in terms of fstrcmp_bounded.
41036         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
41037         lower_bound argument.
41038         Return quickly if the result is certainly < lower_bound.
41039         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
41040
41041 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41042
41043         * lib/diffseq.h (EARLY_ABORT): New macro.
41044         (compareseq): Change return type to bool. Return true when EARLY_ABORT
41045         evaluates to true.
41046
41047 2008-09-14  Bruno Haible  <bruno@clisp.org>
41048
41049         * modules/perror-tests: New file.
41050         * tests/test-perror.sh: New file.
41051         * tests/test-perror.c: New file.
41052
41053         New module 'perror'.
41054         * lib/stdio.in.h (perror): New declaration.
41055         * lib/perror.c: New file.
41056         * m4/perror.m4: New file.
41057         * modules/perror: New file.
41058         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
41059         * doc/posix-functions/perror.texi: Mention the perror module.
41060         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
41061         REPLACE_PERROR.
41062         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
41063         REPLACE_PERROR.
41064
41065 2008-09-14  Bruno Haible  <bruno@clisp.org>
41066
41067         * modules/stdio (Makefile.am): Reorder to match the order in
41068         lib/stdio.in.h.
41069         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41070
41071 2008-09-13  Bruno Haible  <bruno@clisp.org>
41072
41073         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
41074
41075 2008-09-13  Bruno Haible  <bruno@clisp.org>
41076
41077         Extend strerror to cover the added errno values.
41078         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
41079         (rpl_strerror): Provide error messages for the added errno values and
41080         for the WSA* values.
41081         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
41082         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
41083         strerror.
41084         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
41085         * modules/strerror (Depends-on): Add errno.
41086         * doc/posix-functions/strerror.texi: Document the change.
41087         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
41088         and EOVERFLOW.
41089
41090 2008-09-13  Bruno Haible  <bruno@clisp.org>
41091
41092         * modules/EOVERFLOW: Remove file.
41093         * m4/eoverflow.m4: Remove file.
41094         * modules/EOVERFLOW-tests: Remove file.
41095         * tests/test-EOVERFLOW.c: Remove file.
41096         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
41097         * modules/ftell (Depends-on): Likewise.
41098         * modules/getdelim (Depends-on): Likewise.
41099         * modules/getugroups (Depends-on): Likewise.
41100         * modules/poll (Depends-on): Likewise.
41101         * modules/snprintf (Depends-on): Likewise.
41102         * modules/sprintf-posix (Depends-on): Likewise.
41103         * modules/vasnprintf (Depends-on): Likewise.
41104         * modules/vasprintf (Depends-on): Likewise.
41105         * modules/vfprintf-posix (Depends-on): Likewise.
41106         * modules/vsnprintf (Depends-on): Likewise.
41107         * modules/vsprintf-posix (Depends-on): Likewise.
41108         * modules/xvasprintf (Depends-on): Likewise.
41109         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41110         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
41111         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
41112         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
41113         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41114         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
41115         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
41116         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
41117         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41118         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
41119         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
41120         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
41121         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41122         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
41123         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
41124         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
41125         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41126         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
41127         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
41128         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
41129         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41130         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
41131         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
41132         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
41133         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
41134         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41135         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
41136         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
41137         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
41138         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
41139         * MODULES.html.sh: Remove EOVERFLOW.
41140         * NEWS: Mention the change.
41141
41142 2008-09-13  Bruno Haible  <bruno@clisp.org>
41143
41144         * modules/errno-tests: New file.
41145         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
41146
41147         * lib/errno.in.h: New file.
41148         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
41149         * modules/errno: New file.
41150         * doc/posix-headers/errno.texi: Update documentation.
41151         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
41152
41153 2008-09-13  Bruno Haible  <bruno@clisp.org>
41154
41155         * tests/test-poll.c: Use #if for native Windows, rather than testing
41156         __MSVCRT__.
41157
41158 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41159             Bruno Haible  <bruno@clisp.org>
41160
41161         * lib/glob.c: Don't include <pwd.h> on native Windows.
41162         (WINDOWS32): New macro.
41163         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
41164
41165 2008-09-13  Bruno Haible  <bruno@clisp.org>
41166
41167         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
41168         (ETIMEDOUT): Remove macro.
41169         (glthread_cond_timedwait_multithreaded): New declaration.
41170         (glthread_cond_timedwait): Use it.
41171         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
41172         (glthread_cond_timedwait_multithreaded): New function.
41173
41174 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41175
41176         * modules/poll-tests: Do not check for io.h.
41177         * tests/test-poll.c: Check for __MSVCRT__ instead.
41178
41179 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41180
41181         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
41182         * modules/poll-tests: Add inet_pton, stdbool, sockets.
41183         * tests/test-poll.c: Use them.  Use _pipe on Windows.
41184
41185 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41186
41187         * modules/poll-tests: New.
41188         * tests/test-poll.c: New.
41189
41190 2008-09-12  Eric Blake  <ebb9@byu.net>
41191
41192         frexp: test for NetBSD failure on -0.0
41193         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
41194         not all, bugs from NetBSD 3.0 have been fixed.
41195         * doc/posix-functions/frexp.texi (frexp): Document bug.
41196         Reported by Thomas Klausner.
41197
41198         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
41199         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
41200         literal -0.0.
41201         Reported by Jonathan C. Patschke <jp@centtech.com>.
41202
41203 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41204
41205         * lib/glthread/cond.h: Use dummy implementation also if
41206         USE_WIN32_THREADS.
41207
41208 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41209
41210         * modules/fnmatch-posix (License): Change to LGPLv2+.
41211         * modules/fnmatch-gnu (License): Likewise.
41212
41213 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41214
41215         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
41216
41217 2008-09-11  Jim Meyering  <meyering@redhat.com>
41218
41219         * users.txt: Add gtk-vnc.
41220
41221 2008-09-08  Simon Josefsson  <simon@josefsson.org>
41222
41223         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
41224         rotate amounts.
41225
41226         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
41227         required for 16-bit and 8-bit rotates.
41228         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
41229         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
41230         UINT8_MAX instead of hard-coded constants.
41231         Suggested by Paul Eggert.
41232
41233 2008-09-07  Bruno Haible  <bruno@clisp.org>
41234
41235         * tests/test-striconveh.c (main): Check behaviour when converting from
41236         UTF-7.
41237
41238         Make striconveh work better with stateful encodings.
41239         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
41240         that iconv does not increment the inptr when returning -1/EINVAL.
41241
41242 2008-09-07  Bruno Haible  <bruno@clisp.org>
41243
41244         * build-aux/config.rpath: Update according to libtool-2.2.6.
41245         * build-aux/config.libpath: Likewise.
41246
41247 2008-09-06  Bruno Haible  <bruno@clisp.org>
41248
41249         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
41250         * lib/freadptr.c (freadptr): Likewise.
41251         * lib/freadseek.c (freadptrinc): Likewise.
41252         Reported by Simon Josefsson.
41253
41254 2008-09-06  Bruno Haible  <bruno@clisp.org>
41255
41256         * modules/freadptr (License): Change to LGPLv2+.
41257         * modules/freadseek (License): Likewise.
41258         Suggested by Eric Blake.
41259
41260         * modules/memchr2 (License): Change to LGPLv2+.
41261         Approved by Eric Blake.
41262
41263 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41264             Bruno Haible  <bruno@clisp.org>
41265
41266         Make gnulib-tool work with native 'sed' on AIX.
41267         * gnulib-tool (sed_noop): New variable.
41268         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
41269         func_add_or_update, func_create_testdir): Use it to initialize sed
41270         script variables.
41271         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41272
41273 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
41274             Bruno Haible  <bruno@clisp.org>
41275
41276         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
41277         also works after #include directives.
41278
41279 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
41280
41281         getdate.y: reject an out-of-range timezone value
41282         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
41283         the range [-24...+24].  When specified with only one or two digits,
41284         * tests/test-getdate.c: Tests for the fix.
41285         * doc/getdate.texi: Document this change.
41286
41287 2008-09-03  Bruno Haible  <bruno@clisp.org>
41288
41289         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
41290
41291 2008-09-02  Simon Josefsson  <simon@josefsson.org>
41292
41293         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
41294         <bruce.korb@gmail.com> with ideas from Ben Pfaff
41295         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
41296         Blake <ebb9@byu.net>.
41297
41298         * tests/test-bitrotate.c: Add more test vectors.
41299
41300 2008-09-02  Eric Blake  <ebb9@byu.net>
41301
41302         vasnprintf-posix: handle large precision via %.*d
41303         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
41304         when handling it ourselves.
41305         * tests/test-vasnprintf-posix.c (test_function): Add test.
41306         * tests/test-snprintf-posix.h (test_function): Likewise.
41307         * tests/test-sprintf-posix.h (test_function): Likewise.
41308         * tests/test-vasprintf-posix.c (test_function): Likewise.
41309         Reported by Alain Guibert.
41310
41311 2008-09-01  Eric Blake  <ebb9@byu.net>
41312
41313         c-stack: make configure-time check more robust
41314         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
41315         successful sigaction call.
41316         Reported by Tom G. Christensen.
41317
41318 2008-09-01  Bruno Haible  <bruno@clisp.org>
41319
41320         New module 'findprog-lgpl'.
41321         * modules/findprog-lgpl: New file.
41322         * lib/findprog-lgpl.c: New file.
41323         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
41324         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
41325         to decide whether to use strdup or xstrdup, concatenated_filename or
41326         xconcatenated_filename.
41327
41328 2008-09-01  Bruno Haible  <bruno@clisp.org>
41329
41330         Split module 'concat-filename' into 'concat-filename' (LGPL) and
41331         'xconcat-filename' (GPL).
41332         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
41333         (License): Change to LGPLv2+.
41334         * modules/xconcat-filename: New file.
41335         * lib/concat-filename.h (concatenated_filename): Change specification.
41336         (xconcatenated_filename): New declaration.
41337         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
41338         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
41339         memory situations.
41340         * lib/xconcat-filename.c: New file.
41341         * NEWS: Mention the change.
41342         * lib/findprog.c: Include concat-filename.h, not filename.h.
41343         (find_in_path): Use xconcatenated_filename instead of
41344         concatenated_filename.
41345         * lib/javacomp.c: Include concat-filename.h, not filename.h.
41346         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
41347         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
41348         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
41349         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
41350         instead of concatenated_filename.
41351         * lib/javaexec.c: Include concat-filename.h, not filename.h.
41352         (execute_java_class): Use xconcatenated_filename instead of
41353         concatenated_filename.
41354         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
41355         * modules/javacomp (Depends-on): Likewise.
41356         * modules/javaexec (Depends-on): Likewise.
41357
41358 2008-09-01  Bruno Haible  <bruno@clisp.org>
41359
41360         Split module 'filename' into 'filename' and 'concat-filename'.
41361         * modules/filename: Keep only lib/filename.h.
41362         (License): Change to LGPLv2+.
41363         * modules/concat-filename: New file, extracted from modules/filename.
41364         * lib/filename.h (concatenated_filename): Remove declaration.
41365         * lib/concat-filename.h: New file, extracted from lib/filename.h.
41366         * lib/concat-filename.c: Include concat-filename.h.
41367         * NEWS: Mention the change.
41368
41369 2008-09-01  Simon Josefsson  <simon@josefsson.org>
41370
41371         * lib/bitrotate.h (rotl8, rotr8): Add.
41372
41373         * modules/bitrotate (configure.ac): Need
41374         AC_REQUIRE([AC_C_INLINE]).
41375         (Description): Mention stdint.h.  Reported by Bruno Haible
41376         <bruno@clisp.org>.
41377
41378         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
41379         Paolo Bonzini <bonzini@gnu.org>.
41380
41381 2008-08-31  Bruno Haible  <bruno@clisp.org>
41382
41383         Assume Solaris specific bi-arch conventions on Solaris systems.
41384         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
41385         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
41386         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
41387         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
41388         like acl_libdirstem.
41389         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
41390         acl_libdirstem.
41391         * NEWS: Mention the change.
41392         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
41393
41394 2008-08-31  Jim Meyering  <meyering@redhat.com>
41395
41396         * lib/strftime.h: Add comments describing the two added arguments.
41397
41398         remove duplicate #include directives
41399         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
41400         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
41401
41402 2008-08-31  Bruno Haible  <bruno@clisp.org>
41403
41404         New module 'sigpipe-die'.
41405         * modules/sigpipe-die: New file.
41406         * lib/sigpipe-die.h: New file.
41407         * lib/sigpipe-die.c: New file.
41408         * MODULES.html.sh (Signal handling): Add sigpipe-die.
41409
41410 2008-08-31  Bruno Haible  <bruno@clisp.org>
41411
41412         Don't override previously installed signal handlers.
41413         * lib/fatal-signal.c (saved_sigactions): New variable.
41414         (uninstall_handlers): Reset the signal to the saved handler, not
41415         to SIG_DFL (except when ignored).
41416         (install_handlers): Save the previous handlers.
41417
41418 2008-08-30  Bruno Haible  <bruno@clisp.org>
41419
41420         * gnulib-tool (func_reset_sigpipe): New function.
41421         (func_get_automake_snippet, func_modules_transitive_closure,
41422         func_import): Invoke it before a join command that reads from stdin,
41423         to avoid "echo: write error: Broken pipe" error messages on stderr.
41424         Reported by Sam Steingold <sds@gnu.org>.
41425
41426 2008-08-30  Bruno Haible  <bruno@clisp.org>
41427
41428         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
41429         Code copied from m4/open.m4.
41430         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
41431         access and the filename ends in a slash. Code copied from lib/open.c.
41432         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
41433         * tests/test-fopen.c (main): Check against bug with trailing slash.
41434
41435 2008-08-29  Bruno Haible  <bruno@clisp.org>
41436
41437         Avoid some "gcc -pedantic" warnings.
41438         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
41439         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
41440         * lib/dirent.in.h: Likewise.
41441         * lib/fcntl.in.h: Likewise.
41442         * lib/float.in.h: Likewise.
41443         * lib/iconv.in.h: Likewise.
41444         * lib/inttypes.in.h: Likewise.
41445         * lib/locale.in.h: Likewise.
41446         * lib/math.in.h: Likewise.
41447         * lib/netinet_in.in.h: Likewise.
41448         * lib/search.in.h: Likewise.
41449         * lib/signal.in.h: Likewise.
41450         * lib/stdarg.in.h: Likewise.
41451         * lib/stdint.in.h: Likewise.
41452         * lib/stdio.in.h: Likewise.
41453         * lib/stdlib.in.h: Likewise.
41454         * lib/string.in.h: Likewise.
41455         * lib/strings.in.h: Likewise.
41456         * lib/sys_select.in.h: Likewise.
41457         * lib/sys_socket.in.h: Likewise.
41458         * lib/sys_stat.in.h: Likewise.
41459         * lib/sys_time.in.h: Likewise.
41460         * lib/sysexits.in.h: Likewise.
41461         * lib/time.in.h: Likewise.
41462         * lib/unistd.in.h: Likewise.
41463         * lib/wchar.in.h: Likewise.
41464         * lib/wctype.in.h: Likewise.
41465         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
41466         * modules/fchdir (Makefile.am): Likewise.
41467         * modules/fcntl (Makefile.am): Likewise.
41468         * modules/float (Makefile.am): Likewise.
41469         * modules/iconv_open (Makefile.am): Likewise.
41470         * modules/inttypes (Makefile.am): Likewise.
41471         * modules/locale (Makefile.am): Likewise.
41472         * modules/math (Makefile.am): Likewise.
41473         * modules/netinet_in (Makefile.am): Likewise.
41474         * modules/search (Makefile.am): Likewise.
41475         * modules/signal (Makefile.am): Likewise.
41476         * modules/stdarg (Makefile.am): Likewise.
41477         * modules/stdint (Makefile.am): Likewise.
41478         * modules/stdio (Makefile.am): Likewise.
41479         * modules/stdlib (Makefile.am): Likewise.
41480         * modules/string (Makefile.am): Likewise.
41481         * modules/strings (Makefile.am): Likewise.
41482         * modules/sys_select (Makefile.am): Likewise.
41483         * modules/sys_socket (Makefile.am): Likewise.
41484         * modules/sys_stat (Makefile.am): Likewise.
41485         * modules/sys_time (Makefile.am): Likewise.
41486         * modules/sysexits (Makefile.am): Likewise.
41487         * modules/time (Makefile.am): Likewise.
41488         * modules/unistd (Makefile.am): Likewise.
41489         * modules/wchar (Makefile.am): Likewise.
41490         * modules/wctype (Makefile.am): Likewise.
41491         Reported by Reuben Thomas <rrt@sc3d.org>.
41492
41493 2008-08-29  Bruno Haible  <bruno@clisp.org>
41494
41495         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
41496         any more.
41497
41498 2008-08-29  Simon Josefsson  <simon@josefsson.org>
41499
41500         * MODULES.html.sh (Misc): Add bitrotate.
41501
41502         * modules/bitrotate: New file.
41503
41504         * lib/bitrotate.h: New file.
41505
41506         * modules/bitrotate-tests: New file.
41507
41508         * tests/test-bitrotate.c: New file.
41509
41510         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
41511         on the bitrotate module.
41512
41513         * lib/arctwo.c: Use new bitrotate module.
41514
41515 2008-08-29  Jim Meyering  <meyering@redhat.com>
41516
41517         bootstrap: merge changes from coreutils
41518         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
41519         of copied files.  Remove a kludge, now that this is fixed.
41520         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
41521         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
41522         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
41523
41524 2008-08-29  Bruno Haible  <bruno@clisp.org>
41525
41526         * MODULES.html.sh: Remove --cvs-urls option.
41527
41528 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
41529
41530         maint.mk: adjust to file name change
41531         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
41532
41533 2008-08-28  Jim Meyering  <meyering@redhat.com>
41534
41535         * modules/getndelim2 (License): Relicense to LGPLv2+.
41536         Approved by Richard Stallman for the version of 1995, and by
41537         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
41538
41539 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
41540
41541         * lib/getdelim.c (flockfile, funlockfile): Make all of them
41542         dummy if one is not available.  Do not touch them if
41543         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
41544         (getc_maybe_unlocked): New.
41545         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
41546
41547 2008-08-26  Eric Blake  <ebb9@byu.net>
41548
41549         doc/INSTALL: resync from autoconf
41550         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
41551         (INSTALL_PRELUDE): Delete; this is done more efficiently by
41552         moving...
41553         * install.texi [!autoconf]: ...here.  Resync from autoconf.
41554         * INSTALL: Regenerate.
41555         * INSTALL.ISO: New file.
41556         * INSTALL.UTF-8: Likewise.
41557
41558 2008-08-26  Jim Meyering  <meyering@redhat.com>
41559
41560         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
41561         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
41562         these definitions conditional, so that they may be overridden, too.
41563
41564 2008-08-26  Bruno Haible  <bruno@clisp.org>
41565
41566         Generate INSTALL file variants with prettier quotes.
41567         * doc/Makefile (INSTALL_PRELUDE): New macro.
41568         (INSTALL): Use it.
41569         (INSTALL.ISO, INSTALL.UTF-8): New rules.
41570
41571 2008-08-26  Bruno Haible  <bruno@clisp.org>
41572
41573         Run makeinfo in an English locale.
41574         * doc/Makefile (MAKEINFO): New variable.
41575
41576 2008-08-26  Bruno Haible  <bruno@clisp.org>
41577
41578         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
41579         Suggested by Eric Blake.
41580
41581 2008-08-25  Bruno Haible  <bruno@clisp.org>
41582
41583         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
41584
41585 2008-08-25  Eric Blake  <ebb9@byu.net>
41586
41587         c-stack: test that stack overflow can be caught
41588         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
41589         that platform allows handling stack overflow; at least OS/2 EMX
41590         has sigaltstack, but crashes before transferring control to
41591         handler on stack overflow.
41592         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
41593         check for HAVE_STACK_OVERFLOW_HANDLING.
41594         Reported by Elbert Pol.
41595
41596 2008-08-25  Bruno Haible  <bruno@clisp.org>
41597
41598         * doc/posix-functions/strftime.texi: Fix description of strftime
41599         module.
41600
41601 2008-08-24  Bruno Haible  <bruno@clisp.org>
41602
41603         * tests/uniwidth/test-uc_width2.c: New file.
41604         * tests/uniwidth/test-uc_width2.sh: New file.
41605         * modules/uniwidth/width-tests (Files): Add the new files.
41606         (TESTS): Add uniwidth/test-uc_width2.sh.
41607         (TESTS_ENVIRONMENT): New variable.
41608         (check_PROGRAMS): Add test-uc_width2.
41609         (test_uc_width2_SOURCES): New variable.
41610
41611         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
41612         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
41613         not 0x00AB.
41614         Reported by Alexander V. Lukyanov <lav@netis.ru>.
41615
41616 2008-08-22  Eric Blake  <ebb9@byu.net>
41617
41618         test-lock, test-tls: mention why a test is skipped
41619         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
41620         skipped.
41621         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
41622
41623         count-one-bits: relax license
41624         * modules/count-one-bits (License): Relicense to LGPLv2+.
41625         Suggested by Ludovic Courtès, approved by Ben Pfaff.
41626
41627 2008-08-22  Andreas Schwab  <schwab@suse.de>
41628
41629         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
41630         Remove spurious space in assignment.
41631
41632 2008-08-21  Simon Josefsson  <simon@josefsson.org>
41633
41634         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
41635         Paul Eggert <eggert@CS.UCLA.EDU>.
41636
41637 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
41638
41639         * modules/gettext: Add m4/threadlib.m4.
41640
41641 2008-08-19  Eric Blake  <ebb9@byu.net>
41642
41643         test-c-stack: fix compilation failure on FreeBSD 5.0
41644         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
41645         headers before <sys/resource.h>.
41646         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
41647         the bug.
41648         Reported by Nelson H. F. Beebe.
41649
41650         strverscmp: migrate from "strverscmp.h" to <string.h>
41651         * modules/string (Makefile.am): Add new hooks.
41652         * modules/strverscmp (Files): Remove strverscmp.h.
41653         (Depends-on): Add string.
41654         (configure.ac): Add indicator.
41655         (Include): Mention new header.
41656         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
41657         defaults.
41658         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
41659         results.
41660         * lib/strverscmp.h: Delete.
41661         * lib/string.in.h (strverscmp): Provide declaration, when needed.
41662         * tests/test-strverscmp.c (includes): Adjust client.
41663         * lib/check-version.c (includes): Likewise.
41664         * NEWS: Document the change.
41665
41666         strverscmp: add unit test
41667         * modules/strverscmp-tests: New file.
41668         * tests/test-strverscmp.c: Likewise.
41669
41670 2008-08-19  Simon Josefsson  <simon@josefsson.org>
41671
41672         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
41673         regarding Windows crypto stuff, from Mono.
41674
41675 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
41676
41677         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
41678         if present, for intel RND.  Return error on failures.
41679
41680 2008-08-18  Ben Pfaff  <blp@gnu.org>
41681
41682         gitlog-to-changelog: give better diagnostic for failed pipe-open
41683         * build-aux/gitlog-to-changelog: Improve error message: suggest
41684         that the version of Git may be too old.
41685
41686 2008-08-18  Simon Josefsson  <simon@josefsson.org>
41687
41688         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
41689         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
41690
41691 2008-08-18  Bruno Haible  <bruno@clisp.org>
41692
41693         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
41694         pthread_in_use().
41695
41696 2008-08-18  Bruno Haible  <bruno@clisp.org>
41697
41698         * lib/glthread/threadlib.c: Include <pthread.h>.
41699
41700 2008-08-18  Bruno Haible  <bruno@clisp.org>
41701
41702         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
41703         glthread_recursive_lock_* macros.
41704         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
41705         Fix syntax error.
41706
41707 2008-08-18  Bruno Haible  <bruno@clisp.org>
41708
41709         * lib/glthread/thread.c: Avoid forcing a context switch right after
41710         thread creation.
41711
41712 2008-08-17  Bruno Haible  <bruno@clisp.org>
41713
41714         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
41715         * lib/glthread/thread.h: Provide Win32 specific implementation.
41716         * modules/thread (Files): Add lib/glthread/thread.c.
41717         (Depends-on): Add lock.
41718         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
41719
41720 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41721
41722         New module 'yield'.
41723         * modules/yield: New file.
41724         * lib/glthread/yield.h: New file.
41725         * m4/yield.m4: New file.
41726         * MODULES.html.sh (Multithreading): Add yield.
41727
41728 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41729
41730         New module 'thread'.
41731         * modules/thread: New file.
41732         * lib/glthread/thread.h: New file.
41733         * m4/thread.m4: New file.
41734         * MODULES.html.sh (Multithreading): Add thread.
41735
41736 2008-08-17  Bruno Haible  <bruno@clisp.org>
41737
41738         * lib/glthread/lock.h: Include <stdlib.h> always.
41739         * lib/glthread/tls.h: Likewise.
41740         * lib/glthread/cond.h: Likewise.
41741
41742 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41743
41744         New module 'cond'.
41745         * modules/cond: New file.
41746         * lib/glthread/cond.h: New file.
41747         * lib/glthread/cond.c: New file.
41748         * m4/cond.m4: New file.
41749         * MODULES.html.sh (Multithreading): Add cond.
41750
41751 2008-08-16  Eric Blake  <ebb9@byu.net>
41752
41753         c-stack: fix regression on Irix 5.3 from 2008-06-21
41754         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
41755         sa_sigaction...
41756         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
41757         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
41758         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
41759         * modules/signal (Makefile.am): Use the value.
41760         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
41761         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
41762         * doc/posix-headers/signal.texi (signal.h): Document this
41763         portability issue.
41764         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
41765         Reported by Tom G. Christensen.
41766
41767 2008-08-17  Bruno Haible  <bruno@clisp.org>
41768
41769         New module 'threadlib'.
41770         * modules/threadlib: New file.
41771         * lib/glthread/threadlib.c: New file, extracted from
41772         lib/glthread/lock.c.
41773         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
41774         functions.
41775         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
41776         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
41777         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
41778         macros.
41779         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
41780         (gl_DISABLE_THREADS): Remove macro.
41781         * modules/lock (Files): Remove build-aux/config.rpath.
41782         (Depends-on): Remove havelib. Add threadlib.
41783         (configure.ac-early): Remove section.
41784         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
41785         * modules/tls (Depends-on): Remove lock. Add threadlib.
41786         (Link): New section, copied from threadlib.
41787         * MODULES.html.sh (Multithreading): Add threadlib.
41788
41789 2008-08-14  Bruno Haible  <bruno@clisp.org>
41790
41791         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
41792         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
41793         glthread_rwlock_unlock, glthread_rwlock_destroy,
41794         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
41795         glthread_recursive_lock_destroy): Define as macros always.
41796         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
41797         glthread_lock_lock.
41798         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
41799         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
41800         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
41801         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
41802         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
41803         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
41804         (glthread_recursive_lock_lock_func): Renamed from
41805         glthread_recursive_lock_lock.
41806         (glthread_recursive_lock_unlock_func): Renamed from
41807         glthread_recursive_lock_unlock.
41808         (glthread_recursive_lock_destroy_func): Renamed from
41809         glthread_recursive_lock_destroy.
41810
41811 2008-08-14  Bruno Haible  <bruno@clisp.org>
41812
41813         * lib/glthread/lock.h: Renamed from lib/lock.h.
41814         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
41815         * lib/glthread/tls.h: Renamed from lib/tls.h.
41816         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
41817         * lib/fstrcmp.c: Update includes.
41818         * lib/strsignal.c: Update includes.
41819         * modules/lock (Files, Makefile.am): Update.
41820         (Include): Change to "glthread/lock.h".
41821         * modules/tls (Files, Makefile.am): Update.
41822         (Include): Change to "glthread/tls.h".
41823         * tests/test-lock.c: Update includes.
41824         * tests/test-tls.c: Update includes.
41825         * NEWS: Mention the renamed header files.
41826
41827 2008-08-11  Jim Meyering  <meyering@redhat.com>
41828
41829         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
41830
41831 2008-08-11  Eric Blake  <ebb9@byu.net>
41832
41833         test-c-stack: avoid C99-ism
41834         * tests/test-c-stack.c (main): Fix whitespace, move declaration
41835         before statement.
41836         Reported by Alain Guibert.
41837
41838 2008-08-10  Jim Meyering  <meyering@redhat.com>
41839
41840         ensure that return value of uinttostr et al are not ignored
41841         * lib/inttostr.h (__GNUC_PREREQ): Define.
41842         (__attribute_warn_unused_result__): Define.
41843         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
41844
41845 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
41846
41847         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
41848         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
41849
41850 2008-08-07  Jim Meyering  <meyering@redhat.com>
41851
41852         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
41853
41854         * modules/mkstemp (License): Relicense under LGPLv2+.
41855         * modules/tempname (License): Likewise.
41856
41857 2008-08-06  Bruno Haible  <bruno@clisp.org>
41858
41859         * lib/poll.c (poll): Further micro-optimization.
41860
41861 2008-08-06  Jim Meyering  <meyering@redhat.com>
41862
41863         inet_pton.c: use locale-independent tolower
41864         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
41865         (inet_pton6): Use c_tolower rather than tolower.
41866         * modules/inet_pton (Depends-on): Add c-ctype.
41867
41868 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
41869
41870         * lib/poll.c (poll): Avoid division when timeout is 0, cache
41871         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
41872
41873 2008-08-06  Jim Meyering  <meyering@redhat.com>
41874
41875         * modules/inet_pton (License): Relicense under LGPLv2+.
41876
41877 2008-08-03  Bruno Haible  <bruno@clisp.org>
41878
41879         Additional non-aborting API for lock and tls.
41880         * lib/lock.h: Include <errno.h>.
41881         (glthread_lock_init): New macro/function.
41882         (gl_lock_init): Define as wrapper around glthread_lock_init.
41883         (glthread_lock_lock): New macro/function.
41884         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
41885         (glthread_lock_unlock): New macro/function.
41886         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
41887         (glthread_lock_destroy): New macro/function.
41888         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
41889         (glthread_rwlock_init): New macro/function.
41890         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
41891         (glthread_rwlock_rdlock): New macro/function.
41892         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
41893         (glthread_rwlock_wrlock): New macro/function.
41894         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
41895         (glthread_rwlock_unlock): New macro/function.
41896         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
41897         (glthread_rwlock_destroy): New macro/function.
41898         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
41899         (glthread_recursive_lock_init): New macro/function.
41900         (gl_recursive_lock_init): Define as wrapper around
41901         glthread_recursive_lock_init.
41902         (glthread_recursive_lock_lock): New macro/function.
41903         (gl_recursive_lock_lock): Define as wrapper around
41904         glthread_recursive_lock_lock.
41905         (glthread_recursive_lock_unlock): New macro/function.
41906         (gl_recursive_lock_unlock): Define as wrapper around
41907         glthread_recursive_lock_unlock.
41908         (glthread_recursive_lock_destroy): New macro/function.
41909         (gl_recursive_lock_destroy): Define as wrapper around
41910         glthread_recursive_lock_destroy.
41911         (glthread_once): New macro/function.
41912         (gl_once): Define as wrapper around glthread_once.
41913         Update function declarations.
41914         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
41915         glthread_rwlock_init. Return error code.
41916         (glthread_rwlock_rdlock_multithreaded): Renamed from
41917         glthread_rwlock_rdlock. Return error code.
41918         (glthread_rwlock_wrlock_multithreaded): Renamed from
41919         glthread_rwlock_wrlock. Return error code.
41920         (glthread_rwlock_unlock_multithreaded): Renamed from
41921         glthread_rwlock_unlock. Return error code.
41922         (glthread_rwlock_destroy_multithreaded): Renamed from
41923         glthread_rwlock_destroy. Return error code.
41924         (glthread_recursive_lock_init_multithreaded): Renamed from
41925         glthread_recursive_lock_init. Return error code.
41926         (glthread_recursive_lock_lock_multithreaded): Renamed from
41927         glthread_recursive_lock_lock. Return error code.
41928         (glthread_recursive_lock_unlock_multithreaded): Renamed from
41929         glthread_recursive_lock_unlock. Return error code.
41930         (glthread_recursive_lock_destroy_multithreaded): Renamed from
41931         glthread_recursive_lock_destroy. Return error code.
41932         (glthread_once_call): Make static.
41933         (glthread_once_multithreaded): Renamed from glthread_once.
41934         * lib/tls.h: Include <errno.h>.
41935         (glthread_tls_key_init): New macro/function.
41936         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
41937         (glthread_tls_set): New macro/function.
41938         (gl_tls_set): Define as wrapper around glthread_tls_set.
41939         (glthread_tls_key_destroy): New macro/function.
41940         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
41941         Update function declarations.
41942         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
41943         glthread_tls_get.
41944         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41945
41946 2008-08-04  Eric Blake  <ebb9@byu.net>
41947
41948         gnumakefile: use space, not TAB, outside of targets
41949         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
41950
41951 2008-08-02  Jim Meyering  <meyering@redhat.com>
41952
41953         getdate.y: avoid locale-dependent date parsing failure
41954         In Turkish locales, getdate would fail to recognize keywords
41955         containing a lowercase "i".  The solution is not to rely on
41956         locale-sensitive case-conversion.
41957         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
41958         (lookup_word): Use c_toupper in place of toupper.
41959         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
41960         Reported by Vefa Bicakci <bicave@superonline.com> in
41961         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
41962         * modules/getdate (Depends-on): Add c-ctype.
41963
41964 2008-08-02  Bruno Haible  <bruno@clisp.org>
41965
41966         * gnulib-tool (func_import): When updating or creating a .gitignore
41967         file, prepend each added line with a slash, and ignore leading slashes
41968         from the existing lines.
41969         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
41970
41971 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41972
41973         Portability fix for GNU make 3.79.1.
41974         * top/GNUmakefile: Avoid 'else COND', which older GNU make
41975         versions do not understand.
41976
41977 2008-08-01  Bruno Haible  <bruno@clisp.org>
41978
41979         Work around bug of HP-UX 10.20 cc with -0.0 literal.
41980         * tests/test-isnanf.h (zero): New variable.
41981         (main): Avoid literal -0.0f.
41982         * tests/test-isnand.h (zero): New variable.
41983         (main): Avoid literal -0.0.
41984         * tests/test-isnanl.h (zero): New variable.
41985         (main): Avoid literal -0.0L.
41986         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
41987         (test_float, test_double, test_long_double): Avoid literals -0.0f,
41988         -0.0, -0.0L.
41989         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
41990         (test_signbitd): Avoid literal -0.0.
41991         (test_signbitl): Avoid literal -0.0L.
41992         * tests/test-ceilf1.c (zero): New variable.
41993         (main): Avoid literal -0.0f.
41994         * tests/test-ceill.c (zero): New variable.
41995         (main): Avoid literal -0.0L.
41996         * tests/test-floorf1.c (zero): New variable.
41997         (main): Avoid literal -0.0f.
41998         * tests/test-floorl.c (zero): New variable.
41999         (main): Avoid literal -0.0L.
42000         * tests/test-roundf1.c (zero): New variable.
42001         (main): Avoid literal -0.0f.
42002         * tests/test-round1.c (zero): New variable.
42003         (main): Avoid literal -0.0.
42004         * tests/test-roundl.c (zero): New variable.
42005         (main): Avoid literal -0.0L.
42006         * tests/test-truncf1.c (zero): New variable.
42007         (main): Avoid literal -0.0f.
42008         * tests/test-trunc1.c (zero): New variable.
42009         (main): Avoid literal -0.0.
42010         * tests/test-truncl.c (zero): New variable.
42011         (main): Avoid literal -0.0L.
42012         * tests/test-frexp.c (zero): New variable.
42013         (main): Avoid literal -0.0.
42014         * tests/test-frexpl.c (zero): New variable.
42015         (main): Avoid literal -0.0L.
42016         * tests/test-ldexpl.c (zero): New variable.
42017         (main): Avoid literal -0.0L.
42018         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42019         (zerod, zerol): New variables.
42020         (test_function): Avoid literals -0.0, -0.0L.
42021         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42022         (zerod, zerol): New variables.
42023         (test_function): Avoid literals -0.0, -0.0L.
42024         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42025         (zerod, zerol): New variables.
42026         (test_function): Avoid literals -0.0, -0.0L.
42027         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42028         (zerod, zerol): New variables.
42029         (test_function): Avoid literals -0.0, -0.0L.
42030         * tests/test-strtod.c (zero): New variable.
42031         (main): Avoid literal -0.0.
42032         Reported by Jonathan C. Patschke <jp@centtech.com>.
42033
42034 2008-07-31  Jim Meyering  <meyering@redhat.com>
42035
42036         sha256.h: correct definition of SHA224_DIGEST_SIZE
42037         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
42038         Reported by Paulie Pena IV <paulie4@gmail.com>.
42039         Define as 224 / 8, rather than as a literal.
42040         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
42041         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
42042         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
42043
42044 2008-07-31  Bruno Haible  <bruno@clisp.org>
42045
42046         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
42047         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
42048         Reported by Jonathan Patschke <jp@centtech.com>.
42049
42050 2008-07-31  Bruno Haible  <bruno@clisp.org>
42051
42052         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
42053         Reported by Paolo Bonzini <bonzini@gnu.org>.
42054
42055 2008-07-30  Eric Blake  <ebb9@byu.net>
42056
42057         test-strtod: allow compilation without -lm
42058         * tests/test-strtod.c (main): Avoid link dependence on fabs.
42059         Reported by Dennis Clarke <blastwave@gmail.com>.
42060
42061 2008-07-28  Jim Meyering  <meyering@redhat.com>
42062
42063         bootstrap: work also when there are no .po files in po/
42064         * build-aux/bootstrap (update_po_files): Complete the change
42065         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
42066
42067 2008-07-27  Jim Meyering  <meyering@redhat.com>
42068
42069         * users.txt: Add zile.
42070
42071 2008-07-26  Ben Pfaff  <blp@gnu.org>
42072
42073         Add missing dependencies on new m4/exponent[fdl].m4 files.
42074         * modules/isnanf-nolibm: Add m4/exponentf.m4.
42075         * modules/isnand-nolibm: Add m4/exponentd.m4.
42076         * modules/isnanl-nolibm: Add m4/exponentl.m4.
42077         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
42078         m4/isnan[fdl].m4, because the macros actually used moved.
42079         Reported by Jim Meyering.
42080
42081 2008-07-14  Ben Pfaff  <blp@gnu.org>
42082
42083         Add isinf module.
42084         * lib/isinf.c: New file.
42085         * lib/math.in.h: Define isinf macro if we have decided to replace
42086         it.
42087         * m4/isinf.m4: New file.
42088         * m4/math_h.m4: Initialize and substitute variables for isinf
42089         module.
42090         * modules/isinf: New file.
42091         * modules/isinf-tests: New file.
42092         * modules/math: Add substitutions for new module.
42093         * tests/test-isinf.c: New file.
42094         * doc/posix-functions/isinf.texi: Mention new module.
42095         * MODULES.html.sh: Mention new module.
42096
42097 2008-07-14  Ben Pfaff  <blp@gnu.org>
42098
42099         Factor out some macros for use by additional modules.
42100         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
42101         exponentf.m4.
42102         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
42103         exponentd.m4.
42104         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
42105         file exponentl.m4.
42106         * m4/exponentf.m4: New file.
42107         * m4/exponentd.m4: New file.
42108         * m4/exponentl.m4: New file.
42109         * modules/isnanf: Use new file m4/exponentf.m4.
42110         * modules/isnand: Use new file m4/exponentd.m4.
42111         * modules/isnanl: Use new file m4/exponentl.m4.
42112
42113 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
42114
42115         mktime.c: normalize tp->tm_isdst value to -1/0/1.
42116         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
42117         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
42118         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
42119
42120         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
42121         readlink on platforms without PATH_MAX.
42122
42123 2008-07-21  Eric Blake  <ebb9@byu.net>
42124
42125         Warn, not fail, on stale version.
42126         * top/GNUmakefile (_curr-ver): Tone down previous patch.
42127
42128         Don't allow installation with stale devel version number.
42129         * top/GNUmakefile (_is-install-target): New macro.
42130         (_curr-ver): Forbid installation with stale version number.
42131
42132 2008-07-20  Bruno Haible  <bruno@clisp.org>
42133
42134         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
42135         TESTS_ENVIRONMENT.
42136         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
42137
42138 2008-07-20  Bruno Haible  <bruno@clisp.org>
42139
42140         * lib/c-stack.h (c_stack_action): Add documentation.
42141         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
42142
42143 2008-07-20  Bruno Haible  <bruno@clisp.org>
42144
42145         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
42146         * modules/readlink (License): Likewise.
42147
42148 2008-07-17  Eric Blake  <ebb9@byu.net>
42149
42150         * modules/c-stack (Link): Fix typo.
42151
42152         Make c-stack use libsigsegv, when available.
42153         * modules/c-stack (Depends-on): Add libsigsegv.
42154         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
42155         needed.
42156         * lib/c-stack.c (SIGSTKSZ): Define fallback.
42157         (segv_handler, overflow_handler, c_stack_action)
42158         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
42159         implementation when libsigsegv is available, but only when using
42160         the library is necessary.
42161         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
42162         comment, explaining why XSI check fails on Linux.
42163         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
42164         * tests/test-c-stack2.sh: Tweak skip message.
42165         * NEWS: Document new link-time requirements.
42166
42167 2008-07-16  Eric Blake  <ebb9@byu.net>
42168
42169         c-stack: Expose false positives when not using libsigsegv.
42170         * modules/c-stack-tests (Files): Expand test.
42171         * tests/test-c-stack.c (main): Add means to conditionally trigger
42172         non-overflow SIGSEGV.
42173         * tests/test-c-stack2.sh: New file.
42174
42175 2008-07-14  Bruno Haible  <bruno@clisp.org>
42176
42177         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
42178         Reported by Eric Blake.
42179
42180 2008-07-14  Sam Steingold  <sds@gnu.org>
42181             Bruno Haible  <bruno@clisp.org>
42182
42183         New module libsigsegv.
42184         * modules/libsigsegv: New file.
42185         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
42186         modifications.
42187         * MODULES.html.sh (Signal handling): New section.
42188
42189 2008-07-14  Bruno Haible  <bruno@clisp.org>
42190
42191         * modules/unictype/ctype-* (Description): Add the word "function".
42192         Improves the resulting doc in MODULES.html.
42193
42194 2008-07-12  Ben Pfaff  <blp@gnu.org>
42195
42196         Add longlong module.
42197         * modules/longlong: New file.
42198
42199 2008-07-12  Bruno Haible  <bruno@clisp.org>
42200
42201         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
42202         to empty.
42203
42204 2008-07-10  Ben Pfaff  <blp@gnu.org>
42205
42206         Add isnan module.
42207         * doc/posix-functions/isnan.texi: Mention new module.
42208         * lib/math.in.h: Define isnan macro if we have decided to replace
42209         it.
42210         * m4/isnan.m4: New file.
42211         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
42212         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
42213         also.
42214         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
42215         redundancy.
42216         * m4/math_h.m4: Initialize and substitute variables for isnan
42217         module.
42218         * modules/isnan: New file.
42219         * modules/isnan-tests: New file.
42220         * modules/math: Add substitutions for new module.
42221         * tests/test-isnan.c: New file.
42222         * MODULES.html.sh: Mention new module.
42223
42224 2008-07-10  Ben Pfaff  <blp@gnu.org>
42225
42226         Add isnanf module.
42227         * lib/isnanf.m4: New file.
42228         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
42229         (gl_HAVE_ISNANF_IN_LIBM): New macro.
42230         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
42231         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
42232         * modules/isnanf: New file.
42233         * modules/isnanf-tests: New file.
42234         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
42235         files.
42236         * tests/test-isnanf-nolibm.c: factored most of its contents into
42237         new file tests/test-isnanf.h.
42238         * tests/test-isnanf.h: New file.
42239         * tests/test-isnanf.c: New file.
42240         * MODULES.html.sh: Mention new module.
42241         * doc/glibc-functions/isnanf.texi: Mention new module.
42242
42243 2008-07-10  Ben Pfaff  <blp@gnu.org>
42244
42245         Add isnand module.
42246         * lib/isnand.h: New file.
42247         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
42248         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
42249         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
42250         functionality also.
42251         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
42252         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
42253         (gl_HAVE_ISNAND_IN_LIBM): New macro.
42254         * modules/isnand: New file.
42255         * modules/isnand-tests: New file.
42256         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
42257         files.
42258         * tests/test-isnand-nolibm.c: factored most of its contents into
42259         new file tests/test-isnand.h.
42260         * tests/test-isnand.h: New file.
42261         * tests/test-isnand.c: New file.
42262         * MODULES.html.sh: Mention new module.
42263
42264 2008-07-10  Ben Pfaff  <blp@gnu.org>
42265
42266         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
42267         * lib/isnand.h: Rename lib/isnand-nolibm.h.
42268         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
42269         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
42270         * modules/isnanf-nolibm: Update references to renamed files.
42271         * modules/isnand-nolibm: Likewise.
42272         * modules/isnanf-nolibm-tests: Likewise.
42273         * modules/isnand-nolibm-tests: Likewise.
42274         * lib/frexp.c: Likewise.
42275         * lib/isfinite.c: Likewise.
42276         * lib/signbitd.c: Likewise.
42277         * lib/signbitf.c: Likewise.
42278         * lib/vasnprintf.c: Likewise.
42279         * tests/test-ceilf1.c: Likewise.
42280         * tests/test-ceilf2.c: Likewise.
42281         * tests/test-floorf1.c: Likewise.
42282         * tests/test-floorf2.c: Likewise.
42283         * tests/test-frexp.c: Likewise.
42284         * tests/test-round1.c: Likewise.
42285         * tests/test-round2.c: Likewise.
42286         * tests/test-roundf1.c: Likewise.
42287         * tests/test-strtod.c: Likewise.
42288         * tests/test-trunc1.c: Likewise.
42289         * tests/test-trunc2.c: Likewise.
42290         * tests/test-truncf1.c: Likewise.
42291         * tests/test-truncf2.c: Likewise.
42292         * NEWS: Mention the renamed header files.
42293
42294 2008-07-11  Jim Meyering  <meyering@redhat.com>
42295
42296         vc-list-files: make the last-resort awk code more portable
42297         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
42298         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
42299         does not support it.
42300
42301 2008-07-10  Eric Blake  <ebb9@byu.net>
42302
42303         Work with tar's bootstrap.
42304         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
42305         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
42306         an m4 comment.
42307
42308 2008-07-09  Jim Meyering  <meyering@redhat.com>
42309
42310         posix-shell.m4: fix typo that made this test malfunction
42311         * m4/posix-shell.m4: Remove capitalization in variable name.
42312
42313 2008-07-08  Bruno Haible  <bruno@clisp.org>
42314
42315         * m4/onceonly.m4: Update comments.
42316         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42317
42318 2008-07-04  Jim Meyering  <meyering@redhat.com>
42319
42320         * users.txt: Add vc-dwim.
42321         (bison, coreutils): Use the gitweb URL.
42322
42323 2008-07-03  Jim Meyering  <meyering@redhat.com>
42324
42325         * users.txt: Add libffcall.  From Sam Steingold.
42326
42327 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
42328
42329         getdate.y: do not ignore TZ with relative day, month or year offset
42330         * lib/getdate.y (get_date): Move the tz-handling block to follow the
42331         relative-date-handling, since otherwise, the latter would clobber the
42332         sole output (an updated Start value) of the tz-handling block.
42333         * tests/test-getdate.c: Tests for the fix
42334
42335 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42336
42337         Recognize 'foo_LIBRARIES += libgnu.a'.
42338         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
42339         makefile snippet has already specified an installation location,
42340         also using '+='.
42341
42342 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
42343
42344         getdate.y: factor out common actions
42345         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
42346         Use them in place of open-coded actions.
42347
42348 2008-07-01  Simon Josefsson  <simon@josefsson.org>
42349
42350         Add self-test for getdate module.
42351         * modules/getdate-tests: New file.
42352         * tests/test-getdate.c: New file.
42353
42354 2008-06-29  Bruno Haible  <bruno@clisp.org>
42355
42356         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
42357         .gitignore.
42358         Reported by Sylvain Beucler <beuc@beuc.net>.
42359
42360 2008-06-29  Bruno Haible  <bruno@clisp.org>
42361
42362         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
42363         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
42364
42365 2008-06-29  Bruno Haible  <bruno@clisp.org>
42366
42367         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
42368         EXTRA_DIST.
42369         Reported by Sylvain Beucler <beuc@beuc.net>.
42370
42371 2008-06-26  Jim Meyering  <meyering@redhat.com>
42372
42373         make several modules depend on the "open" module
42374         This provides slightly increased consistency when opening-for-write
42375         the name of a non-directory spelled with a trailing slash.
42376         * modules/chdir-safer: Likewise.
42377         * modules/chown: Likewise.
42378         * modules/clean-temp: Likewise.
42379         * modules/copy-file: Likewise.
42380         * modules/fchdir: Likewise.
42381         * modules/fcntl-safer: Likewise.
42382         * modules/pipe: Likewise.
42383         * modules/utime: Likewise.
42384         Prompted by Eric Blake and Bruno Haible.
42385
42386 2008-06-24  Andreas Schwab  <schwab@suse.de>
42387
42388         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
42389         literals can be used as initializers for global variables.
42390
42391 2008-06-23  Eric Blake  <ebb9@byu.net>
42392
42393         Make gnulib-cache.m4 easier to diff.
42394         * gnulib-tool (func_import): Allow newlines when reading cached
42395         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
42396
42397 2008-06-23  Bruno Haible  <bruno@clisp.org>
42398
42399         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
42400         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
42401         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
42402         m4/signalblocking.m4.
42403         (gl_PREREQ_SIGACTION): Don't invoke it.
42404         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
42405         gl_PREREQ_SIG_HANDLER_H.
42406         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
42407         Don't check for sigaction here.
42408
42409 2008-06-23  Bruno Haible  <bruno@clisp.org>
42410
42411         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
42412         (install_handlers): Don't set the SA_RESETHAND flag.
42413
42414 2008-06-23  Bruno Haible  <bruno@clisp.org>
42415
42416         * m4/sigaction.m4: Comment fixes.
42417         * lib/signal.in.h: Likewise.
42418
42419 2008-06-23  Eric Blake  <ebb9@byu.net>
42420
42421         Fix typo.
42422         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
42423
42424         Avoid SA_ namespace.
42425         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
42426         Reported by Ralf Wildenhues.
42427
42428         Avoid test failure due to SA_RESTORER.
42429         * tests/test-sigaction.c (SA_MASK): New macro.
42430         (main): Avoid failing due to extension flags being set.
42431         Reported by Jim Meyering.
42432
42433         Revert use of sig-handler.h in sigprocmask.c.
42434         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
42435         it requires the existence of struct sigaction.
42436         * lib/sigprocmask.c (handler_t): Restore typedef.
42437         (rpl_signal, old_handlers): Use local type.
42438
42439 2008-06-22  Bruno Haible  <bruno@clisp.org>
42440
42441         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
42442         conditionally.
42443         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42444
42445 2008-06-22  Bruno Haible  <bruno@clisp.org>
42446
42447         * doc/posix-functions/siginterrupt.texi: Move note.
42448
42449         * lib/signal.in.h (SA_RESTART): New macro.
42450         * lib/sigaction.c: Update comment.
42451
42452         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
42453
42454         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
42455         (gl_PREREQ_SIGPROCMASK): Invoke it.
42456         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
42457
42458         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
42459
42460         * lib/sigprocmask.c: Update a comment.
42461
42462 2008-06-21  Eric Blake  <ebb9@byu.net>
42463
42464         Use sigaction module rather than signal().
42465         * modules/c-stack (Depends-on): Add sigaction.
42466         * modules/fatal-signal (Depends-on): Likewise.
42467         * modules/nanosleep (Depends-on): Likewise.
42468         * modules/sigprocmask (Files): Add sig-handler.h.
42469         * modules/sigaction (Files): Likewise.
42470         * lib/sig-handler.h (get_handler): New file, suggested by Paul
42471         Eggert.
42472         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
42473         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
42474         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
42475         (init_fatal_signals): Likewise.
42476         * lib/nanosleep.c (rpl_nanosleep): Likewise.
42477         (siginterrupt): Delete fallback.
42478         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
42479         instead.
42480         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
42481         siginterrupt.
42482
42483         New module sigaction, for mingw.
42484         * modules/sigaction: New module...
42485         * modules/sigaction-tests: ...and its test.
42486         * m4/sigaction.m4: New file.
42487         * lib/sigaction.c: Likewise.
42488         * tests/test-sigaction.c: Likewise.
42489         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
42490         * modules/signal (Makefile.am): Likewise.
42491         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
42492         needed.
42493         * doc/posix-headers/signal.texi (signal.h): Mention provided
42494         types.
42495         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
42496         that sigaction is preferable.
42497         * doc/posix-functions/sigaction.texi (sigaction): Mention new
42498         module.
42499         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42500         sigaction.
42501
42502         Improve robustness of sigprocmask by overriding signal.
42503         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
42504         is in use.
42505         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
42506         (SIGKILL, SIGSTOP): Provide fallbacks.
42507         (rpl_signal): Implement.
42508         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
42509         signal can be called inside handlers.
42510
42511         Fix nanosleep module on mingw.
42512         * modules/nanosleep (Depends-on): Add sys_select.
42513         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
42514
42515         Fix licensing of sigprocmask.
42516         * modules/raise (License): Relicense as LGPL.
42517
42518 2008-06-21  Bruno Haible  <bruno@clisp.org>
42519
42520         * lib/propername.c (proper_name_utf8): Don't use the transliterated
42521         result if it contains question marks.
42522         Reported by Michael Geng <linux@michaelgeng.de>.
42523
42524 2008-06-19  Bruno Haible  <bruno@clisp.org>
42525
42526         Fix CVS-ism.
42527         * doc/gnulib.texi: Include updated-stamp.texi.
42528         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
42529         (updated-stamp.texi): New rule.
42530         (gnulib.info): Depend on it.
42531         * doc/.gitignore: Add updated-stamp.texi.
42532         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
42533
42534 2008-06-19  Bruno Haible  <bruno@clisp.org>
42535
42536         * doc/Makefile (gnulib.info): Update and simplify dependencies.
42537         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42538
42539 2008-06-19  Eric Blake  <ebb9@byu.net>
42540
42541         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
42542         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
42543         Reported by Stepan Kasal.
42544
42545 2008-06-18  Bruno Haible  <bruno@clisp.org>
42546
42547         * lib/fatal-signal.c (init_fatal_signals): Add comment.
42548         Reported by Eric Blake.
42549
42550 2008-06-18  Eric Blake  <ebb9@byu.net>
42551
42552         Work around cygwin 1.5.25 strsignal bug.
42553         * tests/test-strsignal.c: Allow for const char *.
42554         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
42555
42556 2008-06-18  Simon Josefsson  <simon@josefsson.org>
42557
42558         * users.txt: Update URL to article and add author/date
42559         information.
42560
42561 2008-06-17  Bruno Haible  <bruno@clisp.org>
42562
42563         New macro gl_DISABLE_THREADS.
42564         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
42565         if the user did not pass --enable-threads or --disable-threads option.
42566         (gl_DISABLE_THREADS): New macro.
42567         Reported by Eric Blake <ebb9@byu.net>.
42568
42569 2008-06-17  Bruno Haible  <bruno@clisp.org>
42570
42571         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
42572         when the macro ignores it.
42573         Based on a patch by Eric Blake <ebb9@byu.net>.
42574
42575 2008-06-17  Bruno Haible  <bruno@clisp.org>
42576
42577         * modules/tls (License): Change to LGPLv2+.
42578         Reported by Eric Blake.
42579
42580 2008-06-17  Eric Blake  <ebb9@byu.net>
42581
42582         Simplify c-stack prerequisites.
42583         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
42584         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
42585         no longer requires <ucontext.h> to exist.  Optimize setrlimit
42586         check.
42587         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
42588         <sys/resource.h>.
42589
42590         Move c-stack test into testsuite.
42591         * modules/c-stack-tests: New file.
42592         * lib/c-stack.c [DEBUG]: Move test program...
42593         * tests/test-c-stack.c: ...into this new file.  Skip rather than
42594         fail test if sigaltstack is lacking.
42595         * tests/test-c-stack.sh: New driver file.
42596
42597 2008-06-16  Eric Blake  <ebb9@byu.net>
42598
42599         Use raise module consistently.
42600         * modules/fatal-signal (Depends-on): Add raise.
42601         * modules/sigprocmask (Depends-on): Likewise.
42602         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
42603         * lib/sigprocmask.c (sigprocmask): Likewise.
42604         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
42605         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
42606
42607         Fix compliance bug in sigpending.
42608         * lib/sigprocmask.c (sigpending): Return pending array via
42609         parameter, not return value.
42610
42611 2008-06-14  Eric Blake  <ebb9@byu.net>
42612
42613         Improve obstack-printf test code.
42614         * tests/test-obstack-printf.c (test_function): Fix comment, and
42615         simplify usage of obstack_* in macros.  Add a test for coverage.
42616         Reported by Bruno Haible.
42617
42618 2008-06-14  Bruno Haible  <bruno@clisp.org>
42619
42620         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
42621         array size as a constant, not as a const variable.
42622         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
42623         AC_USE_SYSTEM_EXTENSIONS.
42624         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
42625         Test whether the obstack_printf function actually exists.
42626         * modules/obstack-printf (Depends-on): Add extensions.
42627         (Include): Remove obstack.h.
42628         * modules/obstack-printf-posix (Depends-on): Add extensions.
42629         (Include): Remove obstack.h.
42630
42631 2008-06-13  Eric Blake  <ebb9@byu.net>
42632
42633         Add obstack-printf and obstack-printf-posix modules.
42634         * modules/obstack-printf: New file.
42635         * modules/obstack-printf-posix: Likewise.
42636         * MODULES.html.sh (Misc): Mention them.
42637         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42638         Likewise.
42639         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42640         Likewise.
42641         * modules/stdio (Makefile.am): Accomodate new modules.
42642         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42643         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
42644         Declare.
42645         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
42646         functions.
42647         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
42648         (gl_REPLACE_OBSTACK_PRINTF): New macros
42649         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
42650         * tests/test-obstack-printf.c: New file.
42651         * modules/obstack-printf-tests: Likewise.
42652         * modules/obstack-printf-posix-tests: Likewise.
42653
42654 2008-06-11  Bruno Haible  <bruno@clisp.org>
42655
42656         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
42657         * lib/open.c: Include errno.h.
42658         (open): Fail when attempting to write to a file that has a trailing
42659         slash.
42660         * tests/test-open.c (main): Test against trailing slash bug.
42661         * doc/posix-functions/open.texi: Mention the trailing slash bug.
42662
42663 2008-06-10  Bruno Haible  <bruno@clisp.org>
42664
42665         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
42666         for $? to work inside the trap command, with various /bin/sh-s.
42667         * tests/test-vc-list-files-cvs.sh: Likewise.
42668
42669 2008-06-10  Bruno Haible  <bruno@clisp.org>
42670
42671         * lib/acl-internal.h: Don't include gettext.h here.
42672         * lib/set-mode-acl.c: Include gettext.h here.
42673         * lib/copy-acl.c: Likewise.
42674
42675 2008-06-10  Bruno Haible  <bruno@clisp.org>
42676
42677         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
42678         * lib/wait-process.c (wait_subprocess): Likewise.
42679         * lib/execute.h (execute): Add termsigp argument.
42680         * lib/execute.c (execute): Likewise.
42681         * lib/csharpcomp.c (compile_csharp_using_pnet,
42682         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
42683         * lib/csharpexec.c (execute_csharp_using_pnet,
42684         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
42685         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
42686         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
42687         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
42688         is_jikes_present): Update.
42689         * lib/javaexec.c (execute_java_class): Update.
42690         * lib/javaversion.c (execute_and_read_line): Update.
42691         * NEWS: Document the changes.
42692         Reported by Eric Blake.
42693
42694 2008-06-10  Eric Blake  <ebb9@byu.net>
42695
42696         Add missing include.
42697         * tests/test-strstr.c (includes): Add <signal.h>.
42698         * tests/test-strcasestr.c (includes): Likewise.
42699         * tests/test-memmem.c (includes): Likewise.
42700
42701 2008-06-10  Bruno Haible  <bruno@clisp.org>
42702
42703         * lib/wait-process.c (wait_subprocess): Add an assertion.
42704
42705 2008-06-10  Bruno Haible  <bruno@clisp.org>
42706
42707         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
42708
42709 2008-06-10  Bruno Haible  <bruno@clisp.org>
42710
42711         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
42712         using alarm().
42713         * tests/test-strcasestr.c (main): Likewise.
42714         * tests/test-strstr.c (main): Likewise.
42715
42716 2008-06-09  Bruno Haible  <bruno@clisp.org>
42717
42718         Work around the Solaris 10 ACE ACLs ABI change.
42719         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
42720         declare if ACL_NO_TRIVIAL is present.
42721         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
42722         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
42723         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
42724         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
42725         define if ACL_NO_TRIVIAL is present.
42726         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
42727         and use the current ABI.
42728         (file_has_acl): Use same #if condition as elsewhere.
42729         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
42730         in use, and use the current ABI.
42731         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
42732         Reported by Jim Meyering.
42733
42734 2008-06-09  Eric Blake  <ebb9@byu.net>
42735
42736         Work around environments that (stupidly) ignore SIGALRM.
42737         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
42738         before using alarm().
42739         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42740         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42741         Reported by Ian Beckwith <ianb@erislabs.net>.
42742
42743         Produce autobuild blurb earlier in log.
42744         * modules/autobuild (configure.ac-early): Move AB_INIT here.
42745
42746 2008-06-09  Jim Meyering  <meyering@redhat.com>
42747         and OndÅ™ej Vašík  <ovasik@redhat.com>
42748
42749         utimens.c: correct kernel bug work-around
42750         OndÅ™ej Vašík found that the invalid return value of 280 indicates
42751         failure, not success, and the kernel bug we're trying to work
42752         around affects not just the utimensat call, but also the fallback
42753         futimens call.
42754         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
42755         not success.
42756         [HAVE_FUTIMENS]: Use the same work-around, here.
42757
42758 2008-06-09  Jim Meyering  <meyering@redhat.com>
42759
42760         add more guards around definition of ACE_-related code
42761         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
42762         ALLOW and ACE_OWNER are also defined.
42763
42764 2008-06-08  Bruno Haible  <bruno@clisp.org>
42765
42766         * lib/acl-internal.h: Add me as co-author.
42767         * lib/file-has-acl.c: Likewise.
42768         * lib/set-mode-acl.c: Likewise.
42769         * lib/copy-acl.c: Likewise.
42770
42771 2008-06-08  Bruno Haible  <bruno@clisp.org>
42772
42773         Add support for AIX ACLs.
42774         * lib/acl-internal.h (acl_nontrivial): New declaration.
42775         * lib/file-has-acl.c (acl_nontrivial): New function.
42776         (file_has_acl): Add implementation using AIX 4 ACL API.
42777         * lib/set-mode-acl.c (qset_acl): Likewise.
42778         * lib/copy-acl.c (qcopy_acl): Likewise.
42779
42780 2008-06-08  Bruno Haible  <bruno@clisp.org>
42781
42782         Add support for HP-UX ACLs.
42783         * lib/acl-internal.h (acl_nontrivial): New declaration.
42784         * lib/file-has-acl.c (acl_nontrivial): New function.
42785         (file_has_acl): Add implementation using HP-UX 11 ACL API.
42786         * lib/set-mode-acl.c (qset_acl): Likewise.
42787         * lib/copy-acl.c (qcopy_acl): Likewise.
42788
42789 2008-06-08  Bruno Haible  <bruno@clisp.org>
42790
42791         Add support for Cygwin ACLs.
42792         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
42793         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
42794         the chmod_or_fchmod call.
42795         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
42796
42797 2008-06-08  Bruno Haible  <bruno@clisp.org>
42798
42799         Fix bug with setuid modes in Solaris 10+ code.
42800         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
42801         succeeded, when the mode contains some special bits.
42802
42803 2008-06-08  Bruno Haible  <bruno@clisp.org>
42804
42805         Add support for Solaris 7..10 ACLs.
42806         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
42807         declarations.
42808         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
42809         functions.
42810         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
42811         * lib/set-mode-acl.c (qset_acl): Likewise.
42812         * lib/copy-acl.c (qcopy_acl): Likewise.
42813
42814 2008-06-08  Bruno Haible  <bruno@clisp.org>
42815
42816         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
42817         declaration.
42818         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
42819         (acl_access_nontrivial): Remove MacOS X case.
42820         (file_has_acl): Use acl_extended_nontrivial.
42821         * lib/copy-acl.c (qcopy_acl): Likewise.
42822
42823 2008-06-08  Bruno Haible  <bruno@clisp.org>
42824
42825         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
42826
42827 2008-06-08  Jim Meyering  <meyering@redhat.com>
42828
42829         * modules/acl (Maintainer): Add Bruno Haible.
42830
42831 2008-06-07  Bruno Haible  <bruno@clisp.org>
42832
42833         Improve support for Tru64 ACLs.
42834         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
42835         ACL on OSF/1.
42836
42837 2008-06-07  Bruno Haible  <bruno@clisp.org>
42838
42839         Add support for MacOS X ACLs.
42840         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
42841         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
42842         * lib/set-mode-acl.c (qset_acl): Likewise.
42843         * lib/copy-acl.c (qcopy_acl): Likewise.
42844
42845 2008-06-07  Bruno Haible  <bruno@clisp.org>
42846
42847         Fix memory leak introduced on 2008-05-22.
42848         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
42849         use.
42850
42851 2008-06-07  Bruno Haible  <bruno@clisp.org>
42852
42853         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
42854         to construct an empty ACL.
42855
42856 2008-06-07  Bruno Haible  <bruno@clisp.org>
42857
42858         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
42859         precisely.
42860         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
42861
42862 2008-06-07  Bruno Haible  <bruno@clisp.org>
42863
42864         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
42865         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
42866
42867 2008-06-07  Bruno Haible  <bruno@clisp.org>
42868
42869         * doc/posix-functions/_setjmp.texi: Explain the use of this function
42870         regardless of POSIX.
42871         * doc/posix-functions/_longjmp.texi: Likewise.
42872         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
42873         SystemV platform in this case.
42874
42875 2008-06-06  Eric Blake  <ebb9@byu.net>
42876
42877         Document abort() bugs.
42878         * doc/posix-functions/abort.texi (abort): Mention anomalies.
42879
42880         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
42881         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
42882         sigsetjmp.
42883         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
42884         siglongjmp, but only as a macro.
42885         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
42886         is obsolete.
42887         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
42888
42889         Tweak documentation to cover cygwin argz bugs.
42890         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
42891         argz bug fix; no code change needed since no cygwin releases
42892         occurred between the last fix and the bug being tested.
42893         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
42894         module and recently fixed cygwin bugs.
42895         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
42896         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
42897         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
42898         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
42899         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
42900         Likewise.
42901         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
42902         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
42903         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
42904         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
42905         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
42906         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
42907         Likewise.
42908
42909         Avoid gcc warning on cygwin.
42910         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
42911         !ACL_NO_TRIVIAL]: Avoid unused variable.
42912
42913 2008-06-05  Eric Blake  <ebb9@byu.net>
42914
42915         Be tolerant of UNKNOWN version in gnulib-tool test dir.
42916         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
42917         git-version-gen fails to come up with a version.
42918         Reported by Simon Josefsson.
42919
42920 2008-06-05  Jim Meyering  <meyering@redhat.com>
42921             Paul Eggert  <eggert@cs.ucla.edu>
42922
42923         utimens.c: work around a probable Linux kernel bug
42924         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
42925         appears to be a kernel bug that causes utimensat to return 280
42926         instead of 0, indicating success.
42927
42928 2008-06-04  Bruno Haible  <bruno@clisp.org>
42929
42930         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
42931         2008-06-01 commit.
42932
42933 2008-06-04  Bruno Haible  <bruno@clisp.org>
42934
42935         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
42936         * lib/file-has-acl.c (acl_access_nontrivial): New function.
42937         (file_has_acl): Use it. Save errno afterwards.
42938         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
42939
42940 2008-06-03  Bruno Haible  <bruno@clisp.org>
42941
42942         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
42943         draft code. Simplify #ifs.
42944         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
42945         Put Solaris code after POSIX-draft code. Fix comments regarding
42946         Solaris 10, HP-UX. Mention Cygwin.
42947         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
42948
42949 2008-06-03  Eric Blake  <ebb9@byu.net>
42950
42951         Provide fallback for older kernels.
42952         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
42953         Provide runtime fallback if kernel lacks support.
42954         Reported by Mike Frysinger.
42955
42956 2008-06-02  Bruno Haible  <bruno@clisp.org>
42957
42958         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
42959         it exists.
42960
42961 2008-06-02  Bruno Haible  <bruno@clisp.org>
42962
42963         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
42964         * lib/copy-acl.c (qcopy_acl): Update comment.
42965
42966 2008-06-02  Bruno Haible  <bruno@clisp.org>
42967
42968         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
42969         like ACL APIs.
42970
42971 2008-06-02  Bruno Haible  <bruno@clisp.org>
42972
42973         * tests/test-file-has-acl.sh: Use different code for Cygwin.
42974         * tests/test-set-mode-acl.sh: Likewise.
42975         * tests/test-copy-acl.sh: Likewise.
42976         * tests/test-copy-file.sh: Likewise.
42977
42978 2008-06-02  Bruno Haible  <bruno@clisp.org>
42979
42980         * tests/test-file-has-acl.sh: Remove unused code.
42981
42982 2008-06-01  Bruno Haible  <bruno@clisp.org>
42983
42984         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
42985         (copy_acl): Just a wrapper around qcopy_acl that emits the error
42986         messages.
42987         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
42988
42989 2008-06-01  Bruno Haible  <bruno@clisp.org>
42990
42991         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
42992         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
42993         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
42994         APIs.
42995         * modules/acl-tests (configure.ac): Remove tests now contained in
42996         m4/acl.m4.
42997
42998 2008-06-02  Jim Meyering  <meyering@redhat.com>
42999
43000         announce-gen: use a better key-server host name
43001         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
43002         it may be more consistently reliable.  Suggested by Werner Koch
43003         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
43004
43005 2008-06-01  Bruno Haible  <bruno@clisp.org>
43006
43007         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
43008         Reported by Voroskoi Andras <voroskoi@gmail.com>.
43009
43010 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
43011
43012         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
43013
43014 2008-06-01  Bruno Haible  <bruno@clisp.org>
43015
43016         New ACL tests.
43017         * tests/test-file-has-acl.sh: New file.
43018         * tests/test-file-has-acl.c: New file.
43019         * tests/test-set-mode-acl.sh: New file.
43020         * tests/test-set-mode-acl.c: New file.
43021         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
43022         * tests/test-copy-acl.c: New file.
43023         * modules/acl-tests: New file, based on modules/copy-file-tests.
43024         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
43025         (Depends-on): Add acl-tests.
43026         (configure.ac): Remove checks.
43027         (Makefile.am): Don't create test-sameacls program here any more.
43028
43029 2008-06-01  Bruno Haible  <bruno@clisp.org>
43030
43031         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
43032         * tests/test-sameacls.c: Include progname.h.
43033         (main): Invoke set_program_name. Portability fixes for MacOS X,
43034         Solaris, HP-UX.
43035
43036 2008-06-01  Bruno Haible  <bruno@clisp.org>
43037
43038         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
43039         function.
43040         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
43041
43042 2008-06-01  Bruno Haible  <bruno@clisp.org>
43043
43044         * modules/rpmatch (Depends-on): Add strdup.
43045
43046 2008-06-01  Bruno Haible  <bruno@clisp.org>
43047
43048         * lib/pipe.c: Include unistd-safer.h.
43049         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
43050         * modules/pipe (Depends-on): Add unistd-safer.
43051
43052 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43053
43054         * modules/autobuild (configure.ac): Call AB_INIT.
43055
43056 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43057
43058         * tests/test-getaddrinfo.c: Don't print debug messages by default.
43059         Suggested by Bruno Haible <bruno@clisp.org>.
43060
43061 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43062
43063         * tests/test-base64.c: Cast size_t to unsigned long when invoking
43064         printf.  Use %lu instead of %d.  Reported by Bruno Haible
43065         <bruno@clisp.org>.
43066
43067 2008-05-29  Eric Blake  <ebb9@byu.net>
43068
43069         Prefer new POSIX 200x interfaces over futimesat.
43070         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
43071         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
43072         when available.
43073         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
43074
43075 2008-05-28  Bruno Haible  <bruno@clisp.org>
43076
43077         * modules/stpcpy (License): Change to LGPLv2+.
43078         Requested by David Lutterkort <dlutter@redhat.com>.
43079
43080 2008-05-27  Bruno Haible  <bruno@clisp.org>
43081
43082         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
43083         current mingw.
43084         Reported by Jose E. Marchesi <jemarch@gnu.org>.
43085
43086 2008-05-27  Bruno Haible  <bruno@clisp.org>
43087
43088         * modules/iconv_open (Link): New section, from module 'iconv'.
43089         * modules/striconv (Link): Likewise.
43090         * modules/striconveh (Link): Likewise.
43091         * modules/xstriconv (Link): Likewise.
43092         * modules/unicodeio (Link): Likewise.
43093         * modules/propername (Link): Likewise.
43094         Reported by Jim Meyering.
43095
43096 2008-05-26  Jim Meyering  <meyering@redhat.com>
43097
43098         sha256: do not artificially restrict buffer length to be < 2^32
43099         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
43100         uint32_t to size_t.
43101         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
43102         to match.
43103
43104         avoid unaligned access errors, e.g., on sparc
43105         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
43106         direct access through a possibly-unaligned uint64* pointer.
43107         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
43108         direct access through a possibly-unaligned uint32* pointer.
43109         Prompted by this patch from Tom "spot" Callaway:
43110         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
43111
43112         sha512.c: fix typo in comment
43113         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
43114
43115 2008-05-25  Bruno Haible  <bruno@clisp.org>
43116
43117         * lib/set-mode-acl.c: Renamed from lib/acl.c.
43118         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
43119         (Makefile.am): Update lib_SOURCES.
43120
43121 2008-05-25  Bruno Haible  <bruno@clisp.org>
43122
43123         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
43124
43125 2008-05-25  Jim Meyering  <meyering@redhat.com>
43126
43127         useless-if-before-free: freed expr may have white-space differences
43128         * build-aux/useless-if-before-free: Recognize cases in which the
43129         freed expression differs from the tested one in embedded white
43130         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
43131         $1 was used, so we can't make any regexp shy.  Improved tests now
43132         detect this.
43133
43134         useless-if-before-free: accept white space in the expression.
43135         * build-aux/useless-if-before-free: For now, any white space
43136         in the expression must be identical in the free argument.
43137
43138         useless-if-before-free: efficiency tweak
43139         * build-aux/useless-if-before-free: Make the expression-matching
43140         regexp "shy".
43141         Make the *outer* regexp shy, not the expr-matching one.
43142
43143         update code-in-comment to accept cast of free arg
43144         * build-aux/useless-if-before-free: Update regexp.
43145
43146 2008-05-25  Bruno Haible  <bruno@clisp.org>
43147
43148         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
43149         * modules/copy-file-tests (Files, Makefile.am): Update.
43150         * tests/test-copy-file.c (func_test_copy): Update.
43151
43152 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
43153
43154         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
43155
43156 2008-05-23  Bruno Haible  <bruno@clisp.org>
43157
43158         Improve support for ACLs on OSF/1.
43159         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
43160         Remove fallback for unknown flavors of ACLs.
43161
43162 2008-05-22  Bruno Haible  <bruno@clisp.org>
43163
43164         Add support for ACLs on OSF/1.
43165         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
43166         replacements.
43167         (acl_free_text): New macro fallback.
43168         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
43169         acl_free.
43170         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
43171         acl_free_text function. Require AC_C_INLINE.
43172
43173 2008-05-22  Bruno Haible  <bruno@clisp.org>
43174
43175         Make copy_acl work on MacOS X 10.5.
43176         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
43177         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
43178         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
43179         If MODE_INSIDE_ACL, don't assume that every system has the same text
43180         representation for ACLs as FreeBSD.
43181         * lib/copy-acl.c (copy_acl): Add support for platforms with
43182         !MODE_INSIDE_ACL.
43183         * lib/file-has-acl.c (file_has_acl): Likewise.
43184         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
43185         FreeBSD, MacOS X, or IRIX, respectively.
43186
43187 2008-05-22  Bruno Haible  <bruno@clisp.org>
43188
43189         * lib/acl.h: Don't include <sys/acl.h>.
43190         (GETACLCNT): Move fallback to lib/acl-internal.h.
43191         * lib/acl-internal.h: Include <sys/acl.h> here.
43192         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
43193
43194 2008-05-22  Bruno Haible  <bruno@clisp.org>
43195
43196         Split off copy_acl function to separate file.
43197         * lib/copy-acl.c: New file, extracted from lib/acl.c.
43198         * lib/acl.c (copy_acl): Moved function to separate file.
43199         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
43200         * modules/acl (Files): Add lib/copy-acl.c.
43201         (Makefiles.am): Augment lib_SOURCES.
43202
43203 2008-05-22  Bruno Haible  <bruno@clisp.org>
43204
43205         * modules/copy-file-tests: New file.
43206         * tests/test-copy-file.sh: New file.
43207         * tests/test-copy-file.c: New file.
43208         * tests/test-copy-file-sameacls.c: New file.
43209
43210 2008-05-22  Eric Blake  <ebb9@byu.net>
43211
43212         Avoid gcc warning.
43213         * tests/test-memcmp.c (main): Pass NULL indirectly.
43214
43215 2008-05-21  Bruno Haible  <bruno@clisp.org>
43216
43217         Add reference doc about ACLs.
43218         * doc/acl-resources.txt: New file.
43219         * doc/acl-cygwin.txt: New file.
43220
43221 2008-05-21  Bruno Haible  <bruno@clisp.org>
43222
43223         Avoid one more warning from gcc.
43224         * lib/vasnprintf.c (IF_LINT): Update comments.
43225         (VASNPRINTF): Use it also for the 'prefix' array initializer.
43226
43227 2008-05-21  Jim Meyering  <meyering@redhat.com>
43228
43229         avoid a warning from gcc
43230         * lib/vasnprintf.c (IF_LINT): Define.
43231         (scale10_round_decimal_long_double):
43232         Use it to avoid a "may be used uninitialized" warning.
43233         (scale10_round_decimal_double): Likewise.
43234
43235 2008-05-21  Simon Josefsson  <simon@josefsson.org>
43236
43237         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
43238         declared.
43239
43240 2008-05-20  Bruno Haible  <bruno@clisp.org>
43241
43242         * tests/test-memcmp.c (main): Test also the sign of the result. Test
43243         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
43244
43245 2008-05-20  Simon Josefsson  <simon@josefsson.org>
43246
43247         * modules/memcmp-tests: New file.
43248         * tests/test-memcmp.c: New file.
43249
43250 2008-05-19  Bruno Haible  <bruno@clisp.org>
43251
43252         * modules/propername (Notice, configure.ac): Put quoted "..." into
43253         --keyword option.
43254         * lib/propername.h: Update comments accordingly.
43255         Reported by Eric Blake.
43256
43257 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
43258
43259         * modules/getpass-gnu (Depends-on): Add fseeko.
43260
43261 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43262
43263         * modules/base64-tests: New file.
43264
43265 2008-05-19  Bo Borgerson <gigabo@gmail.com>
43266
43267         * lib/base64.c (base64_decode_ctx): If a decode context structure
43268         was passed in use it to ignore newlines.  If a context structure
43269         was _not_ passed in, continue to treat newlines as garbage (this
43270         is the historical behavior).  Formerly base64_decode.
43271         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43272         takes a decode context structure.
43273         * lib/base64.h (base64_decode): Macro for four-argument calls.
43274         (base64_decode_alloc): Likewise.
43275         * lib/base64.c (base64_decode_ctx): If a decode context structure
43276         was passed in use it to ignore newlines.  If a context structure
43277         was _not_ passed in, continue to treat newlines as garbage (this
43278         is the historical behavior).  Formerly base64_decode.
43279         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43280         takes a decode context structure.
43281         * lib/base64.h (base64_decode): Macro for four-argument calls.
43282         (base64_decode_alloc): Likewise.
43283
43284 2008-05-19  Jim Meyering  <meyering@redhat.com>
43285
43286         avoid a warning from gcc
43287         * lib/trim.c (IF_LINT): Define.
43288         (trim2): Use it to avoid a "may be used uninitialized" warning.
43289
43290         Fix doc typo.
43291         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
43292
43293 2008-05-19  Bruno Haible  <bruno@clisp.org>
43294
43295         * doc/glibc-functions/getpass.texi: Document limits of other
43296         implementations.
43297
43298 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43299             Bruno Haible <bruno@clisp.org>
43300
43301         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
43302
43303 2008-05-18  Bruno Haible  <bruno@clisp.org>
43304
43305         * modules/propername: New file, from GNU gettext.
43306         * lib/propername.h: New file, from GNU gettext.
43307         * lib/propername.c: New file, from GNU gettext.
43308         * MODULES.html.sh (Internationalization functions): Add propername.
43309
43310 2008-05-16  Jim Meyering  <meyering@redhat.com>
43311             Bruno Haible  <bruno@clisp.org>
43312
43313         Avoid some warnings from "gcc -Wshadow".
43314         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
43315
43316 2008-05-15  Eric Blake  <ebb9@byu.net>
43317
43318         Extend previous patch to cygwin 1.7.0.
43319         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
43320         fast implementation in cygwin >= 1.7.0.
43321         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43322         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43323
43324 2008-05-15  Bruno Haible  <bruno@clisp.org>
43325
43326         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
43327         implementation in glibc >= 2.9.
43328         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43329         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43330
43331 2008-05-15  Bruno Haible  <bruno@clisp.org>
43332
43333         * MODULES.html.sh (Internationalization functions): Remove linebreak.
43334         (Unicode string functions): Add unilbrk/*.
43335         Reported by Karl Berry.
43336
43337 2008-05-15  Eric Blake  <ebb9@byu.net>
43338
43339         Fix violation of <stdbool.h> replacement in regex.
43340         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
43341         * lib/regexec.c (re_search_internal): Likewise.
43342         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
43343
43344 2008-05-15  Jim Meyering  <meyering@redhat.com>
43345
43346         avoid distracting test output when git or cvs is not found
43347         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
43348         * tests/test-vc-list-files-git.sh: Likewise.
43349
43350 2008-05-15  Eric Blake  <ebb9@byu.net>
43351
43352         Glibc finally accepted the memmem speedup code, bugzilla #5514.
43353         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
43354         glibc version.
43355         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43356         * doc/posix-functions/strstr.texi (strstr): Likewise.
43357         * lib/str-two-way.h (MAX): Sychronize with glibc.
43358
43359 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
43360
43361         * lib/regcomp.c (optimize_utf8): Add a note on why we test
43362         opr.ctx_type.
43363         (calc_first): Initialize constraint field.
43364         (duplicate_node_closure): Use it instead of special casing ANCHORS.
43365         Fix grammar.
43366         (duplicate_node): Merge constraint field for all node types.
43367         (calc_eclosure_iter): Look at constraint field for all node types.
43368         * lib/regex_internal.c (create_cd_newstate): Don't look at
43369         opr.ctx_type.
43370
43371 2008-05-14  Bruno Haible  <bruno@clisp.org>
43372
43373         Help GCC to do better code generation.
43374         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
43375         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
43376         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
43377         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
43378         Declare with attribute 'malloc' if supported.
43379
43380 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
43381
43382         use "echo STR|wc -c" rather than unportable "expr length STR"
43383         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
43384         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
43385
43386 2008-05-14  Jim Meyering  <meyering@redhat.com>
43387
43388         use dd ibs=$n count=1 ... rather than less-portable head -c$n
43389         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
43390         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
43391         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
43392         via Collin Lasse.
43393
43394 2008-05-14  Eric Blake  <ebb9@byu.net>
43395
43396         Avoid quadratic growth in gl_LIBSOURCES.
43397         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
43398         Suggested by Bruno Haible.
43399
43400         Test xmemdup0.
43401         * modules/xmemdup0-tests: New file.
43402         * tests/test-xmemdup0.c: Likewise.
43403
43404 2008-05-13  Eric Blake  <ebb9@byu.net>
43405
43406         Split xmemdup0 into its own module.
43407         * modules/xmemdup0: New file.
43408         * lib/xmemdup0.h: Likewise.
43409         * lib/xmemdup0.c: Likewise.
43410         * MODULES.html.sh (Memory management functions): Add xmemdup0.
43411         * lib/xalloc.h (xmemdup0): Remove.
43412         * lib/xmalloc.c (xmemdup0): Likewise.
43413
43414 2008-05-13  Eric Blake  <ebb9@byu.net>
43415             Bruno Haible  <bruno@clisp.org>
43416
43417         Reduce number of forks required during autoconf.
43418         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
43419         and gl_LIBSOURCES_DIR.
43420         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
43421         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
43422         m4_syscmd per file.
43423         <m4_foreach_w>: Move...
43424         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
43425
43426 2008-05-13  Eric Blake  <ebb9@byu.net>
43427
43428         * gnulib-tool: Fix various comment typos.
43429
43430 2008-05-12  Bruno Haible  <bruno@clisp.org>
43431
43432         Tailor the linebreaking algorithm.
43433         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
43434
43435 2008-05-12  Bruno Haible  <bruno@clisp.org>
43436
43437         Update to Unicode 5.0.0.
43438         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
43439         LBP_JV, LBP_JT. Redistribute values.
43440         (unilbrk_table): Change size.
43441         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
43442         Unicode TR#14 rev. 22.
43443         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
43444         LBP_JV, LBP_JT. Redistribute values.
43445         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
43446         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
43447         Update.
43448         * lib/unilbrk/lbrkprop1.h: Regenerated.
43449         * lib/unilbrk/lbrkprop2.h: Regenerated.
43450         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
43451         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
43452         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
43453         Likewise.
43454         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
43455         Likewise.
43456         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
43457         result.
43458         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
43459         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
43460         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
43461         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
43462         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
43463         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
43464
43465 2008-05-11  Bruno Haible  <bruno@clisp.org>
43466
43467         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
43468
43469 2008-05-11  Bruno Haible  <bruno@clisp.org>
43470
43471         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
43472         * modules/unilbrk/gen-lbrk: New file.
43473
43474 2008-05-11  Bruno Haible  <bruno@clisp.org>
43475
43476         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
43477         * m4/sha512.m4 (gl_SHA512): Likewise.
43478
43479 2008-05-11  Jim Meyering  <meyering@redhat.com>
43480
43481         New modules: crypto/sha256, crypto/sha512 (from coreutils)
43482         * modules/crypto/sha256: New file.
43483         * modules/crypto/sha512: Likewise.
43484         * lib/sha256.c: Likewise.
43485         * lib/sha256.h: Likewise.
43486         * lib/sha512.c: Likewise.
43487         * lib/sha512.h: Likewise.
43488         * lib/u64.h: Likewise.
43489         * m4/sha256.m4: Likewise.
43490         * m4/sha512.m4: Likewise.
43491         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
43492
43493 2008-05-10  Bruno Haible  <bruno@clisp.org>
43494
43495         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
43496         (Input/Output <stdio.h>): Add xprintf.
43497         (Signal handling <signal.h>): Add strsignal.
43498         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
43499         (Core language properties): Add func.
43500         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
43501         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
43502         strings.
43503         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
43504         (Input/output): New section.
43505         (File system functions): Add openat-die, stat-macros.
43506         (Networking functions): Add sockets.
43507         (Unicode string functions): Add unictype/*.
43508         (Support for building libraries and executables): Add gperf.
43509         (Support for building documentation): Add agpl-3.0.
43510         (Misc): Add nocrash.
43511
43512 2008-05-10  Bruno Haible  <bruno@clisp.org>
43513
43514         * modules/unictype/gen-ctype: New file.
43515
43516 2008-05-10  Jim Meyering  <meyering@redhat.com>
43517
43518         Make chdir-safer.c more efficient on a system with no symlinks.
43519         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
43520         also if ELOOP is zero.  Suggested by Bruno Haible.
43521
43522         Make chdir-safer.c slightly safer.
43523         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
43524         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
43525
43526         Avoid compile failure on systems without ELOOP (like mingw).
43527         * lib/chdir-safer.c (ELOOP): Define if not already defined.
43528         Reported by Bruno Haible.
43529
43530 2008-05-10  Bruno Haible  <bruno@clisp.org>
43531
43532         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
43533         (is_utf8_encoding): Use a case-insensitive comparison.
43534         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
43535         streq.
43536
43537 2008-05-10  Bruno Haible  <bruno@clisp.org>
43538
43539         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
43540         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
43541         * lib/unilbrk/ulc-common.h (iconv_string_length,
43542         iconv_string_keeping_offsets): Remove declarations.
43543         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
43544         Don't include <iconv.h>, streq.h, xsize.h.
43545         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
43546         conversion.
43547         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
43548         <iconv.h>, streq.h, xsize.h.
43549         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
43550         conversion.
43551         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
43552         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
43553         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
43554         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
43555
43556 2008-05-10  Bruno Haible  <bruno@clisp.org>
43557
43558         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
43559         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
43560
43561         * modules/unilbrk/u32-width-linebreaks-tests: New file.
43562         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
43563
43564         * modules/unilbrk/u16-width-linebreaks-tests: New file.
43565         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
43566
43567         * modules/unilbrk/u8-width-linebreaks-tests: New file.
43568         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
43569
43570         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
43571         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
43572
43573         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
43574         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
43575
43576         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
43577         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
43578
43579         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
43580         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
43581
43582 2008-05-10  Bruno Haible  <bruno@clisp.org>
43583
43584         Split up 'linebreak' module.
43585         * lib/unilbrk.h: New file, based on lib/linebreak.h.
43586         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
43587         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
43588         modifications.
43589         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
43590         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
43591         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
43592         lib/linebreak.c.
43593         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
43594         lib/linebreak.c.
43595         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
43596         lib/linebreak.c.
43597         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
43598         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
43599         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
43600         lib/linebreak.c.
43601         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
43602         lib/linebreak.c.
43603         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
43604         lib/linebreak.c.
43605         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
43606         lib/linebreak.c.
43607         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
43608         lib/linebreak.c.
43609         * modules/unilbrk/base: New file.
43610         * modules/unilbrk/tables: New file.
43611         * modules/unilbrk/u8-possible-linebreaks: New file.
43612         * modules/unilbrk/u16-possible-linebreaks: New file.
43613         * modules/unilbrk/u32-possible-linebreaks: New file.
43614         * modules/unilbrk/ulc-common: New file.
43615         * modules/unilbrk/ulc-possible-linebreaks: New file.
43616         * modules/unilbrk/u8-width-linebreaks: New file.
43617         * modules/unilbrk/u16-width-linebreaks: New file.
43618         * modules/unilbrk/u32-width-linebreaks: New file.
43619         * modules/unilbrk/ulc-width-linebreaks: New file.
43620         * lib/linebreak.h: Remove file.
43621         * lib/linebreak.c: Remove file.
43622         * m4/linebreak.m4: Remove file.
43623         * modules/linebreak: Remove file.
43624         * NEWS: Mention the changes.
43625
43626 2008-05-09  Eric Blake  <ebb9@byu.net>
43627
43628         Add xmemdup0.
43629         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
43630         implementation.
43631         * lib/xmalloc.c (xmemdup0): New C implementation.
43632
43633 2008-05-08  Bruno Haible  <bruno@clisp.org>
43634
43635         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
43636
43637 2008-05-07  Eric Blake  <ebb9@byu.net>
43638
43639         Support cross-compilation of <wctype.h>.
43640         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
43641         AC_CACHE_CHECK.
43642
43643 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
43644
43645         * build-aux/vc-list-files: Add support for bzr.
43646
43647 2008-05-03  Jim Meyering  <meyering@redhat.com>
43648
43649         avoid failed assertion with tight malloc
43650         * tests/test-getndelim2.c: Correct an off-by-one assertion.
43651
43652 2008-05-03  Simon Josefsson  <simon@josefsson.org>
43653
43654         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
43655         are needed from arpa/inet.h.
43656         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
43657         Reported by Bruno Haible.
43658
43659 2008-05-02  Jim Meyering  <meyering@redhat.com>
43660
43661         avoid compilation error on FreeBSD 6
43662         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
43663
43664 2008-05-01  Jim Meyering  <meyering@redhat.com>
43665
43666         useless-if-before-free: correct --help's exit status description
43667         * build-aux/useless-if-before-free (usage): Like grep, exit 0
43668         for one or more matches, etc.  Reported by Bruno Haible.
43669
43670         vc-list-files: make the stand-alone gnulib test work
43671         * modules/vc-list-files-tests (configure.ac):
43672         Define and AC_SUBST abs_aux_dir.
43673         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
43674         $(abs_top_srcdir) to each script and having each of them
43675         duplicate the work of setting PATH, set PATH here, using
43676         the new variable, abs_aux_dir instead.
43677         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
43678         * tests/test-vc-list-files-git.sh: Likewise.
43679         Reported by Bruno Haible.
43680
43681 2008-05-01  Bruno Haible  <bruno@clisp.org>
43682
43683         * lib/getndelim2.c (getndelim2): Fix newsize computation during
43684         reallocation. Rename 'done' to 'found_delimiter'.
43685
43686 2008-05-01  Jim Meyering  <meyering@redhat.com>
43687
43688         vc-list-files: accommodate /bin/sh like the one from Solaris 10
43689         * build-aux/vc-list-files: Use `...`, not $(...).
43690
43691 2008-04-30  Jim Meyering  <meyering@redhat.com>
43692
43693         add tests for vc-list-files
43694         * modules/vc-list-files-tests: New module.
43695         * tests/test-vc-list-files-cvs.sh: New file.
43696         * tests/test-vc-list-files-git.sh: New file.
43697
43698         avoid a warning from gcc
43699         * lib/getndelim2.c (IF_LINT): Define.
43700         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
43701
43702         vc-list-files: work properly with build-aux/cvsu, too
43703         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
43704         to all cvs-based clauses.
43705
43706         vc-list-files: work properly in the CVS+awk case, too
43707         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
43708
43709         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
43710         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
43711         take more than one file argument, so .  Add quotes, just in case $dir
43712         ever contains a shell meta-character.  Prompted by Soren Hansen in
43713         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
43714
43715 2008-04-29  Eric Blake  <ebb9@byu.net>
43716
43717         Optimize getndelim2 to use block operations when possible.
43718         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
43719         freadseek, and memchr2.
43720         * lib/getndelim2.c (getndelim2): Use them for block reads.
43721
43722 2008-04-29  Bruno Haible  <bruno@clisp.org>
43723
43724         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
43725         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43726         * modules/inet_ntop (Depends-on): Add extensions.
43727         * modules/inet_pton (Depends-on): Likewise.
43728         Reported by Simon Josefsson.
43729
43730 2008-04-29  Jim Meyering  <meyering@redhat.com>
43731
43732         When the is more than one match in a block, match all of them.
43733         * build-aux/useless-if-before-free: Iterate through each block
43734         until there are no more matches.
43735
43736         Fix broken useless-if-before-free script.
43737         * build-aux/useless-if-before-free: Fix typo: missing "?" after
43738         the expression to match cast of argument to free-like function.
43739
43740 2008-04-29  Eric Blake  <ebb9@byu.net>
43741
43742         Use new header.
43743         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
43744
43745 2008-04-29  Jim Meyering  <meyering@redhat.com>
43746
43747         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
43748         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
43749         by gnulib to exist and to declare e.g., inet_ntop.
43750         Don't include "inet_ntop.h", now removed.
43751
43752         * m4/arpa_inet_h.m4: Remove trailing blanks.
43753
43754 2008-04-29  Eric Blake  <ebb9@byu.net>
43755
43756         Silence valgrind on safe reads beyond potential array bounds.
43757         * lib/rawmemchr.valgrind: New file.
43758         * lib/strchrnul.valgrind: Likewise.
43759         * modules/rawmemchr (Files): Distribute new file.
43760         * modules/strchrnul (Files): Likewise.
43761         Suggested by Bruno Haible.
43762
43763 2008-04-29  Bruno Haible  <bruno@clisp.org>
43764
43765         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
43766         (inet_ntop, inet_pton): Change portability warning's wording.
43767         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
43768         Invoke gl_CHECK_NEXT_HEADERS.
43769         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
43770         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
43771         set ARPA_INET_H.
43772         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43773         * modules/arpa_inet (Description): No longer only for systems that
43774         lack it.
43775         (Depends-on): Add include_next.
43776         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
43777         HAVE_ARPA_INET_H.
43778
43779 2008-04-29  Jim Meyering  <meyering@redhat.com>
43780
43781         * modules/mkdir (License): Re-license as LGPLv2+.
43782
43783 2008-04-29  Bruno Haible  <bruno@clisp.org>
43784
43785         * modules/rawmemchr (Maintainer): Set to Eric.
43786         * modules/strchrnul (Maintainer): Likewise.
43787
43788 2008-04-29  Simon Josefsson  <simon@josefsson.org>
43789
43790         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
43791         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
43792
43793         * modules/arpa_inet (arpa/inet.h): Use them.
43794
43795 2008-04-28  Eric Blake  <ebb9@byu.net>
43796
43797         Test getndelim2.
43798         * modules/getndelim2-tests: New file.
43799         * tests/test-getndelim2.c: Likewise.
43800         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
43801         stream.
43802         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
43803
43804         * MODULES.html.sh: Document new module.
43805
43806 2008-04-20  Bruno Haible  <bruno@clisp.org>
43807
43808         * lib/c-stack.c (die): Use raise.
43809         * modules/c-stack (Depends-on): Add raise.
43810
43811 2008-04-28  Bruno Haible  <bruno@clisp.org>
43812
43813         Expect rpmatch to be declared.
43814         * lib/yesno.c (rpmatch): Remove declaration.
43815
43816         Declare rpmatch.
43817         * lib/stdlib.in.h (rpmatch): New declaration.
43818         * lib/rpmatch.c: Include <stdlib.h> first.
43819         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
43820         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
43821         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
43822         HAVE_RPMATCH.
43823         * modules/rpmatch (Depends-on): Add stdlib, extensions.
43824         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43825         (Include): Set to <stdlib.h>.
43826         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
43827         HAVE_RPMATCH.
43828         * NEWS: Document the change.
43829
43830 2008-04-28  Bruno Haible  <bruno@clisp.org>
43831
43832         Change rpmatch to use nl_langinfo when appropriate.
43833         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
43834         (N_): New macro.
43835         (localized_pattern): New function/macro.
43836         (try): Remove match, nomatch arguments. Copy the pattern into safe
43837         memory before caching it.
43838         (rpmatch): Use localized_pattern. Add translator comments.
43839         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
43840         Suggested by Eric Blake.
43841         * modules/rpmatch (Depends-on): Add stdbool.
43842
43843 2008-04-28  Eric Blake  <ebb9@byu.net>
43844
43845         Add rawmemchr module, matching glibc.
43846         * modules/string (Makefile.am): New indicator.
43847         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
43848         * lib/string.in.h (rawmemchr): Declare when appropriate.
43849         * modules/rawmemchr: New file.
43850         * m4/rawmemchr.m4: Likewise.
43851         * lib/rawmemchr.c: Likewise.
43852         * modules/rawmemchr-tests: Likewise.
43853         * tests/test-rawmemchr.c: Likewise.
43854         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
43855         module.
43856         * modules/strchrnul (Depends-on): Add rawmemchr.
43857         * lib/strchrnul.c (strchrnul): Optimize a corner case.
43858
43859         Whitespace cleanup.
43860         * tests/test-strchrnul.c: Reindent.
43861         * lib/strchrnul.c: Likewise.
43862
43863         Optimize and test strchrnul.
43864         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
43865         * modules/strchrnul-tests: New file.
43866         * tests/test-strchrnul.c: Likewise.
43867
43868         Remove intprops dependency.
43869         * modules/memchr (Depends-on): Remove intprops.
43870         * modules/memrchr (Depends-on): Likewise.
43871         * modules/memchr2 (Depends-on): Likewise.
43872         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
43873         * lib/memrchr.c (__memrchr): Likewise.
43874         * lib/memrchr2.c (memchr2): Likewise.
43875         Reported by Simon Josefsson.
43876
43877 2008-04-28  Simon Josefsson  <simon@josefsson.org>
43878
43879         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
43880         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43881
43882 2008-04-28  Simon Josefsson  <simon@josefsson.org>
43883
43884         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
43885
43886         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
43887
43888         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
43889
43890         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
43891         declarations.
43892         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
43893
43894         * m4/inet_pton.m4: Don't check for header files.
43895
43896         * m4/inet_ntop.m4: Don't check for header files.
43897
43898 2008-04-28  Simon Josefsson  <simon@josefsson.org>
43899
43900         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
43901         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
43902         trigger for cygwin).
43903         Reported by Bruno Haible  <bruno@clisp.org>.
43904
43905 2008-04-28  Bruno Haible  <bruno@clisp.org>
43906
43907         * doc/posix-functions/strdup.texi: Mention mingw problem.
43908
43909 2008-04-27  Bruno Haible  <bruno@clisp.org>
43910
43911         * modules/stat-time-tests (Depends-on): Add sleep.
43912         * tests/test-stat-time.c (force_unlink): New function.
43913         (cleanup): Use it.
43914         (test_mtime): Remove the ctime related tests.
43915         (test_ctime): New function, containing the ctime related tests.
43916         (main): Call test_ctime, except on native Windows platforms.
43917
43918 2008-04-27  Bruno Haible  <bruno@clisp.org>
43919
43920         * lib/rpmatch.c (rpmatch): Add some comments.
43921         Reported by James Youngman <jay@gnu.org>.
43922
43923 2008-04-27  Bruno Haible  <bruno@clisp.org>
43924
43925         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
43926         quiet NaNs.
43927
43928 2008-04-27  Bruno Haible  <bruno@clisp.org>
43929
43930         Make test-yesno.sh work on mingw.
43931         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
43932         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
43933         (main): Set stdin to binary mode.
43934         * modules/yesno-tests (Depends-on): Add binary-io.
43935
43936 2008-04-27  Bruno Haible  <bruno@clisp.org>
43937
43938         Fix 'isfinite' on x86, x86_64, ia64 platforms.
43939         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
43940         argument that lie outside the IEEE 854 domain.
43941         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
43942         (gl_ISFINITE): Use it.
43943         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
43944
43945 2008-04-27  Bruno Haible  <bruno@clisp.org>
43946
43947         Allow local renaming in config.h.
43948         * lib/memrchr.c (memrchr): Don't undefine outside libc.
43949
43950 2008-04-27  Bruno Haible  <bruno@clisp.org>
43951
43952         * lib/memchr.c (__memchr): Change type of 'i'.
43953         * lib/memchr2.c (memchr2): Likewise.
43954
43955 2008-04-26  Eric Blake  <ebb9@byu.net>
43956         and Bruno Haible  <bruno@clisp.org>
43957
43958         Optimize and test memrchr.
43959         * modules/memrchr (Depends-on): Add intprops.
43960         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
43961         * modules/memrchr-tests: New file.
43962         * tests/test-memrchr.c: New file.
43963
43964 2008-04-26  Bruno Haible  <bruno@clisp.org>
43965
43966         Add tentative support for DragonFly BSD.
43967         * lib/stdio-impl.h: Add macros for DragonFly BSD.
43968         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
43969         fp.
43970         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
43971         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
43972         * lib/fpurge.c (fpurge): Likewise.
43973         * lib/freadable.c (freaadable): Likewise.
43974         * lib/freadahead.c (freadahead): Likewise.
43975         * lib/freading.c (freading): Likewise.
43976         * lib/freadptr.c (freadptr): Likewise.
43977         * lib/freadseek.c (freadptrinc): Likewise.
43978         * lib/fseeko.c (fseeko): Likewise.
43979         * lib/fseterr.c (fseterr): Likewise.
43980         * lib/fwritable.c (fwritable): Likewise.
43981         * lib/fwriting.c (fwriting): Likewise.
43982
43983 2008-04-26  Bruno Haible  <bruno@clisp.org>
43984
43985         * lib/stdio-impl.h: New file.
43986         * lib/fbufmode.c: Include stdio-impl.h.
43987         (fbufmode): Use fp_, remove redundant #defines.
43988         * lib/fflush.c: Include stdio-impl.h.
43989         (clear_ungetc_buffer): Remove redundant #defines.
43990         * lib/fpurge.c: Include stdio-impl.h.
43991         (fpurge): Remove redundant #defines.
43992         * lib/freadable.c: Include stdio-impl.h.
43993         (freadable): Remove redundant #defines.
43994         * lib/freadahead.c: Include stdio-impl.h.
43995         (freadahead): Remove redundant #defines.
43996         * lib/freading.c: Include stdio-impl.h.
43997         (freading): Remove redundant #defines.
43998         * lib/freadptr.c: Include stdio-impl.h.
43999         (freadptr): Remove redundant #defines.
44000         * lib/freadseek.c: Include stdio-impl.h.
44001         (freadptrinc): Remove redundant #defines.
44002         * lib/fseeko.c: Include stdio-impl.h.
44003         (rpl_fseeko): Remove redundant #defines.
44004         * lib/fseterr.c: Include stdio-impl.h.
44005         (fseterr): Remove redundant #defines.
44006         * lib/fwritable.c: Include stdio-impl.h.
44007         (fwritable: Remove redundant #defines.
44008         * lib/fwriting.c: Include stdio-impl.h.
44009         (fwriting): Remove redundant #defines.
44010         * modules/fbufmode (Files): Add lib/stdio-impl.h.
44011         * modules/fflush (Files): Likewise.
44012         * modules/fpurge (Files): Likewise.
44013         * modules/freadable (Files): Likewise.
44014         * modules/freadahead (Files): Likewise.
44015         * modules/freading (Files): Likewise.
44016         * modules/freadptr (Files): Likewise.
44017         * modules/freadseek (Files): Likewise.
44018         * modules/fseeko (Files): Likewise.
44019         * modules/fseterr (Files): Likewise.
44020         * modules/fwritable (Files): Likewise.
44021         * modules/fwriting (Files): Likewise.
44022
44023 2008-04-26  Bruno Haible  <bruno@clisp.org>
44024
44025         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44026         restore_seek_optimization, update_fpos_cache): New functions, extracted
44027         from rpl_fflush.
44028         (rpl_fflush): Use them.
44029         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
44030         (gl_REPLACE_FFLUSH): Use it.
44031
44032 2008-04-26  Bruno Haible  <bruno@clisp.org>
44033
44034         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
44035         on Solaris.
44036         * tests/test-xstrtoimax.sh: Likewise.
44037         * tests/test-xstrtoumax.sh: Likewise.
44038         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44039
44040 2008-04-26  Bruno Haible  <bruno@clisp.org>
44041
44042         * modules/memchr-tests: New file.
44043         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
44044
44045 2008-04-26  Eric Blake  <ebb9@byu.net>
44046             Bruno Haible  <bruno@clisp.org>
44047
44048         * lib/memchr.c: Include intprops.h.
44049         (__memchr): Optimize parallel detection of matching bytes. Rename local
44050         variables. Add explanatory comments.
44051
44052 2008-04-26  Bruno Haible  <bruno@clisp.org>
44053
44054         Fix module 'memchr', broken since 2000-10-28.
44055         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
44056
44057 2008-04-26  Bruno Haible  <bruno@clisp.org>
44058
44059         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
44060         comments.
44061
44062 2008-04-25  Eric Blake  <ebb9@byu.net>
44063
44064         Use native fstatat on cygwin 1.7.0.
44065         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
44066         first.
44067
44068 2008-04-23  Eric Blake  <ebb9@byu.net>
44069
44070         Improve memchr2 performance.
44071         * lib/memchr2.c (memchr2): Further optimize parallel detection of
44072         NUL bytes.
44073         * modules/memchr2 (Depends-on): Use intprops.h.
44074
44075 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44076
44077         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
44078         an inline function instead of a CPP macro.  Patch by Ben Pfaff
44079         <blp@cs.stanford.edu>.
44080
44081 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44082
44083         * lib/arpa_inet.in.h: New file.
44084
44085         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
44086         (Makefile.am): Sed in substitute header file.
44087
44088         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
44089         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
44090
44091         * modules/inet_ntop (configure.ac): Use
44092         gl_ARPA_INET_MODULE_INDICATOR.
44093
44094         * modules/inet_pton (configure.ac): Use
44095         gl_ARPA_INET_MODULE_INDICATOR.
44096
44097 2008-04-22  Jim Meyering  <meyering@redhat.com>
44098
44099         * modules/verify (License): Re-license as LGPLv2+.
44100
44101 2008-04-22  Simon Josefsson  <simon@josefsson.org>
44102
44103         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
44104         parameter to void* as per POSIX standard (MinGW uses char*).
44105
44106 2008-04-21  Bruno Haible  <bruno@clisp.org>
44107
44108         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44109         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44110         Define to replacements if REPLACE_ISWCNTRL is 1.
44111         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
44112         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
44113         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
44114         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
44115         what it fixes.
44116         * doc/posix-functions/iswalpha.texi: Likewise.
44117         * doc/posix-functions/iswblank.texi: Likewise.
44118         * doc/posix-functions/iswcntrl.texi: Likewise.
44119         * doc/posix-functions/iswdigit.texi: Likewise.
44120         * doc/posix-functions/iswgraph.texi: Likewise.
44121         * doc/posix-functions/iswlower.texi: Likewise.
44122         * doc/posix-functions/iswprint.texi: Likewise.
44123         * doc/posix-functions/iswpunct.texi: Likewise.
44124         * doc/posix-functions/iswspace.texi: Likewise.
44125         * doc/posix-functions/iswupper.texi: Likewise.
44126         * doc/posix-functions/iswxdigit.texi: Likewise.
44127         Reported by Alain Guibert.
44128
44129 2008-04-21  Bruno Haible  <bruno@clisp.org>
44130
44131         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
44132         Patch by Alain Guibert.
44133
44134 2008-04-21  Bruno Haible  <bruno@clisp.org>
44135
44136         Fix test failures on mingw.
44137         * tests/test-xstrtol.c (print_no_progname): New function.
44138         (main): Install it in error_print_progname hook.
44139         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
44140         * tests/test-xstrtoimax.sh: Likewise.
44141         * tests/test-xstrtoumax.sh: Likewise.
44142
44143 2008-04-21  Bruno Haible  <bruno@clisp.org>
44144
44145         Fix test failure on mingw.
44146         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
44147
44148 2008-04-21  Bruno Haible  <bruno@clisp.org>
44149
44150         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
44151         Actually assign a value.
44152
44153 2008-04-20  Bruno Haible  <bruno@clisp.org>
44154
44155         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
44156         take 2.
44157         * lib/canonicalize.c (canonicalize_file_name): Elide if the
44158         'canonicalize-lgpl' module is also used.
44159         * lib/canonicalize-lgpl.c: Undo last change.
44160         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
44161
44162 2008-04-20  Bruno Haible  <bruno@clisp.org>
44163
44164         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
44165         config.h. Provide _mkdir based fallback for mingw.
44166         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
44167         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
44168         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
44169         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
44170         rather than defining mkdir in config.h.
44171         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
44172         (gl_SYS_STAT_H_DEFAULTS): New macro.
44173         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
44174         HAVE_IO_H any more.
44175         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
44176         HAVE_DECL_MKDIR and HAVE_IO_H.
44177
44178 2008-04-20  Bruno Haible  <bruno@clisp.org>
44179
44180         * lib/isapipe.c: Port to native Windows platforms.
44181
44182 2008-04-20  Bruno Haible  <bruno@clisp.org>
44183
44184         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
44185
44186 2008-04-21  Eric Blake  <ebb9@byu.net>
44187
44188         Work around preprocessors that don't handle UINTMAX_MAX.
44189         * lib/memchr2.c (memchr2): Avoid embedded #if.
44190         Reported by Alain Guibert, fix suggested by Bruno Haible.
44191
44192 2008-04-21  Simon Josefsson  <simon@josefsson.org>
44193
44194         * doc/posix-functions/strftime.texi (strftime): Explain better
44195         Windows incompatibility.  Suggested by Micah Cowan
44196         <micah@cowan.name>.
44197
44198 2008-04-20  Bruno Haible  <bruno@clisp.org>
44199
44200         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
44201         unistr/u8-mblen.
44202
44203 2008-04-20  Bruno Haible  <bruno@clisp.org>
44204
44205         Fix test failure on platforms with non-GNU iconv.
44206         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
44207         (U_TO_U8): Use it, rather than u16_to_u8.
44208         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
44209         units at the end of the input string.
44210         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
44211
44212 2008-04-20  Bruno Haible  <bruno@clisp.org>
44213
44214         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
44215         when the resulting length is 0.
44216         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
44217
44218 2008-04-20  Bruno Haible  <bruno@clisp.org>
44219
44220         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
44221         works.
44222         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
44223
44224 2008-04-20  Bruno Haible  <bruno@clisp.org>
44225
44226         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
44227         * modules/tsearch-tests (configure.ac): Test for initstate function.
44228
44229 2008-04-20  Bruno Haible  <bruno@clisp.org>
44230
44231         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
44232         for nlink_t if missing.
44233         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
44234
44235 2008-04-19  Bruno Haible  <bruno@clisp.org>
44236
44237         Work around snprintf bug on Linux libc5.
44238         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
44239         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44240         gl_SNPRINTF_SIZE1.
44241         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44242         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
44243         that test failed.
44244         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
44245         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
44246         * modules/snprintf (Files): Add m4/printf.m4.
44247         * modules/vsnprintf (Files): Likewise.
44248         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
44249         * doc/posix-functions/vsnprintf.texi: Likewise.
44250
44251 2008-04-19  Bruno Haible  <bruno@clisp.org>
44252
44253         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
44254         from 0.0058 to less than 10^-7.
44255
44256 2008-04-19  Bruno Haible  <bruno@clisp.org>
44257
44258         Fix rounding when a precision is given.
44259         * lib/vasnprintf.c (is_borderline): New function.
44260         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
44261         9...9x.
44262         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
44263         %e, %g.
44264         * tests/test-vasprintf-posix.c (test_function): Likewise.
44265         * tests/test-snprintf-posix.h (test_function): Likewise.
44266         * tests/test-sprintf-posix.h (test_function): Likewise.
44267         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
44268         * tests/test-printf-posix.h (test_function): Likewise.
44269         * tests/test-printf-posix.output: Update.
44270         Reported by John Darrington <john@darrington.wattle.id.au> via
44271         Ben Pfaff <blp@cs.stanford.edu>.
44272
44273 2008-04-18  Simon Josefsson  <simon@josefsson.org>
44274
44275         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
44276         Suggested by Bruno Haible <bruno@clisp.org>.
44277
44278 2008-04-17  Bruno Haible  <bruno@clisp.org>
44279
44280         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
44281         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
44282         implementation.
44283         Patch by Bruce Merry <bmerry@gmail.com>.
44284
44285 2008-04-17  Simon Josefsson  <simon@josefsson.org>
44286
44287         * doc/posix-functions/strftime.texi (strftime): Mention that %e
44288         doesn't work under Windows.
44289
44290 2008-04-16  Bruno Haible  <bruno@clisp.org>
44291
44292         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
44293         New macros.
44294         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
44295         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
44296         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
44297         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
44298         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
44299         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
44300         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
44301         macros.
44302         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
44303         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
44304         Northern Sotho, Uighur.
44305
44306 2008-04-16  Bruno Haible  <bruno@clisp.org>
44307
44308         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
44309         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
44310         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
44311         Reported by Daniel Bergström <daniel@octocode.com>.
44312
44313 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
44314             Bruno Haible  <bruno@clisp.org>
44315
44316         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
44317         function.
44318         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
44319         New functions, mostly extracted from gl_locale_name_default.
44320         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
44321
44322 2008-04-16  Eric Blake  <ebb9@byu.net>
44323
44324         Adjust strtod detection to catch glibc 2.7 bug.
44325         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
44326         Reported by John Gatewood Ham.
44327
44328 2008-04-16  Bruno Haible  <bruno@clisp.org>
44329
44330         Add tentative support for Linux libc5.
44331         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
44332         * lib/fpurge.c (fpurge): Likewise.
44333         * lib/freadable.c (freadable): Likewise.
44334         * lib/freadahead.c (freadahead): Likewise.
44335         * lib/freading.c (freading): Likewise.
44336         * lib/freadptr.c (freadptr): Likewise.
44337         * lib/freadseek.c (freadptrinc): Likewise.
44338         * lib/fseeko.c (rpl_fseeko): Likewise.
44339         * lib/fseterr.c (fseterr): Likewise.
44340         * lib/fwritable.c (fwritable): Likewise.
44341         * lib/fwriting.c (fwriting): Likewise.
44342         Reported by Alain Guibert <alguibert+bts@free.fr>.
44343
44344 2008-04-15  Bruno Haible  <bruno@clisp.org>
44345
44346         * modules/mathl (configure.ac): Define module indicator.
44347
44348 2008-04-15  Bruno Haible  <bruno@clisp.org>
44349
44350         * lib/logl.c (logl): Remove unused variables.
44351
44352 2008-04-15  Bruno Haible  <bruno@clisp.org>
44353
44354         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
44355         fails.
44356
44357 2008-04-15  Bruno Haible  <bruno@clisp.org>
44358
44359         * lib/trim.c (trim2): Fix argument of isspace() macro.
44360
44361 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
44362
44363         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
44364         to 0.
44365         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
44366
44367 2008-04-14  Bruno Haible  <bruno@clisp.org>
44368
44369         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
44370         AC_LANG_PROGRAM argument.
44371         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
44372         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
44373         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44374         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
44375         * m4/math_h.m4 (gl_MATH_H): Likewise.
44376         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
44377         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44378         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
44379         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
44380         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
44381         * m4/regex.m4 (gl_REGEX): Likewise.
44382         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
44383         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
44384         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44385         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
44386         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44387         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44388         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44389         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
44390
44391 2008-04-14  Jim Meyering  <meyering@redhat.com>
44392
44393         test-strtod: fix typos: s/abs/fabs/
44394         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
44395
44396 2008-04-13  Bruno Haible  <bruno@clisp.org>
44397
44398         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
44399         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
44400         module is also used and while not building the reloc-wrapper.
44401
44402 2008-04-13  Bruno Haible  <bruno@clisp.org>
44403
44404         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
44405
44406 2008-04-13  Bruno Haible  <bruno@clisp.org>
44407
44408         Fix AIX compilation failure introduced on 2008-04-02.
44409         * tests/test-frexp.c (exp): Undefine before redefining.
44410         * tests/test-frexpl.c (exp): Likewise.
44411
44412 2008-04-13  Bruno Haible  <bruno@clisp.org>
44413
44414         Work around a HP-UX stdio bug.
44415         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
44416         * tests/test-ftello.c (main): Likewise.
44417         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
44418         * doc/posix-functions/ftello.texi: Likewise.
44419
44420 2008-04-13  Bruno Haible  <bruno@clisp.org>
44421
44422         Make test-signbit pass on HP-UX/hppa.
44423         * tests/test-signbit.c (minus_zerol): New variable.
44424         (test_signbitl): Use it.
44425
44426 2008-04-13  Bruno Haible  <bruno@clisp.org>
44427
44428         Make truncl work on OSF/1 4.0.
44429         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
44430         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
44431         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
44432         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
44433         HAVE_DECL_TRUNCL.
44434         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
44435         HAVE_DECL_TRUNCL.
44436         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
44437
44438 2008-04-13  Bruno Haible  <bruno@clisp.org>
44439
44440         * lib/unictype.h: Remove trailing comma from enumeration definitions.
44441
44442 2008-04-13  Bruno Haible  <bruno@clisp.org>
44443
44444         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
44445         expression, so as to avoid HP-UX 11 cc compiler bug.
44446
44447 2008-04-13  Bruno Haible  <bruno@clisp.org>
44448
44449         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
44450
44451 2008-04-13  Bruno Haible  <bruno@clisp.org>
44452
44453         * lib/git-merge-changelog.c: Remove empty declaration outside of
44454         functions.
44455
44456 2008-04-13  Bruno Haible  <bruno@clisp.org>
44457
44458         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
44459
44460 2008-04-13  Bruno Haible  <bruno@clisp.org>
44461
44462         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
44463         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
44464         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
44465         also if it exists but lacks definitions of the SHUT_* macros.
44466         * modules/sys_socket (Description): Update.
44467         Reported by Elbert Pol <e.pol@chello.nl>.
44468
44469 2008-04-13  Bruno Haible  <bruno@clisp.org>
44470
44471         * lib/localcharset.c (OS2): Don't redefine if already defined.
44472         Reported by Elbert Pol <e.pol@chello.nl>.
44473
44474 2008-04-13  Bruno Haible  <bruno@clisp.org>
44475
44476         * lib/binary-io.h [__EMX__]: Include <io.h>.
44477         Reported by Elbert Pol <e.pol@chello.nl>.
44478
44479 2008-04-12  Bruno Haible  <bruno@clisp.org>
44480
44481         * lib/fpucw.h: Enable the definitions also for x86_64.
44482         Needed for NetBSD/x86_64.
44483         Reported by Thomas Klausner <tk@giga.or.at>.
44484
44485 2008-04-12  Bruno Haible  <bruno@clisp.org>
44486
44487         * tests/test-strtod.c: Include isnand.h.
44488         (main): Use isnand instead of isnan.
44489         Reported by Jim Meyering.
44490
44491 2008-04-12  Bruno Haible  <bruno@clisp.org>
44492
44493         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
44494         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
44495
44496 2008-04-12  Jim Meyering  <meyering@redhat.com>
44497
44498         * m4/math_h.m4 (gl_MATH_H): Fix typos.
44499
44500 2008-04-12  Bruno Haible  <bruno@clisp.org>
44501
44502         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
44503         Reported by Elbert Pol <e.pol@chello.nl>.
44504
44505 2008-04-12  Eric Blake  <ebb9@byu.net>
44506
44507         Work around Solaris 10 math.h bug.
44508         * m4/math_h.m4 (gl_MATH_H): Check for bug.
44509         (gl_MATH_H_DEFAULTS): Set up default.
44510         * modules/math (Makefile.am): Replace new indicators.
44511         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
44512         * tests/test-math.c (main): Test this.
44513         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
44514         * doc/posix-headers/math.texi (math.h): Mention bug.
44515         Reported by Nelson H. F. Beebe and Jim Meyering.
44516
44517 2008-04-11  Bruno Haible  <bruno@clisp.org>
44518
44519         Adapt to future versions of Apple GCC.
44520         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
44521         Reported by Peter O'Gorman <peter@pogma.com>.
44522
44523 2008-04-11  Bruno Haible  <bruno@clisp.org>
44524
44525         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
44526
44527 2008-04-11  Bruno Haible  <bruno@clisp.org>
44528
44529         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
44530
44531         * modules/getaddrinfo-tests (Makefile.am): Define
44532         test_getaddrinfo_LDADD.
44533
44534 2008-04-11  Bruno Haible  <bruno@clisp.org>
44535
44536         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
44537         (init): Fix syntax error.
44538         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
44539         is declared.
44540
44541 2008-04-11  Bruno Haible  <bruno@clisp.org>
44542
44543         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
44544         * modules/glob (Depends-on): Add stdbool.
44545
44546 2008-04-11  Bruno Haible  <bruno@clisp.org>
44547
44548         * lib/trim.c: Include <string.h>.
44549
44550 2008-04-11  Eric Blake  <ebb9@byu.net>
44551
44552         Avoid compile failure on OS/2.
44553         * lib/regex_internal.h (internal_function): Disable optimization
44554         on OS/2 (__EMX__), where it caused compiler error.
44555         Reported by Elbert Pol.
44556
44557 2008-04-11  Bruno Haible  <bruno@clisp.org>
44558
44559         Flush the standard error stream before aborting. Needed on mingw.
44560         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
44561         * tests/test-array_list.c (ASSERT): Likewise.
44562         * tests/test-array_oset.c (ASSERT): Likewise.
44563         * tests/test-avltree_list.c (ASSERT): Likewise.
44564         * tests/test-avltree_oset.c (ASSERT): Likewise.
44565         * tests/test-avltreehash_list.c (ASSERT): Likewise.
44566         * tests/test-binary-io.c (ASSERT): Likewise.
44567         * tests/test-byteswap.c (ASSERT): Likewise.
44568         * tests/test-c-ctype.c (ASSERT): Likewise.
44569         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
44570         * tests/test-c-strcasestr.c (ASSERT): Likewise.
44571         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
44572         * tests/test-c-strstr.c (ASSERT): Likewise.
44573         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
44574         * tests/test-canonicalize.c (ASSERT): Likewise.
44575         * tests/test-carray_list.c (ASSERT): Likewise.
44576         * tests/test-ceilf1.c (ASSERT): Likewise.
44577         * tests/test-ceilf2.c (ASSERT): Likewise.
44578         * tests/test-ceill.c (ASSERT): Likewise.
44579         * tests/test-count-one-bits.c (ASSERT): Likewise.
44580         * tests/test-fbufmode.c (ASSERT): Likewise.
44581         * tests/test-fflush2.c (ASSERT): Likewise.
44582         * tests/test-floorf1.c (ASSERT): Likewise.
44583         * tests/test-floorf2.c (ASSERT): Likewise.
44584         * tests/test-floorl.c (ASSERT): Likewise.
44585         * tests/test-fopen.c (ASSERT): Likewise.
44586         * tests/test-fpending.c (ASSERT): Likewise.
44587         * tests/test-fprintf-posix.c (ASSERT): Likewise.
44588         * tests/test-fpurge.c (ASSERT): Likewise.
44589         * tests/test-freadable.c (ASSERT): Likewise.
44590         * tests/test-freadahead.c (ASSERT): Likewise.
44591         * tests/test-freading.c (ASSERT): Likewise.
44592         * tests/test-freadptr.c (ASSERT): Likewise.
44593         * tests/test-freadptr2.c (ASSERT): Likewise.
44594         * tests/test-freadseek.c (ASSERT): Likewise.
44595         * tests/test-freopen.c (ASSERT): Likewise.
44596         * tests/test-frexp.c (ASSERT): Likewise.
44597         * tests/test-frexpl.c (ASSERT): Likewise.
44598         * tests/test-fseek.c (ASSERT): Likewise.
44599         * tests/test-fseeko.c (ASSERT): Likewise.
44600         * tests/test-fstrcmp.c (ASSERT): Likewise.
44601         * tests/test-ftell.c (ASSERT): Likewise.
44602         * tests/test-ftello.c (ASSERT): Likewise.
44603         * tests/test-func.c (ASSERT): Likewise.
44604         * tests/test-fwritable.c (ASSERT): Likewise.
44605         * tests/test-fwriting.c (ASSERT): Likewise.
44606         * tests/test-getdelim.c (ASSERT): Likewise.
44607         * tests/test-getline.c (ASSERT): Likewise.
44608         * tests/test-i-ring.c (ASSERT): Likewise.
44609         * tests/test-iconv-utf.c (ASSERT): Likewise.
44610         * tests/test-iconv.c (ASSERT): Likewise.
44611         * tests/test-isfinite.c (ASSERT): Likewise.
44612         * tests/test-isnand.c (ASSERT): Likewise.
44613         * tests/test-isnanf.c (ASSERT): Likewise.
44614         * tests/test-isnanl.h (ASSERT): Likewise.
44615         * tests/test-ldexpl.c (ASSERT): Likewise.
44616         * tests/test-linked_list.c (ASSERT): Likewise.
44617         * tests/test-linkedhash_list.c (ASSERT): Likewise.
44618         * tests/test-localename.c (ASSERT): Likewise.
44619         * tests/test-lseek.c (ASSERT): Likewise.
44620         * tests/test-mbscasecmp.c (ASSERT): Likewise.
44621         * tests/test-mbscasestr1.c (ASSERT): Likewise.
44622         * tests/test-mbscasestr2.c (ASSERT): Likewise.
44623         * tests/test-mbscasestr3.c (ASSERT): Likewise.
44624         * tests/test-mbscasestr4.c (ASSERT): Likewise.
44625         * tests/test-mbschr.c (ASSERT): Likewise.
44626         * tests/test-mbscspn.c (ASSERT): Likewise.
44627         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
44628         * tests/test-mbspbrk.c (ASSERT): Likewise.
44629         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
44630         * tests/test-mbsrchr.c (ASSERT): Likewise.
44631         * tests/test-mbsspn.c (ASSERT): Likewise.
44632         * tests/test-mbsstr1.c (ASSERT): Likewise.
44633         * tests/test-mbsstr2.c (ASSERT): Likewise.
44634         * tests/test-mbsstr3.c (ASSERT): Likewise.
44635         * tests/test-memchr2.c (ASSERT): Likewise.
44636         * tests/test-memmem.c (ASSERT): Likewise.
44637         * tests/test-open.c (ASSERT): Likewise.
44638         * tests/test-printf-frexp.c (ASSERT): Likewise.
44639         * tests/test-printf-frexpl.c (ASSERT): Likewise.
44640         * tests/test-printf-posix.c (ASSERT): Likewise.
44641         * tests/test-quotearg.c (ASSERT): Likewise.
44642         * tests/test-rbtree_list.c (ASSERT): Likewise.
44643         * tests/test-rbtree_oset.c (ASSERT): Likewise.
44644         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
44645         * tests/test-round1.c (ASSERT): Likewise.
44646         * tests/test-roundf1.c (ASSERT): Likewise.
44647         * tests/test-roundl.c (ASSERT): Likewise.
44648         * tests/test-signbit.c (ASSERT): Likewise.
44649         * tests/test-sleep.c (ASSERT): Likewise.
44650         * tests/test-snprintf-posix.c (ASSERT): Likewise.
44651         * tests/test-snprintf.c (ASSERT): Likewise.
44652         * tests/test-sprintf-posix.c (ASSERT): Likewise.
44653         * tests/test-stat-time.c (ASSERT): Likewise.
44654         * tests/test-strcasestr.c (ASSERT): Likewise.
44655         * tests/test-strerror.c (ASSERT): Likewise.
44656         * tests/test-striconv.c (ASSERT): Likewise.
44657         * tests/test-striconveh.c (ASSERT): Likewise.
44658         * tests/test-striconveha.c (ASSERT): Likewise.
44659         * tests/test-strsignal.c (ASSERT): Likewise.
44660         * tests/test-strstr.c (ASSERT): Likewise.
44661         * tests/test-strtod.c (ASSERT): Likewise.
44662         * tests/test-trunc1.c (ASSERT): Likewise.
44663         * tests/test-trunc2.c (ASSERT): Likewise.
44664         * tests/test-truncf1.c (ASSERT): Likewise.
44665         * tests/test-truncf2.c (ASSERT): Likewise.
44666         * tests/test-truncl.c (ASSERT): Likewise.
44667         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
44668         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
44669         * tests/test-vasnprintf.c (ASSERT): Likewise.
44670         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
44671         * tests/test-vasprintf.c (ASSERT): Likewise.
44672         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
44673         * tests/test-vprintf-posix.c (ASSERT): Likewise.
44674         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
44675         * tests/test-vsnprintf.c (ASSERT): Likewise.
44676         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
44677         * tests/test-wcwidth.c (ASSERT): Likewise.
44678         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
44679         * tests/test-xprintf-posix.c (ASSERT): Likewise.
44680         * tests/test-xvasprintf.c (ASSERT): Likewise.
44681         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
44682         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
44683         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
44684         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
44685         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
44686         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
44687         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
44688         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
44689         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
44690         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
44691         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
44692         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
44693         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
44694         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
44695         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
44696         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
44697         * tests/unictype/test-block_list.c (ASSERT): Likewise.
44698         * tests/unictype/test-block_of.c (ASSERT): Likewise.
44699         * tests/unictype/test-block_test.c (ASSERT): Likewise.
44700         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
44701         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
44702         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
44703         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
44704         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
44705         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
44706         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
44707         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
44708         * tests/unictype/test-combining.c (ASSERT): Likewise.
44709         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
44710         * tests/unictype/test-digit.c (ASSERT): Likewise.
44711         * tests/unictype/test-mirror.c (ASSERT): Likewise.
44712         * tests/unictype/test-numeric.c (ASSERT): Likewise.
44713         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
44714         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
44715         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
44716         * tests/unictype/test-scripts.c (ASSERT): Likewise.
44717         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
44718         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
44719         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
44720         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
44721         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
44722         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
44723         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
44724         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
44725         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
44726         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
44727         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
44728         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
44729         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
44730         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
44731         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
44732         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
44733         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
44734         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
44735         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
44736         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
44737         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
44738         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
44739         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
44740         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
44741         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
44742         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
44743         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
44744         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
44745         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
44746         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
44747         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
44748         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
44749         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
44750         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
44751         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
44752         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
44753         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
44754         Reported by Eric Blake.
44755
44756 2008-04-11  Bruno Haible  <bruno@clisp.org>
44757
44758         * lib/wchar.in.h: Tweak comment.
44759
44760 2008-04-11  Bruno Haible  <bruno@clisp.org>
44761
44762         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
44763         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
44764         gl_COMMON.
44765         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
44766
44767 2008-04-11  Bruno Haible  <bruno@clisp.org>
44768
44769         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
44770
44771 2008-04-11  Simon Josefsson  <simon@josefsson.org>
44772
44773         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
44774         of attempting to use non-existing /dev/*random.  Based on patch
44775         from Adam Strzelecki <ono@java.pl> in
44776         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
44777
44778 2008-04-08  Bruno Haible  <bruno@clisp.org>
44779
44780         Add tentative support for emx+gcc.
44781         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
44782         * lib/fpurge.c (fpurge): Likewise.
44783         * lib/freadable.c (freadable): Likewise.
44784         * lib/freadahead.c (freadahead): Likewise.
44785         * lib/freading.c (freading): Likewise.
44786         * lib/freadptr.c (freadptr): Likewise.
44787         * lib/freadseek.c (freadptrinc): Likewise.
44788         * lib/fseeko.c (rpl_fseeko): Likewise.
44789         * lib/fseterr.c (fseterr): Likewise.
44790         * lib/fwritable.c (fwritable): Likewise.
44791         * lib/fwriting.c (fwriting): Likewise.
44792         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
44793
44794 2008-04-09  Eric Blake  <ebb9@byu.net>
44795
44796         Avoid some autoconf warnings.
44797         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
44798         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
44799         * m4/afs.m4 (gl_AFS): Likewise.
44800         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
44801         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
44802         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44803         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
44804         (gl_INTEGER_TYPE_SUFFIX): Likewise.
44805         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
44806         (AC_CHECK_DECLS_ONCE): Likewise.
44807         Rename file...
44808         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
44809         gnulib-tool requires autoconf 2.59 or better.
44810         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
44811
44812 2008-04-08  Eric Blake  <ebb9@byu.net>
44813
44814         Use 'git describe --match' if present (added in git 1.5.5).
44815         * build-aux/git-version-gen: Limit result to tags that match 'v*'
44816         if possible.
44817
44818 2008-04-08  Bruno Haible  <bruno@clisp.org>
44819
44820         Add tentative support for OpenServer.
44821         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
44822         _ptr, _cnt.
44823         * lib/fpurge.c (fpurge): Likewise.
44824         * lib/freadable.c (freadable): Likewise.
44825         * lib/freadahead.c (freadahead): Likewise.
44826         * lib/freading.c (freading): Likewise.
44827         * lib/freadptr.c (freadptr): Likewise.
44828         * lib/freadseek.c (freadptrinc): Likewise.
44829         * lib/fseeko.c (rpl_fseeko): Likewise.
44830         * lib/fseterr.c (fseterr): Likewise.
44831         * lib/fwritable.c (fwritable): Likewise.
44832         * lib/fwriting.c (fwriting): Likewise.
44833         Reported by Roger Cornelius <rac@tenzing.org> and
44834         Brian K. White <brian@aljex.com>.
44835
44836 2008-04-06  Jim Meyering  <meyering@redhat.com>
44837
44838         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
44839
44840 2008-04-06  Bruno Haible  <bruno@clisp.org>
44841
44842         Avoid possible error with non-ASCII bytes in UTF-8 locales.
44843         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
44844         * tests/test-printf-posix.sh: Likewise.
44845         * tests/test-vfprintf-posix.sh: Likewise.
44846         * tests/test-vprintf-posix.sh: Likewise.
44847         * tests/test-xprintf-posix.sh: Likewise.
44848
44849 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44850
44851         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
44852         hide error from 'ls', needed on OS/2.
44853         Report by Elbert Pol <elbert.pol@gmail.com>.
44854
44855 2008-04-04  Eric Blake  <ebb9@byu.net>
44856
44857         Make test-fseeko.c failures meaningful.
44858         * tests/test-fseeko.c: Print line number on failure.
44859         * tests/test-fseek.c: Likewise.
44860         Reported by Nelson H. F. Beebe.
44861
44862         Improve strtod bug detection check.
44863         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
44864         required for Solaris 10.
44865         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
44866
44867 2008-04-04  Bruno Haible  <bruno@clisp.org>
44868
44869         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
44870         by m4/setenv.m4.
44871
44872 2008-04-03  Eric Blake  <ebb9@byu.net>
44873
44874         Ensure sane .version contents.
44875         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
44876         version string.
44877         * build-aux/git-version-gen: Improve documentation.
44878
44879         Make GNU make output nicer.
44880         * top/GNUmakefile [!_have-Makefile]: Add dependency on
44881         MAKECMDGOALS to enforce message for all command line targets.  Set
44882         srcdir for use in maint.mk.
44883
44884         Another maintainer tweak.
44885         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
44886         a target that regenerates version.
44887
44888 2008-04-03  Jim Meyering  <meyering@redhat.com>
44889
44890         vc-list-files: don't cause coreutils "make po-check" failure
44891         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
44892
44893 2008-04-03  Eric Blake  <ebb9@byu.net>
44894
44895         Allow VPATH usage of vc-list-files.
44896         * build-aux/vc-list-files (scriptversion): Add timestamp.
44897         (options): Add --help, --version, -C.
44898         (CVS): Support installed cvsu.
44899
44900 2008-04-02  Bruno Haible  <bruno@clisp.org>
44901
44902         Avoid some "statement with no effect" warnings from gcc.
44903         * tests/test-wctype.c (main): Explicitly ignore unused values.
44904         Reported by Jim Meyering.
44905
44906 2008-04-02  Jim Meyering  <meyering@redhat.com>
44907
44908         Avoid some warnings from "gcc -Wshadow".
44909         * tests/test-frexp.c (exp): Define to a different identifier.
44910         * tests/test-frexpl.c (exp): Likewise.
44911
44912 2008-04-03  Jim Meyering  <meyering@redhat.com>
44913
44914         bootstrap: remove dangling *.[ch] symlinks from lib
44915         * build-aux/bootstrap [dangling symlink removal]: Move find's
44916         -depth option to precede all others, to avoid a warning.
44917         Remove *.[ch] files too, and from "$source_base" (usually lib/).
44918
44919 2008-04-02  Bruno Haible  <bruno@clisp.org>
44920
44921         Avoid some warnings from "gcc -Wshadow".
44922         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
44923         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
44924         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
44925         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
44926         Reported by Jim Meyering.
44927
44928 2008-04-01  Bruno Haible  <bruno@clisp.org>
44929
44930         Fix test to work on IRIX 6.5 with cc.
44931         * tests/test-math.c (numeric_equal): New function.
44932         (main): Use it.
44933
44934 2008-04-01  Bruno Haible  <bruno@clisp.org>
44935
44936         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
44937
44938 2008-04-01  Bruno Haible  <bruno@clisp.org>
44939
44940         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
44941         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44942         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
44943         (Depends-on): Remove math.
44944
44945         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
44946         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44947         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
44948         (Depends-on): Remove math.
44949
44950         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
44951         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44952         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
44953         (Depends-on): Remove math.
44954         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
44955         (Depends-on): Remove math.
44956
44957         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
44958         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44959         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
44960         (Depends-on): Remove math.
44961         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
44962         (Depends-on): Remove math.
44963
44964         * tests/test-round1.c: Include nan.h.
44965         (main): Use NaNd instead of NAN.
44966         * modules/round-tests (Files): Add tests/nan.h.
44967
44968         * tests/test-trunc1.c: Include nan.h.
44969         (main): Use NaNd instead of NAN.
44970         * modules/trunc-tests (Files): Add tests/nan.h.
44971
44972         * tests/test-roundf1.c: Include nan.h.
44973         (main): Use NaNf instead of NAN.
44974         * modules/roundf-tests (Files): Add tests/nan.h.
44975
44976         * tests/test-truncf1.c: Include nan.h.
44977         (main): Use NaNf instead of NAN.
44978         * modules/truncf-tests (Files): Add tests/nan.h.
44979
44980         * tests/test-ceilf1.c: Include nan.h.
44981         (main): Use NaNf instead of NAN.
44982         * modules/ceilf-tests (Files): Add tests/nan.h.
44983
44984         * tests/test-floorf1.c: Include nan.h.
44985         (main): Use NaNf instead of NAN.
44986         * modules/floorf-tests (Files): Add tests/nan.h.
44987
44988         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
44989         (main): Use NaNf instead of NAN.
44990         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
44991
44992         * tests/test-isnand.c: Include nan.h instead of <math.h>.
44993         (main): Use NaNd instead of NAN.
44994         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
44995
44996         * tests/test-frexp.c: Include nan.h.
44997         (main): Use NaNd instead of NAN.
44998         * modules/frexp-tests (Files): Add tests/nan.h.
44999
45000         * lib/isnan.c: Don't include <math.h>.
45001         (FUNC): Don't use NAN macro.
45002         * modules/isnand-nolibm (Depends-on): Remove math.
45003         * modules/isnanf-nolibm (Depends-on): Remove math.
45004         * modules/isnanl (Depends-on): Remove math.
45005         * modules/isnanl-nolibm (Depends-on): Remove math.
45006
45007         * tests/nan.h: New file.
45008
45009 2008-04-01  Eric Blake  <ebb9@byu.net>
45010
45011         Fix typos.
45012         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
45013         values to be the right type.
45014
45015         For now, cater to gnulib strtod inaccuracies.
45016         * tests/test-strtod.c (main): Allow 1-ulp error on expected
45017         fractional results.  While not as nice from a QoI perspective, it
45018         is a quicker patch than correctly implementing decimal to binary
45019         rounding.
45020
45021 2008-03-31  Eric Blake  <ebb9@byu.net>
45022
45023         Guarantee a definition of NAN.
45024         * lib/math.in.h (NAN): Define if missing.
45025         * tests/test-math.c (main): Test it.
45026         * doc/posix-headers/math.texi (math.h): Document this.
45027         * lib/isnan.c (rpl_isnand): Use it.
45028         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
45029         * tests/test-floorf1.c (NaN): Likewise.
45030         * tests/test-frexp.c (NaN): Likewise.
45031         * tests/test-isnand.c (NaN): Likewise.
45032         * tests/test-isnanf.c (NaN): Likewise.
45033         * tests/test-round1.c (NaN): Likewise.
45034         * tests/test-roundf1.c (NaN): Likewise.
45035         * tests/test-snprintf-posix.h (NaN): Likewise.
45036         * tests/test-sprintf-posix.h (NaN): Likewise.
45037         * tests/test-trunc1.c (NaN): Likewise.
45038         * tests/test-truncf1.c (NaN): Likewise.
45039         * tests/test-vasnprintf-posix.c (NaN): Likewise.
45040         * tests/test-vasprintf-posix.c (NaN): Likewise.
45041         * modules/isnand-nolibm (Depends-on): Add math.
45042         * modules/isnanf-nolibm (Depends-on): Likewise.
45043         * modules/isnanl (Depends-on): Likewise.
45044         * modules/isnanl-nolibm (Depends-on): Likewise.
45045         * modules/snprintf-posix-tests (Depends-on): Likewise.
45046         * modules/sprintf-posix-tests (Depends-on): Likewise.
45047         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
45048         * modules/vsprintf-posix-tests (Depends-on): Likewise.
45049         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
45050         * modules/vasprintf-posix-tests (Depends-on): Likewise.
45051
45052 2008-03-31  Bruno Haible  <bruno@clisp.org>
45053
45054         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
45055         * doc/posix-functions/strtod.texi: Likewise.
45056
45057 2008-03-31  Bruno Haible  <bruno@clisp.org>
45058
45059         * tests/test-strtod.c (main): Don't use C99 syntax.
45060
45061 2008-03-31  Bruno Haible  <bruno@clisp.org>
45062
45063         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
45064         Reported by Eric Blake.
45065
45066 2008-03-31  Jim Meyering  <meyering@redhat.com>
45067
45068         Don't compare actual signbit return values.
45069         * tests/test-strtod.c (main): Rather, compare only their
45070         zero/non-zero nature.
45071
45072 2008-03-31  Eric Blake  <ebb9@byu.net>
45073
45074         More strtod documentation.
45075         * doc/posix-functions/strtod.texi (strtod): Interpret more test
45076         failures as distinct bugs.
45077
45078 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
45079
45080         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
45081         Problem reported by Erik Benada in
45082         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
45083
45084 2008-03-30  Bruno Haible  <bruno@clisp.org>
45085
45086         * tests/test-strtod.c: Add comments about which assertion fails on which
45087         platform.
45088         * doc/posix-functions/strtod.texi: Add info about many more platforms.
45089
45090 2008-03-30  Eric Blake  <ebb9@byu.net>
45091
45092         Test signbit behavior on zeros.
45093         * tests/test-signbit.c (test_signbitf): Add tests for zero.
45094         (test_signbitd, test_signbitl): Likewise.
45095
45096         More strtod touchups.
45097         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
45098         sign of negative underflow, for now.  Use .5, not .1.
45099         * doc/posix-functions/strtod.texi (strtod): Mention these
45100         limitations.
45101         Reported by Jim Meyering.
45102
45103 2008-03-30  Bruno Haible  <bruno@clisp.org>
45104
45105         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
45106         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
45107
45108 2008-03-30  Bruno Haible  <bruno@clisp.org>
45109
45110         Avoid failure when attempting to return empty iconv results on some
45111         platforms.
45112         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
45113         allocation, don't report ENOMEM when the resulting string is empty.
45114
45115 2008-03-30  Bruno Haible  <bruno@clisp.org>
45116
45117         Fix buffer overrun.
45118         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
45119         Don't consider the width for tmp_length. Check count against tmp_length
45120         before doing the padding. Ensure enough allocation during padding.
45121
45122 2008-03-30  Eric Blake  <ebb9@byu.net>
45123
45124         strtod touchups.
45125         * lib/strtod.c (strtod): Avoid compiler warnings.
45126         Reported by Jim Meyering.
45127
45128 2008-03-30  Bruno Haible  <bruno@clisp.org>
45129
45130         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
45131         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
45132         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
45133         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
45134         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
45135         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
45136         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
45137         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
45138
45139         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
45140         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
45141         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
45142         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
45143         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
45144         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
45145         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
45146         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
45147
45148         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
45149         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
45150         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
45151         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
45152         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
45153         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
45154         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
45155         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
45156
45157         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
45158         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
45159
45160         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
45161         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
45162
45163         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
45164         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
45165
45166         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
45167         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
45168         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
45169
45170         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
45171         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
45172         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
45173
45174         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
45175         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
45176         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
45177
45178         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
45179         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
45180         * modules/vasprintf (Depends-on): Add EOVERFLOW.
45181
45182         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
45183         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
45184         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
45185         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
45186         (Depends-on): Add EOVERFLOW.
45187         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
45188         (Depends-on): Add EOVERFLOW.
45189         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45190         (Depends-on): Add EOVERFLOW.
45191         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45192         (Depends-on): Add EOVERFLOW.
45193         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45194         (Depends-on): Add EOVERFLOW.
45195         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45196         (Depends-on): Add EOVERFLOW.
45197         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45198         (Depends-on): Add EOVERFLOW.
45199         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45200         (Depends-on): Add EOVERFLOW.
45201
45202         * lib/sprintf.c (EOVERFLOW): Remove fallback.
45203         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
45204         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
45205
45206         * lib/snprintf.c (EOVERFLOW): Remove fallback.
45207         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
45208         * modules/snprintf (Depends-on): Add EOVERFLOW.
45209
45210         * lib/poll.c (EOVERFLOW): Remove fallback.
45211         * modules/poll (Depends-on): Add EOVERFLOW.
45212
45213         * lib/getugroups.c (EOVERFLOW): Remove fallback.
45214         * modules/getugroups (Depends-on): Add EOVERFLOW.
45215
45216         * lib/getdelim.c (EOVERFLOW): Remove fallback.
45217         * modules/getdelim (Depends-on): Add EOVERFLOW.
45218
45219         * lib/ftell.c (EOVERFLOW): Remove fallback.
45220         * modules/ftell (Depends-on): Add EOVERFLOW.
45221
45222         * lib/fprintf.c (EOVERFLOW): Remove fallback.
45223         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
45224         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
45225
45226         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
45227
45228         * modules/EOVERFLOW-tests: New file.
45229         * tests/test-EOVERFLOW.c: New file.
45230
45231         * modules/EOVERFLOW: New file.
45232         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
45233
45234 2008-03-30  Bruno Haible  <bruno@clisp.org>
45235
45236         Fix bug introduced on 2007-06-10.
45237         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
45238         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
45239
45240 2008-03-30  Bruno Haible  <bruno@clisp.org>
45241
45242         Improve freadseek's efficiency after ungetc.
45243         * lib/freadseek.c: Include freadahead.h.
45244         (freadptrinc): New function, extracted from freadseek.
45245         (freadseek): Use it in a loop. Use freadahead to determine the number
45246         of loop iterations.
45247         * modules/freadseek (Depends-on): Add freadahead.
45248         (configure.ac): Require AC_C_INLINE.
45249
45250 2008-03-30  Bruno Haible  <bruno@clisp.org>
45251
45252         * lib/freadseek.c (freadseek): Don't ignore the return value of
45253         freadptr.
45254
45255 2008-03-29  Eric Blake  <ebb9@byu.net>
45256
45257         Add hex float support.
45258         * modules/strtod (Depends-on): Add c-ctype.
45259         (Link): Mention POW_LIB.
45260         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
45261         whitespace between 'e' and exponent.
45262         * tests/test-strtod.c (main): Enable hex float tests.
45263         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
45264         now provides.
45265
45266         Document various strtod bugs, with some fixes.
45267         * doc/posix-functions/strtod.texi (strtod): Document bugs with
45268         "-0x", "inf", "nan", and hex constants.
45269         * doc/posix-functions/atof.texi (atof): Likewise.
45270         * modules/stdlib (Makefile.am): Support strtod.
45271         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
45272         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
45273         detect additional strtod bugs.
45274         * lib/stdlib.in.h (rpl_strtod): Add declarations.
45275         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
45276         bool where appropriate.  Parse 'inf' and 'nan'.
45277         * tests/test-strtod.c: New file.
45278         * modules/strtod (Depends-on): Add stdbool, stdlib.
45279         (configure.ac): Turn on module indicator.
45280         * modules/strtod-tests: New module.
45281
45282 2008-03-29  Eric Blake  <ebb9@byu.net>
45283
45284         Fix ftell on mingw.
45285         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
45286         * modules/ftell-tests (Depends-on): Add binary-io.
45287         * modules/ftello-tests (Depends-on): Likewise.
45288         * tests/test-ftell.c (main): Enhance test to cover behavior after
45289         ungetc.  Enforce binary mode.
45290         * tests/test-ftello.c (main): Likewise.
45291
45292         Pass test-freadseek on cygwin.
45293         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
45294         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
45295         ungetc buffer.
45296
45297         * tests/test-fflush2.c (main): Fix typo.
45298
45299 2008-03-29  Bruno Haible  <bruno@clisp.org>
45300
45301         * tests/test-fflush2.c (main): Temporarily disable the contents of
45302         this test.
45303         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
45304         Reported by Eric Blake.
45305
45306 2008-03-28  Simon Josefsson  <simon@josefsson.org>
45307
45308         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
45309         (GC_SHA224_DIGEST_SIZE): Add.
45310
45311         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
45312         (gc_hash_digest_length): Likewise.
45313         (gc_hash_buffer): Likewise.
45314
45315 2008-03-25  Bruno Haible  <bruno@clisp.org>
45316
45317         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
45318         detail which gettext release to use.
45319         Reported by Simon Josefsson.
45320
45321 2008-03-26  Jim Meyering  <meyering@redhat.com>
45322
45323         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
45324         * modules/gnumakefile (clean-GNUmakefile): Also, use
45325         test ... && ... || : syntax rather than if-then ... fi.
45326
45327         gnumakefile: Don't double-quote-expand $(VPATH) value.
45328         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
45329
45330 2008-03-24  Eric Blake  <ebb9@byu.net>
45331
45332         Alter GNUmakefile to install into top directory.
45333         * modules/maintainer-makefile: Split, and add dependency...
45334         * modules/gnumakefile: to this new module.
45335         * build-aux/GNUmakefile: Move...
45336         * top/GNUmakefile: ...here.
45337         * build-aux/maint.mk: Move...
45338         * top/maint.mk: ...here.
45339         * MODULES.html.sh (Support for maintaining...): Document new
45340         module.
45341
45342 2008-03-23  Bruno Haible  <bruno@clisp.org>
45343
45344         * gnulib-tool: New options --vc-files, --no-vc-files.
45345         (func_usage): Document them.
45346         (vc_files): New variable.
45347         (func_import): Consider vc_files.
45348         (func_create_testdir): Set vc_files to empty.
45349         Suggested by Jim Meyering and Karl Berry.
45350
45351 2008-03-23  Bruno Haible  <bruno@clisp.org>
45352
45353         Fix regex compilation error on HP-UX 11.
45354         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
45355         * modules/regex (Files): Add m4/mbstate_t.m4.
45356         Reported by Ton Voon <ton.voon@altinity.com>.
45357
45358 2008-03-23  Bruno Haible  <bruno@clisp.org>
45359
45360         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
45361
45362 2008-03-23  Eric Blake  <ebb9@byu.net>
45363             Bruno Haible  <bruno@clisp.org>
45364
45365         Install files from top/ in the destination directory.
45366         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
45367         augmentation also for the files from top/.
45368         (func_import, func_create_testdir): Rewrite file names:
45369         top/filename -> filename.
45370
45371 2008-03-23  Bruno Haible  <bruno@clisp.org>
45372
45373         Tweak "gnulib --version" output.
45374         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
45375
45376 2008-03-23  Bruno Haible  <bruno@clisp.org>
45377
45378         Tweak "gnulib --version" output.
45379         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
45380         rather than contents of ChangeLog, when possible.
45381
45382 2008-03-21  Eric Blake  <ebb9@byu.net>
45383
45384         More --version tweaks.
45385         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
45386         date of last ChangeLog entry.
45387
45388 2008-03-21  Jim Meyering  <meyering@redhat.com>
45389
45390         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
45391
45392 2008-03-20  Eric Blake  <ebb9@byu.net>
45393
45394         VPATH fix.
45395         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
45396
45397 2008-03-20  Simon Josefsson  <simon@josefsson.org>
45398
45399         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
45400         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
45401
45402 2008-03-20  Eric Blake  <ebb9@byu.net>
45403
45404         Sync GNUmakefile with coreutils.
45405         * build-aux/GNUmakefile (have-Makefile): Rename...
45406         (_have-Makefile): ...to this, for namespace consideration.
45407         (GNUmakefile.cfg): Include, if present.
45408         (_autoreconf): Define a default.
45409         (_is-dist-target): New rule for rebuilds to pick up intra-release
45410         version.
45411         (maint-cfg.mk): Rename...
45412         (cfg.mk): ...to this.
45413
45414 2008-03-18  Jim Meyering  <meyering@redhat.com>
45415
45416         New script and module: mktempd
45417         * MODULES.html.sh (maint+release support): Add mktempd.
45418         * build-aux/mktempd: New file.
45419         * modules/mktempd: New file.
45420
45421 2008-03-15  Jim Meyering  <meyering@redhat.com>
45422
45423         Undo last change.
45424         * lib/sha1.c, lib/md5.c: 63 != ~63.
45425         Reported by Andreas Schwab.
45426
45427         sha1.c, md5.c: Hoist a redundant expression.
45428         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
45429         "ctx->buflen" only once, before calling *_process_block.
45430         * lib/md5.c (md5_process_bytes): Likewise.
45431
45432 2008-03-14  Eric Blake  <ebb9@byu.net>
45433
45434         Bump copyright year in files generated by gnulib-tool.
45435         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
45436         gnulib-tool, rather than hard-coding it.
45437
45438         Fix 'gnulib-tool --version' output to work with git.
45439         * gnulib-tool (func_gnulib_dir): New function, extracted from...
45440         (startup): ...here.
45441         (func_version): Use it to invoke git-version-gen, rather than
45442         relying on CVS keyword expansion.  Modernize wording.
45443         (cvsdatestamp, last_checkin_date, version): Kill unused
45444         variables.
45445
45446 2008-03-12  Jim Meyering  <meyering@redhat.com>
45447
45448         Recognize optional cast of the argument to free.
45449         * build-aux/useless-if-before-free: Update regexps.
45450
45451         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
45452
45453 2008-03-11  Bruno Haible  <bruno@clisp.org>
45454
45455         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
45456         by a single package.
45457         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
45458         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
45459         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
45460         Reported by Sam Steingold <sds@gnu.org>.
45461
45462 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45463
45464         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
45465         repositories.
45466
45467 2008-03-11  Bruno Haible  <bruno@clisp.org>
45468
45469         Avoid conflicts between local macro definitions.
45470         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
45471         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
45472
45473 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
45474             Bruno Haible  <bruno@clisp.org>
45475
45476         Make va_copy work with some version of xlc on AIX 5.1.
45477         * lib/stdarg.in.h: New file.
45478         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
45479         On AIX, use a <stdarg.h> file substitute.
45480         * modules/stdarg (Files): Add lib/stdarg.in.h.
45481         (Depends-on): Add include_next.
45482         (Makefile.am): Build a stdarg.h substitute if requested.
45483         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
45484
45485 2008-03-10  Bruno Haible  <bruno@clisp.org>
45486
45487         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
45488         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45489         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
45490
45491 2008-03-10  Bruno Haible  <bruno@clisp.org>
45492
45493         * modules/stdlib (Depends-on): Add include_next, remove
45494         absolute-header.
45495
45496 2008-03-09  Bruno Haible  <bruno@clisp.org>
45497
45498         * lib/freadahead.h (freadahead): Document more precisely.
45499         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
45500         the sum of both buffer sizes.
45501         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
45502         * NEWS: Document the change.
45503
45504 2008-03-09  Bruno Haible  <bruno@clisp.org>
45505
45506         Extend freadptr to return also the buffer size.
45507         * lib/freadptr.h (freadptr): Add sizep argument.
45508         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
45509         (freadptr): Add sizep argument. Determine buffer size like freadahead
45510         does.
45511         * tests/test-freadptr.c: Don't include freadahead.h.
45512         (main): Adapt for new calling convention of freadptr.
45513         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
45514         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
45515         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
45516         tests/test-freadptr2.sh.
45517         (Depends): Remove freadahead.
45518         (TESTS): Add test-freadptr2.sh.
45519         (check_PROGRAMS): Add test-freadptr2.
45520
45521 2008-03-09  Bruno Haible  <bruno@clisp.org>
45522
45523         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
45524         Report and solution by Simon Josefsson.
45525
45526 2008-03-06  Bruno Haible  <bruno@clisp.org>
45527
45528         Make fflush after ungetc work on BSD platforms.
45529         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
45530         * tests/test-fflush2.c: New file.
45531         * tests/test-fflush2.sh: New file.
45532         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
45533         tests/test-fflush2.c.
45534         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
45535         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
45536
45537 2008-03-06  Eric Blake  <ebb9@byu.net>
45538
45539         Likewise for ftello.
45540         * modules/ftello (Dependencies): Add extensions.
45541         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
45542
45543 2008-03-06  Bruno Haible  <bruno@clisp.org>
45544
45545         * modules/fseeko (Dependencies): Add extensions.
45546         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
45547         Needed on glibc systems.
45548
45549 2008-03-06  Bruno Haible  <bruno@clisp.org>
45550
45551         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
45552         email address.
45553         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45554
45555 2008-03-06  Bruno Haible  <bruno@clisp.org>
45556
45557         * users.txt: Add libgnupdf.
45558
45559 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
45560
45561         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
45562         (Header File Substitutes, Function Substitutes,
45563         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
45564         (Build robot for gnulib): Fix typo.
45565
45566 2008-03-06  Bruno Haible  <bruno@clisp.org>
45567
45568         * doc/gnulib-tool.texi (VCS Issues): Small updates.
45569         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45570
45571 2008-03-06  Bruno Haible  <bruno@clisp.org>
45572
45573         * doc/func.texi: New file, extracted from doc/gnulib.texi.
45574         * doc/gnulib.texi: Include it.
45575
45576 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45577
45578         * modules/func (License): Change license to unlimited; there was
45579         no LGPL parts in the module anyway.
45580
45581 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45582
45583         * modules/__func__: Renamed to modules/func.
45584         * modules/__func__-tests: Renamed to modules/func-tests.
45585         * tests/test-__func__.c: Renamed to tests/test-func.c.
45586         * m4/__func__.m4: Renamed to m4/func.m4.
45587         * doc/gnulib.texi (__func__): Section renamed to func.
45588         Suggested by Eric Blake <ebb9@byu.net>.
45589
45590 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45591
45592         * doc/gnulib.texi (__func__): Use C99 terminology when talking
45593         about __func__.  Make example self-contained.  Suggested by Eric
45594         Blake <ebb9@byu.net>.
45595
45596         * tests/test-__func__.c (main): Avoid extraneous () around __func.
45597         Suggested by Eric Blake <ebb9@byu.net>.
45598
45599 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45600
45601         * modules/__func__: New file.
45602         * modules/__func__-tests: New file.
45603         * tests/test-__func__.c: New file.
45604         * m4/__func__.m4: New file.
45605         * doc/gnulib.texi (__func__): Document __func__ module.
45606
45607 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45608
45609         * modules/byteswap (License): Re-license as LGPLv2+.
45610
45611 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45612
45613         * doc/Makefile: Add pdf target.
45614
45615 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45616
45617         * modules/inline (License): Use 'unlimited', since there are only
45618         *.m4 files in this module.
45619
45620 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
45621             Bruno Haible  <bruno@clisp.org>
45622
45623         Add support for HP C 7.1 on OpenVMS 8.3.
45624         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
45625
45626 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
45627
45628         Update VMS specifics.
45629         * lib/getopt.c [VMS]: Remove include of unixlib.h.
45630
45631 2008-03-02  Jim Meyering  <meyering@redhat.com>
45632
45633         Remove the last dependency on the "free" module.
45634         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
45635         Reported by Bob Proulx.
45636
45637         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
45638
45639         Remove useless "if" tests before free.  Deprecate "free" module.
45640         * doc/posix-functions/free.texi: Mention that this
45641         module is no longer useful.
45642         * modules/free (Notice): Say this module is obsolete.
45643         * modules/readutmp (Depends-on): Remove free.
45644         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
45645         * lib/putenv.c (putenv): Likewise.
45646         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
45647         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
45648         * tests/test-c-strcasestr.c (main): Likewise.
45649         * tests/test-c-strstr.c (main): Likewise.
45650         * tests/test-mbscasestr1.c (main): Likewise.
45651         * tests/test-mbscasestr2.c (main): Likewise.
45652         * tests/test-mbsstr1.c (main): Likewise.
45653         * tests/test-mbsstr2.c (main): Likewise.
45654         * tests/test-memmem.c (main): Likewise.
45655         * tests/test-strcasestr.c (main): Likewise.
45656         * tests/test-striconv.c (main): Likewise.
45657         * tests/test-striconveh.c (main): Likewise.
45658         * tests/test-striconveha.c (main): Likewise.
45659         * tests/test-strstr.c (main): Likewise.
45660
45661         * build-aux/git-version-gen: Adjust a comment and the Usage string.
45662
45663         bootstrap: sync from coreutils again
45664         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
45665
45666 2008-03-01  Jim Meyering  <meyering@redhat.com>
45667
45668         bootstrap: sync from coreutils
45669         * build-aux/bootstrap (update_po_files): Copy a .po file into place
45670         also when the target doesn't exist.
45671
45672 2008-03-01  Eric Blake  <ebb9@byu.net>
45673
45674         Fix bugs in last patch.
45675         * lib/memchr2.c (memchr2): Fix typo.
45676         * tests/test-memchr2.c: Test previous bug, and don't use GNU
45677         extension.
45678         Reported by Bruce Korb.
45679
45680         New module 'memchr2'.
45681         * modules/memchr2: New file.
45682         * modules/memchr2-tests: Likewise.
45683         * lib/memchr2.h: Likewise.
45684         * lib/memchr2.c: Likewise, based on memchr.c.
45685         * tests/test-memchr2.c: New test.
45686         * MODULES.html.sh (String handling): Add memchr2.
45687
45688 2008-02-29  Bruno Haible  <bruno@clisp.org>
45689
45690         * modules/freadseek-tests: New file.
45691         * tests/test-freadseek.sh: New file.
45692         * tests/test-freadseek.c: New file.
45693
45694         New module 'freadseek'.
45695         * modules/freadseek: New file.
45696         * lib/freadseek.h: New file.
45697         * lib/freadseek.c: New file.
45698         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
45699
45700 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
45701
45702         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
45703         wydawca.
45704
45705         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
45706         program_invocation_name and program_invocation_short_name are
45707         present.
45708
45709 2008-02-28  Bruno Haible  <bruno@clisp.org>
45710
45711         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
45712         * tests/test-freadptr.sh: Also test non-seekable stdin.
45713
45714 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
45715
45716         * build-aux/bootstrap (source_base, m4_base)
45717         (doc_base, tests_base): New variables.
45718         (gnulib_tool_options): Do not hardcode base directories, use
45719         the above variables instead.
45720
45721 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
45722
45723         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
45724
45725 2008-02-28  Bruno Haible  <bruno@clisp.org>
45726
45727         * modules/freadptr-tests: New file.
45728         * tests/test-freadptr.sh: New file.
45729         * tests/test-freadptr.c: New file.
45730
45731         New module 'freadptr'.
45732         * modules/freadptr: New file.
45733         * lib/freadptr.h: New file.
45734         * lib/freadptr.c: New file.
45735         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
45736
45737 2008-02-26  Karl Berry  <karl@freefriends.org>
45738
45739         Sync from Libtool:
45740         * libltdl/argz.c (argz_add, argz_count): New functions.
45741         * libltdl/argz.in.h: Declare them.
45742         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
45743
45744 2008-02-22  Bruno Haible  <bruno@clisp.org>
45745
45746         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
45747         is a pointer type.  Needed for HP-UX 10.
45748         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
45749         * doc/posix-functions/gmtime_r.texi: Likewise.
45750         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
45751
45752 2008-02-24  Bruno Haible  <bruno@clisp.org>
45753
45754         * modules/environ-tests: New file.
45755         * tests/test-environ.c: New file.
45756
45757         New module 'environ'.
45758         * modules/environ: New file.
45759         * lib/unistd.in.h (environ): New declaration.
45760         * m4/environ.m4: New file.
45761         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
45762         after use.
45763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
45764         HAVE_DECL_ENVIRON.
45765         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
45766         HAVE_DECL_ENVIRON.
45767         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
45768         wrong claim that 'environ' is missing on some systems.
45769         * modules/execute (Depends-on): Add environ.
45770         * lib/execute.c (environ): Remove fallback declaration.
45771         * modules/pipe (Depends-on): Add environ.
45772         * lib/pipe.c (environ): Remove fallback declaration.
45773         * modules/setenv (Depends-on): Add environ.
45774         * lib/setenv.c (environ): Remove fallback declaration.
45775         * modules/unsetenv (Depends-on): Add environ.
45776         * lib/unsetenv.c (environ): Remove fallback declaration.
45777         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
45778         m4/environ.m4.
45779         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
45780         (gl_PREREQ_UNSETENV): Likewise.
45781
45782 2008-02-24  Bruno Haible  <bruno@clisp.org>
45783
45784         * doc/posix-functions/environ.texi: Document the MacOS X problem.
45785
45786 2008-02-20  Bob Proulx  <bob@proulx.com>
45787
45788         Enable use of older two part flavor 'git describe'.
45789         * build-aux/git-version-gen: If using the older two part flavor of
45790         git version then recreate the third part now present in the
45791         newer three part flavor of git describe.
45792
45793 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
45794
45795         * lib/fts.c (fts_build): Typo correction to comment.
45796
45797 2008-02-17  Bruno Haible  <bruno@clisp.org>
45798
45799         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
45800         generating no-op conflicts.
45801
45802 2008-02-17  Bruno Haible  <bruno@clisp.org>
45803
45804         Speed up by 10%.
45805         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
45806         result_entries, rather than an index-based loop.
45807
45808 2008-02-17  Bruno Haible  <bruno@clisp.org>
45809
45810         Speed up by 25%.
45811         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
45812         'hashcode_cached'.
45813         (entry_create): New function.
45814         (entry_hashcode): Use the cached hashcode if possible.
45815         (read_changelog_file, try_split_merged_entry): Use entry_create.
45816
45817 2008-02-17  Bruno Haible  <bruno@clisp.org>
45818
45819         Speed up from O(n^2) to O(n) for long ChangeLog files.
45820         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
45821         (read_changelog_file): Change implementation of entries_reversed list
45822         to rbtreehash.
45823         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
45824
45825 2008-02-17  Bruno Haible  <bruno@clisp.org>
45826
45827         New option --split-merged-entry.
45828         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
45829         (find_paragraph_end, try_split_merged_entry): New functions.
45830         (long_options): Add option --split-merged-entry.
45831         (usage): Document option --split-merged-entry.
45832         (main): Implement option --split-merged-entry.
45833         Reported by Eric Blake.
45834
45835 2008-02-17  Bruno Haible  <bruno@clisp.org>
45836
45837         * lib/git-merge-changelog.c: Include c-strstr.h.
45838         (main): Support the "git pull --rebase" situation.
45839         * modules/git-merge-changelog (Depends-on): Add c-strstr.
45840         Reported by Eric Blake.
45841
45842 2008-02-16  Eric Blake  <ebb9@byu.net>
45843
45844         Avoid doubling \ in common case of "c-maybe" quoting style.
45845         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
45846         eliding outer quotes.
45847         * lib/quotearg.h: Document this.
45848         * tests/test-quotearg.c (result_strings, inputs, results_g)
45849         (flag_results, locale_results): Test it by adding a new string to
45850         each test group.
45851         (compare_strings): Test new string.
45852
45853 2008-02-13  Eric Blake  <ebb9@byu.net>
45854
45855         Avoid trigraph quoting in default output.
45856         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
45857         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
45858         unless explicitly requested.
45859         * tests/test-quotearg.c (flag_results, main): Add additional tests.
45860
45861 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
45862
45863         Don't rely on signed integer overflowing to negative value.
45864         * lib/getugroups.c (getugroups): Include <limits.h>.
45865         Instead, compare against INT_MAX, and increment only if the test passes.
45866
45867 2008-02-13  Jim Meyering  <meyering@redhat.com>
45868         and Eric Blake  <ebb9@byu.net>
45869
45870         Avoid shadowing warning and compile errors on Linux.
45871         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
45872         forwarding macros on Linux.
45873         (dcgettext): Define a stub, for Linux.
45874         (results_g, main): Avoid warnings.
45875
45876 2008-02-12  Eric Blake  <ebb9@byu.net>
45877
45878         Silence warning in last patch.
45879         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
45880
45881         Quotearg part 4: add tests, fix c-maybe colon quoting.
45882         * lib/quotearg.h: Improve documentation.
45883         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
45884         escapes when adding outer quotes.  When quoting trigraphs, use
45885         valid C notation.  When quoting NUL, omit extra characters if next
45886         character is not digit.  Alter prototype.
45887         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
45888         callers.
45889         * modules/quotearg-tests: New module.
45890         * tests/test-quotearg.c: New test.
45891
45892 2008-02-07  Eric Blake  <ebb9@byu.net>
45893
45894         Quotearg part 3: add flag to control outer quote elision.
45895         * lib/quotearg.h (c_maybe_quoting_style): New style.
45896         (enum quoting_flags): Better documentation of flags.
45897         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
45898         c-maybe style.
45899         (quotearg_buffer_restyled): Handle new flag to elide outer
45900         quotes.
45901
45902         Quotearg part 2: add flag that can control NUL elision.
45903         * lib/quotearg.h (set_quoting_flags): New prototype.
45904         * lib/quotearg.c (struct quoting_options): Add flag field.
45905         (set_quoting_flags): New function.
45906         (quotearg_buffer_restyled): Add flags parameter.
45907         (quotearg_alloc_mem): Set the flag if length cannot be returned.
45908         (quotearg_n_options): Set the flag, since length cannot be
45909         returned.
45910         (quoting_options_from_style): Default flags correctly.
45911
45912         Quotearg part 1: more wrappers, restore quotearg_char state.
45913         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
45914         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
45915         (quotearg_colon_mem): New wrappers.
45916         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
45917         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
45918         functions.
45919         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
45920         (quotearg_colon_mem): New functions.
45921
45922 2008-02-11  Bruno Haible  <bruno@clisp.org>
45923
45924         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
45925         library in the current directory: it does not work with parallel make.
45926         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45927
45928 2008-02-11  Bruno Haible  <bruno@clisp.org>
45929
45930         * .gitattributes: New file.
45931
45932 2008-02-11  Jim Meyering  <meyering@redhat.com>
45933
45934         useless-if-before-free: Fix reversed exit values.
45935         * build-aux/useless-if-before-free: Use correct values
45936         for EXIT_MATCH and EXIT_NO_MATCH.
45937
45938         * build-aux/useless-if-before-free: Close stdout carefully.
45939
45940 2008-02-10  Bruno Haible  <bruno@clisp.org>
45941
45942         New module 'git-merge-changelog'.
45943         * modules/git-merge-changelog: New file.
45944         * lib/git-merge-changelog.c: New file.
45945
45946 2008-02-10  Jim Meyering  <meyering@redhat.com>
45947
45948         useless-if-before-free: New option: --list (-l).
45949
45950         useless-if-before-free: Don't exit immediately upon open failure.
45951         * build-aux/useless-if-before-free: Exit 2 for errors.
45952         Upon failure to open a file, don't exit immediately.
45953         Rather, just warn and continue with any remaining files.
45954
45955 2008-02-10  Bruno Haible  <bruno@clisp.org>
45956
45957         New abstract list operation 'node_set_value'.
45958         * lib/gl_list.h (gl_list_node_set_value): New function.
45959         (struct gl_list_implementation): New field node_set_value.
45960         * lib/gl_list.c (gl_list_node_set_value): New function.
45961         * lib/gl_array_list.c (gl_array_node_set_value): New function.
45962         (gl_array_list_implementation): Update.
45963         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
45964         (gl_carray_list_implementation): Update.
45965         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
45966         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
45967         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
45968         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
45969         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
45970         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
45971         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
45972         Update.
45973         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
45974         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
45975         (gl_sublist_list_implementation): Update.
45976
45977 2008-02-10  Bruno Haible  <bruno@clisp.org>
45978
45979         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
45980         Needed when ELEMENT is #defined to 'some_type *'.
45981
45982 2008-02-10  Jim Meyering  <meyering@redhat.com>
45983
45984         New script and module: useless-if-before-free
45985         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
45986         * build-aux/useless-if-before-free: New file.
45987         * modules/useless-if-before-free: New file.
45988
45989         * build-aux/gitlog-to-changelog: Use committer date, not author date.
45990
45991         xstrtol_error: Fix typo.
45992         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
45993         s/exit_failure/exit_status/.
45994
45995 2008-02-09  Jim Meyering  <meyering@redhat.com>
45996
45997         New script and module: gitlog-to-changelog
45998         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
45999         * modules/gitlog-to-changelog: New file.
46000         * build-aux/gitlog-to-changelog: New file.
46001
46002 2008-02-08  Jim Meyering  <meyering@redhat.com>
46003
46004         Avoid two "parameter unused" warnings.
46005         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
46006         Mark "st" as used.
46007
46008         Use "git COMMAND", not "git-COMMAND".
46009         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
46010         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
46011         * build-aux/git-version-gen: Use "git status", not "git-status".
46012
46013 2008-02-07  Bruno Haible  <bruno@clisp.org>
46014
46015         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
46016         Avoids a crash on Windows Vista.
46017         Reported by Adam Strzelecki <ono@java.pl> via
46018         Simon Josefsson <simon@josefsson.org>.
46019
46020 2008-02-06  Bruno Haible  <bruno@clisp.org>
46021
46022         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
46023         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
46024         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
46025         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
46026         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46027         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46028         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
46029         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
46030         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46031         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46032         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46033         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46034         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46035         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46036         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46037         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
46038         left-adjust flag.
46039         * tests/test-snprintf-posix.h (test_function): Likewise.
46040         * tests/test-sprintf-posix.h (test_function): Likewise.
46041         * tests/test-vasprintf-posix.c (test_function): Likewise.
46042         * doc/posix-functions/fprintf.texi: Update.
46043         * doc/posix-functions/printf.texi: Update.
46044         * doc/posix-functions/snprintf.texi: Update.
46045         * doc/posix-functions/sprintf.texi: Update.
46046         * doc/posix-functions/vfprintf.texi: Update.
46047         * doc/posix-functions/vprintf.texi: Update.
46048         * doc/posix-functions/vsnprintf.texi: Update.
46049         * doc/posix-functions/vsprintf.texi: Update.
46050         Reported by Peter Fales <psfales@alcatel-lucent.com>.
46051
46052 2008-02-06  Bruno Haible  <bruno@clisp.org>
46053
46054         Fix bug introduced on 2008-01-26.
46055         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
46056
46057 2008-02-06  Bruno Haible  <bruno@clisp.org>
46058
46059         Fix bug introduced on 2007-06-10.
46060         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
46061         !NEED_PRINTF_FLAG_ZERO.
46062
46063 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
46064
46065         getloadavg: use libperfstat on AIX5
46066         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
46067
46068 2008-02-03  Bruno Haible  <bruno@clisp.org>
46069
46070         * lib/diffseq.h: Add comments about required #includes.
46071         Reported by Michael Biggs <gnulib@doubleplum.net>.
46072
46073 2008-02-01  Bruno Haible  <bruno@clisp.org>
46074
46075         * users.txt: Add gnuit.
46076
46077 2008-01-31  Bruno Haible  <bruno@clisp.org>
46078
46079         * lib/md4.c (set_uint32): Mark as inline.
46080         * lib/md5.c (set_uint32): Likewise.
46081         * lib/sha1.c (set_uint32): Likewise.
46082         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
46083         * m4/md5.m4 (gl_MD5): Likewise.
46084         * m4/sha1.m4 (gl_SHA1): Likewise.
46085
46086 2008-01-31  Jim Meyering  <meyering@redhat.com>
46087
46088         Use "sizeof VAR", rather than a literal "4".
46089         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
46090         * lib/md4.c (md4_read_ctx): Likewise.
46091         * lib/sha1.c (sha1_read_ctx): Likewise.
46092
46093 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46094
46095         * tests/test-sha1.c: New file, based on test-md5.c.
46096
46097         * modules/crypto/sha1-tests: New file.
46098
46099 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46100
46101         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
46102
46103 2008-01-31  Jim Meyering  <meyering@redhat.com>
46104
46105         Prefer "sizeof v" over the equivalent "4".
46106         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
46107         * lib/md5.c (set_uint32): Likewise.
46108         * lib/sha1.c (set_uint32): Likewise.
46109
46110 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46111
46112         * lib/sha1.c (set_uint32): Mark function as static.
46113
46114 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46115
46116         md2: clarify comments to say that alignment is not required.
46117         * lib/md2.h: Remove warning about alignment in comment.
46118         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
46119         never been required.
46120
46121 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46122
46123         md4: adapt alignment constraint fix from sha1.
46124         * lib/md4.c (set_uint32): New function, from sha1.c
46125         (md4_read_ctx): Use it.
46126         (md4_finish_ctx): Doc fix.
46127         * lib/md4.h: Doc fix.
46128
46129 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46130
46131         md5: adapt alignment constraint fix from sha1.
46132         * lib/md5.c (set_uint32): New function, from sha1.c
46133         (md5_read_ctx): Use it.
46134         (md5_finish_ctx): Doc fix.
46135         * lib/md5.h: Doc fix.
46136
46137 2008-01-30  Peter Palfrader  <weasel@debian.org>
46138
46139         sha1: remove the result buffer alignment constraint
46140         * lib/sha1.c (set_uint32): New function.
46141         (sha1_read_ctx): Rewrite to remove the result buffer alignment
46142         constraint.
46143         (sha1_finish_ctx): Remove comment warning about alignment constraint.
46144         * lib/sha1.h: Likewise.
46145
46146 2008-01-30  Andreas Schwab  <schwab@suse.de>
46147             Bruno Haible  <bruno@clisp.org>
46148
46149         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
46150         correct definition of LDBL_MIN_EXP.
46151
46152 2008-01-30  Karl Berry  <karl@gnu.org>
46153
46154         * config/srclist-update: try to preserve x bit on updates.
46155         * config/srclistvars.sh: update for karl.
46156
46157 2008-01-29  Jim Meyering  <meyering@redhat.com>
46158
46159         vasnprintf.c: Avoid warning about unused label
46160         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
46161         "overflow" label definition and associated code with the
46162         same cpp condition that guards the sole use of that label.
46163
46164 2008-01-26  Bruno Haible  <bruno@clisp.org>
46165
46166         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
46167         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
46168         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
46169         * lib/isnanl-nolibm.h (isnanl): Likewise.
46170         Reported by Paul Eggert <eggert@cs.ucla.edu>.
46171
46172 2008-01-26  Bruno Haible  <bruno@clisp.org>
46173
46174         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
46175         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
46176
46177 2008-01-26  Bruno Haible  <bruno@clisp.org>
46178
46179         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
46180         GCC >= 4.0 built-in.
46181         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
46182
46183 2008-01-26  Bruno Haible  <bruno@clisp.org>
46184
46185         Rename isnan, applicable to 'double' only, to isnand.
46186         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
46187         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
46188         (configure.ac): Update.
46189         (Include): Replace "isnan.h" with "isnand.h".
46190         * m4/isnand.m4: Renamed from m4/isnan.m4.
46191         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
46192         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
46193         instead of isnan.c.
46194         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
46195         instead of HAVE_ISNAN_IN_LIBC.
46196         (isnand): Renamed from isnan.
46197         * lib/isnand.c: New file.
46198         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
46199         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
46200         (Makefile.am): Update.
46201         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
46202         Include isnand.h instead of isnan.h.
46203         (main): Test isnand instead of isnan.
46204         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
46205         isnan-nolibm.
46206         * modules/frexp (Depends-on): Likewise.
46207         * modules/frexp-tests (Depends-on): Likewise.
46208         * modules/frexp-nolibm (Depends-on): Likewise.
46209         * modules/frexp-nolibm-tests (Depends-on): Likewise.
46210         * modules/isfinite (Depends-on): Likewise.
46211         * modules/round-tests (Depends-on): Likewise.
46212         * modules/signbit (Depends-on): Likewise.
46213         * modules/signbit-tests (Depends-on): Likewise.
46214         * modules/snprintf-posix (Depends-on): Likewise.
46215         * modules/sprintf-posix (Depends-on): Likewise.
46216         * modules/trunc-tests (Depends-on): Likewise.
46217         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46218         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46219         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46220         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46221         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46222         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46223         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46224         * modules/vasnprintf-posix (Depends-on): Likewise.
46225         * modules/vasprintf-posix (Depends-on): Likewise.
46226         * modules/vfprintf-posix (Depends-on): Likewise.
46227         * modules/vsnprintf-posix (Depends-on): Likewise.
46228         * modules/vsprintf-posix (Depends-on): Likewise.
46229         * lib/frexp.c: Include isnand.h instead of isnan.h.
46230         (ISNAN): Set to isnand instead of isnan.
46231         * lib/isfinite.c: Include isnand.h instead of isnan.h.
46232         (gl_isfinited): Use isnand instead of isnan.
46233         * lib/signbitd.c: Include isnand.h instead of isnan.h.
46234         (gl_signbitd): Use isnand instead of isnan.
46235         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
46236         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
46237         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
46238         (main): Use isnand instead of isnan.
46239         * tests/test-round1.c: Include isnand.h.
46240         (main): Use isnand instead of isnan.
46241         * tests/test-round2.c: Include isnand.h instead of isnan.h.
46242         (ISNAN): Set to isnand instead of isnan.
46243         * tests/test-trunc1.c: Include isnand.h.
46244         (main): Use isnand instead of isnan.
46245         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
46246         (equal): Use isnand instead of isnan.
46247         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
46248         isnand-nolibm.
46249         * NEWS: Mention the change.
46250
46251 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
46252             Bruno Haible  <bruno@clisp.org>
46253
46254         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
46255         the GCC builtins for signbits are present and set
46256         REPLACE_SIGNBIT_USING_GCC if so.
46257         * lib/math.in.h (signbit): Define using GCC builtins if
46258         REPLACE_SIGNBIT_USING_GCC is set.
46259         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
46260         REPLACE_SIGNBIT_USING_GCC.
46261         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
46262
46263 2008-01-25  Jim Meyering  <meyering@redhat.com>
46264
46265         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
46266         * lib/poll.c: Include <config.h>, not "config.h".
46267         * tests/test-getaddrinfo.c: Likewise.
46268
46269 2008-01-25  Simon Josefsson  <simon@josefsson.org>
46270
46271         * modules/sockets-tests: New file.
46272
46273 2008-01-24  Simon Josefsson  <simon@josefsson.org>
46274
46275         * modules/sockets: New module, can be used to call WSA_Startup and
46276         WSA_Cleanup when needed.
46277
46278         * lib/sockets.h, lib/sockets.c: New files.
46279
46280         * m4/sockets.m4: New file.
46281
46282         * tests/test-sockets.c: New file.
46283
46284 2008-01-19  Bruno Haible  <bruno@clisp.org>
46285
46286         * doc/posix-headers: Renamed from doc/headers.
46287         * doc/posix-functions: Renamed from doc/functions.
46288         * doc/gnulib.texi: Update.
46289
46290 2008-01-19  Bruno Haible  <bruno@clisp.org>
46291
46292         * doc/glibc-functions/strcasestr.texi: Include contents of
46293         doc/functions/strcasestr.texi, fixing the list of platforms.
46294         * doc/functions/strcasestr.texi: Remove file.
46295
46296 2008-01-19  Bruno Haible  <bruno@clisp.org>
46297
46298         * doc/glibc-functions/memmem.texi: Include contents of
46299         doc/functions/memmem.texi.
46300         * doc/functions/memmem.texi: Remove file.
46301
46302 2008-01-18  Bruno Haible  <bruno@clisp.org>
46303
46304         * doc/glibc-functions/*.texi: New files.
46305         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
46306         to use the new files.
46307
46308 2008-01-17  Bruno Haible  <bruno@clisp.org>
46309
46310         * tests/test-gethostname.c (main): Fix printf statement.
46311
46312 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46313
46314         * modules/gethostname-tests: New file.
46315
46316         * tests/test-gethostname.c: New file.
46317
46318 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46319
46320         * lib/gethostname.c: Include string.h unconditionally, strncpy is
46321         used by the UNAME case.  Reported by Bruno Haible
46322         <bruno@clisp.org>.
46323
46324 2008-01-17  Eric Blake  <ebb9@byu.net>
46325
46326         Convert c-strcasestr to be more efficient.
46327         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
46328         (Depends-on): Add c-strcase, remove malloca, strnlen.
46329         * tests/test-c-strcasestr.c (main): Enhance test.
46330         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
46331
46332 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
46333
46334         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
46335         Use it in creating po/Makevars.
46336
46337 2008-01-15  Simon Josefsson  <simon@josefsson.org>
46338
46339         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
46340         Applications that requires it should initialize libgcrypt
46341         manually.
46342
46343 2008-01-16  Simon Josefsson  <simon@josefsson.org>
46344
46345         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
46346
46347 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
46348
46349         Fix problem with getdate on mingw32 reported by Simon Josefsson
46350         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
46351         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
46352         tzname", when deciding whether to declare tzname.
46353         * lib/strftime.c (tzname): Likewise.
46354
46355 2008-01-15  Bruno Haible  <bruno@clisp.org>
46356
46357         Work around a MacOS X 10.5 bug in frexpl().
46358         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
46359         * doc/functions/frexpl.texi: Document the bug.
46360         Reported by Elias Pipping <pipping@gentoo.org>.
46361
46362 2008-01-14  Eric Blake  <ebb9@byu.net>
46363
46364         Touch up previous patch.
46365         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
46366         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
46367
46368         Convert strcasestr module to use Two-Way algorithm.
46369         * modules/strcasestr-simple: New module, based on the old
46370         strcasestr, but with Two-Way rather than KMP.
46371         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
46372         * lib/string.in.h (rpl_strcasestr): Declare.
46373         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
46374         performance.
46375         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
46376         * modules/string (Makefile.am): Support strcasestr.
46377         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
46378         * modules/strcasestr-tests (Depends-on): Check for alarm.
46379         * tests/test-strcasestr.c: Augment test.
46380         * lib/str-two-way.h: Clean up stray macro.
46381         * NEWS: Document new module.
46382         * MODULES.html.sh (string handling): Likewise.
46383         * doc/functions/strcasestr.texi: New file.
46384         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
46385         here, since it is not a POSIX function.
46386
46387 2008-01-14  Colin Watson  <cjwatson@debian.org>
46388             Bruno Haible  <bruno@clisp.org>
46389
46390         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
46391         works fine; if not, set REPLACE_STRSIGNAL.
46392         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
46393         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46394         REPLACE_STRSIGNAL.
46395         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
46396         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
46397         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
46398
46399 2008-01-14  Bruno Haible  <bruno@clisp.org>
46400
46401         * modules/strsignal (Include): Change to <string.h>.
46402
46403 2008-01-14  Colin Watson  <cjwatson@debian.org>
46404
46405         * modules/argp (Notice): Add a notice recommending to change
46406         XGETTEXT_OPTIONS.
46407         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
46408
46409 2008-01-13  Colin Watson  <cjwatson@debian.org>
46410
46411         * modules/strsignal-tests: New file.
46412         * tests/test-strsignal.c: New file.
46413
46414         * lib/strsignal.c: New file, from glibc with modifications.
46415         * lib/siglist.h: New file, from glibc with modifications.
46416         * lib/string.in.h (strsignal): New declaration.
46417         * m4/strsignal.m4: New file.
46418         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46419         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
46420         * modules/strsignal: New file.
46421         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
46422         HAVE_DECL_STRSIGNAL.
46423
46424 2008-01-13  Bruno Haible  <bruno@clisp.org>
46425
46426         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
46427         locale encoding is not ASCII. Needed for OpenBSD 4.0.
46428         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
46429         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46430
46431 2008-01-13  Bruno Haible  <bruno@clisp.org>
46432
46433         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
46434         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
46435         * lib/argp.h (__attribute__): Likewise.
46436         * lib/c-stack.c (__attribute__): Likewise.
46437         * lib/error.h (__attribute__): Likewise.
46438         * lib/fts.c (__attribute__): Likewise.
46439         * lib/openat.h (__attribute__): Likewise.
46440         * lib/stdio.in.h (__attribute__): Likewise.
46441         * lib/string.in.h (__attribute__): Likewise.
46442         * lib/utimens.c (__attribute__): Likewise.
46443         * lib/vasnprintf.h (__attribute__): Likewise.
46444         * lib/xalloc.h (__attribute__): Likewise.
46445         * lib/xprintf.h (__attribute__): Likewise.
46446         * lib/xstrtol.h (__attribute__): Likewise.
46447         * lib/xvasprintf.h (__attribute__): Likewise.
46448
46449 2008-01-12  Bruno Haible  <bruno@clisp.org>
46450
46451         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
46452         * doc/glibc-headers/a.out.texi: New file.
46453         * doc/glibc-headers/aliases.texi: New file.
46454         * doc/glibc-headers/alloca.texi: New file.
46455         * doc/glibc-headers/ar.texi: New file.
46456         * doc/glibc-headers/argp.texi: New file.
46457         * doc/glibc-headers/argz.texi: New file.
46458         * doc/glibc-headers/byteswap.texi: New file.
46459         * doc/glibc-headers/crypt.texi: New file.
46460         * doc/glibc-headers/endian.texi: New file.
46461         * doc/glibc-headers/envz.texi: New file.
46462         * doc/glibc-headers/err.texi: New file.
46463         * doc/glibc-headers/error.texi: New file.
46464         * doc/glibc-headers/execinfo.texi: New file.
46465         * doc/glibc-headers/fpu_control.texi: New file.
46466         * doc/glibc-headers/fstab.texi: New file.
46467         * doc/glibc-headers/fts.texi: New file.
46468         * doc/glibc-headers/getopt.texi: New file.
46469         * doc/glibc-headers/ieee754.texi: New file.
46470         * doc/glibc-headers/ifaddrs.texi: New file.
46471         * doc/glibc-headers/libintl.texi: New file.
46472         * doc/glibc-headers/mcheck.texi: New file.
46473         * doc/glibc-headers/mntent.texi: New file.
46474         * doc/glibc-headers/obstack.texi: New file.
46475         * doc/glibc-headers/paths.texi: New file.
46476         * doc/glibc-headers/printf.texi: New file.
46477         * doc/glibc-headers/pty.texi: New file.
46478         * doc/glibc-headers/resolv.texi: New file.
46479         * doc/glibc-headers/shadow.texi: New file.
46480         * doc/glibc-headers/sysexits.texi: New file.
46481         * doc/glibc-headers/ttyent.texi: New file.
46482
46483 2008-01-12  Jim Meyering  <meyering@redhat.com>
46484
46485         announce-gen: emit Gnulib's git-based version string.
46486         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
46487         New option --gnulib-version=V, where V is expected to be
46488         the output of running git describe in the gnulib directory.
46489         (get_tool_versions): Request feedback on xdelta.  I suspect it's
46490         not useful, and plan to stop publishing an xdelta file with each
46491         coreutils release.
46492
46493         * build-aux/announce-gen: Also check for lzma-compressed files.
46494
46495 2008-01-11  Bruno Haible  <bruno@clisp.org>
46496
46497         * tests/test-memmem.c (main): Increase maximum allowed time.
46498         * tests/test-strstr.c (main): Likewise.
46499
46500 2008-01-11  Bruno Haible  <bruno@clisp.org>
46501
46502         * doc/functions/memmem.texi: Add more precisions about platforms.
46503         * doc/functions/strstr.texi: Likewise.
46504
46505 2008-01-10  Eric Blake  <ebb9@byu.net>
46506
46507         * m4/strstr.m4: Delete cruft from copy-n-paste.
46508         Reported by Bruno Haible.
46509
46510 2008-01-10  Bruno Haible  <bruno@clisp.org>
46511
46512         Make c-strstr rely on strstr.
46513         * lib/c-strstr.c: Don't include str-kmp.h.
46514         (c_strstr): Define in terms of strstr.
46515         * modules/c-strstr (Files): Remove lib/str-kmp.h.
46516         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
46517
46518 2008-01-10  Bruno Haible  <bruno@clisp.org>
46519
46520         * doc/gnulib.texi (String Functions in C Locale): New section.
46521         * doc/c-ctype.texi: New file.
46522         * doc/c-strcase.texi: New file.
46523         * doc/c-strcaseeq.texi: New file.
46524         * doc/c-strcasestr.texi: New file.
46525         * doc/c-strstr.texi: New file.
46526         * doc/c-strtod.texi: New file.
46527         * doc/c-strtold.texi: New file.
46528
46529 2008-01-10  Eric Blake  <ebb9@byu.net>
46530
46531         * lib/relocatable.h: Fix a comment.
46532
46533 2008-01-10  Eric Blake  <ebb9@byu.net>
46534
46535         Share two-way algorithm.
46536         * lib/str-two-way.h: New file, merged from...
46537         * lib/memmem.c: ...here...
46538         * lib/strstr.c: ...and here.
46539         * modules/memmem (Files): Use it.
46540         * modules/strstr (Files): Likewise.
46541
46542         Avoid quadratic strstr implementations.
46543         * lib/strstr.c: New file.
46544         * m4/strstr.m4: Likewise.
46545         * modules/strstr: Likewise.
46546         * modules/strstr-tests: Likewise.
46547         * tests/test-strstr.c: Likewise.
46548         * lib/string.in.h (rpl_strstr): Declare.
46549         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
46550         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
46551         * modules/string (Makefile.am): Likewise.
46552         * MODULES.html.sh (string handling): Mention new module.
46553         * doc/functions/strstr.texi (strstr): Document the bug.
46554
46555 2008-01-10  Bruno Haible  <bruno@clisp.org>
46556
46557         * lib/relocatable.h (relocate): State whether result is freshly
46558         allocated or not.
46559         * lib/relocatable.c (relocate): Return a freshly allocated string
46560         instead of a pointer to a privately held string.
46561         Reported by Sylvain Beucler <beuc@gnu.org>.
46562
46563 2008-01-10  Colin Watson  <cjwatson@debian.org>
46564
46565         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
46566         s/S_ISNLK/S_ISLNK/.
46567
46568 2008-01-09  Bruno Haible  <bruno@clisp.org>
46569
46570         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
46571         and other files.
46572         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
46573         if it's only a guess.
46574         * modules/memmem: Simplify by depending on memmem-simple.
46575
46576 2008-01-09  Bruno Haible  <bruno@clisp.org>
46577
46578         Work around OpenBSD 4.0 tdelete() bug.
46579         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
46580         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
46581         macros and don't redefine the enum values.
46582         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
46583         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
46584         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
46585
46586 2008-01-09  Bruno Haible  <bruno@clisp.org>
46587
46588         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
46589         (main): Don't perform the tests if setlocale did not install a UTF-8
46590         locale. Needed on OpenBSD 4.0.
46591         * modules/wcwidth-tests (Depends-on): Add localcharset.
46592
46593 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46594
46595         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
46596         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
46597         * NEWS: announce this.
46598         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
46599
46600 2008-01-09  Simon Josefsson  <simon@josefsson.org>
46601         and Eric Blake  <ebb9@byu.net>
46602
46603         Add memmem-simple module.
46604         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
46605         (gl_FUNC_MEMMEM): Separate performance from presence checks.
46606         * modules/memmem-simple: New file.
46607         * modules/memmem (Description): Tweak.
46608         * MODULES.html.sh (string handling): Mention new module.
46609         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
46610         addressed by memmem-simple.
46611         * NEWS: Document the difference.
46612
46613 2008-01-09  Eric Blake  <ebb9@byu.net>
46614
46615         Give gcc some memmem optimization hints.
46616         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
46617         (strcasestr): Declare as pure.
46618         * modules/memmem (Maintainer): Claim my implementation.
46619
46620 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46621
46622         Support AIX 6.1 and higher.
46623         * build-aux/config.libpath: Likewise.
46624         * build-aux/config.rpath: Likewise.
46625
46626 2008-01-08  Jim Meyering  <meyering@redhat.com>
46627             Bruno Haible  <bruno@clisp.org>
46628
46629         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
46630         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
46631         Reported by Peter Fales in
46632         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
46633
46634 2008-01-08  Bruno Haible  <bruno@clisp.org>
46635
46636         * modules/unictype/category-of (Depends-on): Add
46637         unictype/category-none.
46638         * modules/unictype/category-and-tests (Depends-on): Add
46639         unictype/category-{L,N,Lu,Nd}.
46640         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
46641         * modules/unictype/category-or-tests (Depends-on): Add
46642         unictype/category-{L,N}.
46643         * modules/unictype/category-name-tests (Depends-on): Add
46644         unictype/category-{Z,Nl}.
46645         Reported by Simon Josefsson.
46646
46647 2008-01-08  Bruno Haible  <bruno@clisp.org>
46648
46649         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
46650         convention better.
46651         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
46652         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
46653         Reported by Peter Miller <millerp@canb.auug.org.au>.
46654
46655 2008-01-08  Eric Blake  <ebb9@byu.net>
46656
46657         Rewrite memmem to guarantee linear complexity without malloc.
46658         * lib/memmem.c (memmem): Use Two-Way rather than
46659         Knuth-Morris-Pratt, to allow O(1) space usage.
46660         (critical_factorization, two_way_short_needle)
46661         (two_way_long_needle): New functions.
46662         (knuth_morris_pratt): Delete.
46663         * modules/memmem (Depends-on): No longer need malloca or stdbool.
46664         Add stdint.
46665         * tests/test-memmem.c (main): Add tests for periodic needle and
46666         sublinear performance.
46667         * doc/functions/memmem.texi (memmem): Document other deficiencies
46668         in cygwin and older glibc.
46669
46670 2008-01-08  Bruno Haible  <bruno@clisp.org>
46671
46672         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
46673         augmentation.
46674
46675 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
46676
46677         Add a configure time option: --disable-acl.
46678         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
46679         AC_ARG_ENABLE(acl).
46680
46681 2008-01-06  Simon Josefsson  <simon@josefsson.org>
46682
46683         * tests/test-localename.c: Don't include obsolete "setenv.h".
46684
46685         * modules/localename-tests (Depends-on): Need unsetenv.
46686
46687 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46688
46689         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
46690
46691 2008-01-06  Colin Watson  <cjwatson@debian.org>
46692
46693         * users.txt: Add man-db.
46694
46695 2008-01-07  Bruno Haible  <bruno@clisp.org>
46696
46697         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
46698         previous section name.
46699
46700 2008-01-07  Bruno Haible  <bruno@clisp.org>
46701
46702         * lib/progname.c (set_program_name): Don't strip off a leading
46703         "lt-" prefix outside a .libs directory.
46704         Suggested by Paul Eggert.
46705
46706 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
46707             Bruno Haible  <bruno@clisp.org>
46708
46709         Improve memory cleanup in 'relocatable' module.
46710         * lib/relocatable.h (compute_curr_prefix): Change return type to
46711         'char *'.
46712         * lib/relocatable.c (compute_curr_prefix): Change return type to
46713         'char *'. Free curr_installdir after use.
46714         (relocate): Free curr_prefix_better after use.
46715         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
46716
46717 2008-01-01  Bruno Haible  <bruno@clisp.org>
46718
46719         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
46720         failure on older glibc systems.
46721         Reported by Peter Fales <psfales@alcatel-lucent.com>.
46722
46723 2008-01-05  Eric Blake  <ebb9@byu.net>
46724
46725         Avoid quadratic system memmem.
46726         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
46727         Reported by Ralf Wildenhues.
46728
46729         Fix memmem test for mingw.
46730         * modules/memmem-tests (configure.ac): Check for alarm.
46731         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
46732         it.
46733         * doc/functions/memmem.texi: New file.
46734         * doc/gnulib.texi (Function Substitutes): Add memmem.
46735         Reported by Bruno Haible.
46736
46737 2008-01-04  Bruno Haible  <bruno@clisp.org>
46738
46739         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
46740         Require gl_HEADER_STRINGS_H_DEFAULTS, not
46741         gl_HEADER_STRING_H_DEFAULTS.
46742
46743 2008-01-04  Eric Blake  <ebb9@byu.net>
46744
46745         Shorten duration of memmem test.
46746         * tests/test-memmem.c (main): Use alarm to declare failure if test
46747         is taking too long.
46748         Reported by Ralf Wildenhues.
46749
46750 2007-12-21  Simon Josefsson  <simon@josefsson.org>
46751
46752         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
46753         string, needed by strerror.
46754
46755 2008-01-03  Colin Watson  <cjwatson@debian.org>
46756             Bruno Haible  <bruno@clisp.org>
46757
46758         * doc/gnulib-tool.texi (Localization): New section.
46759
46760 2008-01-02  Bruno Haible  <bruno@clisp.org>
46761
46762         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
46763         variables to 'unsigned char *' type.
46764         Reported by Paul Eggert.
46765
46766 2008-01-02  Jim Meyering  <jim@meyering.net>
46767
46768         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
46769
46770 2007-12-31  Jim Meyering  <jim@meyering.net>
46771
46772         Avoid use of private FTS type name.
46773         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
46774
46775 2007-12-30  Karl Berry  <karl@gnu.org>
46776
46777         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
46778         work around defect in Texinfo and/or the standalone Info browser.
46779
46780 2007-12-30  Bruno Haible  <bruno@clisp.org>
46781
46782         Unify 5 copies of the KMP code.
46783         * lib/str-kmp.h: New file.
46784         * lib/c-strcasestr.c: Include str-kmp.h.
46785         (knuth_morris_pratt): Remove function.
46786         (c_strcasestr): Update.
46787         * lib/c-strstr.c: Include str-kmp.h.
46788         (knuth_morris_pratt): Remove function.
46789         (c_strcasestr): Update.
46790         * lib/mbscasestr.c: Include str-kmp.h.
46791         (knuth_morris_pratt_unibyte): Remove function.
46792         * lib/mbsstr.c: Include str-kmp.h.
46793         (knuth_morris_pratt_unibyte): Remove function.
46794         * lib/strcasestr.c: Include str-kmp.h.
46795         (knuth_morris_pratt): Remove function.
46796         (strcasestr): Update.
46797         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
46798         * modules/c-strstr (Files): Likewise.
46799         * modules/mbscasestr (Files): Likewise.
46800         * modules/mbsstr (Files): Likewise.
46801         * modules/strcasestr (Files): Likewise.
46802         Suggested by Paul Eggert.
46803
46804 2007-12-30  Bruno Haible  <bruno@clisp.org>
46805
46806         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
46807         defined.
46808
46809 2007-12-30  Bruno Haible  <bruno@clisp.org>
46810
46811         * lib/xmalloca.h: Include xalloc.h.
46812         (xnmalloca): New macro.
46813
46814 2007-12-30  Bruno Haible  <bruno@clisp.org>
46815
46816         * lib/malloca.h (nmalloca): New macro.
46817         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
46818         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
46819         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
46820         knuth_morris_pratt_multibyte): Likewise.
46821         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
46822         knuth_morris_pratt_multibyte): Likewise.
46823         * lib/memmem.c (knuth_morris_pratt): Likewise.
46824         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
46825
46826 2007-12-25  Bruno Haible  <bruno@clisp.org>
46827
46828         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
46829         * lib/glob.c: Don't include openat.h.
46830         (link_exists2_p): Add back the code that deals with the
46831         !GLOB_ALTDIRFUNC case.
46832         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
46833         let it do the filename concatenation.
46834         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
46835         * modules/glob (Depends-on): Remove openat.
46836
46837 2007-12-31  Bruno Haible  <bruno@clisp.org>
46838
46839         * modules/dirfd (License): Change to LGPLv2+.
46840         Approved by Jim Meyering.
46841
46842 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
46843
46844         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
46845         when multiplying M by sizeof (size_t).
46846
46847 2007-12-10  Martin Lambers  <marlam@marlam.de>
46848
46849         Override getpagesize on mingw.
46850         * lib/getpagesize.c: New file.
46851         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
46852         * modules/getpagesize (Files): Add lib/getpagesize.c.
46853         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
46854         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46855         REPLACE_GETPAGESIZE.
46856         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
46857
46858 2007-12-25  Bruno Haible  <bruno@clisp.org>
46859
46860         * modules/localcharset (Notice): New field.
46861         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
46862         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
46863
46864 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
46865             Bruno Haible  <bruno@clisp.org>
46866
46867         Avoid using the syntax symbol() in formatted documentation.
46868         * MODULES.html.sh (func_module): When replacing symbol() with a
46869         hyperlink, remove the parentheses. Show an error if some remain.
46870         Recognize and render the '...' syntax.
46871         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
46872         Rework. Add paragraph about GCC's inlining.
46873         * doc/alloca.texi: Likewise.
46874         * doc/error.texi: Remove parentheses from symbol reference.
46875         * doc/gnulib-intro.texi: Likewise.
46876         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
46877         * modules/fnmatch (Description): Reword to say "the ... function".
46878         * modules/full-read (Description): Likewise.
46879         * modules/full-write (Description): Likewise.
46880         * modules/safe-read (Description): Likewise.
46881         * modules/safe-write (Description): Likewise.
46882         * modules/strchrnul (Description): Likewise.
46883         * modules/trim (Description): Likewise.
46884         * modules/error (Description): Remove parentheses from symbol
46885         references.
46886         * modules/verror (Description): Likewise.
46887         Reported by Karl Berry.
46888
46889 2007-12-25  Bruno Haible  <bruno@clisp.org>
46890
46891         Fixup after 2007-10-16 commit.
46892         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
46893
46894 2007-12-24  Bruno Haible  <bruno@clisp.org>
46895
46896         Make --enable-relocatable work with DESTDIR.
46897         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
46898         to compute installdir from destprog.
46899         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
46900         also set the RELOC_DESTDIR variable.
46901         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
46902
46903 2007-12-24  Bruno Haible  <bruno@clisp.org>
46904
46905         Fix link error due to xalloc_die().
46906         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
46907         of xreadlink.
46908         * lib/relocwrapper.c: Update comments.
46909         * build-aux/install-reloc: Remove xreadlink.c from file list.
46910         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
46911         xreadlink.c.
46912         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
46913
46914 2007-12-24  Bruno Haible  <bruno@clisp.org>
46915
46916         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
46917         * lib/setenv.h: Remove file.
46918         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
46919         lib/setenv.h.
46920         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
46921         (Depends-on): Add stdlib.
46922         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
46923         gl_FUNC_UNSETENV.
46924         (Include): Replace setenv.h with <stdlib.h>.
46925         * modules/unsetenv: New file.
46926         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
46927         * lib/unsetenv.c: Include <stdlib.h> first.
46928         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
46929         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
46930         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
46931         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
46932         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
46933         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
46934         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
46935         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
46936         * doc/functions/unsetenv.texi: Update.
46937         * modules/xsetenv (Depends-on): Add unsetenv.
46938         * modules/getdate (Depends-on): Likewise.
46939         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
46940         * lib/xsetenv.c: Don't include setenv.h.
46941         * lib/getdate.y: Likewise.
46942         * lib/relocwrapper.c: Likewise.
46943         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
46944         (Depends-on): Add stdlib.
46945         * NEWS: Mention the changes.
46946         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
46947
46948 2007-12-23  Bruno Haible  <bruno@clisp.org>
46949
46950         * lib/memmem.c (memmem): Use lowercase variable names. Tab
46951         indentation.
46952
46953 2007-12-23  Bruno Haible  <bruno@clisp.org>
46954
46955         * lib/c-strcasestr.c: Add more comments.
46956         * lib/c-strstr.c: Likewise.
46957         * lib/mbscasestr.c: Likewise.
46958         * lib/mbsstr.c: Likewise.
46959         * lib/strcasestr.c: Likewise.
46960         * lib/memmem.c: Likewise.
46961
46962 2007-12-23  Bruno Haible  <bruno@clisp.org>
46963
46964         * tests/test-memmem.c: Include <string.h> first.
46965
46966 2007-12-22  Bruno Haible  <bruno@clisp.org>
46967
46968         * gnulib-tool (func_create_testdir): Change $auxdir while generating
46969         the contents of $testsbase.
46970         Reported by Ralf Wildenhues.
46971
46972 2007-12-22  Bruno Haible  <bruno@clisp.org>
46973
46974         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
46975         two variables local_ldadd_before, local_ldadd_last.
46976
46977 2007-12-20  Eric Blake  <ebb9@byu.net>
46978
46979         Work around circular library issue when cross-compiling.
46980         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
46981         that progname.o does not need to pull in rpl_memcmp.
46982
46983 2007-12-19  Eric Blake  <ebb9@byu.net>
46984
46985         Fix memmem to avoid O(n^2) worst-case complexity.
46986         * lib/memmem.c (knuth_morris_pratt): New function.
46987         (memmem): Use it if first few naive iterations fail.
46988         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
46989         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
46990         * modules/memchr (License): Likewise.
46991         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
46992         malloca.
46993         * tests/test-memmem.c: Rewrite, borrowing ideas from
46994         test-mbsstr1.c; the old version wouldn't even compile!
46995         * modules/memmem-tests: New file.
46996         * lib/string.in.h (rpl_memmem): Add declaration.
46997         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
46998         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
46999         REPLACE_MEMMEM.
47000
47001 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47002
47003         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
47004         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
47005         before any system include files, and undef after them all.  This
47006         should fix a problem on VMS reported by John E. Malmberg in
47007         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
47008
47009 2007-12-17  Eric Blake  <ebb9@byu.net>
47010
47011         Revert addition of verify, for BSD/OS.
47012         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
47013         can't handle large files, for the sake of obsolete platforms.
47014         * modules/fseeko (Depends-on): Remove verify.
47015         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
47016         * doc/functions/ftello.texi (ftello): Likewise.
47017         * doc/functions/fgetpos.texi (fgetpos): Likewise.
47018         Reported by Larry Jones.
47019
47020 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
47021
47022         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
47023         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
47024
47025 2007-12-17  Jim Meyering  <meyering@redhat.com>
47026
47027         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
47028         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
47029         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
47030         * modules/getcwd (Depends-on): Add openat.
47031         Reported by Petr Salinger.
47032
47033 2007-12-17  Bruno Haible  <bruno@clisp.org>
47034
47035         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
47036         avoid a segmentation fault of the configure test on x86_64 systems.
47037
47038 2007-12-15  Jim Meyering  <meyering@redhat.com>
47039
47040         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
47041
47042 2007-12-13  Eric Blake  <ebb9@byu.net>
47043
47044         Another fseek test.
47045         * tests/test-fseek.c (main): Also test ungetc handling.
47046         * tests/test-fseeko.c (main): Likewise.
47047         * modules/fseeko (Depends-on): Add verify.
47048         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
47049         large.
47050         Reported by Larry Jones.
47051
47052         Fix fseeko on mingw.
47053         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
47054         seek.
47055
47056         Beef up fseek tests.
47057         * tests/test-fseek.c (main): Also test eof handling.
47058         * tests/test-fseeko.c (main): Likewise.
47059         Reported by Larry Jones.
47060
47061 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
47062
47063         Fix fseeko on BSD-based platforms.
47064         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
47065         successful seek.
47066
47067 2007-12-12  Eric Blake  <ebb9@byu.net>
47068
47069         Allow circular dependency of separate libtests.a
47070         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
47071         when use_libtests.
47072
47073 2007-12-11  Eric Blake  <ebb9@byu.net>
47074
47075         Fix bug with -0.0L in previous patch.
47076         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
47077         * tests/test-isnan.c (main): Also test on zeroes.
47078         * tests/test-isnanf.c (main): Likewise.
47079         * tests/test-isnanl.h (main): Likewise.
47080
47081         Detect pseudo-denormals on x86 even when cross-compiling.
47082         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
47083         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
47084         invalid bit patterns that happen to satisfy ==.
47085
47086         Avoid link failures with separate libtests.a.
47087         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
47088         last, to satisfy circular dependencies.
47089
47090 2007-12-11  Eric Blake  <ebb9@byu.net>
47091         and Bruno Haible  <bruno@clisp.org>
47092
47093         Fix OpenBSD 4.0 <float.h> handling of long double.
47094         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
47095         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
47096         * doc/headers/float.texi (float.h): Document OpenBSD bug.
47097
47098 2007-12-11  Jim Meyering  <meyering@redhat.com>
47099
47100         * users.txt: Add libvirt.
47101
47102         Support versions of autoconf prior to 2.59c.
47103         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
47104         if it is not already defined.
47105
47106 2007-12-09  Bruno Haible  <bruno@clisp.org>
47107
47108         Let 'gnulib-tool --import' collect sources needed for the tests in
47109         tests/ rather than in lib/.
47110         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
47111         argument. If true, add rules to generate libtests.a, and put libtests.a
47112         into $(LDADD). Consider source files in subdirectories and set
47113         uses_subdirs.
47114         (func_emit_initmacro_start, func_emit_initmacro_end,
47115         func_emit_initmacro_done): Pass all arguments explicitly.
47116         (func_import): Determine two module lists main_modules,
47117         testsrelated_modules. Determine use_libtests. Determine two variables
47118         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
47119         instead of just sed_transform_lib_file. Determine two variables
47120         main_files and testsrelated_files. Compute 'files' as the union of
47121         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
47122         func_add_or_update. In the generated gnulib-comp.m4, collect the
47123         object files for tests/ in different variables than those for lib/.
47124         Substitute LIBTESTS_LIBDEPS.
47125         (func_create_testdir): Combine the uses_subdirs results from
47126         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
47127
47128 2007-12-09  Bruno Haible  <bruno@clisp.org>
47129
47130         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
47131         the build-aux directory.
47132
47133 2007-12-09  Bruno Haible  <bruno@clisp.org>
47134
47135         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
47136         introduced on 2006-09-09.
47137
47138 2007-12-07  Jim Meyering  <meyering@redhat.com>
47139
47140         Let these macros work also with autoconf-2.59.
47141         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
47142         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
47143         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47144
47145 2007-12-06  Jim Meyering  <meyering@redhat.com>
47146
47147         Avoid a configure-time syntax error in gl_FUNC_ACL.
47148         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
47149         function in each branch, before testing the cache variable.
47150
47151 2007-12-04  Eric Blake  <ebb9@byu.net>
47152
47153         Make scripts executable.
47154         * build-aux/config.guess: Add execute permissions.
47155         * build-aux/config.sub: Likewise.
47156         * build-aux/gendocs.sh: Likewise.
47157
47158         Fix frexp on mingw.
47159         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
47160         cross-compiling.
47161         * doc/functions/frexp.texi (frexp): Document the bug.
47162
47163         Make cygwin fseeko check more reliable.
47164         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
47165         version numbers, rather than unrelated feature check.
47166         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
47167         * doc/functions/ftello.texi (ftello): Likewise.
47168         Reported by Bruno Haible.
47169
47170         * m4/strerror.m4: Bump version number.
47171
47172 2007-12-03  Bruno Haible  <bruno@clisp.org>
47173
47174         * doc/functions/mprotect.texi: Mention the mingw problem.
47175
47176 2007-12-03  Eric Blake  <ebb9@byu.net>
47177
47178         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
47179         REPLACE_STRERROR is initialized before this macro.
47180
47181 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47182
47183         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
47184         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
47185         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
47186         put -lsec in even for programs other than 'ls'.  This fixes a problem
47187         for gettext reported by Bruno Haible in
47188         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
47189         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
47190         Add support for Solaris 10.  This isn't efficient, but should get the
47191         job done for now.
47192
47193 2007-12-03  James Youngman  <jay@gnu.org>
47194
47195         * doc/regexprops-generic.texi: change "an close-group" to "a
47196         close-group" and "illegal" to "not allowed".
47197
47198 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47199
47200         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
47201         pr_byname.h. Needed for the rare case when the maintainer has done
47202         "make maintainer-clean" in the source directory and then attempts a
47203         build outside the source directory.
47204         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
47205         scripts_byname.h.
47206
47207 2007-12-02  Martin Lambers <marlam@marlam.de>
47208             Bruno Haible  <bruno@clisp.org>
47209
47210         * lib/getpagesize.h: Remove file.
47211         * lib/unistd.in.h: Include declaration of getpagesize here.
47212         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
47213         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
47214         HAVE_SYS_PARAM_H.
47215         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
47216         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47217         * modules/getpagesize (Files): Remove lib/getpagesize.h.
47218         (Depends-on): Add unistd.
47219         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47220         (Include): Use <unistd.h> instead of getpagesize.h.
47221         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
47222         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47223         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
47224         gl_GETPAGESIZE invocation, already handled by module dependency.
47225         * lib/pagealign_alloc.c: Don't include getpagesize.h.
47226
47227 2007-12-02  Bruno Haible  <bruno@clisp.org>
47228
47229         * modules/strings-tests: New file.
47230         * tests/test-strings.c: New file.
47231
47232         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
47233         * lib/strings.in.h: New file.
47234         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
47235         * m4/strings_h.m4: New file.
47236         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
47237         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
47238         * modules/strings: New file.
47239         * modules/string (Makefile.am): Update.
47240         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
47241         Reported by Karl Berry.
47242
47243 2007-12-01  Eric Blake  <ebb9@byu.net>
47244
47245         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
47246         accomodate fix in cygwin 1.5.25.
47247
47248 2007-12-01  Jim Meyering  <meyering@redhat.com>
47249
47250         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
47251         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
47252         that would inhibit utf8-optimization of a regexp containing line-
47253         or buffer-anchors, e.g., `^', `$'.
47254
47255 2007-11-30  Bruno Haible  <bruno@clisp.org>
47256
47257         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
47258         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
47259         glthread_recursive_lock_init.
47260         * lib/lock.c (glthread_recursive_lock_init)
47261         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
47262         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47263
47264 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
47265
47266         New function qset_acl, like set_acl but with syscall semantics.
47267         * lib/acl.h (qset_acl): New decl.
47268         * lib/acl.c (qset_acl): New function.
47269         (set_acl): Use new function.  Use more-consistent diagnostics.
47270
47271 2007-11-28  Jim Meyering  <meyering@redhat.com>
47272
47273         * modules/physmem (License): Change from GPL to LGPLv2+.
47274
47275 2007-11-26  Bruno Haible  <bruno@clisp.org>
47276
47277         * lib/vasnprintf.c (decode_long_double): Don't abort if the
47278         'long double' type has excess precision.
47279         Reported by Jim Meyering in
47280         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
47281
47282 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47283
47284         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
47285         Sync from <http://gnu.org/licenses>.
47286         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
47287         with license text from same location.
47288         * doc/maintain.texi, doc/standards.texi:  Sync from
47289         <http://savannah.gnu.org/projects/gnustandards>.
47290
47291 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
47292         and Jim Meyering  <meyering@redhat.com>
47293
47294         Adjust getdate' grammar to accept a slightly more regular language.
47295         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
47296         Before, the former was rejected.
47297         * lib/getdate.y (digits_to_date_time): New function, factored
47298         out of ...
47299         (number): ...here.  Just call digits_to_date_time.
47300         (hybrid): New non-terminal to handle an <unsigned number,
47301         signed relative offset> sequence consistently.
47302
47303 2007-11-18  Jim Meyering  <meyering@redhat.com>
47304
47305         Pull my changes from coreutils:
47306         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
47307         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
47308         use of $gnulib_tool_option_extras, so that it's separated from the
47309         preceding argument.
47310
47311         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
47312         * build-aux/bootstrap (cp_mark_as_generated): Create any required
47313         parent destination directories before copying a file into place.
47314
47315 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
47316
47317         bootstrap: work also with 4-argument variant of AC_INIT
47318         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
47319
47320 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47321
47322         Port test-getaddrinfo to Solaris.
47323         Problem reported by Bruno Haible in
47324         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
47325         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
47326         explanation of setting 'hints'.
47327         Don't reject an implementation merely because it returns EAI_SERVICE.
47328         (EAI_SERVICE): Define to 0 if not defined.
47329
47330 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47331
47332         The license of gnu-make and posix-shell is now "GPLed build tool".
47333         * modules/gnu-make (License): Likewise.
47334         * modules/posix-shell (License): Likewise.
47335
47336         New module posix-shell, for determining a POSIX shell
47337         or perhaps something that is close enough to a POSIX shell.
47338         * m4/posix-shell.m4: New file.
47339         * modules/posix-shell: New file.
47340
47341         * MODULES.html.sh: Mention new module.
47342
47343         New module gnu-make, for determining whether we're using GNU Make.
47344         * m4/gnu-make.m4: New file.
47345         * modules/gnu-make: New file.
47346         * MODULES.html.sh: Mention new module.
47347
47348 2007-11-14  Jim Meyering  <meyering@redhat.com>
47349
47350         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
47351         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
47352         use this macro to create a function _definition_.
47353         Remove useless "#undef ARGMATCH_DIE".
47354
47355 2007-11-14  Bruno Haible  <bruno@clisp.org>
47356
47357         * lib/config.charset: Update for OpenBSD 4.1.
47358         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
47359
47360 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
47361
47362         Document 64-bit #if problems in stdint.texi.
47363         * doc/headers/stdint.texi (stdint.h): Mention problems with
47364         64-bit-#if, and how to work around them.
47365
47366         Don't insist on 'long long int' support in the preprocessor.  It
47367         breaks too many things.  For example, PRIdMAX still uses a 'long
47368         long int' format with the latest Sun compiler, even though
47369         HAVE_LONG_LONG_INT isn't defined due to that compiler's
47370         preprocessor problem.  This causes the latest coreutils to dump
47371         core on Solaris 10 sparc with the Sun C compiler.
47372         Instead, fix the 2007-10-16 problem in a different way, by evaluating
47373         the troublesome expressions at configure-time, not at #if-time.
47374         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
47375         preprocessor.
47376         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
47377         compile-time C checks, done at 'configure'-time.
47378         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
47379         * modules/inttypes (Makefile): Substitute the new symbols that
47380         gl_INTTYPES_H now generates.
47381         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
47382
47383 2007-11-12  Bruno Haible  <bruno@clisp.org>
47384
47385         Tests for Unicode character classification functions.
47386
47387         * modules/unictype/bidicategory-byname-tests: New file.
47388         * modules/unictype/bidicategory-name-tests: New file.
47389         * modules/unictype/bidicategory-of-tests: New file.
47390         * modules/unictype/bidicategory-test-tests: New file.
47391         * modules/unictype/block-list-tests: New file.
47392         * modules/unictype/block-of-tests: New file.
47393         * modules/unictype/block-test-tests: New file.
47394         * modules/unictype/category-C-tests: New file.
47395         * modules/unictype/category-Cc-tests: New file.
47396         * modules/unictype/category-Cf-tests: New file.
47397         * modules/unictype/category-Cn-tests: New file.
47398         * modules/unictype/category-Co-tests: New file.
47399         * modules/unictype/category-Cs-tests: New file.
47400         * modules/unictype/category-L-tests: New file.
47401         * modules/unictype/category-Ll-tests: New file.
47402         * modules/unictype/category-Lm-tests: New file.
47403         * modules/unictype/category-Lo-tests: New file.
47404         * modules/unictype/category-Lt-tests: New file.
47405         * modules/unictype/category-Lu-tests: New file.
47406         * modules/unictype/category-M-tests: New file.
47407         * modules/unictype/category-Mc-tests: New file.
47408         * modules/unictype/category-Me-tests: New file.
47409         * modules/unictype/category-Mn-tests: New file.
47410         * modules/unictype/category-N-tests: New file.
47411         * modules/unictype/category-Nd-tests: New file.
47412         * modules/unictype/category-Nl-tests: New file.
47413         * modules/unictype/category-No-tests: New file.
47414         * modules/unictype/category-P-tests: New file.
47415         * modules/unictype/category-Pc-tests: New file.
47416         * modules/unictype/category-Pd-tests: New file.
47417         * modules/unictype/category-Pe-tests: New file.
47418         * modules/unictype/category-Pf-tests: New file.
47419         * modules/unictype/category-Pi-tests: New file.
47420         * modules/unictype/category-Po-tests: New file.
47421         * modules/unictype/category-Ps-tests: New file.
47422         * modules/unictype/category-S-tests: New file.
47423         * modules/unictype/category-Sc-tests: New file.
47424         * modules/unictype/category-Sk-tests: New file.
47425         * modules/unictype/category-Sm-tests: New file.
47426         * modules/unictype/category-So-tests: New file.
47427         * modules/unictype/category-Z-tests: New file.
47428         * modules/unictype/category-Zl-tests: New file.
47429         * modules/unictype/category-Zp-tests: New file.
47430         * modules/unictype/category-Zs-tests: New file.
47431         * modules/unictype/category-and-not-tests: New file.
47432         * modules/unictype/category-and-tests: New file.
47433         * modules/unictype/category-byname-tests: New file.
47434         * modules/unictype/category-name-tests: New file.
47435         * modules/unictype/category-none-tests: New file.
47436         * modules/unictype/category-of-tests: New file.
47437         * modules/unictype/category-or-tests: New file.
47438         * modules/unictype/category-test-withtable-tests: New file.
47439         * modules/unictype/combining-class-tests: New file.
47440         * modules/unictype/ctype-alnum-tests: New file.
47441         * modules/unictype/ctype-alpha-tests: New file.
47442         * modules/unictype/ctype-blank-tests: New file.
47443         * modules/unictype/ctype-cntrl-tests: New file.
47444         * modules/unictype/ctype-digit-tests: New file.
47445         * modules/unictype/ctype-graph-tests: New file.
47446         * modules/unictype/ctype-lower-tests: New file.
47447         * modules/unictype/ctype-print-tests: New file.
47448         * modules/unictype/ctype-punct-tests: New file.
47449         * modules/unictype/ctype-space-tests: New file.
47450         * modules/unictype/ctype-upper-tests: New file.
47451         * modules/unictype/ctype-xdigit-tests: New file.
47452         * modules/unictype/decimal-digit-tests: New file.
47453         * modules/unictype/digit-tests: New file.
47454         * modules/unictype/mirror-tests: New file.
47455         * modules/unictype/numeric-tests: New file.
47456         * modules/unictype/property-alphabetic-tests: New file.
47457         * modules/unictype/property-ascii-hex-digit-tests: New file.
47458         * modules/unictype/property-bidi-arabic-digit-tests: New file.
47459         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
47460         * modules/unictype/property-bidi-block-separator-tests: New file.
47461         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
47462         * modules/unictype/property-bidi-common-separator-tests: New file.
47463         * modules/unictype/property-bidi-control-tests: New file.
47464         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
47465         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
47466         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
47467         * modules/unictype/property-bidi-european-digit-tests: New file.
47468         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
47469         * modules/unictype/property-bidi-left-to-right-tests: New file.
47470         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
47471         * modules/unictype/property-bidi-other-neutral-tests: New file.
47472         * modules/unictype/property-bidi-pdf-tests: New file.
47473         * modules/unictype/property-bidi-segment-separator-tests: New file.
47474         * modules/unictype/property-bidi-whitespace-tests: New file.
47475         * modules/unictype/property-byname-tests: New file.
47476         * modules/unictype/property-combining-tests: New file.
47477         * modules/unictype/property-composite-tests: New file.
47478         * modules/unictype/property-currency-symbol-tests: New file.
47479         * modules/unictype/property-dash-tests: New file.
47480         * modules/unictype/property-decimal-digit-tests: New file.
47481         * modules/unictype/property-default-ignorable-code-point-tests: New file.
47482         * modules/unictype/property-deprecated-tests: New file.
47483         * modules/unictype/property-diacritic-tests: New file.
47484         * modules/unictype/property-extender-tests: New file.
47485         * modules/unictype/property-format-control-tests: New file.
47486         * modules/unictype/property-grapheme-base-tests: New file.
47487         * modules/unictype/property-grapheme-extend-tests: New file.
47488         * modules/unictype/property-grapheme-link-tests: New file.
47489         * modules/unictype/property-hex-digit-tests: New file.
47490         * modules/unictype/property-hyphen-tests: New file.
47491         * modules/unictype/property-id-continue-tests: New file.
47492         * modules/unictype/property-id-start-tests: New file.
47493         * modules/unictype/property-ideographic-tests: New file.
47494         * modules/unictype/property-ids-binary-operator-tests: New file.
47495         * modules/unictype/property-ids-trinary-operator-tests: New file.
47496         * modules/unictype/property-ignorable-control-tests: New file.
47497         * modules/unictype/property-iso-control-tests: New file.
47498         * modules/unictype/property-join-control-tests: New file.
47499         * modules/unictype/property-left-of-pair-tests: New file.
47500         * modules/unictype/property-line-separator-tests: New file.
47501         * modules/unictype/property-logical-order-exception-tests: New file.
47502         * modules/unictype/property-lowercase-tests: New file.
47503         * modules/unictype/property-math-tests: New file.
47504         * modules/unictype/property-non-break-tests: New file.
47505         * modules/unictype/property-not-a-character-tests: New file.
47506         * modules/unictype/property-numeric-tests: New file.
47507         * modules/unictype/property-other-alphabetic-tests: New file.
47508         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
47509         * modules/unictype/property-other-grapheme-extend-tests: New file.
47510         * modules/unictype/property-other-id-continue-tests: New file.
47511         * modules/unictype/property-other-id-start-tests: New file.
47512         * modules/unictype/property-other-lowercase-tests: New file.
47513         * modules/unictype/property-other-math-tests: New file.
47514         * modules/unictype/property-other-uppercase-tests: New file.
47515         * modules/unictype/property-paired-punctuation-tests: New file.
47516         * modules/unictype/property-paragraph-separator-tests: New file.
47517         * modules/unictype/property-pattern-syntax-tests: New file.
47518         * modules/unictype/property-pattern-white-space-tests: New file.
47519         * modules/unictype/property-private-use-tests: New file.
47520         * modules/unictype/property-punctuation-tests: New file.
47521         * modules/unictype/property-quotation-mark-tests: New file.
47522         * modules/unictype/property-radical-tests: New file.
47523         * modules/unictype/property-sentence-terminal-tests: New file.
47524         * modules/unictype/property-soft-dotted-tests: New file.
47525         * modules/unictype/property-space-tests: New file.
47526         * modules/unictype/property-terminal-punctuation-tests: New file.
47527         * modules/unictype/property-test-tests: New file.
47528         * modules/unictype/property-titlecase-tests: New file.
47529         * modules/unictype/property-unassigned-code-value-tests: New file.
47530         * modules/unictype/property-unified-ideograph-tests: New file.
47531         * modules/unictype/property-uppercase-tests: New file.
47532         * modules/unictype/property-variation-selector-tests: New file.
47533         * modules/unictype/property-white-space-tests: New file.
47534         * modules/unictype/property-xid-continue-tests: New file.
47535         * modules/unictype/property-xid-start-tests: New file.
47536         * modules/unictype/property-zero-width-tests: New file.
47537         * modules/unictype/scripts-tests: New file.
47538         * modules/unictype/syntax-c-ident-tests: New file.
47539         * modules/unictype/syntax-c-whitespace-tests: New file.
47540         * modules/unictype/syntax-java-ident-tests: New file.
47541         * modules/unictype/syntax-java-whitespace-tests: New file.
47542         * tests/unictype/test-bidi_byname.c: New file.
47543         * tests/unictype/test-bidi_name.c: New file.
47544         * tests/unictype/test-bidi_of.c: New file.
47545         * tests/unictype/test-bidi_test.c: New file.
47546         * tests/unictype/test-block_list.c: New file.
47547         * tests/unictype/test-block_of.c: New file.
47548         * tests/unictype/test-block_test.c: New file.
47549         * tests/unictype/test-categ_and.c: New file.
47550         * tests/unictype/test-categ_and_not.c: New file.
47551         * tests/unictype/test-categ_byname.c: New file.
47552         * tests/unictype/test-categ_name.c: New file.
47553         * tests/unictype/test-categ_none.c: New file.
47554         * tests/unictype/test-categ_of.c: New file.
47555         * tests/unictype/test-categ_or.c: New file.
47556         * tests/unictype/test-categ_test_withtable.c: New file.
47557         * tests/unictype/test-combining.c: New file.
47558         * tests/unictype/test-decdigit.c: New file.
47559         * tests/unictype/test-digit.c: New file.
47560         * tests/unictype/test-mirror.c: New file.
47561         * tests/unictype/test-numeric.c: New file.
47562         * tests/unictype/test-pr_byname.c: New file.
47563         * tests/unictype/test-pr_test.c: New file.
47564         * tests/unictype/test-predicate-part1.h: New file.
47565         * tests/unictype/test-predicate-part2.h: New file.
47566         * tests/unictype/test-scripts.c: New file.
47567         * tests/unictype/test-sy_c_ident.c: New file.
47568         * tests/unictype/test-sy_java_ident.c: New file.
47569
47570         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
47571         for Unicode 5.0.0.
47572         * tests/unictype/test-categ_Cc.c: Likewise.
47573         * tests/unictype/test-categ_Cf.c: Likewise.
47574         * tests/unictype/test-categ_Cn.c: Likewise.
47575         * tests/unictype/test-categ_Co.c: Likewise.
47576         * tests/unictype/test-categ_Cs.c: Likewise.
47577         * tests/unictype/test-categ_L.c: Likewise.
47578         * tests/unictype/test-categ_Ll.c: Likewise.
47579         * tests/unictype/test-categ_Lm.c: Likewise.
47580         * tests/unictype/test-categ_Lo.c: Likewise.
47581         * tests/unictype/test-categ_Lt.c: Likewise.
47582         * tests/unictype/test-categ_Lu.c: Likewise.
47583         * tests/unictype/test-categ_M.c: Likewise.
47584         * tests/unictype/test-categ_Mc.c: Likewise.
47585         * tests/unictype/test-categ_Me.c: Likewise.
47586         * tests/unictype/test-categ_Mn.c: Likewise.
47587         * tests/unictype/test-categ_N.c: Likewise.
47588         * tests/unictype/test-categ_Nd.c: Likewise.
47589         * tests/unictype/test-categ_Nl.c: Likewise.
47590         * tests/unictype/test-categ_No.c: Likewise.
47591         * tests/unictype/test-categ_P.c: Likewise.
47592         * tests/unictype/test-categ_Pc.c: Likewise.
47593         * tests/unictype/test-categ_Pd.c: Likewise.
47594         * tests/unictype/test-categ_Pe.c: Likewise.
47595         * tests/unictype/test-categ_Pf.c: Likewise.
47596         * tests/unictype/test-categ_Pi.c: Likewise.
47597         * tests/unictype/test-categ_Po.c: Likewise.
47598         * tests/unictype/test-categ_Ps.c: Likewise.
47599         * tests/unictype/test-categ_S.c: Likewise.
47600         * tests/unictype/test-categ_Sc.c: Likewise.
47601         * tests/unictype/test-categ_Sk.c: Likewise.
47602         * tests/unictype/test-categ_Sm.c: Likewise.
47603         * tests/unictype/test-categ_So.c: Likewise.
47604         * tests/unictype/test-categ_Z.c: Likewise.
47605         * tests/unictype/test-categ_Zl.c: Likewise.
47606         * tests/unictype/test-categ_Zp.c: Likewise.
47607         * tests/unictype/test-categ_Zs.c: Likewise.
47608         * tests/unictype/test-ctype_alnum.c: Likewise.
47609         * tests/unictype/test-ctype_alpha.c: Likewise.
47610         * tests/unictype/test-ctype_blank.c: Likewise.
47611         * tests/unictype/test-ctype_cntrl.c: Likewise.
47612         * tests/unictype/test-ctype_digit.c: Likewise.
47613         * tests/unictype/test-ctype_graph.c: Likewise.
47614         * tests/unictype/test-ctype_lower.c: Likewise.
47615         * tests/unictype/test-ctype_print.c: Likewise.
47616         * tests/unictype/test-ctype_punct.c: Likewise.
47617         * tests/unictype/test-ctype_space.c: Likewise.
47618         * tests/unictype/test-ctype_upper.c: Likewise.
47619         * tests/unictype/test-ctype_xdigit.c: Likewise.
47620         * tests/unictype/test-decdigit.h: Likewise.
47621         * tests/unictype/test-digit.h: Likewise.
47622         * tests/unictype/test-numeric.h: Likewise.
47623         * tests/unictype/test-pr_alphabetic.c: Likewise.
47624         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
47625         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
47626         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
47627         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
47628         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
47629         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
47630         * tests/unictype/test-pr_bidi_control.c: Likewise.
47631         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
47632         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
47633         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
47634         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
47635         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
47636         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
47637         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
47638         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
47639         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
47640         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
47641         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
47642         * tests/unictype/test-pr_combining.c: Likewise.
47643         * tests/unictype/test-pr_composite.c: Likewise.
47644         * tests/unictype/test-pr_currency_symbol.c: Likewise.
47645         * tests/unictype/test-pr_dash.c: Likewise.
47646         * tests/unictype/test-pr_decimal_digit.c: Likewise.
47647         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
47648         * tests/unictype/test-pr_deprecated.c: Likewise.
47649         * tests/unictype/test-pr_diacritic.c: Likewise.
47650         * tests/unictype/test-pr_extender.c: Likewise.
47651         * tests/unictype/test-pr_format_control.c: Likewise.
47652         * tests/unictype/test-pr_grapheme_base.c: Likewise.
47653         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
47654         * tests/unictype/test-pr_grapheme_link.c: Likewise.
47655         * tests/unictype/test-pr_hex_digit.c: Likewise.
47656         * tests/unictype/test-pr_hyphen.c: Likewise.
47657         * tests/unictype/test-pr_id_continue.c: Likewise.
47658         * tests/unictype/test-pr_id_start.c: Likewise.
47659         * tests/unictype/test-pr_ideographic.c: Likewise.
47660         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
47661         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
47662         * tests/unictype/test-pr_ignorable_control.c: Likewise.
47663         * tests/unictype/test-pr_iso_control.c: Likewise.
47664         * tests/unictype/test-pr_join_control.c: Likewise.
47665         * tests/unictype/test-pr_left_of_pair.c: Likewise.
47666         * tests/unictype/test-pr_line_separator.c: Likewise.
47667         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
47668         * tests/unictype/test-pr_lowercase.c: Likewise.
47669         * tests/unictype/test-pr_math.c: Likewise.
47670         * tests/unictype/test-pr_non_break.c: Likewise.
47671         * tests/unictype/test-pr_not_a_character.c: Likewise.
47672         * tests/unictype/test-pr_numeric.c: Likewise.
47673         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
47674         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
47675         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
47676         * tests/unictype/test-pr_other_id_continue.c: Likewise.
47677         * tests/unictype/test-pr_other_id_start.c: Likewise.
47678         * tests/unictype/test-pr_other_lowercase.c: Likewise.
47679         * tests/unictype/test-pr_other_math.c: Likewise.
47680         * tests/unictype/test-pr_other_uppercase.c: Likewise.
47681         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
47682         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
47683         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
47684         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
47685         * tests/unictype/test-pr_private_use.c: Likewise.
47686         * tests/unictype/test-pr_punctuation.c: Likewise.
47687         * tests/unictype/test-pr_quotation_mark.c: Likewise.
47688         * tests/unictype/test-pr_radical.c: Likewise.
47689         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
47690         * tests/unictype/test-pr_soft_dotted.c: Likewise.
47691         * tests/unictype/test-pr_space.c: Likewise.
47692         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
47693         * tests/unictype/test-pr_titlecase.c: Likewise.
47694         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
47695         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
47696         * tests/unictype/test-pr_uppercase.c: Likewise.
47697         * tests/unictype/test-pr_variation_selector.c: Likewise.
47698         * tests/unictype/test-pr_white_space.c: Likewise.
47699         * tests/unictype/test-pr_xid_continue.c: Likewise.
47700         * tests/unictype/test-pr_xid_start.c: Likewise.
47701         * tests/unictype/test-pr_zero_width.c: Likewise.
47702         * tests/unictype/test-sy_c_whitespace.c: Likewise.
47703         * tests/unictype/test-sy_java_whitespace.c: Likewise.
47704
47705 2007-11-12  Bruno Haible  <bruno@clisp.org>
47706
47707         Unicode character classification functions.
47708         * lib/unictype.h: New file.
47709         * modules/unictype/base: New file.
47710         * modules/unictype/category-L: New file.
47711         * modules/unictype/category-Lu: New file.
47712         * modules/unictype/category-Ll: New file.
47713         * modules/unictype/category-Lt: New file.
47714         * modules/unictype/category-Lm: New file.
47715         * modules/unictype/category-Lo: New file.
47716         * modules/unictype/category-M: New file.
47717         * modules/unictype/category-Mn: New file.
47718         * modules/unictype/category-Mc: New file.
47719         * modules/unictype/category-Me: New file.
47720         * modules/unictype/category-N: New file.
47721         * modules/unictype/category-Nd: New file.
47722         * modules/unictype/category-Nl: New file.
47723         * modules/unictype/category-No: New file.
47724         * modules/unictype/category-P: New file.
47725         * modules/unictype/category-Pc: New file.
47726         * modules/unictype/category-Pd: New file.
47727         * modules/unictype/category-Ps: New file.
47728         * modules/unictype/category-Pe: New file.
47729         * modules/unictype/category-Pi: New file.
47730         * modules/unictype/category-Pf: New file.
47731         * modules/unictype/category-Po: New file.
47732         * modules/unictype/category-S: New file.
47733         * modules/unictype/category-Sm: New file.
47734         * modules/unictype/category-Sc: New file.
47735         * modules/unictype/category-Sk: New file.
47736         * modules/unictype/category-So: New file.
47737         * modules/unictype/category-Z: New file.
47738         * modules/unictype/category-Zs: New file.
47739         * modules/unictype/category-Zl: New file.
47740         * modules/unictype/category-Zp: New file.
47741         * modules/unictype/category-C: New file.
47742         * modules/unictype/category-Cc: New file.
47743         * modules/unictype/category-Cf: New file.
47744         * modules/unictype/category-Cs: New file.
47745         * modules/unictype/category-Co: New file.
47746         * modules/unictype/category-Cn: New file.
47747         * modules/unictype/category-or: New file.
47748         * modules/unictype/category-of: New file.
47749         * modules/unictype/category-test: New file.
47750         * modules/unictype/category-test-withtable: New file.
47751         * modules/unictype/category-byname: New file.
47752         * modules/unictype/category-none: New file.
47753         * modules/unictype/category-and: New file.
47754         * modules/unictype/category-and-not: New file.
47755         * modules/unictype/category-name: New file.
47756         * modules/unictype/combining-class: New file.
47757         * modules/unictype/category-all: New file.
47758         * modules/unictype/bidicategory-all: New file.
47759         * modules/unictype/bidicategory-byname: New file.
47760         * modules/unictype/bidicategory-name: New file.
47761         * modules/unictype/bidicategory-of: New file.
47762         * modules/unictype/bidicategory-test: New file.
47763         * modules/unictype/decimal-digit: New file.
47764         * modules/unictype/digit: New file.
47765         * modules/unictype/numeric: New file.
47766         * modules/unictype/mirror: New file.
47767         * modules/unictype/property-white-space: New file.
47768         * modules/unictype/property-alphabetic: New file.
47769         * modules/unictype/property-other-alphabetic: New file.
47770         * modules/unictype/property-not-a-character: New file.
47771         * modules/unictype/property-default-ignorable-code-point: New file.
47772         * modules/unictype/property-other-default-ignorable-code-point: New
47773         file.
47774         * modules/unictype/property-deprecated: New file.
47775         * modules/unictype/property-logical-order-exception: New file.
47776         * modules/unictype/property-variation-selector: New file.
47777         * modules/unictype/property-private-use: New file.
47778         * modules/unictype/property-unassigned-code-value: New file.
47779         * modules/unictype/property-uppercase: New file.
47780         * modules/unictype/property-other-uppercase: New file.
47781         * modules/unictype/property-lowercase: New file.
47782         * modules/unictype/property-other-lowercase: New file.
47783         * modules/unictype/property-titlecase: New file.
47784         * modules/unictype/property-soft-dotted: New file.
47785         * modules/unictype/property-id-start: New file.
47786         * modules/unictype/property-other-id-start: New file.
47787         * modules/unictype/property-id-continue: New file.
47788         * modules/unictype/property-other-id-continue: New file.
47789         * modules/unictype/property-xid-start: New file.
47790         * modules/unictype/property-xid-continue: New file.
47791         * modules/unictype/property-pattern-white-space: New file.
47792         * modules/unictype/property-pattern-syntax: New file.
47793         * modules/unictype/property-join-control: New file.
47794         * modules/unictype/property-grapheme-base: New file.
47795         * modules/unictype/property-grapheme-extend: New file.
47796         * modules/unictype/property-other-grapheme-extend: New file.
47797         * modules/unictype/property-grapheme-link: New file.
47798         * modules/unictype/property-bidi-control: New file.
47799         * modules/unictype/property-bidi-left-to-right: New file.
47800         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
47801         * modules/unictype/property-bidi-arabic-right-to-left: New file.
47802         * modules/unictype/property-bidi-european-digit: New file.
47803         * modules/unictype/property-bidi-eur-num-separator: New file.
47804         * modules/unictype/property-bidi-eur-num-terminator: New file.
47805         * modules/unictype/property-bidi-arabic-digit: New file.
47806         * modules/unictype/property-bidi-common-separator: New file.
47807         * modules/unictype/property-bidi-block-separator: New file.
47808         * modules/unictype/property-bidi-segment-separator: New file.
47809         * modules/unictype/property-bidi-whitespace: New file.
47810         * modules/unictype/property-bidi-non-spacing-mark: New file.
47811         * modules/unictype/property-bidi-boundary-neutral: New file.
47812         * modules/unictype/property-bidi-pdf: New file.
47813         * modules/unictype/property-bidi-embedding-or-override: New file.
47814         * modules/unictype/property-bidi-other-neutral: New file.
47815         * modules/unictype/property-hex-digit: New file.
47816         * modules/unictype/property-ascii-hex-digit: New file.
47817         * modules/unictype/property-ideographic: New file.
47818         * modules/unictype/property-unified-ideograph: New file.
47819         * modules/unictype/property-radical: New file.
47820         * modules/unictype/property-ids-binary-operator: New file.
47821         * modules/unictype/property-ids-trinary-operator: New file.
47822         * modules/unictype/property-zero-width: New file.
47823         * modules/unictype/property-space: New file.
47824         * modules/unictype/property-non-break: New file.
47825         * modules/unictype/property-iso-control: New file.
47826         * modules/unictype/property-format-control: New file.
47827         * modules/unictype/property-dash: New file.
47828         * modules/unictype/property-hyphen: New file.
47829         * modules/unictype/property-punctuation: New file.
47830         * modules/unictype/property-line-separator: New file.
47831         * modules/unictype/property-paragraph-separator: New file.
47832         * modules/unictype/property-quotation-mark: New file.
47833         * modules/unictype/property-sentence-terminal: New file.
47834         * modules/unictype/property-terminal-punctuation: New file.
47835         * modules/unictype/property-currency-symbol: New file.
47836         * modules/unictype/property-math: New file.
47837         * modules/unictype/property-other-math: New file.
47838         * modules/unictype/property-paired-punctuation: New file.
47839         * modules/unictype/property-left-of-pair: New file.
47840         * modules/unictype/property-combining: New file.
47841         * modules/unictype/property-composite: New file.
47842         * modules/unictype/property-decimal-digit: New file.
47843         * modules/unictype/property-numeric: New file.
47844         * modules/unictype/property-diacritic: New file.
47845         * modules/unictype/property-extender: New file.
47846         * modules/unictype/property-ignorable-control: New file.
47847         * modules/unictype/property-test: New file.
47848         * modules/unictype/property-byname: New file.
47849         * modules/unictype/property-all: New file.
47850         * modules/unictype/scripts: New file.
47851         * modules/unictype/scripts-all: New file.
47852         * modules/unictype/block-of: New file.
47853         * modules/unictype/block-test: New file.
47854         * modules/unictype/block-list: New file.
47855         * modules/unictype/block-all: New file.
47856         * modules/unictype/syntax-c-whitespace: New file.
47857         * modules/unictype/syntax-java-whitespace: New file.
47858         * modules/unictype/syntax-c-ident: New file.
47859         * modules/unictype/syntax-java-ident: New file.
47860         * modules/unictype/ctype-alnum: New file.
47861         * modules/unictype/ctype-alpha: New file.
47862         * modules/unictype/ctype-cntrl: New file.
47863         * modules/unictype/ctype-digit: New file.
47864         * modules/unictype/ctype-graph: New file.
47865         * modules/unictype/ctype-lower: New file.
47866         * modules/unictype/ctype-print: New file.
47867         * modules/unictype/ctype-punct: New file.
47868         * modules/unictype/ctype-space: New file.
47869         * modules/unictype/ctype-upper: New file.
47870         * modules/unictype/ctype-xdigit: New file.
47871         * modules/unictype/ctype-blank: New file.
47872         * lib/unictype/bidi_byname.c: New file.
47873         * lib/unictype/bidi_name.c: New file.
47874         * lib/unictype/bidi_of.c: New file.
47875         * lib/unictype/bidi_test.c: New file.
47876         * lib/unictype/bitmap.h: New file.
47877         * lib/unictype/block_test.c: New file.
47878         * lib/unictype/blocks.c: New file.
47879         * lib/unictype/categ_C.c: New file.
47880         * lib/unictype/categ_Cc.c: New file.
47881         * lib/unictype/categ_Cf.c: New file.
47882         * lib/unictype/categ_Cn.c: New file.
47883         * lib/unictype/categ_Co.c: New file.
47884         * lib/unictype/categ_Cs.c: New file.
47885         * lib/unictype/categ_L.c: New file.
47886         * lib/unictype/categ_Ll.c: New file.
47887         * lib/unictype/categ_Lm.c: New file.
47888         * lib/unictype/categ_Lo.c: New file.
47889         * lib/unictype/categ_Lt.c: New file.
47890         * lib/unictype/categ_Lu.c: New file.
47891         * lib/unictype/categ_M.c: New file.
47892         * lib/unictype/categ_Mc.c: New file.
47893         * lib/unictype/categ_Me.c: New file.
47894         * lib/unictype/categ_Mn.c: New file.
47895         * lib/unictype/categ_N.c: New file.
47896         * lib/unictype/categ_Nd.c: New file.
47897         * lib/unictype/categ_Nl.c: New file.
47898         * lib/unictype/categ_No.c: New file.
47899         * lib/unictype/categ_P.c: New file.
47900         * lib/unictype/categ_Pc.c: New file.
47901         * lib/unictype/categ_Pd.c: New file.
47902         * lib/unictype/categ_Pe.c: New file.
47903         * lib/unictype/categ_Pf.c: New file.
47904         * lib/unictype/categ_Pi.c: New file.
47905         * lib/unictype/categ_Po.c: New file.
47906         * lib/unictype/categ_Ps.c: New file.
47907         * lib/unictype/categ_S.c: New file.
47908         * lib/unictype/categ_Sc.c: New file.
47909         * lib/unictype/categ_Sk.c: New file.
47910         * lib/unictype/categ_Sm.c: New file.
47911         * lib/unictype/categ_So.c: New file.
47912         * lib/unictype/categ_Z.c: New file.
47913         * lib/unictype/categ_Zl.c: New file.
47914         * lib/unictype/categ_Zp.c: New file.
47915         * lib/unictype/categ_Zs.c: New file.
47916         * lib/unictype/categ_and.c: New file.
47917         * lib/unictype/categ_and_not.c: New file.
47918         * lib/unictype/categ_byname.c: New file.
47919         * lib/unictype/categ_name.c: New file.
47920         * lib/unictype/categ_none.c: New file.
47921         * lib/unictype/categ_of.c: New file.
47922         * lib/unictype/categ_or.c: New file.
47923         * lib/unictype/categ_test.c: New file.
47924         * lib/unictype/combining.c: New file.
47925         * lib/unictype/ctype_alnum.c: New file.
47926         * lib/unictype/ctype_alpha.c: New file.
47927         * lib/unictype/ctype_blank.c: New file.
47928         * lib/unictype/ctype_cntrl.c: New file.
47929         * lib/unictype/ctype_digit.c: New file.
47930         * lib/unictype/ctype_graph.c: New file.
47931         * lib/unictype/ctype_lower.c: New file.
47932         * lib/unictype/ctype_print.c: New file.
47933         * lib/unictype/ctype_punct.c: New file.
47934         * lib/unictype/ctype_space.c: New file.
47935         * lib/unictype/ctype_upper.c: New file.
47936         * lib/unictype/ctype_xdigit.c: New file.
47937         * lib/unictype/decdigit.c: New file.
47938         * lib/unictype/digit.c: New file.
47939         * lib/unictype/identsyntaxmap.h: New file.
47940         * lib/unictype/mirror.c: New file.
47941         * lib/unictype/numeric.c: New file.
47942         * lib/unictype/pr_alphabetic.c: New file.
47943         * lib/unictype/pr_ascii_hex_digit.c: New file.
47944         * lib/unictype/pr_bidi_arabic_digit.c: New file.
47945         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
47946         * lib/unictype/pr_bidi_block_separator.c: New file.
47947         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
47948         * lib/unictype/pr_bidi_common_separator.c: New file.
47949         * lib/unictype/pr_bidi_control.c: New file.
47950         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
47951         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
47952         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
47953         * lib/unictype/pr_bidi_european_digit.c: New file.
47954         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
47955         * lib/unictype/pr_bidi_left_to_right.c: New file.
47956         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
47957         * lib/unictype/pr_bidi_other_neutral.c: New file.
47958         * lib/unictype/pr_bidi_pdf.c: New file.
47959         * lib/unictype/pr_bidi_segment_separator.c: New file.
47960         * lib/unictype/pr_bidi_whitespace.c: New file.
47961         * lib/unictype/pr_byname.c: New file.
47962         * lib/unictype/pr_byname.gperf: New file.
47963         * lib/unictype/pr_combining.c: New file.
47964         * lib/unictype/pr_composite.c: New file.
47965         * lib/unictype/pr_currency_symbol.c: New file.
47966         * lib/unictype/pr_dash.c: New file.
47967         * lib/unictype/pr_decimal_digit.c: New file.
47968         * lib/unictype/pr_default_ignorable_code_point.c: New file.
47969         * lib/unictype/pr_deprecated.c: New file.
47970         * lib/unictype/pr_diacritic.c: New file.
47971         * lib/unictype/pr_extender.c: New file.
47972         * lib/unictype/pr_format_control.c: New file.
47973         * lib/unictype/pr_grapheme_base.c: New file.
47974         * lib/unictype/pr_grapheme_extend.c: New file.
47975         * lib/unictype/pr_grapheme_link.c: New file.
47976         * lib/unictype/pr_hex_digit.c: New file.
47977         * lib/unictype/pr_hyphen.c: New file.
47978         * lib/unictype/pr_id_continue.c: New file.
47979         * lib/unictype/pr_id_start.c: New file.
47980         * lib/unictype/pr_ideographic.c: New file.
47981         * lib/unictype/pr_ids_binary_operator.c: New file.
47982         * lib/unictype/pr_ids_trinary_operator.c: New file.
47983         * lib/unictype/pr_ignorable_control.c: New file.
47984         * lib/unictype/pr_iso_control.c: New file.
47985         * lib/unictype/pr_join_control.c: New file.
47986         * lib/unictype/pr_left_of_pair.c: New file.
47987         * lib/unictype/pr_line_separator.c: New file.
47988         * lib/unictype/pr_logical_order_exception.c: New file.
47989         * lib/unictype/pr_lowercase.c: New file.
47990         * lib/unictype/pr_math.c: New file.
47991         * lib/unictype/pr_non_break.c: New file.
47992         * lib/unictype/pr_not_a_character.c: New file.
47993         * lib/unictype/pr_numeric.c: New file.
47994         * lib/unictype/pr_other_alphabetic.c: New file.
47995         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
47996         * lib/unictype/pr_other_grapheme_extend.c: New file.
47997         * lib/unictype/pr_other_id_continue.c: New file.
47998         * lib/unictype/pr_other_id_start.c: New file.
47999         * lib/unictype/pr_other_lowercase.c: New file.
48000         * lib/unictype/pr_other_math.c: New file.
48001         * lib/unictype/pr_other_uppercase.c: New file.
48002         * lib/unictype/pr_paired_punctuation.c: New file.
48003         * lib/unictype/pr_paragraph_separator.c: New file.
48004         * lib/unictype/pr_pattern_syntax.c: New file.
48005         * lib/unictype/pr_pattern_white_space.c: New file.
48006         * lib/unictype/pr_private_use.c: New file.
48007         * lib/unictype/pr_punctuation.c: New file.
48008         * lib/unictype/pr_quotation_mark.c: New file.
48009         * lib/unictype/pr_radical.c: New file.
48010         * lib/unictype/pr_sentence_terminal.c: New file.
48011         * lib/unictype/pr_soft_dotted.c: New file.
48012         * lib/unictype/pr_space.c: New file.
48013         * lib/unictype/pr_terminal_punctuation.c: New file.
48014         * lib/unictype/pr_test.c: New file.
48015         * lib/unictype/pr_titlecase.c: New file.
48016         * lib/unictype/pr_unassigned_code_value.c: New file.
48017         * lib/unictype/pr_unified_ideograph.c: New file.
48018         * lib/unictype/pr_uppercase.c: New file.
48019         * lib/unictype/pr_variation_selector.c: New file.
48020         * lib/unictype/pr_white_space.c: New file.
48021         * lib/unictype/pr_xid_continue.c: New file.
48022         * lib/unictype/pr_xid_start.c: New file.
48023         * lib/unictype/pr_zero_width.c: New file.
48024         * lib/unictype/scripts.c: New file.
48025         * lib/unictype/sy_c_ident.c: New file.
48026         * lib/unictype/sy_c_whitespace.c: New file.
48027         * lib/unictype/sy_java_ident.c: New file.
48028         * lib/unictype/sy_java_whitespace.c: New file.
48029
48030         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
48031         Unicode 5.0.0.
48032         * lib/unictype/blocks.h: Likewise.
48033         * lib/unictype/categ_C.h: Likewise.
48034         * lib/unictype/categ_Cc.h: Likewise.
48035         * lib/unictype/categ_Cf.h: Likewise.
48036         * lib/unictype/categ_Cn.h: Likewise.
48037         * lib/unictype/categ_Co.h: Likewise.
48038         * lib/unictype/categ_Cs.h: Likewise.
48039         * lib/unictype/categ_L.h: Likewise.
48040         * lib/unictype/categ_Ll.h: Likewise.
48041         * lib/unictype/categ_Lm.h: Likewise.
48042         * lib/unictype/categ_Lo.h: Likewise.
48043         * lib/unictype/categ_Lt.h: Likewise.
48044         * lib/unictype/categ_Lu.h: Likewise.
48045         * lib/unictype/categ_M.h: Likewise.
48046         * lib/unictype/categ_Mc.h: Likewise.
48047         * lib/unictype/categ_Me.h: Likewise.
48048         * lib/unictype/categ_Mn.h: Likewise.
48049         * lib/unictype/categ_N.h: Likewise.
48050         * lib/unictype/categ_Nd.h: Likewise.
48051         * lib/unictype/categ_Nl.h: Likewise.
48052         * lib/unictype/categ_No.h: Likewise.
48053         * lib/unictype/categ_P.h: Likewise.
48054         * lib/unictype/categ_Pc.h: Likewise.
48055         * lib/unictype/categ_Pd.h: Likewise.
48056         * lib/unictype/categ_Pe.h: Likewise.
48057         * lib/unictype/categ_Pf.h: Likewise.
48058         * lib/unictype/categ_Pi.h: Likewise.
48059         * lib/unictype/categ_Po.h: Likewise.
48060         * lib/unictype/categ_Ps.h: Likewise.
48061         * lib/unictype/categ_S.h: Likewise.
48062         * lib/unictype/categ_Sc.h: Likewise.
48063         * lib/unictype/categ_Sk.h: Likewise.
48064         * lib/unictype/categ_Sm.h: Likewise.
48065         * lib/unictype/categ_So.h: Likewise.
48066         * lib/unictype/categ_Z.h: Likewise.
48067         * lib/unictype/categ_Zl.h: Likewise.
48068         * lib/unictype/categ_Zp.h: Likewise.
48069         * lib/unictype/categ_Zs.h: Likewise.
48070         * lib/unictype/categ_of.h: Likewise.
48071         * lib/unictype/combining.h: Likewise.
48072         * lib/unictype/ctype_alnum.h: Likewise.
48073         * lib/unictype/ctype_alpha.h: Likewise.
48074         * lib/unictype/ctype_blank.h: Likewise.
48075         * lib/unictype/ctype_cntrl.h: Likewise.
48076         * lib/unictype/ctype_digit.h: Likewise.
48077         * lib/unictype/ctype_graph.h: Likewise.
48078         * lib/unictype/ctype_lower.h: Likewise.
48079         * lib/unictype/ctype_print.h: Likewise.
48080         * lib/unictype/ctype_punct.h: Likewise.
48081         * lib/unictype/ctype_space.h: Likewise.
48082         * lib/unictype/ctype_upper.h: Likewise.
48083         * lib/unictype/ctype_xdigit.h: Likewise.
48084         * lib/unictype/decdigit.h: Likewise.
48085         * lib/unictype/digit.h: Likewise.
48086         * lib/unictype/mirror.h: Likewise.
48087         * lib/unictype/numeric.h: Likewise.
48088         * lib/unictype/pr_alphabetic.h: Likewise.
48089         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
48090         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
48091         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
48092         * lib/unictype/pr_bidi_block_separator.h: Likewise.
48093         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
48094         * lib/unictype/pr_bidi_common_separator.h: Likewise.
48095         * lib/unictype/pr_bidi_control.h: Likewise.
48096         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
48097         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
48098         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
48099         * lib/unictype/pr_bidi_european_digit.h: Likewise.
48100         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
48101         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
48102         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
48103         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
48104         * lib/unictype/pr_bidi_pdf.h: Likewise.
48105         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
48106         * lib/unictype/pr_bidi_whitespace.h: Likewise.
48107         * lib/unictype/pr_combining.h: Likewise.
48108         * lib/unictype/pr_composite.h: Likewise.
48109         * lib/unictype/pr_currency_symbol.h: Likewise.
48110         * lib/unictype/pr_dash.h: Likewise.
48111         * lib/unictype/pr_decimal_digit.h: Likewise.
48112         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
48113         * lib/unictype/pr_deprecated.h: Likewise.
48114         * lib/unictype/pr_diacritic.h: Likewise.
48115         * lib/unictype/pr_extender.h: Likewise.
48116         * lib/unictype/pr_format_control.h: Likewise.
48117         * lib/unictype/pr_grapheme_base.h: Likewise.
48118         * lib/unictype/pr_grapheme_extend.h: Likewise.
48119         * lib/unictype/pr_grapheme_link.h: Likewise.
48120         * lib/unictype/pr_hex_digit.h: Likewise.
48121         * lib/unictype/pr_hyphen.h: Likewise.
48122         * lib/unictype/pr_id_continue.h: Likewise.
48123         * lib/unictype/pr_id_start.h: Likewise.
48124         * lib/unictype/pr_ideographic.h: Likewise.
48125         * lib/unictype/pr_ids_binary_operator.h: Likewise.
48126         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
48127         * lib/unictype/pr_ignorable_control.h: Likewise.
48128         * lib/unictype/pr_iso_control.h: Likewise.
48129         * lib/unictype/pr_join_control.h: Likewise.
48130         * lib/unictype/pr_left_of_pair.h: Likewise.
48131         * lib/unictype/pr_line_separator.h: Likewise.
48132         * lib/unictype/pr_logical_order_exception.h: Likewise.
48133         * lib/unictype/pr_lowercase.h: Likewise.
48134         * lib/unictype/pr_math.h: Likewise.
48135         * lib/unictype/pr_non_break.h: Likewise.
48136         * lib/unictype/pr_not_a_character.h: Likewise.
48137         * lib/unictype/pr_numeric.h: Likewise.
48138         * lib/unictype/pr_other_alphabetic.h: Likewise.
48139         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
48140         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
48141         * lib/unictype/pr_other_id_continue.h: Likewise.
48142         * lib/unictype/pr_other_id_start.h: Likewise.
48143         * lib/unictype/pr_other_lowercase.h: Likewise.
48144         * lib/unictype/pr_other_math.h: Likewise.
48145         * lib/unictype/pr_other_uppercase.h: Likewise.
48146         * lib/unictype/pr_paired_punctuation.h: Likewise.
48147         * lib/unictype/pr_paragraph_separator.h: Likewise.
48148         * lib/unictype/pr_pattern_syntax.h: Likewise.
48149         * lib/unictype/pr_pattern_white_space.h: Likewise.
48150         * lib/unictype/pr_private_use.h: Likewise.
48151         * lib/unictype/pr_punctuation.h: Likewise.
48152         * lib/unictype/pr_quotation_mark.h: Likewise.
48153         * lib/unictype/pr_radical.h: Likewise.
48154         * lib/unictype/pr_sentence_terminal.h: Likewise.
48155         * lib/unictype/pr_soft_dotted.h: Likewise.
48156         * lib/unictype/pr_space.h: Likewise.
48157         * lib/unictype/pr_terminal_punctuation.h: Likewise.
48158         * lib/unictype/pr_titlecase.h: Likewise.
48159         * lib/unictype/pr_unassigned_code_value.h: Likewise.
48160         * lib/unictype/pr_unified_ideograph.h: Likewise.
48161         * lib/unictype/pr_uppercase.h: Likewise.
48162         * lib/unictype/pr_variation_selector.h: Likewise.
48163         * lib/unictype/pr_white_space.h: Likewise.
48164         * lib/unictype/pr_xid_continue.h: Likewise.
48165         * lib/unictype/pr_xid_start.h: Likewise.
48166         * lib/unictype/pr_zero_width.h: Likewise.
48167         * lib/unictype/scripts.h: Likewise.
48168         * lib/unictype/scripts_byname.gperf: Likewise.
48169         * lib/unictype/sy_c_ident.h: Likewise.
48170         * lib/unictype/sy_c_whitespace.h: Likewise.
48171         * lib/unictype/sy_java_ident.h: Likewise.
48172         * lib/unictype/sy_java_whitespace.h: Likewise.
48173
48174         * lib/unictype/Makefile: New file.
48175         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
48176         glibc.
48177         * lib/unictype/3level.h: New file, copied from glibc.
48178         * lib/unictype/3levelbit.h: New file.
48179
48180 2007-11-11  Bruno Haible  <bruno@clisp.org>
48181
48182         * modules/gperf: New file.
48183         * modules/iconv_open (Depends-on): Add it.
48184         (Makefile.am): Remove the GPERF definition.
48185
48186 2007-11-11  Bruno Haible  <bruno@clisp.org>
48187
48188         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
48189         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
48190
48191 2007-11-11  Bruno Haible  <bruno@clisp.org>
48192
48193         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
48194         (usage): Remove function.
48195
48196 2007-11-11  Bruno Haible  <bruno@clisp.org>
48197
48198         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
48199         gl_FUNC_CEILF_LIBS.
48200         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
48201         gl_FUNC_CEIL_LIBS.
48202         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
48203         gl_FUNC_CEILL_LIBS.
48204         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
48205         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
48206         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
48207
48208 2007-11-11  Bruno Haible  <bruno@clisp.org>
48209
48210         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
48211         roundf were declared but do not exist on functions.
48212         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
48213         roundl were declared but do not exist on functions.
48214         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
48215         HAVE_FLOORL_AND_CEILL, respectively.
48216         Needed for Sun C on Solaris 10.
48217
48218 2007-11-11  Bruno Haible  <bruno@clisp.org>
48219
48220         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
48221         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
48222         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
48223         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
48224         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
48225         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
48226         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
48227         HAVE_DECL_ROUNDF.
48228         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
48229         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
48230         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
48231         of HAVE_DECL_ROUND*.
48232         * modules/math (Makefile.am): Update.
48233
48234 2007-11-10  Bruno Haible  <bruno@clisp.org>
48235
48236         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
48237         ptrdiff_t as m4/intl.m4.
48238
48239 2007-11-10  Jim Meyering  <meyering@redhat.com>
48240
48241         Avoid link failure for the argmatch test.
48242         * tests/test-argmatch.c (usage): Define function to avoid a link
48243         failure: argmatch_die requires a usage function.
48244
48245 2007-11-09  Bruno Haible  <bruno@clisp.org>
48246
48247         * doc/functions/snprintf.texi: Mention BeOS deficiency.
48248         * doc/functions/vsnprintf.texi: Likewise.
48249         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
48250         with a size argument < 2.
48251
48252 2007-11-09  Bruno Haible  <bruno@clisp.org>
48253
48254         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
48255         buffer. Fixes an inefficiency introduced on 2007-11-03.
48256
48257 2007-11-09  Bruno Haible  <bruno@clisp.org>
48258
48259         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
48260         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
48261
48262 2007-11-08  Jim Meyering  <meyering@redhat.com>
48263
48264         Change cache variable name prefix "jm_" to "gl_" everywhere.
48265         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
48266         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
48267         * m4/uptime.m4: s/gl_/jm_/
48268
48269 2007-11-07  Bruno Haible  <bruno@clisp.org>
48270
48271         Update to GNU gettext 0.17.
48272         * m4/intl.m4: Update to GNU gettext 0.17.
48273         * m4/po.m4: Likewise.
48274         * modules/gettext (Files): Remove m4/ulonglong.m4.
48275         (configure.ac): Require gettext infrastructure from version 0.17.
48276
48277 2007-11-06  Bruno Haible  <bruno@clisp.org>
48278
48279         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
48280         symbolic values are not defined in a public header.
48281         * lib/freadable.c (freadable) [QNX]: Likewise.
48282         * lib/freadahead.c (freadahead) [QNX]: Likewise.
48283         * lib/freading.c (freading) [QNX]: Likewise.
48284         * lib/fseterr.c (fseterr) [QNX]: Likewise.
48285         * lib/fwritable.c (fwritable) [QNX]: Likewise.
48286         * lib/fwriting.c (fwriting) [QNX]: Likewise.
48287         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
48288         Reported by Alain Magloire.
48289
48290         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
48291
48292 2007-11-05  Bruno Haible  <bruno@clisp.org>
48293
48294         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
48295         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
48296         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
48297         Reported by Eric Blake.
48298
48299 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48300             Bruno Haible  <bruno@clisp.org>
48301
48302         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
48303         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
48304         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
48305         (malloc): Undefine also before including <stdlib.h>.
48306         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
48307         Needed on OSF/1 4.0.
48308
48309 2007-11-05  Jim Meyering  <meyering@redhat.com>
48310
48311         git-version-gen: sync from coreutils.
48312         * build-aux/git-version-gen: Add comments.
48313         Change the first '-' to '.' in the snapshot version string,
48314         e.g., 6.9-377-08144 -> 6.9.377-08144
48315         Remove first parameter.
48316         Don't declare a version "-dirty" merely because a time
48317         stamp has changed.
48318
48319 2007-11-04  Bruno Haible  <bruno@clisp.org>
48320
48321         * lib/lock.h: Protect all macro definitions containing an 'if'
48322         statement through a "do { ... } while (0)".
48323         * lib/tls.h: Likewise.
48324
48325 2007-11-04  Bruno Haible  <bruno@clisp.org>
48326
48327         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
48328
48329 2007-11-04  Bruno Haible  <bruno@clisp.org>
48330
48331         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
48332         * modules/fprintf-posix (Depends-on): Add nocrash.
48333         * modules/snprintf-posix (Depends-on): Likewise.
48334         * modules/sprintf-posix (Depends-on): Likewise.
48335         * modules/vasnprintf-posix (Depends-on): Likewise.
48336         * modules/vasprintf-posix (Depends-on): Likewise.
48337         * modules/vfprintf-posix (Depends-on): Likewise.
48338         * modules/vsnprintf-posix (Depends-on): Likewise.
48339         * modules/vsprintf-posix (Depends-on): Likewise.
48340         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48341         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48342         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48343         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48344         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48345         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48346         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48347
48348 2007-11-04  Bruno Haible  <bruno@clisp.org>
48349
48350         * modules/nocrash: New file.
48351         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
48352         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
48353
48354 2007-11-04  Bruno Haible  <bruno@clisp.org>
48355
48356         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
48357         precision handling.
48358         * tests/test-vasprintf-posix.c (test_function): Likewise.
48359         * tests/test-snprintf-posix.h (test_function): Likewise.
48360         * tests/test-sprintf-posix.h (test_function): Likewise.
48361
48362         Fix *printf behaviour for large precisions on mingw and BeOS.
48363         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
48364         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
48365         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
48366         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48367         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48368         gl_PRINTF_PRECISION and test its result. Invoke
48369         gl_PREREQ_VASNPRINTF_PRECISION.
48370         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48371         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48372         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48373         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48374         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48375         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48376         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48377         * doc/functions/fprintf.texi: Update.
48378         * doc/functions/printf.texi: Update.
48379         * doc/functions/snprintf.texi: Update.
48380         * doc/functions/sprintf.texi: Update.
48381         * doc/functions/vfprintf.texi: Update.
48382         * doc/functions/vprintf.texi: Update.
48383         * doc/functions/vsnprintf.texi: Update.
48384         * doc/functions/vsprintf.texi: Update.
48385
48386 2007-11-04  Bruno Haible  <bruno@clisp.org>
48387
48388         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
48389
48390 2007-11-04  Bruno Haible  <bruno@clisp.org>
48391
48392         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
48393         Reported by Sylvain Beucler <beuc@gnu.org>.
48394
48395 2007-11-03  Bruno Haible  <bruno@clisp.org>
48396
48397         * tests/test-fprintf-posix2.sh: New file.
48398         * tests/test-fprintf-posix2.c: New file.
48399         * modules/fprintf-posix-tests (Files): Add them.
48400         (TESTS): Add test-fprintf-posix2.sh.
48401         (configure.ac): Check for getrlimit and setrlimit.
48402         (check_PROGRAMS): Add test-fprintf-posix2.
48403
48404         * tests/test-printf-posix2.sh: New file.
48405         * tests/test-printf-posix2.c: New file.
48406         * modules/printf-posix-tests (Files): Add them.
48407         (TESTS): Add test-printf-posix2.sh.
48408         (configure.ac): Check for getrlimit and setrlimit.
48409         (check_PROGRAMS): Add test-printf-posix2.
48410
48411         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
48412         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
48413         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
48414         (decode_double): New function, copied from decode_long_double.
48415         (scale10_round_decimal_decoded): New function, extracted from
48416         scale10_round_decimal_long_double.
48417         (scale10_round_decimal_long_double): Use it.
48418         (scale10_round_decimal_double): New function.
48419         (floorlog10): New function.
48420         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
48421         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
48422         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48423         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48424         gl_PRINTF_ENOMEM and test its result. Invoke
48425         gl_PREREQ_VASNPRINTF_ENOMEM.
48426         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48427         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48428         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48429         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48430         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48431         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48432         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48433         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
48434         * modules/snprintf-posix (Depends-on): Likewise.
48435         * modules/sprintf-posix (Depends-on): Likewise.
48436         * modules/vasnprintf-posix (Depends-on): Likewise.
48437         * modules/vasprintf-posix (Depends-on): Likewise.
48438         * modules/vfprintf-posix (Depends-on): Likewise.
48439         * modules/vsnprintf-posix (Depends-on): Likewise.
48440         * modules/vsprintf-posix (Depends-on): Likewise.
48441         * doc/functions/fprintf.texi: Update.
48442         * doc/functions/printf.texi: Update.
48443         * doc/functions/snprintf.texi: Update.
48444         * doc/functions/sprintf.texi: Update.
48445         * doc/functions/vfprintf.texi: Update.
48446         * doc/functions/vprintf.texi: Update.
48447         * doc/functions/vsnprintf.texi: Update.
48448         * doc/functions/vsprintf.texi: Update.
48449
48450 2007-11-03  Bruno Haible  <bruno@clisp.org>
48451
48452         * modules/frexp-nolibm-tests: New file.
48453
48454         * modules/frexp-nolibm: New file.
48455         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
48456
48457 2007-11-03  Bruno Haible  <bruno@clisp.org>
48458
48459         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
48460         value is C99 compliant.
48461         Needed for OSF/1 5.1.
48462
48463 2007-11-03  Bruno Haible  <bruno@clisp.org>
48464
48465         Fix out-of-memory handling of vasnprintf.
48466         * lib/printf-parse.c: Include <errno.h>.
48467         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
48468         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
48469         is already set.
48470
48471 2007-11-02  Eric Blake  <ebb9@byu.net>
48472
48473         Fix tests on cygwin.
48474         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
48475
48476 2007-11-01  Bruno Haible  <bruno@clisp.org>
48477
48478         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
48479         warning.
48480         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
48481         needed for POSIX compatibility.
48482
48483 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
48484
48485         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
48486         for compatibility with GNU.
48487
48488 2007-11-01  Bruno Haible  <bruno@clisp.org>
48489
48490         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
48491         (putenv): Renamed from rpl_putenv. Change argument type from
48492         'const char *' to 'char *'.
48493         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
48494         of defining putenv in config.h, just set REPLACE_PUTENV.
48495         * modules/putenv (Depends-on): Add stdlib.
48496         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48497         (Include): Use <stdlib.h>.
48498         * lib/stdlib.in.h (putenv): New declaration.
48499         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
48500         REPLACE_PUTENV.
48501         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
48502         REPLACE_PUTENV.
48503         Needed for MacOS X 10.5.0.
48504         Reported by Peter O'Gorman <peter@pogma.com>.
48505
48506 2007-11-01  Jim Meyering  <meyering@redhat.com>
48507
48508         Treat an empty date string exactly like "0".
48509         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
48510         if the remaining date string (to be parsed) is empty, use "0".
48511         Reported by Mischa Molhoek and discussed in this thread:
48512         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
48513
48514 2007-10-31  Bruno Haible  <bruno@clisp.org>
48515
48516         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
48517         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
48518         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
48519         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
48520         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
48521         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
48522
48523 2007-10-31  Bruno Haible  <bruno@clisp.org>
48524
48525         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
48526         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
48527         (AC_TYPE_LONG_LONG_INT): Use it.
48528         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
48529         it as well.
48530         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
48531         to m4/longlong.m4.
48532         * modules/stdint (Files): Remove m4/ulonglong.m4.
48533         * modules/strtoull (Files): Use m4/longlong.m4 instead of
48534         m4/ulonglong.m4.
48535         * modules/strtoumax (Files): Likewise.
48536
48537 2007-10-30  Bruno Haible  <bruno@clisp.org>
48538
48539         * modules/xvasprintf-posix: New file.
48540         Suggested by Eric Blake.
48541
48542 2007-10-30  Bruno Haible  <bruno@clisp.org>
48543
48544         * modules/xprintf-posix-tests: New file.
48545         * tests/test-xprintf-posix.sh: New file.
48546         * tests/test-xprintf-posix.c: New file.
48547         * tests/test-xfprintf-posix.c: New file.
48548
48549         * modules/xprintf-posix: New file.
48550
48551 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48552
48553         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
48554         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
48555         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
48556
48557 2007-10-29  Bruno Haible  <bruno@clisp.org>
48558
48559         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
48560         contain the special marker '_cv_'.
48561         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
48562         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
48563         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
48564         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
48565         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
48566         Reported by Ralf Wildenhues.
48567
48568 2007-10-29  Bruno Haible  <bruno@clisp.org>
48569
48570         * gnulib-tool (func_import): When --lgpl is not specified, set
48571         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
48572         GPLv3.
48573         Reported by Simon Josefsson.
48574
48575 2007-10-28  Bruno Haible  <bruno@clisp.org>
48576
48577         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
48578         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
48579         HAVE_DECL_ISFINITE.
48580         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
48581         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
48582         HAVE_DECL_ISFINITE.
48583
48584 2007-10-28  Bruno Haible  <bruno@clisp.org>
48585
48586         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
48587         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
48588
48589 2007-10-28  Bruno Haible  <bruno@clisp.org>
48590
48591         Fix link errors with Sun C 5.0 on Solaris 10.
48592         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
48593         function is declared but not present in the compiler's libm.
48594         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
48595         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
48596         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
48597         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
48598         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
48599         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
48600         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
48601         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
48602         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
48603         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
48604         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
48605         HAVE_DECL_FLOORL.
48606
48607 2007-10-28  Bruno Haible  <bruno@clisp.org>
48608
48609         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
48610         gl_FUNC_FLOORL. Cache the result.
48611         (gl_FUNC_FLOORL): Use it.
48612         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
48613         gl_FUNC_CEILL. Cache the result.
48614         (gl_FUNC_CEILL): Use it.
48615
48616         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
48617         gl_FUNC_FLOOR. Cache the result.
48618         (gl_FUNC_FLOOR): Use it.
48619         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
48620         gl_FUNC_CEIL. Cache the result.
48621         (gl_FUNC_CEIL): Use it.
48622
48623         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
48624         gl_FUNC_FLOORF. Cache the result.
48625         (gl_FUNC_FLOORF): Use it.
48626         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
48627         gl_FUNC_CEILF. Cache the result.
48628         (gl_FUNC_CEILF): Use it.
48629
48630 2007-10-28  Bruno Haible  <bruno@clisp.org>
48631
48632         * gnulib-tool: Allow specifying the LGPL version number through
48633         --lgpl=2 or --lgpl=3.
48634         (func_usage): Document --lgpl with argument.
48635         Handle --lgpl=... arguments.
48636         (func_import): Recognize also gl_LGPL calls with an argument. When
48637         --lgpl=2 is used and the module's license is just LGPL, report an
48638         error. Set sed_transform_lib_file according to the lgpl variable. In
48639         the generated files, use --lgpl or gl_LGPL invocations with argument,
48640         if necessary.
48641         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
48642         an LGPv2+ license.
48643         * doc/gnulib-tool.texi (Modified imports): Update explanation of
48644         gl_LGPL macro.
48645
48646 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48647             Bruno Haible  <bruno@clisp.org>
48648
48649         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
48650         (u16_uctomb_aux): Likewise.
48651         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
48652         !HAVE_INLINE.
48653         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
48654
48655 2007-10-28  Bruno Haible  <bruno@clisp.org>
48656
48657         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
48658         Invoke AM_GETTEXT_OPTION if it exists.
48659         * modules/vasprintf: Likewise.
48660         * modules/verror: Likewise.
48661         * modules/xprintf: Likewise.
48662         * modules/xvasprintf: Likewise.
48663
48664 2007-10-27  Ben Pfaff  <blp@gnu.org>
48665
48666         * lib/math.in.h: Define isfinite macro and prototypes for
48667         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
48668         implementations.
48669         * m4/math_h.m4: New substitutions for isfinite module.
48670         * lib/isfinite.c: New file.
48671         * m4/isfinite.m4: New file.
48672         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
48673         * modules/isfinite: New file.
48674         * modules/isfinite-tests: New file.
48675         * tests/tests-isfinite.c: New file.
48676         * doc/functions/isfinite.texi: Mention isfinite module.
48677         * MODULES.html.sh: Mention new module.
48678
48679 2007-10-27  Ben Pfaff  <blp@gnu.org>
48680
48681         Ralf Wildenhues reported that Tru64 4.0D declares the round
48682         functions but does not have definitions.
48683         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
48684         cannot be found in any library, set the output variable to
48685         "missing" instead of "".
48686         * m4/round.m4: Also use our substitute if we cannot find round in
48687         any library, even if it is declared.
48688         * m4/roundf.m4: Likewise for roundf.
48689         * m4/roundl.m4: Likewise for roundl.
48690         * lib/math.in.h: Undefine roundf, round, roundl before defining
48691         their replacements, to allow for hypothetical systems where these
48692         may be defined as macros but not available in libraries.
48693
48694 2007-10-27  Bruno Haible  <bruno@clisp.org>
48695
48696         * doc/gnulib.texi: Invoke @firstparagraphindent.
48697         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
48698         changes in gnulib.
48699         (Source changes): New section.
48700
48701 2007-10-26  Bruno Haible  <bruno@clisp.org>
48702
48703         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
48704         borrowed from autoconf.
48705
48706 2007-10-26  Bruno Haible  <bruno@clisp.org>
48707
48708         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
48709         strerror returned the empty string. Needed on HP-UX 11.00.
48710
48711 2007-10-24  Micah Cowan  <micah@cowan.name>
48712
48713         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
48714         * build-aux/bootstrap: Remove support for now-unnecessary option,
48715         --cvs-user, and envvars CVS_USER, CVS_RSH.
48716
48717 2007-10-24  Jim Meyering  <meyering@redhat.com>
48718
48719         Avoid diagnostics from sha1sum when there is no cached checksum.
48720         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
48721         if the po.s1 file hasn't been created yet.
48722
48723         * build-aux/bootstrap: Sync from coreutils:
48724         2007-10-24  Jim Meyering  <meyering@redhat.com>
48725         Get gnulib from the git repository, not from an obsolete cvs one.
48726         * build-aux/bootstrap: Suggestion from Micah Cowan.
48727         2007-10-04  Jim Meyering  <jim@meyering.net>
48728         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
48729         (update_po_files): Work also when there are no .po files in po/.
48730
48731 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48732
48733         * README: Append ".git" to git and cg examples.
48734         Problem reported by Benoit Sigoure.
48735
48736 2007-10-23  Micah Cowan  <micah@cowan.name>
48737
48738         * users.txt: Add wget.
48739
48740 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48741
48742         Fix linking of some unistdio tests on FreeBSD.
48743         * modules/unistdio/u16-vsnprintf-tests
48744         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
48745         * modules/unistdio/u16-vsprintf-tests
48746         (test_u16_vsnprintf1_LDADD): Likewise.
48747         * modules/unistdio/u32-vsnprintf-tests
48748         (test_u32_vsnprintf1_LDADD): Likewise.
48749         * modules/unistdio/u32-vsprintf-tests
48750         (test_u32_vsprintf1_LDADD): Likewise.
48751         * modules/unistdio/u8-vsnprintf-tests
48752         (test_u8_vsnprintf1_LDADD): Likewise.
48753         * modules/unistdio/u8-vsprintf-tests
48754         (test_u8_vsprintf1_LDADD): Likewise.
48755         * modules/unistdio/ulc-vsnprintf-tests
48756         (test_ulc_vsnprintf1_LDADD): Likewise.
48757         * modules/unistdio/ulc-vsprintf-tests
48758         (test_ulc_vsprintf1_LDADD): Likewise.
48759
48760         Fix linking of some uniconv tests on FreeBSD.
48761         * modules/uniconv/u16-conv-from-enc-tests
48762         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
48763         * modules/uniconv/u16-conv-to-enc-tests
48764         (test_u16_conv_to_enc_LDADD): Likewise.
48765         * modules/uniconv/u16-strconv-from-enc-tests
48766         (test_u16_strconv_from_enc_LDADD): Likewise.
48767         * modules/uniconv/u16-strconv-to-enc-tests
48768         (test_u16_strconv_to_enc_LDADD): Likewise.
48769         * modules/uniconv/u32-conv-from-enc-tests
48770         (test_u32_conv_from_enc_LDADD): Likewise.
48771         * modules/uniconv/u32-conv-to-enc-tests
48772         (test_u32_conv_to_enc_LDADD): Likewise.
48773         * modules/uniconv/u32-strconv-from-enc-tests
48774         (test_u32_strconv_from_enc_LDADD): Likewise.
48775         * modules/uniconv/u32-strconv-to-enc-tests
48776         (test_u32_strconv_to_enc_LDADD): Likewise.
48777         * modules/uniconv/u8-conv-from-enc-tests
48778         (test_u8_conv_from_enc_LDADD): Likewise.
48779         * modules/uniconv/u8-conv-to-enc-tests
48780         (test_u8_conv_to_enc_LDADD): Likewise.
48781         * modules/uniconv/u8-strconv-from-enc-tests
48782         (test_u8_strconv_from_enc_LDADD): Likewise.
48783         * modules/uniconv/u8-strconv-to-enc-tests
48784         (test_u8_strconv_to_enc_LDADD): Likewise.
48785
48786 2007-10-22  Bruno Haible  <bruno@clisp.org>
48787
48788         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
48789         size.
48790
48791 2007-10-22  Eric Blake  <ebb9@byu.net>
48792
48793         Tweak x*printf documentation.
48794         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
48795         variable name and comments.
48796         Suggested by Bruno Haible.
48797
48798 2007-10-22  Bruno Haible  <bruno@clisp.org>
48799
48800         * lib/acl.c (copy_acl): Fix file name in comment.
48801
48802 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
48803
48804         Fix Tru64 problem with stdbool.h.
48805         * lib/stdbool.in.h (false, true):
48806         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
48807         Don't declare as an enum in this situation; it runs afoul of Tru64.
48808         Problem reported by Steven M. Schweda in
48809         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
48810
48811 2007-10-22  Eric Blake  <ebb9@byu.net>
48812
48813         Also wrap vf?printf.
48814         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
48815         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
48816         (xvprintf, xvfprintf): New functions.
48817
48818 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48819
48820         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
48821         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
48822
48823         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
48824         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
48825
48826 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
48827
48828         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
48829         by Bruno Haible.
48830
48831 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48832
48833         * lib/getloadavg.c
48834         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
48835         Undef `sys' after including sys/table.h, for Tru64 4.0D.
48836
48837         * tests/test-i-ring.c: Work for C89.
48838
48839 2007-10-22  Bruno Haible  <bruno@clisp.org>
48840
48841         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
48842         -1u, in preprocessor expression, so that we don't test for the bug
48843         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
48844         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
48845
48846 2007-10-22  Eric Blake  <ebb9@byu.net>
48847
48848         * tests/test-yesno.sh: Silence stderr during test.
48849
48850 2007-10-22  Simon Josefsson  <simon@josefsson.org>
48851
48852         * modules/crypto/gc-camellia: New file.
48853
48854         * m4/gc-camellia.m4: New file.
48855
48856         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
48857
48858         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
48859
48860 2007-10-22  Simon Josefsson  <simon@josefsson.org>
48861
48862         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
48863         --help to stdout.  Reported by sms@antinode.org (Steven
48864         M. Schweda).
48865
48866 2007-10-22  Simon Josefsson  <simon@josefsson.org>
48867
48868         * users.txt: Fix link to libksba.
48869
48870 2007-10-21  Ben Pfaff  <blp@gnu.org>
48871
48872         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
48873         round.c roundf implementation that depends on floorf and ceilf to
48874         be tested unconditionally.
48875
48876 2007-10-21  Ben Pfaff  <blp@gnu.org>
48877
48878         * m4/check-libm-func.m4: Removed.
48879         * m4/check-math-lib.m4: New file.
48880         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
48881         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
48882         definition and lack of AC_LIBOBJ([roundf]).
48883         * m4/roundl.m4: Ditto, and similarly for roundl.
48884         * modules/round: Reference new m4 file.
48885         * modules/roundf: Ditto.
48886         * modules/roundl: Ditto.
48887         * tests/test-round2.c (main): Use ROUND instead of round.
48888         Bug report from Bruno Haible.
48889
48890 2007-10-21  Bruno Haible  <bruno@clisp.org>
48891
48892         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
48893         context.
48894
48895 2007-10-21  Bruno Haible  <bruno@clisp.org>
48896
48897         * tests/test-wcwidth.c (main): Allow negative result for some control
48898         characters.
48899
48900         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
48901         Needed on OSF/1 5.1.
48902
48903 2007-10-21  Bruno Haible  <bruno@clisp.org>
48904
48905         * tests/test-floorf1.c: Include isnanf.h.
48906         (main): Use isnanf() instead of isnan().
48907         * tests/test-ceilf1.c: Include isnanf.h.
48908         (main): Use isnanf() instead of isnan().
48909         * tests/test-truncf1.c: Include isnanf.h.
48910         (main): Use isnanf() instead of isnan().
48911         * tests/test-roundf1.c: Include isnanf.h.
48912         (main): Use isnanf() instead of isnan().
48913
48914 2007-10-21  Eric Blake  <ebb9@byu.net>
48915
48916         * users.txt: Update URL for m4.
48917
48918 2007-10-21  Bruno Haible  <bruno@clisp.org>
48919
48920         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
48921
48922 2007-10-21  Bruno Haible  <bruno@clisp.org>
48923
48924         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
48925         Git's management files if the CVS files are not present.
48926
48927 2007-10-20  Bruno Haible  <bruno@clisp.org>
48928
48929         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
48930         gcc-3.4.x.
48931
48932 2007-10-20  Ben Pfaff  <blp@gnu.org>
48933
48934         * lib/math.in.h: Declare round, roundf, roundl if we are providing
48935         implementations.
48936         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
48937         * lib/round.c: New file.
48938         * lib/roundf.c: New file.
48939         * lib/roundl.c: New file.
48940         * m4/round.m4: New file.
48941         * m4/roundf.m4: New file.
48942         * m4/roundl.m4: New file.
48943         * m4/check-libm-func-m4: New file.
48944         * modules/math: Replace round, roundf, roundl related @VARS@ in
48945         math.in.h.
48946         * modules/round: New file.
48947         * modules/round-tests: New file.
48948         * modules/roundf: New file.
48949         * modules/roundf-tests: New file.
48950         * modules/roundl: New file.
48951         * modules/roundl-tests: New file.
48952         * tests/test-round1.c: New file.
48953         * tests/test-round2.c: New file.
48954         * tests/test-roundf1.c: New file.
48955         * tests/test-roundf2.c: New file.
48956         * tests/test-roundl.c: New file.
48957         * doc/functions/round.texi: Mention round module.
48958         * doc/functions/roundf.texi: Mention roundf module.
48959         * doc/functions/roundl.texi: Mention roundl module.
48960         * MODULES.html.sh: Mention new modules.
48961         Thanks to Bruno Haible for suggestions.
48962
48963 2007-10-20  Jim Meyering  <meyering@redhat.com>
48964
48965         * lib/xprintf.c: Include <config.h> unconditionally.
48966
48967         Change xprintf's license to GPL.
48968         * modules/xprintf (License): s/LGPL/GPL/, since this module
48969         depends on modules (exit and exitfail) which are GPL.
48970         Suggestion from Bruno Haible.
48971
48972         xprintf fixes.
48973         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
48974         Use a clearer diagnostic.
48975         Patch from Bruno Haible.
48976
48977 2007-10-20  Bruno Haible  <bruno@clisp.org>
48978
48979         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
48980         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
48981         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48982
48983 2007-10-20  Bruno Haible  <bruno@clisp.org>
48984
48985         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
48986         precision in the comparison result > x - 1 or similar.
48987         * tests/test-ceilf2.c (correct_result_p): Likewise.
48988         * tests/test-truncf2.c (correct_result_p): Likewise.
48989         * tests/test-trunc2.c (correct_result_p): Likewise.
48990         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48991
48992 2007-10-20  Bruno Haible  <bruno@clisp.org>
48993
48994         * modules/ceil: New file.
48995         * m4/ceil.m4: New file.
48996         * doc/functions/ceil.texi: Mention the 'ceil' module.
48997
48998 2007-10-20  Bruno Haible  <bruno@clisp.org>
48999
49000         * modules/floor: New file.
49001         * m4/floor.m4: New file.
49002         * doc/functions/floor.texi: Mention the 'floor' module.
49003
49004 2007-10-20  Bruno Haible  <bruno@clisp.org>
49005
49006         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
49007         of %a.
49008         * modules/floorf-tests (Depends-on): Likewise.
49009         * modules/truncf-tests (Depends-on): Likewise.
49010         * modules/trunc-tests (Depends-on): Likewise.
49011         Reported by Ben Pfaff.
49012
49013 2007-10-19  Jim Meyering  <meyering@redhat.com>
49014
49015         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
49016         Don't bother testing specific errno values.  Just test ferror.
49017
49018         New module: xprintf
49019         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
49020
49021 2007-10-19  Bruno Haible  <bruno@clisp.org>
49022
49023         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
49024         syntax.
49025         * modules/javaexec (Makefile.am): Likewise.
49026         * modules/relocatable-prog (Makefile.am): Likewise.
49027         Suggested by Jim Meyering.
49028
49029 2007-10-18  Bruno Haible  <bruno@clisp.org>
49030
49031         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
49032         Reported by Jim Meyering.
49033
49034 2007-10-18  Eric Blake  <ebb9@byu.net>
49035
49036         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
49037
49038 2007-10-18  Bruno Haible  <bruno@clisp.org>
49039
49040         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
49041         the format string into writable memory. Needed in Fortify conditions.
49042
49043 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
49044             Bruno Haible  <bruno@clisp.org>
49045
49046         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
49047         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
49048         * modules/trim (Depends-on): Add mbchar.
49049         (configure.ac): Add gl_FUNC_MBRTOWC.
49050         (Makefile.am): Augment lib_SOURCES.
49051
49052 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
49053
49054         Modify glob.c to use fstatat and dirfd, to simplify it.
49055         Suggested by Eric Blake.
49056         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
49057         Don't include <stdbool.h>; not used.
49058         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
49059         (link_exists_p): Simplify implementation, since we can now assume
49060         dirfd and fstatat.
49061         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
49062
49063 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49064
49065         * gnulib-tool (func_get_dependencies): Fix sed script to
49066         match only tests.
49067
49068 2007-10-17  Bruno Haible  <bruno@clisp.org>
49069
49070         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
49071         allow locale names without encoding suffix.
49072         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49073         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49074
49075 2007-10-16  Bruno Haible  <bruno@clisp.org>
49076
49077         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
49078         * lib/getgroups.c (getgroups): Likewise.
49079         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
49080
49081 2007-10-16  Bruno Haible  <bruno@clisp.org>
49082
49083         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
49084         * modules/malloc-posix (License): Likewise.
49085         * modules/realloc-posix (License): Likewise.
49086         * modules/calloc-posix (License): Likewise.
49087         * modules/intprops (License): Change from GPL to LGPL, with
49088         Paul Eggert's approval.
49089
49090 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49091
49092         Merge glibc changes into lib/glob.c.
49093
49094         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
49095         2007-10-15 04:59:03 UTC.  Here are the changes:
49096
49097         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
49098
49099         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
49100
49101         * lib/glob.c: Add some branch prediction throughout.
49102
49103         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
49104
49105         [BZ #5103]
49106         * lib/glob.c (glob): Recognize patterns starting \/.
49107
49108         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
49109
49110         [BZ #3996]
49111         * lib/glob.c (attribute_hidden): Define if not defined.
49112         (glob): Unescape dirname, filename or username when needed and not
49113         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
49114         is NULL.  Handle unescaped [ in pattern without closing ].
49115         Don't pass GLOB_CHECK down to recursive glob for directories.
49116         (__glob_pattern_type): New function.
49117         (__glob_pattern_p): Implement using __glob_pattern_type.
49118         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
49119         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
49120         Remove unreachable code.
49121
49122         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
49123
49124         * lib/glob.c (glob_in_dir): Add some comments and asserts to
49125         explain why there are no leaks.
49126
49127         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
49128
49129         [BZ #3253]
49130         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
49131         time, rather allocate increasingly bigger arrays of pointers, if
49132         possible with alloca, if too large with malloc.
49133
49134 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49135
49136         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
49137         Problem reported by H.Merijn Brand in
49138         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
49139         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
49140         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
49141
49142 2007-10-15  Bruno Haible  <bruno@clisp.org>
49143
49144         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
49145         with explicit rpl_ prefix.
49146         * lib/fopen.c (fopen): Likewise.
49147         * lib/freopen.c (freopen): Likewise.
49148         * lib/iconv.c (iconv): Likewise.
49149         * lib/iconv_close.c (iconv_close): Likewise.
49150
49151 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49152
49153         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
49154
49155 2007-10-15  Bruno Haible  <bruno@clisp.org>
49156
49157         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
49158         <stddef.h> instead of <stdlib.h> since we only need NULL.
49159         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49160
49161 2007-10-15  Bruno Haible  <bruno@clisp.org>
49162
49163         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
49164         Replace paragraph talking about LIBOBJS.
49165         Reported by Colin Watson <cjwatson@debian.org>.
49166
49167 2007-10-15  Bruno Haible  <bruno@clisp.org>
49168
49169         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
49170         <stdlib.h> before using NULL.
49171
49172 2007-10-15  Simon Josefsson  <simon@josefsson.org>
49173
49174         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
49175         Reported by Albert Chin <china@thewrittenword.com>.
49176
49177 2007-10-14  Bruno Haible  <bruno@clisp.org>
49178
49179         * modules/iconv_open-utf-tests: New file.
49180         * tests/test-iconv-utf.c: New file.
49181
49182         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
49183         * modules/iconv_open-utf: New file.
49184         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
49185         (iconv, iconv_close): New declarations.
49186         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
49187         be defined.
49188         (iconv_open): Add special handling of conversion between UTF-8 and
49189         UTF-{16,32}{BE,LE}.
49190         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
49191         * lib/iconv_close.c: New file.
49192         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
49193         gl_FUNC_ICONV_OPEN.
49194         (gl_FUNC_ICONV_OPEN): Use it.
49195         (gl_FUNC_ICONV_OPEN_UTF): New macro.
49196         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
49197         and REPLACE_ICONV_UTF.
49198         * modules/iconv_open (Depends-on): Add c-strcase.
49199         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
49200         ICONV_CONST.
49201         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
49202
49203 2007-10-13  Albert Chin  <china@thewrittenword.com>
49204             Bruno Haible  <bruno@clisp.org>
49205
49206         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
49207         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
49208
49209 2007-10-13  Bruno Haible  <bruno@clisp.org>
49210
49211         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
49212         defined, use the ISO C99 inline semantics.
49213         * lib/argp.h (ARGP_EI): Likewise.
49214
49215 2007-10-13  Bruno Haible  <bruno@clisp.org>
49216
49217         Handle 'inline' change in gcc 4.3.0.
49218         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
49219         argp_fmtstream_write, argp_fmtstream_set_lmargin,
49220         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
49221         argp_fmtstream_point): Disable 'extern' declaration if the function
49222         definition is going to be provided inline.
49223         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
49224         semantics, not the ISO C99 inline semantics.
49225         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
49226         'extern' declaration if the function definition is going to be provided
49227         inline.
49228         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
49229         the GNU C inline semantics, not the ISO C99 inline semantics. With
49230         GCC 4.2, avoid a warning.
49231
49232 2007-10-13  Bruno Haible  <bruno@clisp.org>
49233
49234         * lib/freading.h (freading): Enable the use of __freading for
49235         glibc >= 2.7.
49236         * lib/freading.c (freading): Likewise.
49237
49238 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49239
49240         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
49241         "warning: C99 inline functions are not supported; using GNU89".
49242
49243 2007-10-12  Bruno Haible  <bruno@clisp.org>
49244
49245         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
49246         of 2.
49247         * tests/test-ceilf2.c: New file.
49248         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
49249
49250         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
49251         * modules/ceilf-tests: Update.
49252
49253 2007-10-12  Bruno Haible  <bruno@clisp.org>
49254
49255         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
49256         of 2.
49257         * tests/test-floorf2.c: New file.
49258         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
49259
49260         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
49261         * modules/floorf-tests: Update.
49262
49263 2007-10-12  Bruno Haible  <bruno@clisp.org>
49264
49265         * tests/test-trunc2.c: New file.
49266         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
49267
49268         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
49269         * modules/trunc-tests: Update.
49270
49271 2007-10-12  Bruno Haible  <bruno@clisp.org>
49272
49273         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
49274         of 2.
49275         * tests/test-truncf2.c: New file.
49276         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
49277
49278         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
49279         * modules/truncf-tests: Update.
49280
49281 2007-10-11  Eric Blake  <ebb9@byu.net>
49282
49283         Don't claim strerror is broken on Interix.
49284         * doc/functions/strerror.texi (strerror): Known broken systems are
49285         now Solaris 8, and not Interix.
49286         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
49287         Interix on cross-compile.
49288         Reported by Martin Koeppe in
49289         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
49290
49291 2007-10-11  Bruno Haible  <bruno@clisp.org>
49292
49293         * modules/i-ring-tests: New file.
49294         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
49295         instead of assert.
49296
49297 2007-10-11  Bruno Haible  <bruno@clisp.org>
49298
49299         * modules/filenamecat-tests: New file.
49300         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
49301         * lib/filenamecat.c: Remove test code.
49302
49303 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49304
49305         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
49306
49307         * lib/strerror.c: Include <string.h> always, to test interface,
49308         and to remove the need for the dummy.
49309         Include intprops.h to compute width instead of doing it ourselves
49310         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
49311         (strerror): Define it to return NULL if there's no system strerror.
49312         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
49313         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
49314         ancient pre-strerror Unix systems well any more.  Saying "unknown
49315         system error" is enough.
49316         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
49317         simpler strerror.c implementation.
49318         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
49319         Simplify the tests to reflect the simpler strerror implementation.
49320         * modules/strerror (Depends-on): Add intprops.
49321
49322 2007-10-09  Eric Blake  <ebb9@byu.net>
49323
49324         Silence test-fpending.
49325         * modules/fpending-tests (Files): Add wrapper script.
49326         * tests/test-fpending.sh: New file.
49327
49328 2007-10-09  Bruno Haible  <bruno@clisp.org>
49329
49330         * MODULES.html.sh (func_module): Don't create a hyperlink for
49331         function names like 'printf_frexp'.
49332         (Misc): Add crc, memxor.
49333         (Characteristics of floating types): New section.
49334         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
49335         isnanf-nolibm, signbit, trunc, truncf, truncl.
49336         (Enhancements for ISO C 99 functions): New subsection Input/output.
49337         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
49338         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
49339         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
49340         (Compatibility checks for POSIX:2001 functions): Add clock-time.
49341         (Enhancements for POSIX:2001 functions): Add chdir-long.
49342         (File system functions): Add areadlink, chdir-safer, read-file.
49343         Remove cycle-check.
49344         (File system as inode set): New section.
49345         (Date and time): Add gethrxtime.
49346         (Multithreading): Add openmp.
49347         (Internationalization functions): Add localename.
49348         (Unicode string functions): Add unistr/u*-mbsnlen.
49349         (Support for maintaining and releasing projects): Add git-version-gen.
49350         (Lone files): Remove directories.
49351
49352 2007-10-08  Ben Pfaff  <blp@gnu.org>
49353
49354         * lib/xmalloca.h: Fix typo in comment.
49355
49356 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49357
49358         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
49359         when avoiding problems with integer overflow.  Use a portable test
49360         instead.
49361
49362 2007-10-08  Simon Josefsson  <simon@josefsson.org>
49363
49364         * modules/dummy (License): Change to LGPLv2+.
49365         * modules/float (License): Likewise
49366         * modules/realloc (License): Likewise
49367         * modules/stdlib (License): Likewise
49368
49369 2007-10-07  Bruno Haible  <bruno@clisp.org>
49370
49371         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
49372         * floor.c (TWO_MANT_DIG): Likewise.
49373         * ceil.c (TWO_MANT_DIG): Likewise.
49374         Reported by Ben Pfaff.
49375
49376 2007-10-07  Bruno Haible  <bruno@clisp.org>
49377
49378         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
49379         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
49380         * lib/frexp.c (FUNC): Likewise.
49381         * lib/printf-frexp.h (printf_frexp): Likewise.
49382         * lib/printf-frexpl.h (printf_frexpl): Likewise.
49383         * lib/printf-frexp.c (FUNC): Likewise.
49384         Suggested by Jim Meyering.
49385
49386 2007-10-07  Jim Meyering  <meyering@redhat.com>
49387
49388         Make xnanosleep's integer overflow test more robust.
49389         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
49390         so that gcc-4.3.0 doesn't optimize away this test for overflow.
49391
49392 2007-10-07  Bruno Haible  <bruno@clisp.org>
49393
49394         * NEWS: Mention the license change.
49395
49396         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
49397         abbreviations in the modules files.
49398
49399         Change copyright notice from GPLv2+ to GPLv3+.
49400         * README: Change copyright notice.
49401         * MODULES.html.sh: Likewise.
49402         * build-aux/bootstrap.conf: Likewise.
49403         * build-aux/config.libpath: Likewise.
49404         * build-aux/csharpcomp.sh.in: Likewise.
49405         * build-aux/csharpexec.sh.in: Likewise.
49406         * build-aux/install-reloc: Likewise.
49407         * build-aux/javacomp.sh.in: Likewise.
49408         * build-aux/javaexec.sh.in: Likewise.
49409         * build-aux/ldd.sh.in: Likewise.
49410         * build-aux/reloc-ldflags: Likewise.
49411         * build-aux/relocatable.sh.in: Likewise.
49412         * build-aux/x-to-1.in: Likewise.
49413         * check-module: Likewise.
49414         * config/srclistvars.sh: Likewise.
49415         * gnulib-tool: Likewise.
49416         * lib/acl-internal.h: Likewise.
49417         * lib/acl.c: Likewise.
49418         * lib/acl.h: Likewise.
49419         * lib/acl_entries.c: Likewise.
49420         * lib/areadlink-with-size.c: Likewise.
49421         * lib/areadlink.c: Likewise.
49422         * lib/areadlink.h: Likewise.
49423         * lib/argmatch.c: Likewise.
49424         * lib/argmatch.h: Likewise.
49425         * lib/argp-ba.c: Likewise.
49426         * lib/argp-eexst.c: Likewise.
49427         * lib/argp-fmtstream.c: Likewise.
49428         * lib/argp-fmtstream.h: Likewise.
49429         * lib/argp-fs-xinl.c: Likewise.
49430         * lib/argp-help.c: Likewise.
49431         * lib/argp-namefrob.h: Likewise.
49432         * lib/argp-parse.c: Likewise.
49433         * lib/argp-pin.c: Likewise.
49434         * lib/argp-pv.c: Likewise.
49435         * lib/argp-pvh.c: Likewise.
49436         * lib/argp-xinl.c: Likewise.
49437         * lib/argp.h: Likewise.
49438         * lib/at-func.c: Likewise.
49439         * lib/atanl.c: Likewise.
49440         * lib/backupfile.c: Likewise.
49441         * lib/backupfile.h: Likewise.
49442         * lib/basename.c: Likewise.
49443         * lib/binary-io.h: Likewise.
49444         * lib/byteswap.in.h: Likewise.
49445         * lib/c-stack.c: Likewise.
49446         * lib/c-stack.h: Likewise.
49447         * lib/c-strcasestr.c: Likewise.
49448         * lib/c-strcasestr.h: Likewise.
49449         * lib/c-strstr.c: Likewise.
49450         * lib/c-strstr.h: Likewise.
49451         * lib/c-strtod.c: Likewise.
49452         * lib/calloc.c: Likewise.
49453         * lib/canon-host.c: Likewise.
49454         * lib/canon-host.h: Likewise.
49455         * lib/canonicalize-lgpl.c: Likewise.
49456         * lib/canonicalize.c: Likewise.
49457         * lib/canonicalize.h: Likewise.
49458         * lib/ceil.c: Likewise.
49459         * lib/ceilf.c: Likewise.
49460         * lib/ceill.c: Likewise.
49461         * lib/chdir-long.c: Likewise.
49462         * lib/chdir-long.h: Likewise.
49463         * lib/chdir-safer.c: Likewise.
49464         * lib/chdir-safer.h: Likewise.
49465         * lib/chown.c: Likewise.
49466         * lib/classpath.c: Likewise.
49467         * lib/classpath.h: Likewise.
49468         * lib/clean-temp.c: Likewise.
49469         * lib/clean-temp.h: Likewise.
49470         * lib/cloexec.c: Likewise.
49471         * lib/close-stream.c: Likewise.
49472         * lib/closein.c: Likewise.
49473         * lib/closein.h: Likewise.
49474         * lib/closeout.c: Likewise.
49475         * lib/closeout.h: Likewise.
49476         * lib/concat-filename.c: Likewise.
49477         * lib/copy-file.c: Likewise.
49478         * lib/copy-file.h: Likewise.
49479         * lib/count-one-bits.h: Likewise.
49480         * lib/crc.c: Likewise.
49481         * lib/crc.h: Likewise.
49482         * lib/creat-safer.c: Likewise.
49483         * lib/csharpcomp.c: Likewise.
49484         * lib/csharpcomp.h: Likewise.
49485         * lib/csharpexec.c: Likewise.
49486         * lib/csharpexec.h: Likewise.
49487         * lib/cycle-check.c: Likewise.
49488         * lib/cycle-check.h: Likewise.
49489         * lib/diacrit.c: Likewise.
49490         * lib/diacrit.h: Likewise.
49491         * lib/diffseq.h: Likewise.
49492         * lib/dirchownmod.c: Likewise.
49493         * lib/dirent.in.h: Likewise.
49494         * lib/dirfd.c: Likewise.
49495         * lib/dirfd.h: Likewise.
49496         * lib/dirname.c: Likewise.
49497         * lib/dirname.h: Likewise.
49498         * lib/dummy.c: Likewise.
49499         * lib/dup-safer.c: Likewise.
49500         * lib/dup2.c: Likewise.
49501         * lib/eealloc.h: Likewise.
49502         * lib/error.c: Likewise.
49503         * lib/error.h: Likewise.
49504         * lib/euidaccess.c: Likewise.
49505         * lib/exclude.c: Likewise.
49506         * lib/exclude.h: Likewise.
49507         * lib/execute.c: Likewise.
49508         * lib/execute.h: Likewise.
49509         * lib/exitfail.c: Likewise.
49510         * lib/exitfail.h: Likewise.
49511         * lib/expl.c: Likewise.
49512         * lib/fatal-signal.c: Likewise.
49513         * lib/fatal-signal.h: Likewise.
49514         * lib/fbufmode.c: Likewise.
49515         * lib/fbufmode.h: Likewise.
49516         * lib/fchdir.c: Likewise.
49517         * lib/fchmodat.c: Likewise.
49518         * lib/fchownat.c: Likewise.
49519         * lib/fcntl--.h: Likewise.
49520         * lib/fcntl-safer.h: Likewise.
49521         * lib/fcntl.in.h: Likewise.
49522         * lib/fd-safer.c: Likewise.
49523         * lib/fflush.c: Likewise.
49524         * lib/file-has-acl.c: Likewise.
49525         * lib/file-set.c: Likewise.
49526         * lib/file-type.c: Likewise.
49527         * lib/file-type.h: Likewise.
49528         * lib/fileblocks.c: Likewise.
49529         * lib/filemode.c: Likewise.
49530         * lib/filemode.h: Likewise.
49531         * lib/filename.h: Likewise.
49532         * lib/filenamecat.c: Likewise.
49533         * lib/filenamecat.h: Likewise.
49534         * lib/findprog.c: Likewise.
49535         * lib/findprog.h: Likewise.
49536         * lib/float.in.h: Likewise.
49537         * lib/floor.c: Likewise.
49538         * lib/floorf.c: Likewise.
49539         * lib/floorl.c: Likewise.
49540         * lib/fopen-safer.c: Likewise.
49541         * lib/fopen.c: Likewise.
49542         * lib/fpending.c: Likewise.
49543         * lib/fpending.h: Likewise.
49544         * lib/fprintf.c: Likewise.
49545         * lib/fprintftime.h: Likewise.
49546         * lib/fpucw.h: Likewise.
49547         * lib/fpurge.c: Likewise.
49548         * lib/fpurge.h: Likewise.
49549         * lib/freadable.c: Likewise.
49550         * lib/freadable.h: Likewise.
49551         * lib/freadahead.c: Likewise.
49552         * lib/freadahead.h: Likewise.
49553         * lib/freading.c: Likewise.
49554         * lib/freading.h: Likewise.
49555         * lib/free.c: Likewise.
49556         * lib/freopen.c: Likewise.
49557         * lib/frexp.c: Likewise.
49558         * lib/frexpl.c: Likewise.
49559         * lib/fseek.c: Likewise.
49560         * lib/fseterr.c: Likewise.
49561         * lib/fseterr.h: Likewise.
49562         * lib/fstatat.c: Likewise.
49563         * lib/fstrcmp.c: Likewise.
49564         * lib/fstrcmp.h: Likewise.
49565         * lib/fsusage.c: Likewise.
49566         * lib/fsusage.h: Likewise.
49567         * lib/ftell.c: Likewise.
49568         * lib/ftello.c: Likewise.
49569         * lib/fts-cycle.c: Likewise.
49570         * lib/fts.c: Likewise.
49571         * lib/fts_.h: Likewise.
49572         * lib/full-read.c: Likewise.
49573         * lib/full-read.h: Likewise.
49574         * lib/full-write.c: Likewise.
49575         * lib/full-write.h: Likewise.
49576         * lib/fwritable.c: Likewise.
49577         * lib/fwritable.h: Likewise.
49578         * lib/fwriteerror.c: Likewise.
49579         * lib/fwriteerror.h: Likewise.
49580         * lib/fwriting.c: Likewise.
49581         * lib/fwriting.h: Likewise.
49582         * lib/gcd.c: Likewise.
49583         * lib/gcd.h: Likewise.
49584         * lib/getcwd.c: Likewise.
49585         * lib/getdate.h: Likewise.
49586         * lib/getdate.y: Likewise.
49587         * lib/getdomainname.c: Likewise.
49588         * lib/getdomainname.h: Likewise.
49589         * lib/getgroups.c: Likewise.
49590         * lib/gethostname.c: Likewise.
49591         * lib/gethrxtime.c: Likewise.
49592         * lib/gethrxtime.h: Likewise.
49593         * lib/getloadavg.c: Likewise.
49594         * lib/getndelim2.c: Likewise.
49595         * lib/getndelim2.h: Likewise.
49596         * lib/getnline.c: Likewise.
49597         * lib/getnline.h: Likewise.
49598         * lib/getopt.c: Likewise.
49599         * lib/getopt.in.h: Likewise.
49600         * lib/getopt1.c: Likewise.
49601         * lib/getopt_int.h: Likewise.
49602         * lib/getpagesize.h: Likewise.
49603         * lib/getsubopt.c: Likewise.
49604         * lib/gettime.c: Likewise.
49605         * lib/getugroups.c: Likewise.
49606         * lib/getugroups.h: Likewise.
49607         * lib/getusershell.c: Likewise.
49608         * lib/gl_anyavltree_list1.h: Likewise.
49609         * lib/gl_anyavltree_list2.h: Likewise.
49610         * lib/gl_anyhash_list1.h: Likewise.
49611         * lib/gl_anyhash_list2.h: Likewise.
49612         * lib/gl_anylinked_list1.h: Likewise.
49613         * lib/gl_anylinked_list2.h: Likewise.
49614         * lib/gl_anyrbtree_list1.h: Likewise.
49615         * lib/gl_anyrbtree_list2.h: Likewise.
49616         * lib/gl_anytree_list1.h: Likewise.
49617         * lib/gl_anytree_list2.h: Likewise.
49618         * lib/gl_anytree_oset.h: Likewise.
49619         * lib/gl_anytreehash_list1.h: Likewise.
49620         * lib/gl_anytreehash_list2.h: Likewise.
49621         * lib/gl_array_list.c: Likewise.
49622         * lib/gl_array_list.h: Likewise.
49623         * lib/gl_array_oset.c: Likewise.
49624         * lib/gl_array_oset.h: Likewise.
49625         * lib/gl_avltree_list.c: Likewise.
49626         * lib/gl_avltree_list.h: Likewise.
49627         * lib/gl_avltree_oset.c: Likewise.
49628         * lib/gl_avltree_oset.h: Likewise.
49629         * lib/gl_avltreehash_list.c: Likewise.
49630         * lib/gl_avltreehash_list.h: Likewise.
49631         * lib/gl_carray_list.c: Likewise.
49632         * lib/gl_carray_list.h: Likewise.
49633         * lib/gl_linked_list.c: Likewise.
49634         * lib/gl_linked_list.h: Likewise.
49635         * lib/gl_linkedhash_list.c: Likewise.
49636         * lib/gl_linkedhash_list.h: Likewise.
49637         * lib/gl_list.c: Likewise.
49638         * lib/gl_list.h: Likewise.
49639         * lib/gl_oset.c: Likewise.
49640         * lib/gl_oset.h: Likewise.
49641         * lib/gl_rbtree_list.c: Likewise.
49642         * lib/gl_rbtree_list.h: Likewise.
49643         * lib/gl_rbtree_oset.c: Likewise.
49644         * lib/gl_rbtree_oset.h: Likewise.
49645         * lib/gl_rbtreehash_list.c: Likewise.
49646         * lib/gl_rbtreehash_list.h: Likewise.
49647         * lib/gl_sublist.c: Likewise.
49648         * lib/gl_sublist.h: Likewise.
49649         * lib/group-member.c: Likewise.
49650         * lib/group-member.h: Likewise.
49651         * lib/hard-locale.c: Likewise.
49652         * lib/hard-locale.h: Likewise.
49653         * lib/hash-pjw.c: Likewise.
49654         * lib/hash-pjw.h: Likewise.
49655         * lib/hash-triple.c: Likewise.
49656         * lib/hash.c: Likewise.
49657         * lib/hash.h: Likewise.
49658         * lib/human.c: Likewise.
49659         * lib/human.h: Likewise.
49660         * lib/i-ring.c: Likewise.
49661         * lib/i-ring.h: Likewise.
49662         * lib/idcache.c: Likewise.
49663         * lib/imaxabs.c: Likewise.
49664         * lib/imaxdiv.c: Likewise.
49665         * lib/inet_pton.c: Likewise.
49666         * lib/inet_pton.h: Likewise.
49667         * lib/intprops.h: Likewise.
49668         * lib/inttostr.c: Likewise.
49669         * lib/inttostr.h: Likewise.
49670         * lib/inttypes.in.h: Likewise.
49671         * lib/isapipe.c: Likewise.
49672         * lib/isdir.c: Likewise.
49673         * lib/isnan.c: Likewise.
49674         * lib/isnan.h: Likewise.
49675         * lib/isnanf.c: Likewise.
49676         * lib/isnanf.h: Likewise.
49677         * lib/isnanl-nolibm.h: Likewise.
49678         * lib/isnanl.c: Likewise.
49679         * lib/isnanl.h: Likewise.
49680         * lib/javacomp.c: Likewise.
49681         * lib/javacomp.h: Likewise.
49682         * lib/javaexec.c: Likewise.
49683         * lib/javaexec.h: Likewise.
49684         * lib/javaversion.c: Likewise.
49685         * lib/javaversion.h: Likewise.
49686         * lib/javaversion.java: Likewise.
49687         * lib/lbrkprop.h: Likewise.
49688         * lib/lchmod.h: Likewise.
49689         * lib/lchown.c: Likewise.
49690         * lib/ldexpl.c: Likewise.
49691         * lib/linebreak.c: Likewise.
49692         * lib/linebreak.h: Likewise.
49693         * lib/linebuffer.c: Likewise.
49694         * lib/linebuffer.h: Likewise.
49695         * lib/locale.in.h: Likewise.
49696         * lib/logl.c: Likewise.
49697         * lib/long-options.c: Likewise.
49698         * lib/long-options.h: Likewise.
49699         * lib/lstat.c: Likewise.
49700         * lib/lstat.h: Likewise.
49701         * lib/math.in.h: Likewise.
49702         * lib/mbchar.c: Likewise.
49703         * lib/mbchar.h: Likewise.
49704         * lib/mbfile.h: Likewise.
49705         * lib/mbiter.h: Likewise.
49706         * lib/mbscasecmp.c: Likewise.
49707         * lib/mbscasestr.c: Likewise.
49708         * lib/mbschr.c: Likewise.
49709         * lib/mbscspn.c: Likewise.
49710         * lib/mbslen.c: Likewise.
49711         * lib/mbsncasecmp.c: Likewise.
49712         * lib/mbsnlen.c: Likewise.
49713         * lib/mbspbrk.c: Likewise.
49714         * lib/mbspcasecmp.c: Likewise.
49715         * lib/mbsrchr.c: Likewise.
49716         * lib/mbssep.c: Likewise.
49717         * lib/mbsspn.c: Likewise.
49718         * lib/mbsstr.c: Likewise.
49719         * lib/mbstok_r.c: Likewise.
49720         * lib/mbswidth.c: Likewise.
49721         * lib/mbswidth.h: Likewise.
49722         * lib/mbuiter.h: Likewise.
49723         * lib/memcasecmp.c: Likewise.
49724         * lib/memcasecmp.h: Likewise.
49725         * lib/memchr.c: Likewise.
49726         * lib/memcmp.c: Likewise.
49727         * lib/memcoll.c: Likewise.
49728         * lib/memcoll.h: Likewise.
49729         * lib/memcpy.c: Likewise.
49730         * lib/memrchr.c: Likewise.
49731         * lib/mkancesdirs.c: Likewise.
49732         * lib/mkdir-p.c: Likewise.
49733         * lib/mkdir-p.h: Likewise.
49734         * lib/mkdir.c: Likewise.
49735         * lib/mkdirat.c: Likewise.
49736         * lib/mkdtemp.c: Likewise.
49737         * lib/mkstemp-safer.c: Likewise.
49738         * lib/mkstemp.c: Likewise.
49739         * lib/modechange.c: Likewise.
49740         * lib/modechange.h: Likewise.
49741         * lib/mountlist.c: Likewise.
49742         * lib/mountlist.h: Likewise.
49743         * lib/mpsort.c: Likewise.
49744         * lib/nanosleep.c: Likewise.
49745         * lib/obstack.c: Likewise.
49746         * lib/obstack.h: Likewise.
49747         * lib/open-safer.c: Likewise.
49748         * lib/open.c: Likewise.
49749         * lib/openat-die.c: Likewise.
49750         * lib/openat-priv.h: Likewise.
49751         * lib/openat-proc.c: Likewise.
49752         * lib/openat.c: Likewise.
49753         * lib/openat.h: Likewise.
49754         * lib/pagealign_alloc.c: Likewise.
49755         * lib/pagealign_alloc.h: Likewise.
49756         * lib/physmem.c: Likewise.
49757         * lib/physmem.h: Likewise.
49758         * lib/pipe-safer.c: Likewise.
49759         * lib/pipe.c: Likewise.
49760         * lib/pipe.h: Likewise.
49761         * lib/posixtm.c: Likewise.
49762         * lib/posixtm.h: Likewise.
49763         * lib/posixver.c: Likewise.
49764         * lib/printf-frexp.c: Likewise.
49765         * lib/printf-frexp.h: Likewise.
49766         * lib/printf-frexpl.c: Likewise.
49767         * lib/printf-frexpl.h: Likewise.
49768         * lib/printf.c: Likewise.
49769         * lib/progname.c: Likewise.
49770         * lib/progname.h: Likewise.
49771         * lib/progreloc.c: Likewise.
49772         * lib/putenv.c: Likewise.
49773         * lib/quote.c: Likewise.
49774         * lib/quote.h: Likewise.
49775         * lib/quotearg.c: Likewise.
49776         * lib/quotearg.h: Likewise.
49777         * lib/raise.c: Likewise.
49778         * lib/readline.c: Likewise.
49779         * lib/readline.h: Likewise.
49780         * lib/readlink.c: Likewise.
49781         * lib/readtokens.c: Likewise.
49782         * lib/readtokens.h: Likewise.
49783         * lib/readtokens0.c: Likewise.
49784         * lib/readtokens0.h: Likewise.
49785         * lib/readutmp.c: Likewise.
49786         * lib/readutmp.h: Likewise.
49787         * lib/realloc.c: Likewise.
49788         * lib/relocwrapper.c: Likewise.
49789         * lib/rename-dest-slash.c: Likewise.
49790         * lib/rename.c: Likewise.
49791         * lib/rmdir.c: Likewise.
49792         * lib/rpmatch.c: Likewise.
49793         * lib/safe-read.c: Likewise.
49794         * lib/safe-read.h: Likewise.
49795         * lib/safe-write.c: Likewise.
49796         * lib/safe-write.h: Likewise.
49797         * lib/same-inode.h: Likewise.
49798         * lib/same.c: Likewise.
49799         * lib/same.h: Likewise.
49800         * lib/save-cwd.c: Likewise.
49801         * lib/save-cwd.h: Likewise.
49802         * lib/savedir.c: Likewise.
49803         * lib/savedir.h: Likewise.
49804         * lib/savewd.c: Likewise.
49805         * lib/savewd.h: Likewise.
49806         * lib/search.in.h: Likewise.
49807         * lib/setenv.c: Likewise.
49808         * lib/setenv.h: Likewise.
49809         * lib/settime.c: Likewise.
49810         * lib/sh-quote.c: Likewise.
49811         * lib/sh-quote.h: Likewise.
49812         * lib/sig2str.c: Likewise.
49813         * lib/sig2str.h: Likewise.
49814         * lib/signal.in.h: Likewise.
49815         * lib/signbitd.c: Likewise.
49816         * lib/signbitf.c: Likewise.
49817         * lib/signbitl.c: Likewise.
49818         * lib/sigprocmask.c: Likewise.
49819         * lib/sincosl.c: Likewise.
49820         * lib/sleep.c: Likewise.
49821         * lib/sprintf.c: Likewise.
49822         * lib/sqrtl.c: Likewise.
49823         * lib/stat-time.h: Likewise.
49824         * lib/stdio--.h: Likewise.
49825         * lib/stdio-safer.h: Likewise.
49826         * lib/stdlib--.h: Likewise.
49827         * lib/stdlib-safer.h: Likewise.
49828         * lib/stdlib.in.h: Likewise.
49829         * lib/stpcpy.c: Likewise.
49830         * lib/stpncpy.c: Likewise.
49831         * lib/strchrnul.c: Likewise.
49832         * lib/strcspn.c: Likewise.
49833         * lib/strerror.c: Likewise.
49834         * lib/strftime.c: Likewise.
49835         * lib/strftime.h: Likewise.
49836         * lib/striconveh.c: Likewise.
49837         * lib/striconveh.h: Likewise.
49838         * lib/striconveha.c: Likewise.
49839         * lib/striconveha.h: Likewise.
49840         * lib/stripslash.c: Likewise.
49841         * lib/strnlen1.c: Likewise.
49842         * lib/strnlen1.h: Likewise.
49843         * lib/strtod.c: Likewise.
49844         * lib/strtoimax.c: Likewise.
49845         * lib/strtok_r.c: Likewise.
49846         * lib/strtol.c: Likewise.
49847         * lib/strtoll.c: Likewise.
49848         * lib/strtoul.c: Likewise.
49849         * lib/strtoull.c: Likewise.
49850         * lib/sysexits.in.h: Likewise.
49851         * lib/tempname.c: Likewise.
49852         * lib/tempname.h: Likewise.
49853         * lib/timespec.h: Likewise.
49854         * lib/tls.c: Likewise.
49855         * lib/tls.h: Likewise.
49856         * lib/tmpdir.c: Likewise.
49857         * lib/tmpdir.h: Likewise.
49858         * lib/tmpfile-safer.c: Likewise.
49859         * lib/tmpfile.c: Likewise.
49860         * lib/trigl.c: Likewise.
49861         * lib/trigl.h: Likewise.
49862         * lib/trim.c: Likewise.
49863         * lib/trim.h: Likewise.
49864         * lib/trunc.c: Likewise.
49865         * lib/truncf.c: Likewise.
49866         * lib/truncl.c: Likewise.
49867         * lib/tsearch.c: Likewise.
49868         * lib/unicodeio.c: Likewise.
49869         * lib/unicodeio.h: Likewise.
49870         * lib/unistd--.h: Likewise.
49871         * lib/unistd-safer.h: Likewise.
49872         * lib/unistdio/ulc-fprintf.c: Likewise.
49873         * lib/unistdio/ulc-vfprintf.c: Likewise.
49874         * lib/unlinkdir.c: Likewise.
49875         * lib/unlinkdir.h: Likewise.
49876         * lib/unlocked-io.h: Likewise.
49877         * lib/unsetenv.c: Likewise.
49878         * lib/userspec.c: Likewise.
49879         * lib/utime.c: Likewise.
49880         * lib/utimecmp.c: Likewise.
49881         * lib/utimecmp.h: Likewise.
49882         * lib/utimens.c: Likewise.
49883         * lib/verify.h: Likewise.
49884         * lib/verror.c: Likewise.
49885         * lib/verror.h: Likewise.
49886         * lib/version-etc-fsf.c: Likewise.
49887         * lib/version-etc.c: Likewise.
49888         * lib/version-etc.h: Likewise.
49889         * lib/vfprintf.c: Likewise.
49890         * lib/vprintf.c: Likewise.
49891         * lib/vsprintf.c: Likewise.
49892         * lib/w32spawn.h: Likewise.
49893         * lib/wait-process.c: Likewise.
49894         * lib/wait-process.h: Likewise.
49895         * lib/wcwidth.c: Likewise.
49896         * lib/write-any-file.c: Likewise.
49897         * lib/xalloc-die.c: Likewise.
49898         * lib/xalloc.h: Likewise.
49899         * lib/xasprintf.c: Likewise.
49900         * lib/xgetcwd.c: Likewise.
49901         * lib/xgetcwd.h: Likewise.
49902         * lib/xgetdomainname.c: Likewise.
49903         * lib/xgetdomainname.h: Likewise.
49904         * lib/xgethostname.c: Likewise.
49905         * lib/xmalloc.c: Likewise.
49906         * lib/xmalloca.c: Likewise.
49907         * lib/xmalloca.h: Likewise.
49908         * lib/xmemcoll.c: Likewise.
49909         * lib/xnanosleep.c: Likewise.
49910         * lib/xreadlink.c: Likewise.
49911         * lib/xreadlink.h: Likewise.
49912         * lib/xsetenv.c: Likewise.
49913         * lib/xsetenv.h: Likewise.
49914         * lib/xstriconv.c: Likewise.
49915         * lib/xstriconv.h: Likewise.
49916         * lib/xstrndup.c: Likewise.
49917         * lib/xstrndup.h: Likewise.
49918         * lib/xstrtod.c: Likewise.
49919         * lib/xstrtod.h: Likewise.
49920         * lib/xstrtol-error.c: Likewise.
49921         * lib/xstrtol.c: Likewise.
49922         * lib/xstrtol.h: Likewise.
49923         * lib/xtime.h: Likewise.
49924         * lib/xvasprintf.c: Likewise.
49925         * lib/xvasprintf.h: Likewise.
49926         * lib/yesno.c: Likewise.
49927         * lib/yesno.h: Likewise.
49928         * posix-modules: Likewise.
49929         * tests/test-alloca-opt.c: Likewise.
49930         * tests/test-arcfour.c: Likewise.
49931         * tests/test-arctwo.c: Likewise.
49932         * tests/test-argmatch.c: Likewise.
49933         * tests/test-argp-2.sh: Likewise.
49934         * tests/test-argp.c: Likewise.
49935         * tests/test-arpa_inet.c: Likewise.
49936         * tests/test-array_list.c: Likewise.
49937         * tests/test-array_oset.c: Likewise.
49938         * tests/test-atexit.c: Likewise.
49939         * tests/test-avltree_list.c: Likewise.
49940         * tests/test-avltree_oset.c: Likewise.
49941         * tests/test-avltreehash_list.c: Likewise.
49942         * tests/test-base64.c: Likewise.
49943         * tests/test-binary-io.c: Likewise.
49944         * tests/test-byteswap.c: Likewise.
49945         * tests/test-c-ctype.c: Likewise.
49946         * tests/test-c-strcasecmp.c: Likewise.
49947         * tests/test-c-strcasestr.c: Likewise.
49948         * tests/test-c-strncasecmp.c: Likewise.
49949         * tests/test-c-strstr.c: Likewise.
49950         * tests/test-canonicalize-lgpl.c: Likewise.
49951         * tests/test-canonicalize.c: Likewise.
49952         * tests/test-carray_list.c: Likewise.
49953         * tests/test-ceilf.c: Likewise.
49954         * tests/test-ceill.c: Likewise.
49955         * tests/test-count-one-bits.c: Likewise.
49956         * tests/test-crc.c: Likewise.
49957         * tests/test-dirname.c: Likewise.
49958         * tests/test-fbufmode.c: Likewise.
49959         * tests/test-fcntl.c: Likewise.
49960         * tests/test-fflush.c: Likewise.
49961         * tests/test-floorf.c: Likewise.
49962         * tests/test-floorl.c: Likewise.
49963         * tests/test-fopen.c: Likewise.
49964         * tests/test-fprintf-posix.c: Likewise.
49965         * tests/test-fprintf-posix.h: Likewise.
49966         * tests/test-fpurge.c: Likewise.
49967         * tests/test-freadable.c: Likewise.
49968         * tests/test-freadahead.c: Likewise.
49969         * tests/test-freading.c: Likewise.
49970         * tests/test-freopen.c: Likewise.
49971         * tests/test-frexp.c: Likewise.
49972         * tests/test-frexpl.c: Likewise.
49973         * tests/test-fseek.c: Likewise.
49974         * tests/test-fseeko.c: Likewise.
49975         * tests/test-fseterr.c: Likewise.
49976         * tests/test-fstrcmp.c: Likewise.
49977         * tests/test-ftell.c: Likewise.
49978         * tests/test-ftello.c: Likewise.
49979         * tests/test-fwritable.c: Likewise.
49980         * tests/test-fwriting.c: Likewise.
49981         * tests/test-getaddrinfo.c: Likewise.
49982         * tests/test-getpass.c: Likewise.
49983         * tests/test-gettimeofday.c: Likewise.
49984         * tests/test-hmac-md5.c: Likewise.
49985         * tests/test-hmac-sha1.c: Likewise.
49986         * tests/test-iconv.c: Likewise.
49987         * tests/test-iconvme.c: Likewise.
49988         * tests/test-inttypes.c: Likewise.
49989         * tests/test-isnan.c: Likewise.
49990         * tests/test-isnanf.c: Likewise.
49991         * tests/test-isnanl-nolibm.c: Likewise.
49992         * tests/test-isnanl.c: Likewise.
49993         * tests/test-isnanl.h: Likewise.
49994         * tests/test-ldexpl.c: Likewise.
49995         * tests/test-linked_list.c: Likewise.
49996         * tests/test-linkedhash_list.c: Likewise.
49997         * tests/test-locale.c: Likewise.
49998         * tests/test-localename.c: Likewise.
49999         * tests/test-lock.c: Likewise.
50000         * tests/test-lseek.c: Likewise.
50001         * tests/test-malloca.c: Likewise.
50002         * tests/test-math.c: Likewise.
50003         * tests/test-mbscasecmp.c: Likewise.
50004         * tests/test-mbscasestr1.c: Likewise.
50005         * tests/test-mbscasestr2.c: Likewise.
50006         * tests/test-mbscasestr3.c: Likewise.
50007         * tests/test-mbscasestr4.c: Likewise.
50008         * tests/test-mbschr.c: Likewise.
50009         * tests/test-mbscspn.c: Likewise.
50010         * tests/test-mbsncasecmp.c: Likewise.
50011         * tests/test-mbspbrk.c: Likewise.
50012         * tests/test-mbspcasecmp.c: Likewise.
50013         * tests/test-mbsrchr.c: Likewise.
50014         * tests/test-mbsspn.c: Likewise.
50015         * tests/test-mbsstr1.c: Likewise.
50016         * tests/test-mbsstr2.c: Likewise.
50017         * tests/test-mbsstr3.c: Likewise.
50018         * tests/test-md5.c: Likewise.
50019         * tests/test-memmem.c: Likewise.
50020         * tests/test-netinet_in.c: Likewise.
50021         * tests/test-open.c: Likewise.
50022         * tests/test-printf-frexp.c: Likewise.
50023         * tests/test-printf-frexpl.c: Likewise.
50024         * tests/test-printf-posix.c: Likewise.
50025         * tests/test-printf-posix.h: Likewise.
50026         * tests/test-rbtree_list.c: Likewise.
50027         * tests/test-rbtree_oset.c: Likewise.
50028         * tests/test-rbtreehash_list.c: Likewise.
50029         * tests/test-read-file.c: Likewise.
50030         * tests/test-rijndael.c: Likewise.
50031         * tests/test-search.c: Likewise.
50032         * tests/test-signbit.c: Likewise.
50033         * tests/test-sleep.c: Likewise.
50034         * tests/test-snprintf-posix.c: Likewise.
50035         * tests/test-snprintf-posix.h: Likewise.
50036         * tests/test-snprintf.c: Likewise.
50037         * tests/test-sprintf-posix.c: Likewise.
50038         * tests/test-sprintf-posix.h: Likewise.
50039         * tests/test-stat-time.c: Likewise.
50040         * tests/test-stdbool.c: Likewise.
50041         * tests/test-stdint.c: Likewise.
50042         * tests/test-stdio.c: Likewise.
50043         * tests/test-stdlib.c: Likewise.
50044         * tests/test-stpncpy.c: Likewise.
50045         * tests/test-strcasestr.c: Likewise.
50046         * tests/test-striconv.c: Likewise.
50047         * tests/test-striconveh.c: Likewise.
50048         * tests/test-striconveha.c: Likewise.
50049         * tests/test-string.c: Likewise.
50050         * tests/test-sys_select.c: Likewise.
50051         * tests/test-sys_socket.c: Likewise.
50052         * tests/test-sys_stat.c: Likewise.
50053         * tests/test-sys_time.c: Likewise.
50054         * tests/test-sysexits.c: Likewise.
50055         * tests/test-time.c: Likewise.
50056         * tests/test-tls.c: Likewise.
50057         * tests/test-trunc.c: Likewise.
50058         * tests/test-truncf.c: Likewise.
50059         * tests/test-truncl.c: Likewise.
50060         * tests/test-unistd.c: Likewise.
50061         * tests/test-vasnprintf-posix.c: Likewise.
50062         * tests/test-vasnprintf-posix2.c: Likewise.
50063         * tests/test-vasnprintf.c: Likewise.
50064         * tests/test-vasprintf-posix.c: Likewise.
50065         * tests/test-vasprintf.c: Likewise.
50066         * tests/test-verify.c: Likewise.
50067         * tests/test-vfprintf-posix.c: Likewise.
50068         * tests/test-vprintf-posix.c: Likewise.
50069         * tests/test-vsnprintf-posix.c: Likewise.
50070         * tests/test-vsnprintf.c: Likewise.
50071         * tests/test-vsprintf-posix.c: Likewise.
50072         * tests/test-wchar.c: Likewise.
50073         * tests/test-wctype.c: Likewise.
50074         * tests/test-wcwidth.c: Likewise.
50075         * tests/test-xstrtol.c: Likewise.
50076         * tests/test-xvasprintf.c: Likewise.
50077         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
50078         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
50079         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
50080         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
50081         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
50082         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
50083         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
50084         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
50085         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
50086         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
50087         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
50088         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
50089         * tests/uniname/test-uninames.c: Likewise.
50090         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
50091         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
50092         * tests/unistdio/test-u16-printf1.h: Likewise.
50093         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
50094         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
50095         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
50096         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
50097         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
50098         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
50099         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
50100         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
50101         * tests/unistdio/test-u32-printf1.h: Likewise.
50102         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
50103         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
50104         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
50105         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
50106         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
50107         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
50108         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
50109         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
50110         * tests/unistdio/test-u8-printf1.h: Likewise.
50111         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
50112         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
50113         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
50114         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
50115         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
50116         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
50117         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
50118         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
50119         * tests/unistdio/test-ulc-printf1.h: Likewise.
50120         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
50121         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
50122         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
50123         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
50124         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
50125         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
50126         * tests/uniwidth/test-u16-strwidth.c: Likewise.
50127         * tests/uniwidth/test-u16-width.c: Likewise.
50128         * tests/uniwidth/test-u32-strwidth.c: Likewise.
50129         * tests/uniwidth/test-u32-width.c: Likewise.
50130         * tests/uniwidth/test-u8-strwidth.c: Likewise.
50131         * tests/uniwidth/test-u8-width.c: Likewise.
50132         * tests/uniwidth/test-uc_width.c: Likewise.
50133         * config/srclist-update: Likewise.
50134         (fixlicense): Update to GPLv3+.
50135
50136         Change copyright notice from LGPLv2.1+ to LGPLv3+.
50137         * tests/test-tsearch.c: Change copyright notice.
50138
50139         Change copyright notice from LGPLv2.0+ to LGPLv3+.
50140         * lib/c-strcaseeq.h: Change copyright notice.
50141         * lib/streq.h: Likewise.
50142         * lib/uniconv.h: Likewise.
50143         * lib/uniconv/u-conv-from-enc.h: Likewise.
50144         * lib/uniconv/u-conv-to-enc.h: Likewise.
50145         * lib/uniconv/u-strconv-from-enc.h: Likewise.
50146         * lib/uniconv/u-strconv-to-enc.h: Likewise.
50147         * lib/uniconv/u16-conv-from-enc.c: Likewise.
50148         * lib/uniconv/u16-conv-to-enc.c: Likewise.
50149         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
50150         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
50151         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
50152         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
50153         * lib/uniconv/u32-conv-from-enc.c: Likewise.
50154         * lib/uniconv/u32-conv-to-enc.c: Likewise.
50155         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
50156         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
50157         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
50158         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
50159         * lib/uniconv/u8-conv-from-enc.c: Likewise.
50160         * lib/uniconv/u8-conv-to-enc.c: Likewise.
50161         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
50162         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
50163         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
50164         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
50165         * lib/uniname.h: Likewise.
50166         * lib/uniname/uniname.c: Likewise.
50167         * lib/unistdio.h: Likewise.
50168         * lib/unistdio/u-asnprintf.h: Likewise.
50169         * lib/unistdio/u-asprintf.h: Likewise.
50170         * lib/unistdio/u-printf-args.c: Likewise.
50171         * lib/unistdio/u-printf-args.h: Likewise.
50172         * lib/unistdio/u-printf-parse.h: Likewise.
50173         * lib/unistdio/u-snprintf.h: Likewise.
50174         * lib/unistdio/u-sprintf.h: Likewise.
50175         * lib/unistdio/u-vasprintf.h: Likewise.
50176         * lib/unistdio/u-vsnprintf.h: Likewise.
50177         * lib/unistdio/u-vsprintf.h: Likewise.
50178         * lib/unistdio/u16-asnprintf.c: Likewise.
50179         * lib/unistdio/u16-asprintf.c: Likewise.
50180         * lib/unistdio/u16-printf-parse.c: Likewise.
50181         * lib/unistdio/u16-snprintf.c: Likewise.
50182         * lib/unistdio/u16-sprintf.c: Likewise.
50183         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
50184         * lib/unistdio/u16-u16-asprintf.c: Likewise.
50185         * lib/unistdio/u16-u16-snprintf.c: Likewise.
50186         * lib/unistdio/u16-u16-sprintf.c: Likewise.
50187         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
50188         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
50189         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
50190         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
50191         * lib/unistdio/u16-vasnprintf.c: Likewise.
50192         * lib/unistdio/u16-vasprintf.c: Likewise.
50193         * lib/unistdio/u16-vsnprintf.c: Likewise.
50194         * lib/unistdio/u16-vsprintf.c: Likewise.
50195         * lib/unistdio/u32-asnprintf.c: Likewise.
50196         * lib/unistdio/u32-asprintf.c: Likewise.
50197         * lib/unistdio/u32-printf-parse.c: Likewise.
50198         * lib/unistdio/u32-snprintf.c: Likewise.
50199         * lib/unistdio/u32-sprintf.c: Likewise.
50200         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
50201         * lib/unistdio/u32-u32-asprintf.c: Likewise.
50202         * lib/unistdio/u32-u32-snprintf.c: Likewise.
50203         * lib/unistdio/u32-u32-sprintf.c: Likewise.
50204         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
50205         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
50206         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
50207         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
50208         * lib/unistdio/u32-vasnprintf.c: Likewise.
50209         * lib/unistdio/u32-vasprintf.c: Likewise.
50210         * lib/unistdio/u32-vsnprintf.c: Likewise.
50211         * lib/unistdio/u32-vsprintf.c: Likewise.
50212         * lib/unistdio/u8-asnprintf.c: Likewise.
50213         * lib/unistdio/u8-asprintf.c: Likewise.
50214         * lib/unistdio/u8-printf-parse.c: Likewise.
50215         * lib/unistdio/u8-snprintf.c: Likewise.
50216         * lib/unistdio/u8-sprintf.c: Likewise.
50217         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
50218         * lib/unistdio/u8-u8-asprintf.c: Likewise.
50219         * lib/unistdio/u8-u8-snprintf.c: Likewise.
50220         * lib/unistdio/u8-u8-sprintf.c: Likewise.
50221         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
50222         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
50223         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
50224         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
50225         * lib/unistdio/u8-vasnprintf.c: Likewise.
50226         * lib/unistdio/u8-vasprintf.c: Likewise.
50227         * lib/unistdio/u8-vsnprintf.c: Likewise.
50228         * lib/unistdio/u8-vsprintf.c: Likewise.
50229         * lib/unistdio/ulc-asnprintf.c: Likewise.
50230         * lib/unistdio/ulc-asprintf.c: Likewise.
50231         * lib/unistdio/ulc-printf-parse.c: Likewise.
50232         * lib/unistdio/ulc-snprintf.c: Likewise.
50233         * lib/unistdio/ulc-sprintf.c: Likewise.
50234         * lib/unistdio/ulc-vasnprintf.c: Likewise.
50235         * lib/unistdio/ulc-vasprintf.c: Likewise.
50236         * lib/unistdio/ulc-vsnprintf.c: Likewise.
50237         * lib/unistdio/ulc-vsprintf.c: Likewise.
50238         * lib/unistr.h: Likewise.
50239         * lib/unistr/u-cpy-alloc.h: Likewise.
50240         * lib/unistr/u-cpy.h: Likewise.
50241         * lib/unistr/u-endswith.h: Likewise.
50242         * lib/unistr/u-move.h: Likewise.
50243         * lib/unistr/u-set.h: Likewise.
50244         * lib/unistr/u-startswith.h: Likewise.
50245         * lib/unistr/u-stpcpy.h: Likewise.
50246         * lib/unistr/u-stpncpy.h: Likewise.
50247         * lib/unistr/u-strcat.h: Likewise.
50248         * lib/unistr/u-strcpy.h: Likewise.
50249         * lib/unistr/u-strcspn.h: Likewise.
50250         * lib/unistr/u-strdup.h: Likewise.
50251         * lib/unistr/u-strlen.h: Likewise.
50252         * lib/unistr/u-strncat.h: Likewise.
50253         * lib/unistr/u-strncpy.h: Likewise.
50254         * lib/unistr/u-strnlen.h: Likewise.
50255         * lib/unistr/u-strpbrk.h: Likewise.
50256         * lib/unistr/u-strspn.h: Likewise.
50257         * lib/unistr/u-strstr.h: Likewise.
50258         * lib/unistr/u-strtok.h: Likewise.
50259         * lib/unistr/u16-check.c: Likewise.
50260         * lib/unistr/u16-chr.c: Likewise.
50261         * lib/unistr/u16-cmp.c: Likewise.
50262         * lib/unistr/u16-cpy-alloc.c: Likewise.
50263         * lib/unistr/u16-cpy.c: Likewise.
50264         * lib/unistr/u16-endswith.c: Likewise.
50265         * lib/unistr/u16-mblen.c: Likewise.
50266         * lib/unistr/u16-mbsnlen.c: Likewise.
50267         * lib/unistr/u16-mbtouc-aux.c: Likewise.
50268         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
50269         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50270         * lib/unistr/u16-mbtouc.c: Likewise.
50271         * lib/unistr/u16-mbtoucr.c: Likewise.
50272         * lib/unistr/u16-move.c: Likewise.
50273         * lib/unistr/u16-next.c: Likewise.
50274         * lib/unistr/u16-prev.c: Likewise.
50275         * lib/unistr/u16-set.c: Likewise.
50276         * lib/unistr/u16-startswith.c: Likewise.
50277         * lib/unistr/u16-stpcpy.c: Likewise.
50278         * lib/unistr/u16-stpncpy.c: Likewise.
50279         * lib/unistr/u16-strcat.c: Likewise.
50280         * lib/unistr/u16-strchr.c: Likewise.
50281         * lib/unistr/u16-strcmp.c: Likewise.
50282         * lib/unistr/u16-strcpy.c: Likewise.
50283         * lib/unistr/u16-strcspn.c: Likewise.
50284         * lib/unistr/u16-strdup.c: Likewise.
50285         * lib/unistr/u16-strlen.c: Likewise.
50286         * lib/unistr/u16-strmblen.c: Likewise.
50287         * lib/unistr/u16-strmbtouc.c: Likewise.
50288         * lib/unistr/u16-strncat.c: Likewise.
50289         * lib/unistr/u16-strncmp.c: Likewise.
50290         * lib/unistr/u16-strncpy.c: Likewise.
50291         * lib/unistr/u16-strnlen.c: Likewise.
50292         * lib/unistr/u16-strpbrk.c: Likewise.
50293         * lib/unistr/u16-strrchr.c: Likewise.
50294         * lib/unistr/u16-strspn.c: Likewise.
50295         * lib/unistr/u16-strstr.c: Likewise.
50296         * lib/unistr/u16-strtok.c: Likewise.
50297         * lib/unistr/u16-to-u32.c: Likewise.
50298         * lib/unistr/u16-to-u8.c: Likewise.
50299         * lib/unistr/u16-uctomb-aux.c: Likewise.
50300         * lib/unistr/u16-uctomb.c: Likewise.
50301         * lib/unistr/u32-check.c: Likewise.
50302         * lib/unistr/u32-chr.c: Likewise.
50303         * lib/unistr/u32-cmp.c: Likewise.
50304         * lib/unistr/u32-cpy-alloc.c: Likewise.
50305         * lib/unistr/u32-cpy.c: Likewise.
50306         * lib/unistr/u32-endswith.c: Likewise.
50307         * lib/unistr/u32-mblen.c: Likewise.
50308         * lib/unistr/u32-mbsnlen.c: Likewise.
50309         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
50310         * lib/unistr/u32-mbtouc.c: Likewise.
50311         * lib/unistr/u32-mbtoucr.c: Likewise.
50312         * lib/unistr/u32-move.c: Likewise.
50313         * lib/unistr/u32-next.c: Likewise.
50314         * lib/unistr/u32-prev.c: Likewise.
50315         * lib/unistr/u32-set.c: Likewise.
50316         * lib/unistr/u32-startswith.c: Likewise.
50317         * lib/unistr/u32-stpcpy.c: Likewise.
50318         * lib/unistr/u32-stpncpy.c: Likewise.
50319         * lib/unistr/u32-strcat.c: Likewise.
50320         * lib/unistr/u32-strchr.c: Likewise.
50321         * lib/unistr/u32-strcmp.c: Likewise.
50322         * lib/unistr/u32-strcpy.c: Likewise.
50323         * lib/unistr/u32-strcspn.c: Likewise.
50324         * lib/unistr/u32-strdup.c: Likewise.
50325         * lib/unistr/u32-strlen.c: Likewise.
50326         * lib/unistr/u32-strmblen.c: Likewise.
50327         * lib/unistr/u32-strmbtouc.c: Likewise.
50328         * lib/unistr/u32-strncat.c: Likewise.
50329         * lib/unistr/u32-strncmp.c: Likewise.
50330         * lib/unistr/u32-strncpy.c: Likewise.
50331         * lib/unistr/u32-strnlen.c: Likewise.
50332         * lib/unistr/u32-strpbrk.c: Likewise.
50333         * lib/unistr/u32-strrchr.c: Likewise.
50334         * lib/unistr/u32-strspn.c: Likewise.
50335         * lib/unistr/u32-strstr.c: Likewise.
50336         * lib/unistr/u32-strtok.c: Likewise.
50337         * lib/unistr/u32-to-u16.c: Likewise.
50338         * lib/unistr/u32-to-u8.c: Likewise.
50339         * lib/unistr/u32-uctomb.c: Likewise.
50340         * lib/unistr/u8-check.c: Likewise.
50341         * lib/unistr/u8-chr.c: Likewise.
50342         * lib/unistr/u8-cmp.c: Likewise.
50343         * lib/unistr/u8-cpy-alloc.c: Likewise.
50344         * lib/unistr/u8-cpy.c: Likewise.
50345         * lib/unistr/u8-endswith.c: Likewise.
50346         * lib/unistr/u8-mblen.c: Likewise.
50347         * lib/unistr/u8-mbsnlen.c: Likewise.
50348         * lib/unistr/u8-mbtouc-aux.c: Likewise.
50349         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
50350         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
50351         * lib/unistr/u8-mbtouc.c: Likewise.
50352         * lib/unistr/u8-mbtoucr.c: Likewise.
50353         * lib/unistr/u8-move.c: Likewise.
50354         * lib/unistr/u8-next.c: Likewise.
50355         * lib/unistr/u8-prev.c: Likewise.
50356         * lib/unistr/u8-set.c: Likewise.
50357         * lib/unistr/u8-startswith.c: Likewise.
50358         * lib/unistr/u8-stpcpy.c: Likewise.
50359         * lib/unistr/u8-stpncpy.c: Likewise.
50360         * lib/unistr/u8-strcat.c: Likewise.
50361         * lib/unistr/u8-strchr.c: Likewise.
50362         * lib/unistr/u8-strcmp.c: Likewise.
50363         * lib/unistr/u8-strcpy.c: Likewise.
50364         * lib/unistr/u8-strcspn.c: Likewise.
50365         * lib/unistr/u8-strdup.c: Likewise.
50366         * lib/unistr/u8-strlen.c: Likewise.
50367         * lib/unistr/u8-strmblen.c: Likewise.
50368         * lib/unistr/u8-strmbtouc.c: Likewise.
50369         * lib/unistr/u8-strncat.c: Likewise.
50370         * lib/unistr/u8-strncmp.c: Likewise.
50371         * lib/unistr/u8-strncpy.c: Likewise.
50372         * lib/unistr/u8-strnlen.c: Likewise.
50373         * lib/unistr/u8-strpbrk.c: Likewise.
50374         * lib/unistr/u8-strrchr.c: Likewise.
50375         * lib/unistr/u8-strspn.c: Likewise.
50376         * lib/unistr/u8-strstr.c: Likewise.
50377         * lib/unistr/u8-strtok.c: Likewise.
50378         * lib/unistr/u8-to-u16.c: Likewise.
50379         * lib/unistr/u8-to-u32.c: Likewise.
50380         * lib/unistr/u8-uctomb-aux.c: Likewise.
50381         * lib/unistr/u8-uctomb.c: Likewise.
50382         * lib/unitypes.h: Likewise.
50383         * lib/uniwidth.h: Likewise.
50384         * lib/uniwidth/cjk.h: Likewise.
50385         * lib/uniwidth/u16-strwidth.c: Likewise.
50386         * lib/uniwidth/u16-width.c: Likewise.
50387         * lib/uniwidth/u32-strwidth.c: Likewise.
50388         * lib/uniwidth/u32-width.c: Likewise.
50389         * lib/uniwidth/u8-strwidth.c: Likewise.
50390         * lib/uniwidth/u8-width.c: Likewise.
50391         * lib/uniwidth/width.c: Likewise.
50392
50393 2007-10-07  Bruno Haible  <bruno@clisp.org>
50394
50395         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
50396         The file is still under LGPL (see modules/inttypes).
50397
50398 2007-10-06  Bruno Haible  <bruno@clisp.org>
50399
50400         * modules/trunc (Dependencies): Add 'extensions'.
50401         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
50402         Reported by Ben Pfaff <blp@gnu.org>.
50403
50404 2007-10-06  Bruno Haible  <bruno@clisp.org>
50405
50406         * modules/freopen-tests: New file.
50407         * tests/test-freopen.c: New file.
50408
50409         * modules/fopen-tests: New file.
50410         * tests/test-fopen.c: New file.
50411
50412         * modules/fopen: New file.
50413         * lib/fopen.c: New file.
50414         * m4/fopen.m4: New file.
50415         * modules/freopen: New file.
50416         * lib/freopen.c: New file.
50417         * m4/freopen.m4: New file.
50418         * lib/stdio.in.h (fopen, freopen): New declarations.
50419         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
50420         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
50421         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
50422         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
50423         * doc/functions/fopen.texi: Mention the 'fopen' module.
50424         * doc/functions/freopen.texi: Mention the 'freopen' module.
50425
50426 2007-10-06  Bruno Haible  <bruno@clisp.org>
50427
50428         * modules/open-tests: New file.
50429         * tests/test-open.c: New file.
50430
50431         * modules/open: New file.
50432         * lib/open.c: New file.
50433         * m4/open.m4: New file.
50434         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
50435         lib/open.c does.
50436         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
50437         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
50438         macros.
50439         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
50440         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
50441         REPLACE_OPEN.
50442         * doc/functions/open.texi: Mention the 'open' module.
50443
50444 2007-10-04  Bruno Haible  <bruno@clisp.org>
50445
50446         * modules/ceill-tests: New file.
50447         * tests/test-ceill.c: New file.
50448
50449         * modules/ceill: New file.
50450         * lib/ceill.c: Replace entire file.
50451         * m4/ceill.m4: New file.
50452         * lib/math.in.h (ceill): Replace declaration.
50453         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
50454         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
50455         * doc/functions/ceill.texi: Mention the 'ceill' module.
50456         * modules/mathl (Files): Remove lib/ceill.c.
50457         (Depends-on): Add ceill.
50458
50459 2007-10-04  Bruno Haible  <bruno@clisp.org>
50460
50461         * modules/ceilf-tests: New file.
50462         * tests/test-ceilf.c: New file.
50463
50464         * modules/ceilf: New file.
50465         * lib/ceil.c: New file.
50466         * lib/ceilf.c: New file.
50467         * m4/ceilf.m4: New file.
50468         * lib/math.in.h (ceilf): New declaration.
50469         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
50470         HAVE_DECL_CEILF.
50471         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
50472         HAVE_DECL_CEILF.
50473         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
50474
50475 2007-10-04  Bruno Haible  <bruno@clisp.org>
50476
50477         * modules/floorl-tests: New file.
50478         * tests/test-floorl.c: New file.
50479
50480         * modules/floorl: New file.
50481         * lib/floorl.c: Replace entire file.
50482         * m4/floorl.m4: New file.
50483         * lib/math.in.h (floorl): Replace declaration.
50484         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
50485         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
50486         * doc/functions/floorl.texi: Mention the 'floorl' module.
50487         * modules/mathl (Files): Remove lib/floorl.c.
50488         (Depends-on): Add floorl.
50489
50490 2007-10-04  Bruno Haible  <bruno@clisp.org>
50491
50492         * modules/floorf-tests: New file.
50493         * tests/test-floorf.c: New file.
50494
50495         * modules/floorf: New file.
50496         * lib/floor.c: New file.
50497         * lib/floorf.c: New file.
50498         * m4/floorf.m4: New file.
50499         * lib/math.in.h (floorf): New declaration.
50500         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
50501         HAVE_DECL_FLOORF.
50502         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
50503         HAVE_DECL_FLOORF.
50504         * doc/functions/floorf.texi: Mention the 'floorf' module.
50505
50506 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
50507             Bruno Haible  <bruno@clisp.org>
50508
50509         Advertise for the Git server instead of the CVS server.
50510         * doc/gnulib-intro.texi (Steady Development): Mention the Git
50511         repository instead of the CVS one.
50512         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
50513         about all VCS systems generically.
50514         * doc/gnulib.texi (Introduction): Capitalize `Git'.
50515
50516 2007-10-04  Bruno Haible  <bruno@clisp.org>
50517
50518         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
50519         means.
50520         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
50521
50522 2007-10-04  Bruno Haible  <bruno@clisp.org>
50523
50524         * modules/truncl-tests: New file.
50525         * tests/test-truncl.c: New file.
50526
50527         * modules/truncl: New file.
50528         * lib/truncl.c: New file.
50529         * m4/truncl.m4: New file.
50530         * lib/math.in.h (truncl): New declaration.
50531         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
50532         HAVE_DECL_TRUNCL.
50533         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
50534         HAVE_DECL_TRUNCL.
50535         * doc/functions/truncl.texi: Mention the 'truncl' module.
50536
50537 2007-10-04  Bruno Haible  <bruno@clisp.org>
50538
50539         * modules/truncf-tests: New file.
50540         * tests/test-truncf.c: New file.
50541
50542         * modules/truncf: New file.
50543         * lib/trunc.c: Make paramerizable through USE_* macros.
50544         * lib/truncf.c: New file.
50545         * m4/truncf.m4: New file.
50546         * lib/math.in.h (truncf): New declaration.
50547         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
50548         HAVE_DECL_TRUNCF.
50549         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
50550         HAVE_DECL_TRUNCF.
50551         * doc/functions/truncf.texi: Mention the 'truncf' module.
50552
50553 2007-10-03  Bruno Haible  <bruno@clisp.org>
50554
50555         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
50556         augmentation also for tests modules.
50557         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
50558         * modules/atexit-tests (Makefile.am): Likewise.
50559         * modules/binary-io-tests (Makefile.am): Likewise.
50560         * modules/c-strcase-tests (Makefile.am): Likewise.
50561         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
50562         * modules/canonicalize-tests (Makefile.am): Likewise.
50563         * modules/closein-tests (Makefile.am): Likewise.
50564         * modules/fprintf-posix-tests (Makefile.am): Likewise.
50565         * modules/freadahead-tests (Makefile.am): Likewise.
50566         * modules/fseek-tests (Makefile.am): Likewise.
50567         * modules/fseeko-tests (Makefile.am): Likewise.
50568         * modules/ftell-tests (Makefile.am): Likewise.
50569         * modules/ftello-tests (Makefile.am): Likewise.
50570         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
50571         * modules/isnanl-tests (Makefile.am): Likewise.
50572         * modules/lseek-tests (Makefile.am): Likewise.
50573         * modules/mbscasecmp-tests (Makefile.am): Likewise.
50574         * modules/mbscasestr-tests (Makefile.am): Likewise.
50575         * modules/mbschr-tests (Makefile.am): Likewise.
50576         * modules/mbscspn-tests (Makefile.am): Likewise.
50577         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
50578         * modules/mbspbrk-tests (Makefile.am): Likewise.
50579         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
50580         * modules/mbsrchr-tests (Makefile.am): Likewise.
50581         * modules/mbsspn-tests (Makefile.am): Likewise.
50582         * modules/mbsstr-tests (Makefile.am): Likewise.
50583         * modules/printf-posix-tests (Makefile.am): Likewise.
50584         * modules/snprintf-posix-tests (Makefile.am): Likewise.
50585         * modules/sprintf-posix-tests (Makefile.am): Likewise.
50586         * modules/tsearch-tests (Makefile.am): Likewise.
50587         * modules/uniname/uniname-tests (Makefile.am): Likewise.
50588         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
50589         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
50590         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
50591         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
50592         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
50593         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
50594         * modules/vprintf-posix-tests (Makefile.am): Likewise.
50595         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
50596         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
50597         * modules/xstrtoimax-tests (Makefile.am): Likewise.
50598         * modules/xstrtol-tests (Makefile.am): Likewise.
50599         * modules/xstrtoumax-tests (Makefile.am): Likewise.
50600         * modules/yesno-tests (Makefile.am): Likewise.
50601
50602 2007-10-03  Bruno Haible  <bruno@clisp.org>
50603
50604         * modules/trunc-tests: New file.
50605         * tests/test-trunc.c: New file.
50606
50607         * modules/trunc: New file.
50608         * lib/trunc.c: New file.
50609         * m4/trunc.m4: New file.
50610         * lib/math.in.h (trunc): New declaration.
50611         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
50612         HAVE_DECL_TRUNC.
50613         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
50614         HAVE_DECL_TRUNC.
50615         * doc/functions/trunc.texi: Mention the 'trunc' module.
50616
50617 2007-10-03  Bruno Haible  <bruno@clisp.org>
50618
50619         * tests/test-fpending.c: New file, mostly copied
50620         from coreutils/lib/t-fpending.c.
50621         * modules/fpending-tests: New file.
50622
50623 2007-10-03  Bruno Haible  <bruno@clisp.org>
50624
50625         Port the stdio extensions to QNX (untested).
50626         * lib/fseterr.c (fseterr): Add support for QNX.
50627         * lib/fbufmode.c (fbufmode): Likewise.
50628         * lib/freadable.c (freadable): Likewise.
50629         * lib/fwritable.c (fwritable): Likewise.
50630         * lib/freading.c (freading): Likewise.
50631         * lib/fwriting.c (fwriting): Likewise.
50632         * lib/freadahead.c (freadahed): Likewise.
50633         * lib/fpurge.c (fpurge): Likewise.
50634         * lib/fseeko.c (rpl_fseeko): Likewise.
50635
50636 2007-10-03  Bruno Haible  <bruno@clisp.org>
50637             Jim Meyering  <jim@meyering.net>
50638             Eric Blake  <ebb9@byu.net>
50639
50640         * doc/relocatable.texi: Use @command instead of @program.
50641
50642 2007-10-02  Jim Meyering  <jim@meyering.net>
50643
50644         Perform one more "_.h" -> ".in.h" substitution.
50645         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
50646         instead of unistd_.h here, too.
50647
50648 2007-10-01  Bruno Haible  <bruno@clisp.org>
50649
50650         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
50651         Needed for the alloca-opt module.
50652
50653 2007-09-30  Bruno Haible  <bruno@clisp.org>
50654
50655         * lib/alloca.in.h: Renamed from lib/alloca_.h.
50656         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
50657         alloca_.h.
50658         * lib/argz.in.h: Renamed from lib/argz_.h.
50659         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
50660         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
50661         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
50662         byteswap_.h.
50663         * lib/dirent.in.h: Renamed from lib/dirent_.h.
50664         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
50665         dirent_.h.
50666         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
50667         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
50668         fcntl_.h.
50669         * lib/float.in.h: Renamed from lib/float_.h.
50670         * modules/float (Files, Makefile.am): Use float.in.h instead of
50671         float_.h.
50672         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
50673         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
50674         fnmatch_.h.
50675         * lib/getopt.in.h: Renamed from lib/getopt_.h.
50676         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
50677         getopt_.h.
50678         * lib/glob.in.h: Renamed from lib/glob_.h.
50679         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
50680         * lib/iconv.in.h: Renamed from lib/iconv_.h.
50681         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
50682         iconv_.h.
50683         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
50684         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
50685         inttypes_.h.
50686         * lib/locale.in.h: Renamed from lib/locale_.h.
50687         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
50688         locale_.h.
50689         * lib/math.in.h: Renamed from lib/math_.h.
50690         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
50691         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
50692         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
50693         of netinet_in_.h. Add dependency.
50694         * lib/poll.in.h: Renamed from lib/poll_.h.
50695         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
50696         * lib/search.in.h: Renamed from lib/search_.h.
50697         * modules/search (Files, Makefile.am): Use search.in.h instead of
50698         search_.h.
50699         * lib/signal.in.h: Renamed from lib/signal_.h.
50700         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
50701         _signal.h.
50702         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
50703         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
50704         stdbool_.h.
50705         * lib/stdint.in.h: Renamed from lib/stdint_.h.
50706         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
50707         stdint_.h.
50708         * lib/stdio.in.h: Renamed from lib/stdio_.h.
50709         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
50710         stdio_.h.
50711         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
50712         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
50713         stdlib_.h.
50714         * lib/string.in.h: Renamed from lib/string_.h.
50715         * modules/string (Files, Makefile.am): Use string.in.h instead of
50716         string_.h.
50717         * doc/gnulib-tool.texi (Initial import): Update.
50718         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
50719         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
50720         of sys_select_.h. Add dependency.
50721         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
50722         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
50723         of sys_socket_.h.
50724         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
50725         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
50726         sys_stat_.h.
50727         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
50728         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
50729         sys_time_.h.
50730         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
50731         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
50732         sysexits_.h.
50733         * lib/time.in.h: Renamed from lib/time_.h.
50734         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
50735         * lib/unistd.in.h: Renamed from lib/unistd_.h.
50736         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
50737         unistd_.h.
50738         * lib/wchar.in.h: Renamed from lib/wchar_.h.
50739         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
50740         wchar_.h.
50741         * lib/wctype.in.h: Renamed from lib/wctype_.h.
50742         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
50743         wctype_.h.
50744         * build-aux/bootstrap (slurp): Update.
50745         * lib/.cppi-disable: Update.
50746
50747 2007-09-30  Bruno Haible  <bruno@clisp.org>
50748
50749         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
50750         Needed on BeOS.
50751
50752 2007-09-30  Bruno Haible  <bruno@clisp.org>
50753
50754         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
50755
50756 2007-09-29  Bruno Haible  <bruno@clisp.org>
50757
50758         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
50759
50760 2007-09-29  Bruno Haible  <bruno@clisp.org>
50761
50762         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
50763         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
50764         * build-aux/install-reloc: Compile also areadlink.c.
50765         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
50766
50767 2007-09-29  Bruno Haible  <bruno@clisp.org>
50768
50769         * gnulib-tool (func_emit_initmacro_done): Indentation.
50770
50771 2007-09-29  Bruno Haible  <bruno@clisp.org>
50772
50773         * README: Add CVS checkout update instructions.
50774         Info from Bob Proulx <bob@proulx.com>.
50775
50776 2007-09-28  Eric Blake  <ebb9@byu.net>
50777
50778         Provide move-if-change.
50779         * build-aux/move-if-change: New file, based on best practice
50780         rather than any canonical upstream location.
50781
50782 2007-09-28  Jim Meyering  <jim@meyering.net>
50783
50784         Fix canonicalize loop-detection corner case.
50785         Do not attempt to stat the symlink values stored via seen_triple.
50786         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
50787         on linux-2.6.18, (but not 2.6.22).
50788         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
50789         triple_compare.  The former compares dev,ino,filename, while the latter
50790         would actually stat dirname(filename) when dev and ino were equal.
50791         * lib/hash-triple.c: Install <string.h>.
50792         (STREQ): Define.
50793         (triple_compare_ino_str): New function.
50794         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
50795
50796 2007-09-28  Eric Blake  <ebb9@byu.net>
50797
50798         Enforce that AC_REPLACE_FUNCS files exist.
50799         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
50800         override check for typos.
50801
50802         Fix test-closein on Solaris 10.
50803         * tests/test-closein.c (main): Don't assume stdin can be inherited
50804         closed on all systems.
50805         * tests/test-closein.sh: Likewise.
50806         Reported by Piotr Tarnowski.
50807
50808 2007-09-28  Jim Meyering  <jim@meyering.net>
50809
50810         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
50811
50812 2007-09-27  Jim Meyering  <jim@meyering.net>
50813
50814         canonicalize: Avoid a false-positive cycle failure.
50815         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
50816         Sort.  Remove cycle-check.
50817         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
50818         not cycle-check.h.
50819         (seen_triple): New function.
50820         (canonicalize_filename_mode): Use it instead of cycle-check.
50821         * tests/test-canonicalize.c: Add a test for this bug.
50822         * tests/test-canonicalize.sh: Set up and run the test.
50823
50824         New module, file-set, from coreutils.
50825         * modules/file-set: Define it.
50826         * lib/file-set.c, lib/file-set.h: Implement.
50827
50828         New module, hash-triple, from coreutils.
50829         * modules/hash-triple: Define it.
50830         * lib/hash-triple.c, lib/hash-triple.h: Implement.
50831
50832 2007-09-25  Eric Blake  <ebb9@byu.net>
50833
50834         Fix strerror on Interix.
50835         * lib/string_.h (strerror): Declare replacement.
50836         * doc/functions/strerror.texi (strerror): Document the Interix
50837         shortcoming.
50838         * modules/string (Makefile.am): Support new hooks.
50839         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
50840         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
50841         gl_FUNC_STRERROR_SEPARATE.
50842         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
50843         * lib/strerror.c (rpl_strerror): Provide replacement.
50844         * modules/strerror (Depends-on): Add string.
50845         (configure.ac): Detect use of module.
50846         * tests/test-strerror.c: New file.
50847         * modules/strerror-tests: New test module.
50848         * modules/argp (Depends-on): Add strerror.
50849         * modules/error (Depends-on): Likewise.
50850         Reported by Martin Koeppe.
50851
50852 2007-09-24  Bruno Haible  <bruno@clisp.org>
50853
50854         * README: Update git instructions.
50855
50856 2007-09-24  Eric Blake  <ebb9@byu.net>
50857
50858         Revert fpending breakage from 2007-09-08.
50859         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
50860         __fpending.c.
50861
50862 2007-09-24  Jim Meyering  <jim@meyering.net>
50863
50864         filenamecat.c: Add a test.
50865         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
50866         showing how the function works when DIR is the empty string.
50867
50868 2007-09-21  Simon Josefsson  <simon@josefsson.org>
50869
50870         * tests/test-canonicalize.sh: Turn on executable bit.
50871
50872 2007-09-19  Eric Blake  <ebb9@byu.net>
50873
50874         * README: Update CVS instructions.
50875
50876 2007-09-18  Bruno Haible  <bruno@clisp.org>
50877
50878         * modules/areadlink: New file.
50879         * lib/areadlink.h (areadlink): New declaration.
50880         * lib/areadlink.c: New file, based on lib/xreadlink.c.
50881
50882 2007-09-17  Jim Meyering  <jim@meyering.net>
50883
50884         * lib/savewd.c (ESTALE) [!defined]: Define.
50885         Reported to be required on Interix by Martin Koeppe.
50886
50887 2007-09-17  Bruno Haible  <bruno@clisp.org>
50888
50889         * gnulib-tool (func_version): Use $version.
50890
50891 2007-09-16  Bruno Haible  <bruno@clisp.org>
50892
50893         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
50894         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
50895         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
50896         Reported by Greg Schafer <gschafer@zip.com.au>.
50897
50898 2007-09-15  Bruno Haible  <bruno@clisp.org>
50899
50900         * gnulib-tool (sed): Try a little harder to make bash understand the
50901         alias.
50902         Reported by Bruce Korb <bruce.korb@gmail.com>.
50903
50904 2007-09-13  Eric Blake  <ebb9@byu.net>
50905
50906         * ChangeLog: Remove conflict markers.
50907
50908 2007-09-13  Simon Josefsson  <simon@josefsson.org>
50909
50910         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
50911         Reported by Bruno Haible <bruno@clisp.org>.
50912
50913 2007-09-12  Bruno Haible  <bruno@clisp.org>
50914
50915         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
50916         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
50917         is not defined.
50918
50919 2007-09-12  Eric Blake  <ebb9@byu.net>
50920
50921         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
50922         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
50923         Autoconf definition.
50924         * modules/euidaccess (Depends-on): Add extensions, for
50925         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
50926         * modules/fnmatch (Depends-on): Likewise.
50927         * modules/getaddrinfo (Depends-on): Likewise.
50928         * modules/getdelim (Depends-on): Likewise.
50929         * modules/getline (Depends-on): Likewise.
50930         * modules/getsubopt (Depends-on): Likewise.
50931         * modules/gettext (Depends-on): Likewise.
50932         * modules/group-member (Depends-on): Likewise.
50933         * modules/mbchar (Depends-on): Likewise.
50934         * modules/memmem (Depends-on): Likewise.
50935         * modules/mempcpy (Depends-on): Likewise.
50936         * modules/memrchr (Depends-on): Likewise.
50937         * modules/pagealign_alloc (Depends-on): Likewise.
50938         * modules/readutmp (Depends-on): Likewise.
50939         * modules/stpcpy (Depends-on): Likewise.
50940         * modules/stpncpy (Depends-on): Likewise.
50941         * modules/strchrnul (Depends-on): Likewise.
50942         * modules/strndup (Depends-on): Likewise.
50943         * modules/strsep (Depends-on): Likewise.
50944         * modules/strverscmp (Depends-on): Likewise.
50945         * modules/vasprintf (Depends-on): Likewise.
50946         * modules/wcwidth (Depends-on): Likewise.
50947         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
50948         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
50949         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
50950         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
50951         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
50952         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
50953         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
50954         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
50955         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
50956         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
50957         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50958         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
50959         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
50960         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
50961         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
50962         * m4/readutmp.m4 (gl_READUTMP): Likewise.
50963         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50964         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
50965         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50966         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
50967         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50968         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
50969         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
50970         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
50971         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
50972         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
50973         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
50974         so that lock.m4 can be used in gettext without extensions module.
50975
50976 2007-09-11  Bruno Haible  <bruno@clisp.org>
50977
50978         * m4/isc-posix.m4: Remove file.
50979         Suggested by Eric Blake.
50980
50981 2007-09-11  Eric Blake  <ebb9@byu.net>
50982
50983         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
50984
50985 2007-09-10  Bruno Haible  <bruno@clisp.org>
50986
50987         * posix-modules: Fix typo in error message.
50988         Reported by Matt <mkraai@beckman.com>.
50989
50990 2007-09-09  Bruno Haible  <bruno@clisp.org>
50991
50992         * doc/functions/getdelim.texi: Update list of platforms lacking the
50993         function.
50994         * doc/functions/getline.texi: Likewise.
50995
50996 2007-09-09  Jim Meyering  <jim@meyering.net>
50997
50998         * lib/hash.c (hash_initialize): Detect calloc failure.
50999         Reported by Bruno Haible.
51000
51001 2007-09-09  Bruno Haible  <bruno@clisp.org>
51002
51003         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
51004         malloc or realloc fails.
51005
51006 2007-09-09  Bruno Haible  <bruno@clisp.org>
51007
51008         * modules/getcwd (Depends-on): Add malloc-posix.
51009         * modules/glob (Depends-on): Likewise.
51010         * modules/putenv (Depends-on): Likewise.
51011         * modules/strdup (Depends-on): Likewise.
51012         * modules/getdelim (Depends-on): Add realloc-posix.
51013         * modules/read-file (Depends-on): Likewise.
51014
51015 2007-09-09  Bruno Haible  <bruno@clisp.org>
51016
51017         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
51018         (gl_FUNC_MALLOC_POSIX): Require it.
51019         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
51020         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
51021         * modules/realloc (Files): Add m4/malloc.m4.
51022         * modules/calloc (Files): Likewise.
51023
51024 2007-09-09  Bruno Haible  <bruno@clisp.org>
51025
51026         * modules/malloc-posix: New file.
51027         * modules/malloc (Depends-on): Add malloc-posix.
51028         * lib/malloc.c: Include errno.h.
51029         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
51030         and a POSIX-compatible malloc into a single function. Set ENOMEM
51031         when returning NULL.
51032         * m4/malloc.m4: New file.
51033         * doc/functions/malloc.texi: Mention the malloc-posix module.
51034         * lib/stdlib_.h (malloc): New declaration.
51035         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51036         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
51037         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
51038         and HAVE_MALLOC_POSIX.
51039
51040 2007-09-09  Bruno Haible  <bruno@clisp.org>
51041
51042         * modules/realloc-posix: New file.
51043         * modules/realloc (Depends-on): Add realloc-posix.
51044         * lib/realloc.c: Include errno.h.
51045         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
51046         and a POSIX-compatible realloc into a single function. Set ENOMEM
51047         when returning NULL.
51048         * m4/realloc.m4: New file.
51049         * doc/functions/realloc.texi: Mention the realloc-posix module.
51050         * lib/stdlib_.h (realloc): New declaration.
51051         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51052         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
51053         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
51054         and HAVE_REALLOC_POSIX.
51055
51056 2007-09-09  Bruno Haible  <bruno@clisp.org>
51057
51058         * modules/calloc-posix: New file.
51059         * modules/calloc (Depends-on): Add calloc-posix.
51060         * lib/calloc.c: Include errno.h.
51061         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
51062         and a POSIX-compatible calloc into a single function. Set ENOMEM
51063         when returning NULL.
51064         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
51065         * doc/functions/calloc.texi: Mention the calloc-posix module.
51066         * lib/stdlib_.h (calloc): New declaration.
51067         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51068         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
51069         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
51070         and HAVE_CALLOC_POSIX.
51071
51072 2007-09-09  Bruno Haible  <bruno@clisp.org>
51073
51074         Allow for modules to show an arbitrary notice.
51075         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
51076         * gnulib-tool: New option --extract-notice.
51077         (func_usage): Document it.
51078         (sed_extract_prog): Update.
51079         (func_get_notice): New function.
51080         (func_modules_notice): New function.
51081         (func_import, func_create_testdir): Invoke it.
51082         Suggested by Jim Meyering.
51083
51084 2007-09-09  Bruno Haible  <bruno@clisp.org>
51085
51086         * gnulib-tool: New options --verbose, --quiet.
51087         (func_usage): Document them.
51088         (verbose): New variable.
51089         (func_execute_command): New function.
51090         (func_import): Don't show the module list and the file list if
51091         $verbose < 0.
51092         (func_create_testdir): Likewise. Use func_execute_command.
51093         (func_create_megatestdir): Use func_execute_command.
51094
51095 2007-09-08  Bruno Haible  <bruno@clisp.org>
51096
51097         * gnulib-tool (func_import): Prefer rsync over wget when available,
51098         for fetching the PO files.
51099
51100 2007-09-08  Bruno Haible  <bruno@clisp.org>
51101
51102         * posix-modules: New file. Portions copied from gnulib-tool.
51103         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
51104
51105 2007-09-08  Jim Meyering  <jim@meyering.net>
51106
51107         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
51108         * lib/fpending.h: Rename from __fpending.h.
51109         * lib/fpending.c: Rename from __fpending.c.
51110         Include "fpending.h", not "__fpending.h".
51111         * lib/__fpending.h, lib/__fpending.c: Remove files.
51112         * modules/fpending (Files): Reflect new file names.
51113         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
51114
51115 2007-09-08  Bruno Haible  <bruno@clisp.org>
51116
51117         * m4/inttypes-h.m4: Remove stub file.
51118
51119 2007-09-07  Simon Josefsson  <simon@josefsson.org>
51120
51121         * doc/headers/stdint.texi: Discuss #include_next issue.
51122
51123 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
51124
51125         * build-aux/bootstrap: Remove obsolete comment about wget --help.
51126
51127 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51128
51129         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
51130         in variable name.
51131
51132 2007-09-03  Jim Meyering  <jim@meyering.net>
51133
51134         New module: git-version-gen.
51135         * modules/git-version-gen: New file.
51136
51137         Import changes from coreutils for bootstrap script.
51138
51139         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
51140
51141         bootstrap: uses rsync to download the .po files
51142         * build-aux/bootstrap (po_download_command_format): New global.
51143         (download_po_files): Use rsync.
51144         (update_po_files): Don't remove .po files after download,
51145         so future rsync runs can take advantage of the copies.
51146
51147         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
51148
51149         Solve the unnecessary-.po-file-regeneration problem once and for all.
51150         * build-aux/bootstrap (download_po_files): New function, renamed from
51151         get_translations.  Now, downloads, but doesn't update LINGUAS.
51152         (update_po_files): New function.
51153
51154         bootstrap: Ignore more.
51155         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
51156         uniwidth to e.g., lib/.gitignore.
51157         (slurp): Handle the sys_stat_.h -> sys mapping, too.
51158
51159         * build-aux/bootstrap: New setting: vc_ignore.
51160         (insert_sorted_if_absent): Create $file if absent.
51161         Adapt to new, possibly empty, list: $vc_ignore.
51162
51163         bootstrap: generate more ignorable names
51164         * build-aux/bootstrap (slurp): When generating ignorable names,
51165         also map .sin to .sed, .gperf to .c, and .y to .c.
51166
51167 2007-09-03  Jim Meyering  <jim@meyering.net>
51168
51169         * build-aux/git-version-gen: New file, from coreutils.  For details, see
51170         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
51171
51172 2007-09-02  Bruno Haible  <bruno@clisp.org>
51173
51174         Fix mis-recognition of 'mcs' on QNX 6.
51175         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
51176         output contains the string "Mono".
51177         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
51178         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
51179
51180 2007-09-01  Bruno Haible  <bruno@clisp.org>
51181
51182         Fix collision between uniwidth/* and linebreak modules.
51183         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
51184         u32_width): Remove declarations.
51185         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
51186         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
51187         streq3, streq2, streq1, streq0): Remove functions.
51188         (STREQ): Remove macro.
51189         (is_cjk_encoding): Remove function.
51190         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
51191         (uc_width, u8_width, u16_width, u32_width): Remove functions.
51192         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
51193         * NEWS: Document the change.
51194
51195 2007-09-01  Bruno Haible  <bruno@clisp.org>
51196
51197         * lib/streq.h: Add double-inclusion guard.
51198
51199 2007-09-01  Karl Berry  <karl@gnu.org>
51200
51201         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
51202
51203 2007-08-28  Jim Meyering  <jim@meyering.net>
51204
51205         Rename mreadlink_with_size to areadlink_with_size.
51206         * NEWS: Document the change.
51207         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
51208         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
51209         * lib/mreadlink.h: Rename this to...
51210         * lib/areadlink.h: ...this.
51211         * modules/mreadlink-with-size: Rename this to...
51212         * modules/areadlink-with-size: ...this.
51213         * lib/canonicalize.c: Reflect the renaming.
51214         * modules/canonicalize: Likewise.
51215
51216 2007-08-26  Bruno Haible  <bruno@clisp.org>
51217
51218         * gnulib-tool (func_import): When deciding which files to remove,
51219         consider also dangling symbolic links.
51220         Reported by Eric Blake.
51221
51222 2007-08-26  Bruno Haible  <bruno@clisp.org>
51223
51224         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
51225
51226 2007-08-23  Simon Josefsson  <simon@josefsson.org>
51227
51228         * lib/readline.c: Don't include getline.h, the prototype is now
51229         found in stdio.h.
51230
51231 2007-08-23  Jim Meyering  <jim@meyering.net>
51232
51233         Getdelim touchup.
51234         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
51235         around the funlockfile call, since funlockfile never sets errno.
51236         Don't set errno upon failed realloc.
51237
51238 2007-08-22  Eric Blake  <ebb9@byu.net>
51239
51240         Getline touchups.
51241         * lib/getdelim.c (getdelim): Revert regression that required *n to
51242         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
51243         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
51244         getdelim, rather than whether implementation is missing.
51245         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
51246         * lib/stdio_.h (getline): Also declare if replacement is
51247         required.
51248         * doc/functions/getdelim.texi: New file.
51249         * doc/functions/getline.texi: Likewise.
51250         * doc/gnulib.texi (Function Substitutes): Add new files.
51251         Reported by Bruno Haible.
51252
51253 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
51254
51255         * users.txt: Add Guile.
51256
51257 2007-08-22  Eric Blake  <ebb9@byu.net>
51258
51259         * tests/test-getdelim.c (main): Use remove, not unlink.
51260         * tests/test-getline.c (main): Likewise.
51261
51262         Move getline and getdelim into stdio.h, per POSIX 200x.
51263         * modules/getline (Files): Remove getline.h.
51264         (Depends-on): Add stdio.
51265         (configure.ac): Add module indicator.
51266         * modules/getdelim (Files): Remove getdelim.h.
51267         (Depends-on): Add stdio.
51268         (configure.ac): Add module indicator.
51269         * modules/stdio (Makefile.am): Work with new indicators.
51270         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
51271         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
51272         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51273         * lib/getdelim.h: Delete.
51274         * lib/getline.h: Delete.
51275         * lib/stdio_.h (getdelim, getline): Declare.
51276         * modules/getdelim-tests: New module.
51277         * modules/getline-tests: Likewise.
51278         * tests/test-getdelim.c: New file.
51279         * tests/test-getline.c: Likewise.
51280         * NEWS: Document the change.
51281         * lib/getline.c: Update choice of header.
51282         * lib/csharpcomp.c: Likewise.
51283         * lib/getpass.c: Likewise.
51284         * lib/javacomp.c: Likewise.
51285         * lib/javaversion.c: Likewise.
51286         * lib/yesno.c: Likewise.
51287         * lib/getdelim.c: Likewise.
51288         (getdelim): Set errno on failure, and avoid memory leak.
51289
51290 2007-08-19  Bruno Haible  <bruno@clisp.org>
51291
51292         * modules/closein (Depends-on): Add freadahead.
51293         * lib/closein.c: Include freadahead.h.
51294         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
51295         is zero.
51296
51297 2007-08-19  Bruno Haible  <bruno@clisp.org>
51298
51299         * modules/freadahead-tests: New file.
51300         * tests/test-freadahead.sh: New file.
51301         * tests/test-freadahead.c: New file.
51302
51303         * modules/freadahead: New file.
51304         * lib/freadahead.h: New file.
51305         * lib/freadahead.c: New file.
51306         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
51307         fbufmode, fpurge, freadable, fwritable.
51308
51309 2007-08-19  Eric Blake  <ebb9@byu.net>
51310
51311         Test yesno in combination with closein.
51312         * lib/yesno.c (yesno): Document use of stdin.
51313         * modules/yesno-tests (Files): New module.
51314         * tests/test-yesno.c (main): New file.
51315         * tests/test-yesno.sh: Likewise.
51316
51317 2007-08-19  Bruno Haible  <bruno@clisp.org>
51318
51319         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
51320         * lib/fseeko.c (rpl_fseeko): Likewise.
51321         * lib/fseterr.c (fseterr): Likewise.
51322
51323 2007-08-19  Bruno Haible  <bruno@clisp.org>
51324
51325         * tests/test-lseek.c (main): Disable a test for BeOS.
51326         * doc/functions/lseek.texi: Document the BeOS bug.
51327
51328 2007-08-19  Bruno Haible  <bruno@clisp.org>
51329             Eric Blake  <ebb9@byu.net>
51330
51331         * lib/lseek.c: Include <sys/stat.h>.
51332         (rpl_lseek): Add workaround code also for Unix platforms.
51333         Needed for BeOS.
51334         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
51335         * doc/functions/lseek.texi: Document BeOS definiency.
51336
51337 2007-08-18  Bruno Haible  <bruno@clisp.org>
51338
51339         * modules/fstrcmp-tests: New file.
51340         * tests/test-fstrcmp.c: New file.
51341
51342 2007-08-18  Bruno Haible  <bruno@clisp.org>
51343
51344         * modules/fstrcmp: New file, from GNU gettext with modifications.
51345         * lib/fstrcmp.h: New file, from GNU gettext.
51346         * lib/fstrcmp.c: New file, from GNU gettext.
51347         * MODULES.html.sh (String handling): Add fstrcmp.
51348
51349 2007-08-18  Bruno Haible  <bruno@clisp.org>
51350
51351         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
51352         'bool'.
51353         (diag, compareseq): Remove const from the ctxt argument.
51354         (USE_HEURISTIC): Undefine at the end.
51355
51356 2007-08-18  Jim Meyering  <jim@meyering.net>
51357
51358         New file: lib/idcache.h
51359         * NEWS: Mention the addition.
51360         * modules/idcache (Files): Add lib/idcache.h
51361         * lib/idcache.c: Include "idcache.h".
51362         Don't include <sys/types.h>.
51363         Add a FIXME comment.
51364         Move file-scoped "static" declarations to the top.
51365         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
51366
51367 2007-08-17  Bruno Haible  <bruno@clisp.org>
51368         and Paul Eggert  <eggert@cs.ucla.edu>
51369
51370         * MODULES.html.sh: Add diffseq.
51371         * modules/diffseq: New file.
51372         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
51373         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
51374
51375 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51376
51377         Import changes from coreutils for bootstrap script.
51378
51379         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
51380
51381         * build-aux/bootstrap (slurp): Work even in environments where
51382         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
51383         current code does not slurp files whose names start with ".", and
51384         this looks like it might be a troublesome area.
51385
51386         2007-07-11  Jim Meyering  <jim@meyering.net>
51387
51388         If there's a GPL vN copyright comment, require that N == 3.
51389
51390         2007-07-08  Jim Meyering  <jim@meyering.net>
51391
51392         Run the coreutils-specific code only if tests/Makefile.am.in exists.
51393         * build-aux/bootstrap (mam_template): Move definition out of loop.
51394
51395         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
51396
51397         * build-aux/bootstrap (symlink_to_dir): Rename function from
51398         symlink_to_gnulib.  Add a directory parameter.  Update all
51399         callers.
51400         (cp_mark_as_generated): Also check for -- and link to -- files in
51401         gl/.
51402
51403         2007-07-08  Jim Meyering  <jim@meyering.net>
51404
51405         Adapt to deeper hierarchy in gnulib.
51406         * build-aux/bootstrap (symlink_to_dir): If the destination
51407         directory doesn't exist, create it. This is required at least for
51408         "lib/uniwidth/cjk.h".
51409
51410         2007-05-15  Jim Meyering  <jim@meyering.net>
51411
51412         * build-aux/bootstrap: Now that generated Makefile.am files
51413         are no longer under version control, they must be created at
51414         bootstrap time.
51415
51416 2007-08-14  Ben Pfaff  <blp@gnu.org>
51417
51418         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
51419
51420 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51421
51422         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
51423         given the changes below.
51424         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
51425         even on hosts that have padding bits beyond the supported 64.
51426
51427 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51428
51429         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
51430         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
51431         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
51432         depends on it.
51433         (xstrtol_error): Remove.
51434         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
51435         but with a different signature.
51436         (ATTRIBUTE_NORETURN, __attribute__): New macros.
51437         * lib/xstrtol-error.c: Include exitfail.h.
51438         (xstrtol_fatal): New function, with a different signature from the
51439         old xstrtol_error, so that the caller need not worry about passing
51440         in an exit status, or about storage management of the option argument.
51441         (xstrtol_error): Now a static function.  Redo signature to
51442         implement xstrtol_fatal.  Output the correct number of hyphens in
51443         front of the option so that the caller need not worry about
51444         storage management.
51445         (N_): New macro.
51446         (_): Remove; not used now.
51447         * modules/xstrtol: Depend on getopt.
51448         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
51449         of old STRTOL_FATAL_ERROR macro.
51450         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
51451         of test program.
51452         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
51453         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
51454
51455 2007-08-08  Eric Blake  <ebb9@byu.net>
51456
51457         * lib/xstrtol-error.c: Add missing include.
51458
51459         Move xstrtol messages into gnulib domain, when --pobase is used.
51460         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
51461         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
51462         * modules/xstrtol (Files): Distribute new file.
51463         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
51464         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
51465         * tests/test-xstrtol.c: ...into new file.
51466         * tests/test-xstrtoul.c: Also test xstrtoul.
51467         * tests/test-xstrtoimax.c: Also test xstrtoimax.
51468         * tests/test-xstrtoumax.c: Also test xstrtoumax.
51469         * tests/test-xstrtol.sh: Drive the tests.
51470         * tests/test-xstrtoimax.sh: Likewise.
51471         * tests/test-xstrtoumax.sh: Likewise.
51472         * modules/xstrtol-tests: New module.
51473         * modules/xstrtoimax-tests: Likewise.
51474         * modules/xstrtoumax-tests: Likewise.
51475
51476 2007-08-08  Jim Meyering  <jim@meyering.net>
51477
51478         New function: mfile_name_concat.
51479         * lib/filenamecat.c (mfile_name_concat): New function, just like
51480         file_name_concat, but return NULL upon failure rather than exiting
51481         with a diagnostic.
51482         * lib/filenamecat.h: Declare it.
51483
51484 2007-08-07  Bruno Haible  <bruno@clisp.org>
51485
51486         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
51487         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
51488         warning from gcc.
51489         Reported by Eric Blake.
51490
51491 2007-08-07  Simon Josefsson  <simon@josefsson.org>
51492
51493         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
51494         * modules/crypto/arcfour (License): Likewise.
51495         * modules/crypto/des-tests (License): Likewise.
51496         * modules/crypto/gc-arctwo-tests (License): Likewise.
51497         * modules/crypto/gc-des-tests (License): Likewise.
51498         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
51499         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
51500         * modules/crypto/gc-md2-tests (License): Likewise.
51501         * modules/crypto/gc-md4-tests (License): Likewise.
51502         * modules/crypto/gc-md5-tests (License): Likewise.
51503         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
51504         * modules/crypto/gc-rijndael-tests (License): Likewise.
51505         * modules/crypto/gc-sha1-tests (License): Likewise.
51506         * modules/crypto/gc-tests (License): Likewise.
51507         * modules/crypto/hmac-md5 (License): Likewise.
51508         * modules/crypto/hmac-sha1 (License): Likewise.
51509         * modules/crypto/md2-tests (License): Likewise.
51510         * modules/crypto/md4-tests (License): Likewise.
51511         * modules/crypto/md5 (License): Likewise.
51512         * modules/crypto/rijndael (License): Likewise.
51513         * modules/crypto/sha1 (License): Likewise.
51514         * modules/memxor (License): Likewise.
51515
51516 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51517         and Bruno Haible  <bruno@clisp.org>
51518
51519         * NEWS: Describe interface changes to human, xstrtol.
51520         * lib/human.h: Include <xstrtol.h>.
51521         (human_options): Return enum strtol_error, not int.  Remove
51522         bool arg; take int * instead.
51523         * lib/human.c: Don't include "gettext.h".
51524         (_): Remove; no longer used.
51525         Don't include <xstrtol.h>, since human.h does it.
51526         (human_options): Adjust to abovementioned interface changes.
51527         Do not report error to stderr; that's now the caller's
51528         responsibility.
51529         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
51530         interface change.
51531         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
51532         Str, Argument_type_string.  All uses changed.  Put " argument"
51533         in diagnostics to make them clearer.  Change wording of suffix
51534         message for clarity.
51535         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
51536         Argument_type_string.
51537         (STRTOL_FATAL_WARN): Remove; no longer used.
51538         * modules/human (Depends-on): Remove gettext-h.
51539
51540 2007-08-06  Simon Josefsson  <simon@josefsson.org>
51541
51542         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
51543
51544 2007-07-31  Bruno Haible  <bruno@clisp.org>
51545
51546         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
51547         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
51548         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
51549
51550 2007-07-31  Bruno Haible  <bruno@clisp.org>
51551
51552         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
51553         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
51554
51555 2007-07-30  Bruno Haible  <bruno@clisp.org>
51556
51557         * modules/base64 (License): Use the synonymous term "LGPLv2+".
51558         * modules/c-ctype (License): Likewise.
51559         * modules/c-strcase (License): Likewise.
51560         * modules/check-version (License): Likewise.
51561         * modules/iconv (License): Likewise.
51562         * modules/iconv_open (License): Likewise.
51563         * modules/read-file (License): Likewise.
51564         * modules/striconv (License): Likewise.
51565         * modules/strverscmp (License): Likewise.
51566         * modules/vasprintf (License): Likewise.
51567         * modules/crypto/des (License): Likewise.
51568         * modules/crypto/gc (License): Likewise.
51569         * modules/crypto/gc-arcfour (License): Likewise.
51570         * modules/crypto/gc-arctwo (License): Likewise.
51571         * modules/crypto/gc-des (License): Likewise.
51572         * modules/crypto/gc-hmac-md5 (License): Likewise.
51573         * modules/crypto/gc-hmac-sha1 (License): Likewise.
51574         * modules/crypto/gc-md2 (License): Likewise.
51575         * modules/crypto/gc-md4 (License): Likewise.
51576         * modules/crypto/gc-md5 (License): Likewise.
51577         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
51578         * modules/crypto/gc-random (License): Likewise.
51579         * modules/crypto/gc-rijndael (License): Likewise.
51580         * modules/crypto/gc-sha1 (License): Likewise.
51581         * modules/crypto/md2 (License): Likewise.
51582         * modules/crypto/md4 (License): Likewise.
51583
51584 2007-07-30  Jim Meyering  <jim@meyering.net>
51585
51586         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
51587         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
51588         it has valid stat data.  This bug would cause du not to count the
51589         sizes of inaccessible directories.
51590         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
51591         in <http://bugzilla.redhat.com/250077>.
51592
51593 2007-07-25  Peter O'Gorman  <peter@pogma.com>
51594             Bruno Haible  <bruno@clisp.org>
51595
51596         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
51597         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
51598         #include_next, gives a diagnostic about it, but reports no error in
51599         the exit code.
51600         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
51601
51602 2007-07-24  Ben Pfaff  <blp@gnu.org>
51603
51604         Improve name: "count-one-bits" is better than "popcount".
51605         * MODULES.html.sh: Update name.
51606         * lib/popcount.h: Renamed lib/count-one-bits.h.
51607         (popcount): Renamed count_one_bits.
51608         (popcountl): Renamed count_one_bits_l.
51609         (popcountll): Renamed count_one_bits_ll.
51610         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
51611         * modules/popcount: Renamed module/count-one-bits.
51612         * modules/popcount-tests: Renamed module/count-one-bits-tests.
51613         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
51614
51615 2007-07-23  Ben Pfaff  <blp@gnu.org>
51616
51617         * lib/popcount.h (popcount32): Reduce size of constants, to allow
51618         better code generation, and add U to large constants to avoid
51619         warnings, in non-GCC case.
51620         Suggested by Bruno Haible.
51621
51622 2007-07-23  Ben Pfaff  <blp@gnu.org>
51623
51624         * lib/popcount.h: Use verify_true instead of if...abort.
51625         * modules/popcount: Depend on verify module.
51626         Suggested by Jim Meyering.
51627
51628 2007-07-23  Bruno Haible  <bruno@clisp.org>
51629
51630         * gnulib-tool (func_import): Create a .cvsignore file also when the
51631         directory is not yet in CVS but the toplevel directory is. When
51632         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
51633         Reported by Karl Berry.
51634
51635 2007-07-22  Ben Pfaff  <blp@gnu.org>
51636
51637         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
51638         case.
51639         Suggested by Eric Blake.
51640
51641 2007-07-22  Ben Pfaff  <blp@gnu.org>
51642
51643         New module: popcount.
51644         * MODULES.html.sh: Add popcount.
51645         * modules/popcount: New file.
51646         * modules/popcount-tests: New file.
51647         * tests/test-popcount.c: New file.
51648         * lib/popcount.h: New file.
51649         * m4/popcount.m4: New file.
51650
51651 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51652
51653         * build-aux/announce-gen: Update to GPLv3.
51654
51655         * build-aux/config.guess: Update from config.
51656
51657 2007-07-21  Bruno Haible  <bruno@clisp.org>
51658
51659         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
51660         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
51661
51662 2007-07-20  Jim Meyering  <jim@meyering.net>
51663
51664         * check-module: Diagnose a self-dependency.
51665
51666 2007-07-19  Bruno Haible  <bruno@clisp.org>
51667
51668         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
51669         empty.
51670         Reported by Eric Blake.
51671
51672 2007-07-18  Bruno Haible  <bruno@clisp.org>
51673
51674         * gnulib-tool: New options --po-base, --po-domain.
51675         (func_usage): Document them.
51676         (pobase, po_domain): New variables.
51677         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
51678         DEFAULT_TEXT_DOMAIN.
51679         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
51680         (func_import): Consider pobase and po_domain. Create a po/ directory.
51681         (func_create_testdir): Set pobase and po_domain to empty.
51682         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
51683         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
51684
51685 2007-07-18  Bruno Haible  <bruno@clisp.org>
51686
51687         * gnulib-tool (func_get_automake_snippet): Synthesize also an
51688         EXTRA_DIST augmentation for files in build-aux/.
51689
51690 2007-07-16  Bruno Haible  <bruno@clisp.org>
51691
51692         * modules/lseek (License): Use the synonymous term "LGPLv2+".
51693         * modules/getdelim (License): Likewise.
51694
51695 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51696
51697         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
51698         * modules/d-type (License): Likewise.
51699         * modules/extensions (License): Likewise.
51700         * modules/fnmatch (License): Likewise.
51701         * modules/fseeko (License): Likewise.
51702         * modules/getaddrinfo (License): Likewise.
51703         * modules/getline (License): Likewise.
51704         * modules/getlogin_r (License): Likewise.
51705         * modules/getpass (License): Likewise.
51706         * modules/gettimeofday (License): Likewise.
51707         * modules/glob (License): Likewise.
51708         * modules/inet_ntop (License): Likewise.
51709         * modules/malloc (License): Likewise.
51710         * modules/malloca (License): Likewise.
51711         * modules/memmem (License): Likewise.
51712         * modules/mempcpy (License): Likewise.
51713         * modules/memset (License): Likewise.
51714         * modules/minmax (License): Likewise.
51715         * modules/mktime (License): Likewise.
51716         * modules/netinet_in (License): Likewise.
51717         * modules/pathmax (License): Likewise.
51718         * modules/poll (License): Likewise.
51719         * modules/regex (License): Likewise.
51720         * modules/snprintf (License): Likewise.
51721         * modules/stdbool (License): Likewise.
51722         * modules/stdint (License): Likewise.
51723         * modules/stdio (License): Likewise.
51724         * modules/strcase (License): Likewise.
51725         * modules/strcasestr (License): Likewise.
51726         * modules/strdup (License): Likewise.
51727         * modules/string (License): Likewise.
51728         * modules/strndup (License): Likewise.
51729         * modules/strnlen (License): Likewise.
51730         * modules/strpbrk (License): Likewise.
51731         * modules/strptime (License): Likewise.
51732         * modules/strsep (License): Likewise.
51733         * modules/sys_select (License): Likewise.
51734         * modules/sys_socket (License): Likewise.
51735         * modules/sys_stat (License): Likewise.
51736         * modules/sys_time (License): Likewise.
51737         * modules/time (License): Likewise.
51738         * modules/time_r (License): Likewise.
51739         * modules/timegm (License): Likewise.
51740         * modules/unistd (License): Likewise.
51741         * modules/vsnprintf (License): Likewise.
51742         * modules/wctype (License): Likewise.
51743
51744 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51745
51746         * modules/argz (License): LGPLv2+.
51747
51748 2007-07-15  Karl Berry  <karl@gnu.org>
51749
51750         * doc/gnulib.texi: revise node structure per new fdl.texi.
51751
51752 2007-07-14  Bruno Haible  <bruno@clisp.org>
51753
51754         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
51755         the output file.
51756         * lib/uniname/uninames.h: Regenerated.
51757
51758 2007-07-14  Karl Berry  <karl@gnu.org>
51759
51760         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
51761         omitting sectioning and index commands.
51762
51763 2007-07-13  Bruno Haible  <bruno@clisp.org>
51764
51765         New gnulib-tool option --more-symlinks.
51766         * gnulib-tool (func_usage): Document --more-symlinks.
51767         (do_copyrights): New variable.
51768         Recognize option --more-symlinks.
51769         (func_import): Don't add a copyright notice transform to
51770         sed_transform_lib_file if do_copyrights is empty.
51771
51772 2007-07-13  Bruno Haible  <bruno@clisp.org>
51773
51774         * lib/vasnprintf.c (decimal_point_char): Define also if
51775         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
51776         && !NEED_PRINTF_DIRECTIVE_A.
51777         Reported by Clemens Koller <clemens.koller@anagramm.de> via
51778         Gary V. Vaughan <gary@gnu.org>.
51779
51780 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
51781
51782         * lib/inttypes_.h: Undo previous change, since it was fixed
51783         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
51784
51785 2007-07-13  Bruno Haible  <bruno@clisp.org>
51786
51787         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
51788         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
51789
51790 2007-07-13  Jim Meyering  <jim@meyering.net>
51791
51792         df: Don't fail for Tru64's "file-on-file mount".
51793         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
51794         so we fall through and use statfs instead.  Details here:
51795         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
51796         Reported by Albert Chin.
51797
51798 2007-07-13  Bruno Haible  <bruno@clisp.org>
51799
51800         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
51801         * modules/configmake (License): Likewise.
51802         * modules/gettext (License): Likewise.
51803         * modules/gettext-h (License): Likewise.
51804         * modules/include_next (License): Likewise.
51805         * modules/link-warning (License): Likewise.
51806         * modules/localcharset (License): Likewise.
51807         * modules/localename (License): Likewise.
51808         * modules/lock (License): Likewise.
51809         * modules/relocatable-lib-lgpl (License): Likewise.
51810         * modules/size_max (License): Likewise.
51811         * modules/vasnprintf (License): Likewise.
51812         * modules/wchar (License): Likewise.
51813         * modules/xsize (License): Likewise.
51814
51815 2007-07-13  Bruno Haible  <bruno@clisp.org>
51816
51817         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
51818         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
51819
51820 2007-07-12  Bruno Haible  <bruno@clisp.org>
51821
51822         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
51823         in the modules files.
51824
51825 2007-07-11  Karl Berry  <karl@gnu.org>
51826
51827         * MODULES.html.sh (func_module): use
51828          sed -e '\|^'"${includefile}"'$|d'
51829          instead of /.../d, to avoid errors on $includefile's containing /.
51830
51831 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
51832
51833         * gnulib-tool (func_import): Avoid duplication of --avoid
51834         statements
51835         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
51836         names to `_' in variable names.
51837
51838 2007-07-10  Eric Blake  <ebb9@byu.net>
51839
51840         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
51841         * NEWS: Document this change.
51842
51843 2007-07-08  Bruno Haible  <bruno@clisp.org>
51844
51845         Update to Unicode 5.0.
51846         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
51847         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
51848         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
51849         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
51850         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
51851         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
51852         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
51853         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
51854         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
51855         U+10A3F, U+1D242..U+1D244.
51856         (nonspacing_table_ind): Update.
51857         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
51858         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
51859
51860 2007-07-08  Bruno Haible  <bruno@clisp.org>
51861
51862         Update to Unicode 5.0.
51863         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
51864         code transform. Extend the name index field of unicode_name_to_code and
51865         unicode_code_to_name from 16 to 24 bits.
51866         * lib/uniname/uniname.c (unicode_character_name,
51867         unicode_name_character): Add the range 0x12xxx to the code transform.
51868         * lib/uniname/uninames.h: Regenerated.
51869         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
51870
51871 2007-07-07  Bruno Haible  <bruno@clisp.org>
51872
51873         * modules/wcwidth-tests: New file.
51874         * tests/test-wcwidth.c: New file.
51875
51876         Work around MacOS X wcwidth() bug.
51877         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
51878         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
51879         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
51880         original wcwidth in non-UTF-8 locales.
51881         * modules/wcwidth (Depends-on): Add localcharset, streq,
51882         uniwidth/width.
51883         * doc/functions/wcwidth.texi: Update.
51884
51885 2007-07-07  Bruno Haible  <bruno@clisp.org>
51886
51887         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
51888         (wcwidth): New declaration.
51889         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
51890         macros.
51891         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
51892         here. Prepare for creating <wchar.h> unconditionally.
51893         * modules/wchar (Depends-on): Add link-warning.
51894         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
51895         REPLACE_WCWIDTH, and GL_LINK_WARNING.
51896         * lib/wcwidth.h: Remove file.
51897         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
51898         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
51899         * modules/wcwidth (Files): Remove lib/wcwidth.h.
51900         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
51901         (Include): Replace wcwidth.h with <wchar.h>.
51902         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
51903         * lib/mbchar.h: Don't include wcwidth.h.
51904         * lib/mbswidth.c: Likewise.
51905         * NEWS: Mention the change.
51906
51907 2007-07-07  Bruno Haible  <bruno@clisp.org>
51908
51909         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
51910         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
51911         definition with an external declaration.
51912         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
51913         defined as a function. Remove AC_C_INLINE requirement.
51914         * modules/wcwidth (Files): Add lib/wcwidth.c.
51915         (Makefile.am): Remove redundant statement.
51916
51917 2007-07-07  Bruno Haible  <bruno@clisp.org>
51918
51919         * MODULES.html.sh (Unicode string functions): Add the new modules.
51920
51921         * tests/uniwidth/test-u32-strwidth.c: New file.
51922         * modules/uniwidth/u32-strwidth-tests: New file.
51923
51924         * lib/uniwidth/u32-strwidth.c: New file.
51925         * modules/uniwidth/u32-strwidth: New file.
51926
51927         * tests/uniwidth/test-u16-strwidth.c: New file.
51928         * modules/uniwidth/u16-strwidth-tests: New file.
51929
51930         * lib/uniwidth/u16-strwidth.c: New file.
51931         * modules/uniwidth/u16-strwidth: New file.
51932
51933         * tests/uniwidth/test-u8-strwidth.c: New file.
51934         * modules/uniwidth/u8-strwidth-tests: New file.
51935
51936         * lib/uniwidth/u8-strwidth.c: New file.
51937         * modules/uniwidth/u8-strwidth: New file.
51938
51939         * tests/uniwidth/test-u32-width.c: New file.
51940         * modules/uniwidth/u32-width-tests: New file.
51941
51942         * lib/uniwidth/u32-width.c: New file.
51943         * modules/uniwidth/u32-width: New file.
51944
51945         * tests/uniwidth/test-u16-width.c: New file.
51946         * modules/uniwidth/u16-width-tests: New file.
51947
51948         * lib/uniwidth/u16-width.c: New file.
51949         * modules/uniwidth/u16-width: New file.
51950
51951         * tests/uniwidth/test-u8-width.c: New file.
51952         * modules/uniwidth/u8-width-tests: New file.
51953
51954         * lib/uniwidth/u8-width.c: New file.
51955         * modules/uniwidth/u8-width: New file.
51956
51957         * tests/uniwidth/test-uc_width.c: New file.
51958         * modules/uniwidth/width-tests: New file.
51959
51960         * lib/uniwidth/width.c: New file, from GNU libiconv.
51961         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
51962         * modules/uniwidth/width: New file.
51963
51964         * lib/uniwidth.h: New file, from GNU libiconv.
51965         * modules/uniwidth/base: New file.
51966
51967 2007-07-07  Bruno Haible  <bruno@clisp.org>
51968
51969         * lib/uniname.h: New file, from GNU gettext.
51970         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
51971         * lib/uniname/uninames.h: New file, from GNU gettext.
51972         * lib/uniname/uniname.c: New file, from GNU gettext.
51973         * tests/uniname/test-uninames.sh: New file.
51974         * tests/uniname/test-uninames.c: New file, from GNU gettext.
51975         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
51976         * modules/uniname/base: New file.
51977         * modules/uniname/uniname: New file.
51978         * modules/uniname/uniname-tests: New file.
51979         * MODULES.html.sh (Unicode string functions): Add the new modules.
51980
51981 2007-07-06  Bruno Haible  <bruno@clisp.org>
51982
51983         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
51984
51985 2007-07-06  Bruno Haible  <bruno@clisp.org>
51986
51987         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
51988         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
51989         includes <cygwin/sys_time.h> which includes <sys/select.h> which
51990         include <sys/time.h>.
51991         Reported by Eric Blake.
51992
51993 2007-07-06  Eric Blake  <ebb9@byu.net>
51994
51995         Fix testing canonicalize on cygwin.
51996         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
51997         Revert patch from 2007-06-19.
51998         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
51999         canonicalize module is also in use.
52000         * tests/test-canonicalize.c: New file.
52001         * tests/test-canonicalize.sh: Likewise.
52002         * modules/canonicalize-tests: Likewise.
52003
52004 2007-07-06  Jim Meyering  <jim@meyering.net>
52005
52006         * lib/getugroups.c (getugroups): Detect getgrent failure.
52007         Adjust comment to reflect reality: this function may return -1.
52008
52009 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
52010
52011         * build-aux/bootstrap (TP_URL,get_translations): Update to use
52012         the new TP address.
52013         (usage): Fix typo
52014         (gnulib_mk): New variable.
52015
52016 2007-07-05  Jim Meyering  <jim@meyering.net>
52017
52018         Don't let endgrent clobber errno, no matter how improbable.
52019         * lib/getugroups.c (getugroups): Save and restore errno around
52020         endgrent call.
52021
52022         Close the group DB even when failing with 2^31 or more members.
52023         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
52024
52025 2007-07-04  Jim Meyering  <jim@meyering.net>
52026
52027         * lib/getugroups.h: New file.
52028         * lib/getugroups.c: Include "getugroups.h".
52029         Remove uses of "register" keyword.
52030         Move local variable, "cp", down into scope where used.
52031         Give "username" parameter the "const" attribute.
52032         * modules/getugroups (Files): Add lib/getugroups.h
52033
52034 2007-07-04  Karl Berry  <karl@gnu.org>
52035
52036         * MODULES.html.sh (func_all_modules): Complete rename of
52037         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
52038
52039 2007-07-02  Bruno Haible  <bruno@clisp.org>
52040
52041         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
52042         mode, when inttypes.h comes from gnulib.
52043         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52044
52045 2007-07-02  Simon Josefsson  <simon@josefsson.org>
52046
52047         * NEWS: Mention lgpl module name change.
52048
52049         * modules/lgpl-2.1: Renamed from lgpl.
52050
52051         * NEWS: Mention gpl module name change.
52052
52053         * modules/gpl-3.0: New file, based on gpl-2.0.
52054
52055         * modules/gpl-2.0: Renamed from gpl.
52056
52057         * modules/gpl: Fix filename, doc/gpl.texi is now found at
52058         doc/gpl-2.0.texi.
52059
52060 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52061
52062         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
52063         #define __STDC_LIMIT_MACROS temporarily while including
52064         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
52065         Problem reported by Joel E. Denny in
52066         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
52067
52068 2007-07-01  Bruno Haible  <bruno@clisp.org>
52069
52070         * lib/unistdio.h: New file.
52071         * lib/unistdio/u-asnprintf.h: New file.
52072         * lib/unistdio/u-asprintf.h: New file.
52073         * lib/unistdio/u-printf-args.c: New file.
52074         * lib/unistdio/u-printf-args.h: New file.
52075         * lib/unistdio/u-printf-parse.h: New file.
52076         * lib/unistdio/u-snprintf.h: New file.
52077         * lib/unistdio/u-sprintf.h: New file.
52078         * lib/unistdio/u-vasprintf.h: New file.
52079         * lib/unistdio/u-vsnprintf.h: New file.
52080         * lib/unistdio/u-vsprintf.h: New file.
52081         * lib/unistdio/ulc-asnprintf.c: New file.
52082         * lib/unistdio/ulc-asprintf.c: New file.
52083         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
52084         * lib/unistdio/ulc-printf-parse.c: New file.
52085         * lib/unistdio/ulc-snprintf.c: New file.
52086         * lib/unistdio/ulc-sprintf.c: New file.
52087         * lib/unistdio/ulc-vasnprintf.c: New file.
52088         * lib/unistdio/ulc-vasprintf.c: New file.
52089         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
52090         * lib/unistdio/ulc-vsnprintf.c: New file.
52091         * lib/unistdio/ulc-vsprintf.c: New file.
52092         * lib/unistdio/u8-asnprintf.c: New file.
52093         * lib/unistdio/u8-asprintf.c: New file.
52094         * lib/unistdio/u8-printf-parse.c: New file.
52095         * lib/unistdio/u8-snprintf.c: New file.
52096         * lib/unistdio/u8-sprintf.c: New file.
52097         * lib/unistdio/u8-vasnprintf.c: New file.
52098         * lib/unistdio/u8-vasprintf.c: New file.
52099         * lib/unistdio/u8-vsnprintf.c: New file.
52100         * lib/unistdio/u8-vsprintf.c: New file.
52101         * lib/unistdio/u8-u8-asnprintf.c: New file.
52102         * lib/unistdio/u8-u8-asprintf.c: New file.
52103         * lib/unistdio/u8-u8-snprintf.c: New file.
52104         * lib/unistdio/u8-u8-sprintf.c: New file.
52105         * lib/unistdio/u8-u8-vasnprintf.c: New file.
52106         * lib/unistdio/u8-u8-vasprintf.c: New file.
52107         * lib/unistdio/u8-u8-vsnprintf.c: New file.
52108         * lib/unistdio/u8-u8-vsprintf.c: New file.
52109         * lib/unistdio/u16-asnprintf.c: New file.
52110         * lib/unistdio/u16-asprintf.c: New file.
52111         * lib/unistdio/u16-printf-parse.c: New file.
52112         * lib/unistdio/u16-snprintf.c: New file.
52113         * lib/unistdio/u16-sprintf.c: New file.
52114         * lib/unistdio/u16-vasnprintf.c: New file.
52115         * lib/unistdio/u16-vasprintf.c: New file.
52116         * lib/unistdio/u16-vsnprintf.c: New file.
52117         * lib/unistdio/u16-vsprintf.c: New file.
52118         * lib/unistdio/u16-u16-asnprintf.c: New file.
52119         * lib/unistdio/u16-u16-asprintf.c: New file.
52120         * lib/unistdio/u16-u16-snprintf.c: New file.
52121         * lib/unistdio/u16-u16-sprintf.c: New file.
52122         * lib/unistdio/u16-u16-vasnprintf.c: New file.
52123         * lib/unistdio/u16-u16-vasprintf.c: New file.
52124         * lib/unistdio/u16-u16-vsnprintf.c: New file.
52125         * lib/unistdio/u16-u16-vsprintf.c: New file.
52126         * lib/unistdio/u32-asnprintf.c: New file.
52127         * lib/unistdio/u32-asprintf.c: New file.
52128         * lib/unistdio/u32-printf-parse.c: New file.
52129         * lib/unistdio/u32-snprintf.c: New file.
52130         * lib/unistdio/u32-sprintf.c: New file.
52131         * lib/unistdio/u32-vasnprintf.c: New file.
52132         * lib/unistdio/u32-vasprintf.c: New file.
52133         * lib/unistdio/u32-vsnprintf.c: New file.
52134         * lib/unistdio/u32-vsprintf.c: New file.
52135         * lib/unistdio/u32-u32-asnprintf.c: New file.
52136         * lib/unistdio/u32-u32-asprintf.c: New file.
52137         * lib/unistdio/u32-u32-snprintf.c: New file.
52138         * lib/unistdio/u32-u32-sprintf.c: New file.
52139         * lib/unistdio/u32-u32-vasnprintf.c: New file.
52140         * lib/unistdio/u32-u32-vasprintf.c: New file.
52141         * lib/unistdio/u32-u32-vsnprintf.c: New file.
52142         * lib/unistdio/u32-u32-vsprintf.c: New file.
52143         * tests/unistdio/test-ulc-asnprintf1.c: New file.
52144         * tests/unistdio/test-ulc-asnprintf1.h: New file.
52145         * tests/unistdio/test-ulc-printf1.h: New file.
52146         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
52147         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
52148         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
52149         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
52150         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
52151         * tests/unistdio/test-ulc-vasprintf1.c: New file.
52152         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
52153         * tests/unistdio/test-ulc-vsprintf1.c: New file.
52154         * tests/unistdio/test-u8-asnprintf1.c: New file.
52155         * tests/unistdio/test-u8-asnprintf1.h: New file.
52156         * tests/unistdio/test-u8-printf1.h: New file.
52157         * tests/unistdio/test-u8-vasnprintf1.c: New file.
52158         * tests/unistdio/test-u8-vasnprintf2.c: New file.
52159         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
52160         * tests/unistdio/test-u8-vasnprintf3.c: New file.
52161         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
52162         * tests/unistdio/test-u8-vasprintf1.c: New file.
52163         * tests/unistdio/test-u8-vsnprintf1.c: New file.
52164         * tests/unistdio/test-u8-vsprintf1.c: New file.
52165         * tests/unistdio/test-u16-asnprintf1.c: New file.
52166         * tests/unistdio/test-u16-asnprintf1.h: New file.
52167         * tests/unistdio/test-u16-printf1.h: New file.
52168         * tests/unistdio/test-u16-vasnprintf1.c: New file.
52169         * tests/unistdio/test-u16-vasnprintf2.c: New file.
52170         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
52171         * tests/unistdio/test-u16-vasnprintf3.c: New file.
52172         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
52173         * tests/unistdio/test-u16-vasprintf1.c: New file.
52174         * tests/unistdio/test-u16-vsnprintf1.c: New file.
52175         * tests/unistdio/test-u16-vsprintf1.c: New file.
52176         * tests/unistdio/test-u32-asnprintf1.c: New file.
52177         * tests/unistdio/test-u32-asnprintf1.h: New file.
52178         * tests/unistdio/test-u32-printf1.h: New file.
52179         * tests/unistdio/test-u32-vasnprintf1.c: New file.
52180         * tests/unistdio/test-u32-vasnprintf2.c: New file.
52181         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
52182         * tests/unistdio/test-u32-vasnprintf3.c: New file.
52183         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
52184         * tests/unistdio/test-u32-vasprintf1.c: New file.
52185         * tests/unistdio/test-u32-vsnprintf1.c: New file.
52186         * tests/unistdio/test-u32-vsprintf1.c: New file.
52187         * modules/unistdio/base: New file.
52188         * modules/unistdio/u-printf-args: New file.
52189         * modules/unistdio/ulc-asnprintf: New file.
52190         * modules/unistdio/ulc-asprintf: New file.
52191         * modules/unistdio/ulc-fprintf: New file.
52192         * modules/unistdio/ulc-printf-parse: New file.
52193         * modules/unistdio/ulc-snprintf: New file.
52194         * modules/unistdio/ulc-sprintf: New file.
52195         * modules/unistdio/ulc-vasnprintf: New file.
52196         * modules/unistdio/ulc-vasprintf: New file.
52197         * modules/unistdio/ulc-vfprintf: New file.
52198         * modules/unistdio/ulc-vsnprintf: New file.
52199         * modules/unistdio/ulc-vsprintf: New file.
52200         * modules/unistdio/u8-asnprintf: New file.
52201         * modules/unistdio/u8-asprintf: New file.
52202         * modules/unistdio/u8-printf-parse: New file.
52203         * modules/unistdio/u8-snprintf: New file.
52204         * modules/unistdio/u8-sprintf: New file.
52205         * modules/unistdio/u8-vasnprintf: New file.
52206         * modules/unistdio/u8-vasprintf: New file.
52207         * modules/unistdio/u8-vsnprintf: New file.
52208         * modules/unistdio/u8-vsprintf: New file.
52209         * modules/unistdio/u8-u8-asnprintf: New file.
52210         * modules/unistdio/u8-u8-asprintf: New file.
52211         * modules/unistdio/u8-u8-snprintf: New file.
52212         * modules/unistdio/u8-u8-sprintf: New file.
52213         * modules/unistdio/u8-u8-vasnprintf: New file.
52214         * modules/unistdio/u8-u8-vasprintf: New file.
52215         * modules/unistdio/u8-u8-vsnprintf: New file.
52216         * modules/unistdio/u8-u8-vsprintf: New file.
52217         * modules/unistdio/u16-asnprintf: New file.
52218         * modules/unistdio/u16-asprintf: New file.
52219         * modules/unistdio/u16-printf-parse: New file.
52220         * modules/unistdio/u16-snprintf: New file.
52221         * modules/unistdio/u16-sprintf: New file.
52222         * modules/unistdio/u16-vasnprintf: New file.
52223         * modules/unistdio/u16-vasprintf: New file.
52224         * modules/unistdio/u16-vsnprintf: New file.
52225         * modules/unistdio/u16-vsprintf: New file.
52226         * modules/unistdio/u16-u16-asnprintf: New file.
52227         * modules/unistdio/u16-u16-asprintf: New file.
52228         * modules/unistdio/u16-u16-snprintf: New file.
52229         * modules/unistdio/u16-u16-sprintf: New file.
52230         * modules/unistdio/u16-u16-vasnprintf: New file.
52231         * modules/unistdio/u16-u16-vasprintf: New file.
52232         * modules/unistdio/u16-u16-vsnprintf: New file.
52233         * modules/unistdio/u16-u16-vsprintf: New file.
52234         * modules/unistdio/u32-asnprintf: New file.
52235         * modules/unistdio/u32-asprintf: New file.
52236         * modules/unistdio/u32-printf-parse: New file.
52237         * modules/unistdio/u32-snprintf: New file.
52238         * modules/unistdio/u32-sprintf: New file.
52239         * modules/unistdio/u32-vasnprintf: New file.
52240         * modules/unistdio/u32-vasprintf: New file.
52241         * modules/unistdio/u32-vsnprintf: New file.
52242         * modules/unistdio/u32-vsprintf: New file.
52243         * modules/unistdio/u32-u32-asnprintf: New file.
52244         * modules/unistdio/u32-u32-asprintf: New file.
52245         * modules/unistdio/u32-u32-snprintf: New file.
52246         * modules/unistdio/u32-u32-sprintf: New file.
52247         * modules/unistdio/u32-u32-vasnprintf: New file.
52248         * modules/unistdio/u32-u32-vasprintf: New file.
52249         * modules/unistdio/u32-u32-vsnprintf: New file.
52250         * modules/unistdio/u32-u32-vsprintf: New file.
52251         * modules/unistdio/ulc-asnprintf-tests: New file.
52252         * modules/unistdio/ulc-vasnprintf-tests: New file.
52253         * modules/unistdio/ulc-vasprintf-tests: New file.
52254         * modules/unistdio/ulc-vsnprintf-tests: New file.
52255         * modules/unistdio/ulc-vsprintf-tests: New file.
52256         * modules/unistdio/u8-asnprintf-tests: New file.
52257         * modules/unistdio/u8-vasnprintf-tests: New file.
52258         * modules/unistdio/u8-vasprintf-tests: New file.
52259         * modules/unistdio/u8-vsnprintf-tests: New file.
52260         * modules/unistdio/u8-vsprintf-tests: New file.
52261         * modules/unistdio/u16-asnprintf-tests: New file.
52262         * modules/unistdio/u16-vasnprintf-tests: New file.
52263         * modules/unistdio/u16-vasprintf-tests: New file.
52264         * modules/unistdio/u16-vsnprintf-tests: New file.
52265         * modules/unistdio/u16-vsprintf-tests: New file.
52266         * modules/unistdio/u32-asnprintf-tests: New file.
52267         * modules/unistdio/u32-vasnprintf-tests: New file.
52268         * modules/unistdio/u32-vasprintf-tests: New file.
52269         * modules/unistdio/u32-vsnprintf-tests: New file.
52270         * modules/unistdio/u32-vsprintf-tests: New file.
52271         * MODULES.html.sh (Unicode string functions): Add the new modules.
52272
52273 2007-07-01  Bruno Haible  <bruno@clisp.org>
52274
52275         * lib/sprintf.c (sprintf): Limit the available length estimation,
52276         to avoid address wraparound.
52277         * lib/vsprintf.c (vsprintf): Likewise.
52278         * modules/sprintf-posix (Dependencies): Add stdint.
52279         * modules/vsprintf-posix (Dependencies): Likewise.
52280
52281 2007-07-01  Bruno Haible  <bruno@clisp.org>
52282
52283         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
52284         Windows PATH as well. Conservative double-quoting. Comments.
52285
52286 2007-07-01  Bruno Haible  <bruno@clisp.org>
52287             Eric Blake  <ebb9@byu.net>
52288             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52289
52290         * gnulib-tool (self_abspathname): Fix algorithm to cope with
52291         empty components in $PATH, denoting '.'.
52292
52293 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52294
52295         * gnulib-tool: Fix indentation.
52296         (func_create_megatestdir): Likewise.
52297         Report by Bruno Haible.
52298
52299 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52300
52301         Sync from Automake.
52302         * build-aux/gnupload: Fix shell portability issues with for loops.
52303         Report by Karl Berry.
52304
52305 2007-06-29  Simon Josefsson  <simon@josefsson.org>
52306
52307         * build-aux/maint.mk (POURL): Use translationproject.org.
52308
52309 2007-06-27  Simon Josefsson  <simon@josefsson.org>
52310             Bruno Haible  <bruno@clisp.org>
52311
52312         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
52313         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
52314         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
52315         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
52316         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
52317
52318 2007-06-27  Bruno Haible  <bruno@clisp.org>
52319
52320         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
52321         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
52322
52323 2007-06-26  Karl Berry  <karl@gnu.org>
52324
52325         * MODULES.html.sh: remove xreadlink-with-size.
52326
52327 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52328
52329         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
52330         method that I hope also handles the double-include problem noted
52331         by Bruno Haible in
52332         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
52333
52334 2007-06-23  Bruno Haible  <bruno@clisp.org>
52335
52336         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52337         Don't let the 'mostlyclean' target fail if the last subdirectory could
52338         not be removed.
52339         Reported by Karl Berry.
52340
52341 2007-06-23  Bruno Haible  <bruno@clisp.org>
52342
52343         * gnulib-tool (echo): Add a speedier workaround for ksh.
52344         * tests/test-echo.sh: Likewise.
52345
52346 2007-06-23  Bruno Haible  <bruno@clisp.org>
52347
52348         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
52349         * tests/test-echo.sh: Likewise.
52350
52351 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52352
52353         * gnulib-tool (IFS): Initialize early, so we don't set it to
52354         empty later.
52355         (self_abspathname): Rewrite algorithm to set it, reindent.
52356         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
52357         (func_create_megatestdir): Merge some sed scripts.
52358
52359 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52360
52361         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
52362         exposed by Sun Studio 11 cc on Solaris 8.
52363
52364 2007-06-22  Bruno Haible  <bruno@clisp.org>
52365
52366         * gnulib-tool (echo): Ensure the echo primitive does not interpret
52367         backslashes.
52368         * tests/test-echo.sh: New file.
52369
52370 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52371
52372         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
52373         simplify `sed_replace_build_aux' scripts, they are portable but
52374         echoing them with `echo' is not.
52375         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
52376
52377 2007-06-21  Karl Berry  <karl@gnu.org>
52378
52379         * config/srclist.txt: guess we can't handle the licenses via
52380         srclist at the moment.
52381
52382 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
52383
52384         * MODULES.html.sh: Add include_next.
52385         * modules/include_next: New file.
52386
52387 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
52388
52389         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
52390         INCLUDE_NEXT.
52391         (gl_CHECK_NEXT_HEADERS): New macro.
52392         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
52393         the obsolescent gl_ABSOLUTE_HEADER.
52394         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
52395         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
52396         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
52397         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52398         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
52399         * m4/math_h.m4 (gl_MATH_H): Likewise.
52400         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
52401         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
52402         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
52403         * m4/stdint.m4 (gl_STDINT_H): Likewise.
52404         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
52405         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
52406         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
52407         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52408         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52409         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
52410         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
52411         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
52412         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
52413         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
52414         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
52415         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
52416         * m4/inttypes.m4 (gl_INTTYPES_H): Define
52417         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
52418         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
52419         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
52420         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
52421         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
52422         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
52423         * lib/float_.h: Likewise.
52424         * lib/inttypes_.h: Likewise.
52425         * lib/math_.h: Likewise.
52426         * lib/search_.h: Likewise.
52427         * lib/signal_.h: Likewise.
52428         * lib/stdint_.h: Likewise.
52429         * lib/stdio_.h: Likewise.
52430         * lib/stdlib_.h: Likewise.
52431         * lib/string_.h: Likewise.
52432         * lib/sys_stat_.h: Likewise.
52433         * lib/sys_time_.h: Likewise.
52434         * lib/time_.h: Likewise.
52435         * lib/unistd_.h: Likewise.
52436         * lib/wchar_.h: Likewise.
52437         * lib/wctype_.h: Likewise.
52438         * lib/dirent_.h: Likewise.
52439         * lib/iconv_.h: Likewise.
52440         * lib/locale_.h: Likewise.
52441         * lib/netinet_in_.h: Likewise.
52442         * lib/sys_select_.h: Likewise.
52443         * lib/sys_socket_.h: Likewise.
52444         * lib/sysexits_.h: Likewise.
52445         * modules/fcntl (Depends-on): Depend on include_next, not
52446         absolute_header.
52447         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
52448         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
52449         * modules/fchdir: Likewise.
52450         * modules/float: Likewise.
52451         * modules/iconv_open: Likewise.
52452         * modules/inttypes: Likewise.
52453         * modules/locale: Likewise.
52454         * modules/math: Likewise.
52455         * modules/netinet_in: Likewise.
52456         * modules/search: Likewise.
52457         * modules/signal: Likewise.
52458         * modules/stdint: Likewise.
52459         * modules/stdio: Likewise.
52460         * modules/stdlib: Likewise.
52461         * modules/string: Likewise.
52462         * modules/sys_select: Likewise.
52463         * modules/sys_socket: Likewise.
52464         * modules/sys_stat: Likewise.
52465         * modules/sys_time: Likewise.
52466         * modules/sysexits: Likewise.
52467         * modules/time: Likewise.
52468         * modules/unistd: Likewise.
52469         * modules/wchar: Likewise.
52470         * modules/wctype: Likewise.
52471         * modules/sys_stat: Change maintainer to "all".
52472         * modules/unistd: Likewise.
52473
52474 2007-06-20  Karl Berry  <karl@gnu.org>
52475
52476         * config/srclist.txt: track www changes in license files.
52477
52478 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
52479
52480         * build-aux/bootstrap: Remove stray dot.
52481         Make sure build_aux settings are honored when linking
52482         gnulib_extra_files.
52483
52484 2007-06-19  Eric Blake  <ebb9@byu.net>
52485
52486         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52487         Allow compilation on cygwin.
52488
52489 2007-06-19  Jim Meyering  <jim@meyering.net>
52490
52491         xreadlink-with-size: Remove module.  No longer used.
52492         Ex-callers now use xreadlink or mreadlink-with-size.
52493         * modules/xreadlink-with-size: Remove module.
52494         * lib/xreadlink-with-size.c: Remove file.
52495         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
52496         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
52497         just before the function definition *is* accurate.
52498
52499         Eliminate one way canonicalize_filename_mode could exit.
52500         * lib/canonicalize.c (canonicalize_filename_mode):
52501         Use mreadlink_with_size, not xreadlink_with_size.
52502
52503 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
52504
52505         Detect porting problems to FreeBSD/arm, which has time_t wider than
52506         long int.  Original problem reported for GNU diff by Xin Li in
52507         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
52508         * modules/getdate (Depends-on): Add intprops, verify.
52509         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
52510         is an integer type no wider than long int.
52511
52512 2007-06-18  Jim Meyering  <jim@meyering.net>
52513
52514         New module: mreadlink-with-size.
52515         * MODULES.html.sh: Add mreadlink-with-size.
52516         * modules/mreadlink-with-size: New module
52517         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
52518         not xreadlink-with-size.
52519         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
52520
52521 2007-06-16  Bruno Haible  <bruno@clisp.org>
52522
52523         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
52524         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
52525         Reported by Gary V. Vaughan <gary@gnu.org>.
52526
52527 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
52528
52529         Revamp lchown so that it lives in unistd.h where it belongs.
52530         * lib/lchown.h: Remove.
52531         * lib/dirchownmod.c: Don't include lib/lchown.h.
52532         * lib/fchownat.c: Likewise.
52533         * lib/openat.c: Likewise.
52534         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
52535         does not follow symlinks.
52536         (EOPNOTSUPP): Define if not defined.
52537         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
52538         is defined to 0.
52539         (lchown): New decl.
52540         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
52541         Do not check for lchown decl.
52542         Set REPLACE_LCHOWN.
52543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
52544         REPLACE_LCHOWN.
52545         * modules/chown: Make it clear it follows symlinks.
52546         * modules/lchown: Make it clear it doesn't follow symlinks.
52547         (Files): Remove lib/lchown.h
52548         (Depends-on): Add unistd.
52549         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
52550         (Include): Include <unistd.h>, not "lchown.h".
52551         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
52552         REPLACE_LCHOWN.
52553
52554 2007-06-15  Jim Meyering  <jim@meyering.net>
52555
52556         Change license (GPL to LGPL) of fsusage and dependents.
52557         * modules/fsusage (License): Change to LGPL.
52558         * modules/full-read (License): Likewise.
52559         * modules/full-write (License): Likewise.
52560         * modules/safe-read (License): Likewise.
52561         * modules/safe-write (License): Likewise.
52562
52563 2007-06-14  Ben Pfaff  <blp@gnu.org>
52564
52565         Missing part of allocsa -> malloca transition.
52566         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
52567         gl_MALLOCA.
52568
52569 2007-06-12  Bruno Haible  <bruno@clisp.org>
52570
52571         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
52572         to ia64, x86_64, i386.
52573         Reported by Eric Blake.
52574
52575 2007-06-12  Bruno Haible  <bruno@clisp.org>
52576
52577         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
52578         cross-compiling to x86_64.
52579
52580 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
52581
52582         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
52583         glitch reported by Ralf Wildenhues in
52584         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
52585
52586         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
52587         Vin Shelton.
52588
52589 2007-06-11  Bruno Haible  <bruno@clisp.org>
52590
52591         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
52592         replacement string.
52593         Reported by Eric Blake.
52594
52595 2007-06-10  Bruno Haible  <bruno@clisp.org>
52596
52597         Prepare vasnprintf code for use with Unicode strings.
52598         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
52599         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
52600         TYPE_U32_STRING.
52601         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
52602         a_u32_string variants.
52603         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
52604         * lib/printf-args.c: Don't include config.h and the specification
52605         header if PRINTF_FETCHARGS is already defined.
52606         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
52607         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
52608         TYPE_U16_STRING, TYPE_U32_STRING.
52609         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
52610         u16_directive, u16_directives, u32_directive, u32_directives): New
52611         types.
52612         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
52613         New declarations.
52614         * lib/printf-parse.c: Don't include config.h and the specification
52615         header if PRINTF_PARSE is already defined. Eliminate the set of
52616         parameters for WIDE_CHAR_VERSION; the user of this file must provide
52617         them now. Include c-ctype.h.
52618         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
52619         directive and CHAR_T_ONLY_ASCII.
52620         * lib/vasnprintf.c: Don't include config.h and the specification header
52621         if VASNPRINTF is already defined.
52622         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
52623         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
52624         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
52625         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
52626         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
52627         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
52628         code accordingly.
52629         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
52630         pad_ourselves also in this case, with the 'c' and 's' directives, and
52631         with a different notion of "width".
52632         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
52633
52634 2007-06-10  Bruno Haible  <bruno@clisp.org>
52635
52636         * modules/unistr/u32-mbsnlen: New file.
52637         * lib/unistr/u32-mbsnlen.c: New file.
52638
52639         * modules/unistr/u16-mbsnlen: New file.
52640         * lib/unistr/u16-mbsnlen.c: New file.
52641
52642         * modules/unistr/u8-mbsnlen: New file.
52643         * lib/unistr/u8-mbsnlen.c: New file.
52644
52645         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
52646         declarations.
52647
52648 2007-06-10  Bruno Haible  <bruno@clisp.org>
52649
52650         * lib/string_.h (mbsnlen): New declaration.
52651         * lib/mbsnlen.c: New file.
52652         * m4/mbsnlen.m4: New file.
52653         * modules/mbsnlen: New file.
52654         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
52655         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
52656         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
52657
52658 2007-06-10  Bruno Haible  <bruno@clisp.org>
52659
52660         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
52661
52662 2007-06-10  Bruno Haible  <bruno@clisp.org>
52663
52664         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
52665         * lib/mbuiter.h: Likewise.
52666
52667 2007-06-10  Bruno Haible  <bruno@clisp.org>
52668
52669         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
52670         declaration.
52671
52672 2007-06-10  Karl Berry  <karl@gnu.org>
52673
52674         * config/srclist.txt: remove gettext entries, Bruno prefers
52675         to update individually.
52676
52677 2007-06-10  Bruno Haible  <bruno@clisp.org>
52678
52679         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
52680         'maxlen'. Ensure only length + width bytes are allocated, not
52681         length + 1 + width.
52682
52683 2007-06-09  Bruno Haible  <bruno@clisp.org>
52684
52685         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
52686         (CHAR_T): Remove macro.
52687         (VASNPRINTF): Update.
52688
52689 2007-06-09  Bruno Haible  <bruno@clisp.org>
52690
52691         * MODULES.html.sh (Unicode string functions): Add the new modules.
52692
52693         * modules/uniconv/u32-conv-to-enc: New file.
52694         * lib/uniconv/u32-conv-to-enc.c: New file.
52695         * modules/uniconv/u32-conv-to-enc-tests: New file.
52696         * tests/uniconv/test-u32-conv-to-enc.c: New file.
52697
52698         * modules/uniconv/u16-conv-to-enc: New file.
52699         * lib/uniconv/u16-conv-to-enc.c: New file.
52700         * lib/uniconv/u-conv-to-enc.h: New file.
52701         * modules/uniconv/u16-conv-to-enc-tests: New file.
52702         * tests/uniconv/test-u16-conv-to-enc.c: New file.
52703
52704         * modules/uniconv/u8-conv-to-enc: New file.
52705         * lib/uniconv/u8-conv-to-enc.c: New file.
52706         * modules/uniconv/u8-conv-to-enc-tests: New file.
52707         * tests/uniconv/test-u8-conv-to-enc.c: New file.
52708
52709         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
52710         u32_conv_to_encoding): New declarations.
52711
52712 2007-06-09  Bruno Haible  <bruno@clisp.org>
52713
52714         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
52715
52716 2007-06-09  Bruno Haible  <bruno@clisp.org>
52717
52718         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
52719         * modules/malloca: Renamed from modules/allocsa, updated.
52720         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
52721         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
52722         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
52723         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
52724         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
52725         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
52726         * modules/xmalloca: Renamed from modules/xallocsa, updated.
52727         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
52728         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
52729         * modules/c-strcasestr (Depends-on): Update.
52730         * lib/c-strcasestr.c: Update.
52731         * modules/c-strstr (Depends-on): Update.
52732         * lib/c-strstr.c: Update.
52733         * modules/canonicalize-lgpl (Depends-on): Update.
52734         * lib/canonicalize-lgpl.c: Update.
52735         * modules/clean-temp (Depends-on): Update.
52736         * lib/clean-temp.c: Update.
52737         * modules/csharpcomp (Depends-on): Update.
52738         * lib/csharpcomp.c: Update.
52739         * modules/csharpexec (Depends-on): Update.
52740         * lib/csharpexec.c: Update.
52741         * modules/javacomp (Depends-on): Update.
52742         * lib/javacomp.c: Update.
52743         * modules/javaexec (Depends-on): Update.
52744         * lib/javaexec.c: Update.
52745         * modules/mbscasestr (Depends-on): Update.
52746         * lib/mbscasestr.c: Update.
52747         * modules/mbsstr (Depends-on): Update.
52748         * lib/mbsstr.c: Update.
52749         * modules/setenv (Depends-on): Update.
52750         * lib/setenv.c: Update.
52751         * modules/strcasestr (Depends-on): Update.
52752         * lib/strcasestr.c: Update.
52753         * modules/striconveha (Depends-on): Update.
52754         * lib/striconveha.c: Update.
52755         * modules/relocatable-prog-wrapper (Files): Update.
52756         * lib/relocwrapper.c: Update.
52757         * build-aux/install-reloc: Update.
52758         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
52759
52760 2007-06-08  Bruno Haible  <bruno@clisp.org>
52761
52762         Port to uClibc.
52763         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
52764         * lib/fpurge.c (fpurge): Likewise.
52765         * lib/freading.c (freading): Likewise.
52766         * lib/fseeko.c (rpl_fseeko): Likewise.
52767         * lib/fseterr.c (fseterr): Likewise.
52768         * lib/fwriting.c (fwriting): Likewise.
52769         * tests/test-fflush.c (main): Avoid a failure on uClibc.
52770
52771 2007-06-08  Bruno Haible  <bruno@clisp.org>
52772
52773         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
52774         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
52775         * modules/gettext (Files): Add m4/intlmacosx.m4.
52776
52777 2007-06-07  Bruno Haible  <bruno@clisp.org>
52778
52779         * modules/localename-tests: New file.
52780         * tests/test-localename.c: New file.
52781
52782         New module 'localename'.
52783         * lib/localename.h: New file.
52784         * lib/localename.c: New file, from GNU gettext.
52785         * m4/localename.m4: New file.
52786         * modules/localename: New file.
52787
52788 2007-06-07  Bruno Haible  <bruno@clisp.org>
52789
52790         Work around the lack of <wchar.h> on some builds of uClibc.
52791         * doc/headers/wchar.texi: Update.
52792         * lib/wchar_.h: Include <wchar.h> only if it exists.
52793         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
52794         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
52795         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
52796         doesn't exist.
52797         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
52798         * modules/mbfile (Depends-on): Add wchar.
52799         * modules/mbiter (Depends-on): Likewise.
52800         * modules/mbuiter (Depends-on): Likewise.
52801         Reported by Simon Josefsson.
52802
52803 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
52804
52805         Work around problem reported by Steven M. Schweda in
52806         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
52807         Tru64 5.1B with the Compaq compiler environment installed declares
52808         an 'isblank' function but does not define it in the C library.
52809         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
52810         * lib/regex_internal.h (isblank): Likewise.
52811         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
52812         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
52813
52814 2007-06-05  Bruno Haible  <bruno@clisp.org>
52815
52816         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
52817         ia64.
52818         * modules/printf-safe: New file.
52819         * modules/fprintf-posix (Depends-on): Add printf-safe.
52820         * modules/printf-posix (Depends-on): Likewise.
52821         * modules/snprintf-posix (Depends-on): Likewise.
52822         * modules/sprintf-posix (Depends-on): Likewise.
52823         * modules/vasnprintf-posix (Depends-on): Likewise.
52824         * modules/vasprintf-posix (Depends-on): Likewise.
52825         * modules/vfprintf-posix (Depends-on): Likewise.
52826         * modules/vprintf-posix (Depends-on): Likewise.
52827         * modules/vsnprintf-posix (Depends-on): Likewise.
52828         * modules/vsprintf-posix (Depends-on): Likewise.
52829         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
52830         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
52831         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
52832         "no" on i386, x86_64, ia64.
52833         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
52834         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52835         on i386, x86_64, ia64.
52836         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
52837         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52838         on i386, x86_64, ia64.
52839         * tests/test-vasnprintf-posix.c: Include float.h.
52840         (LDBL80_WORDS): New macro.
52841         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52842         on i386, x86_64, ia64.
52843         * tests/test-vasprintf-posix.c: Include float.h.
52844         (LDBL80_WORDS): New macro.
52845         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52846         on i386, x86_64, ia64.
52847         * tests/test-snprintf-posix.c: Include float.h.
52848         * tests/test-sprintf-posix.c: Likewise.
52849         * tests/test-vsnprintf-posix.c: Likewise.
52850         * tests/test-vsprintf-posix.c: Likewise.
52851
52852 2007-06-05  Bruno Haible  <bruno@clisp.org>
52853
52854         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
52855         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
52856         non-IEEE numbers on i386, x86_64, ia64.
52857         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
52858         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
52859         * tests/test-isnanl.h: Include float.h.
52860         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
52861
52862 2007-06-05  Bruno Haible  <bruno@clisp.org>
52863
52864         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
52865         also the %a / %A. Handle the %a / %A code before this extra handling.
52866
52867 2007-06-05  Bruno Haible  <bruno@clisp.org>
52868
52869         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
52870         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
52871
52872 2007-06-05  Bruno Haible  <bruno@clisp.org>
52873
52874         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
52875         typo in variable name.
52876
52877 2007-06-05  Eric Blake  <ebb9@byu.net>
52878
52879         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
52880         Reported by Simon Josefsson.
52881
52882 2007-06-04  Bruno Haible  <bruno@clisp.org>
52883
52884         Avoid test failures on some PowerPC platforms.
52885         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
52886         Define differently for PowerPC.
52887         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
52888         Reported by Gary V. Vaughan <gary@gnu.org>.
52889
52890 2007-06-02  Bruno Haible  <bruno@clisp.org>
52891
52892         Fix test-stdint failure on FreeBSD/ia64.
52893         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
52894         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
52895         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
52896         * doc/headers/stdint.texi: Update.
52897
52898 2007-06-01  Bruno Haible  <bruno@clisp.org>
52899
52900         * tests/test-binary-io.c (main): Pass a third argument to open().
52901         Reported by Gary V. Vaughan <gary@gnu.org>.
52902
52903 2007-06-01  Bruno Haible  <bruno@clisp.org>
52904
52905         * doc/functions/frexpl.texi: Update for mingw.
52906
52907 2007-06-01  Bruno Haible  <bruno@clisp.org>
52908
52909         * tests/test-lseek.c (main): Disable test of errno for invalid third
52910         argument.
52911         * doc/functions/lseek.texi: Update.
52912         Reported by Gary V. Vaughan <gary@gnu.org>.
52913
52914 2007-05-28  Bruno Haible  <bruno@clisp.org>
52915
52916         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
52917
52918 2007-05-31  Eric Blake  <ebb9@byu.net>
52919
52920         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
52921         cross compiling.
52922
52923 2007-05-30  Eric Blake  <ebb9@byu.net>
52924         and Bruno Haible  <bruno@clisp.org>
52925
52926         Work around mingw test failures exposed by m4-1.4.9b.
52927         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
52928         * tests/test-unistd.c: Disable uid_t and git_t tests for the
52929         moment.
52930
52931 2007-05-30  Bruno Haible  <bruno@clisp.org>
52932
52933         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
52934         assuming that they are closed. Needed on HP-UX 11.
52935
52936 2007-05-29  Bruno Haible  <bruno@clisp.org>
52937
52938         Fix a problem with #include_next.
52939         * lib/dirent_.h: Split the double-inclusion guard.
52940         * lib/fcntl_.h: Likewise.
52941         * lib/float_.h: Likewise.
52942         * lib/iconv_.h: Likewise.
52943         * lib/inttypes_.h: Likewise.
52944         * lib/locale_.h: Likewise.
52945         * lib/math_.h: Likewise.
52946         * lib/netinet_in_.h: Likewise.
52947         * lib/search_.h: Likewise.
52948         * lib/signal_.h: Likewise.
52949         * lib/stdint_.h: Likewise.
52950         * lib/stdio_.h: Likewise.
52951         * lib/stdlib_.h: Likewise.
52952         * lib/string_.h: Likewise.
52953         * lib/sys_select_.h: Likewise.
52954         * lib/sys_socket_.h: Likewise.
52955         * lib/sys_stat_.h: Likewise.
52956         * lib/sys_time_.h: Likewise.
52957         * lib/sysexits_.h: Likewise.
52958         * lib/time_.h: Likewise.
52959         * lib/unistd_.h: Likewise.
52960         * lib/wchar_.h: Likewise.
52961         * lib/wctype_.h: Likewise.
52962
52963 2007-05-29  Bruno Haible  <bruno@clisp.org>
52964
52965         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
52966         for the moment.
52967
52968 2007-05-29  Bruno Haible  <bruno@clisp.org>
52969
52970         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
52971         invocation.
52972         Reported by Eric Blake.
52973
52974 2007-05-29  Bruno Haible  <bruno@clisp.org>
52975
52976         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
52977         compiling case.
52978
52979 2007-05-29  Eric Blake  <ebb9@byu.net>
52980             Bruno Haible  <bruno@clisp.org>
52981
52982         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
52983         cross compiles.
52984
52985 2007-05-28  Eric Blake  <ebb9@byu.net>
52986
52987         * modules/closein-tests (test_closein_LDADD): Support test on
52988         cygwin with libtool.
52989
52990 2007-05-28  Bruno Haible  <bruno@clisp.org>
52991
52992         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
52993         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52994         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52995         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52996         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52997         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52998         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52999         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53000         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53001
53002 2007-05-28  Eric Blake  <ebb9@byu.net>
53003
53004         Unconditionally include <config.h> in unit tests.
53005         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
53006         * tests/test-allocsa.c, tests/test-arcfour.c,
53007         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
53008         tests/test-array_list.c, tests/test-array_oset.c,
53009         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
53010         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
53011         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
53012         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
53013         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
53014         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
53015         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
53016         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
53017         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
53018         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
53019         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
53020         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
53021         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
53022         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
53023         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
53024         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
53025         test-md5.c, test-memmem.c, test-printf-posix.c,
53026         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
53027         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
53028         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
53029         test-strcasestr.c, test-striconv.c, test-striconveh.c,
53030         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
53031         test-vasnprintf-posix2.c, test-vasnprintf.c,
53032         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
53033         test-vfprintf-posix.c, test-vprintf-posix.c,
53034         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
53035         test-xvasprintf.c: Likewise.
53036
53037 2007-05-28  Bruno Haible  <bruno@clisp.org>
53038
53039         * gnulib-tool (func_import): Remember the --with-tests command-line
53040         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
53041         Reported by Eric Blake.
53042
53043 2007-05-28  Bruno Haible  <bruno@clisp.org>
53044
53045         * modules/ftell-tests: New file.
53046         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
53047         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
53048
53049         * lib/ftell.c: New file.
53050         * modules/ftell: New file.
53051         * m4/ftell.m4: New file.
53052         * doc/functions/ftell.texi: Update.
53053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
53054         REPLACE_FTELL.
53055         * lib/stdio_.h (rpl_ftell): New declaration.
53056         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
53057         REPLACE_FTELL.
53058
53059 2007-05-28  Eric Blake  <ebb9@byu.net>
53060
53061         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
53062
53063 2007-05-28  Bruno Haible  <bruno@clisp.org>
53064
53065         * modules/fseek-tests: New file.
53066         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
53067         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
53068
53069         * lib/fseek.c: New file.
53070         * modules/fseek: New file.
53071         * m4/fseek.m4: New file.
53072         * doc/functions/fseek.texi: Update.
53073         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
53074         REPLACE_FSEEK.
53075         * lib/stdio_.h (rpl_fseek): New declaration.
53076         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
53077         REPLACE_FSEEK.
53078
53079 2007-05-28  Bruno Haible  <bruno@clisp.org>
53080
53081         * lib/stdio_.h (fflush): More comments.
53082
53083 2007-05-28  Bruno Haible  <bruno@clisp.org>
53084
53085         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
53086         runtime test.
53087
53088 2007-05-28  Eric Blake  <ebb9@byu.net>
53089
53090         Improve lseek module.
53091         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
53092         * lib/unistd_.h (lseek): Scale back link warning message.
53093         * tests/test-lseek.c: Beef up test.
53094         * tests/test-lseek.sh: Exercise more facets of lseek.
53095         Reported by Bruno Haible.
53096
53097 2007-05-28  Bruno Haible  <bruno@clisp.org>
53098
53099         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
53100         to define.
53101
53102 2007-05-27  Bruno Haible  <bruno@clisp.org>
53103
53104         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
53105
53106 2007-05-27  Bruno Haible  <bruno@clisp.org>
53107
53108         * modules/openmp: New file.
53109         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
53110         Noah Misch.
53111
53112 2007-05-26  Bruno Haible  <bruno@clisp.org>
53113
53114         * modules/chdir-long (Depends-on): Add fchdir.
53115         * modules/chdir-safer (Depends-on): Likewise.
53116         * modules/fts (Depends-on): Likewise.
53117         * modules/fts-lgpl (Depends-on): Likewise.
53118         * modules/openat (Depends-on): Likewise.
53119         * modules/savewd (Depends-on): Likewise.
53120
53121 2007-05-24  Eric Blake  <ebb9@byu.net>
53122
53123         Fix lseek on mingw.
53124         * modules/lseek: New module.
53125         * m4/lseek.m4: New file.
53126         * lib/lseek.c: New file.
53127         * modules/lseek-tests: New file.
53128         * tests/test-lseek.c: New file.
53129         * tests/test-lseek.sh: New file.
53130         * MODULES.html.sh: Document lseek module.
53131         * modules/fflush (Depends-on): Add lseek, fseeko.
53132         * modules/fseeko (Depends-on): Likewise.
53133         * modules/ftello (Depends-on): Likewise.
53134         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
53135         broken.
53136         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
53137         broken.
53138         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
53139         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
53140         * lib/ftello.c (rpl_ftello): Likewise.
53141         * tests/test-fseeko.c (main): Test this.
53142         * tests/test-fseeko.sh: Likewise.
53143         * tests/test-ftello.c (main): Likewise.
53144         * tests/test-ftello.sh: Likewise.
53145         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
53146         implies replacing fseek.
53147         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
53148         HAVE_FTELLO.
53149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
53150         * modules/unistd (Makefile.am): Likewise.
53151         * lib/unistd_.h (lseek): Declare a replacement.
53152         * doc/functions/lseek.texi (lseek): Document this fix.
53153         * doc/functions/fseek.texi (fseek): Likewise.
53154         * doc/functions/ftell.texi (ftell): Likewise.
53155
53156 2007-05-24  Bruno Haible  <bruno@clisp.org>
53157
53158         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
53159         in the printed representation of a NaN.
53160         * tests/test-vasprintf-posix.c (test_function): Likewise.
53161         * tests/test-snprintf-posix.h (test_function): Likewise.
53162         * tests/test-sprintf-posix.h (test_function): Likewise.
53163         Reported by Eric Blake.
53164
53165 2007-05-23  Eric Blake  <ebb9@byu.net>
53166
53167         Fix fseeko/ftello on cygwin 1.5.24.
53168         * doc/functions/fseeko.texi (fseeko): Document the fix.
53169         * doc/functions/ftello.texi (ftello): Document the fix.
53170         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
53171         * doc/functions/stdout.text (stdout): New file.
53172         * doc/functions/stderr.text (stderr): New file.
53173         * doc/gnulib.texi (Function Substitutes): Use new files.
53174         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
53175         prior to 1.7.0.
53176         * tests/test-ftello.c (main): Likewise for ftello.
53177         * tests/test-fseeko.sh: New file.
53178         * tests/test-ftello.sh: New file.
53179         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
53180         with seekable stdin.
53181         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
53182         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
53183         (gl_REPLACE_FSEEKO): New macro.
53184         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
53185         * modules/fseeko (Files): Distribute fseeko.c.
53186         * modules/ftello (Files): Distribute ftello.c.
53187         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
53188         mode.
53189         * lib/ftello.c (rpl_ftello): New file.
53190         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
53191         fseeko, ftello.
53192         (gl_STDIN_LARGE_OFFSET): New macro.
53193         * modules/stdio (Makefile.am): Perform the replacement.
53194         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
53195
53196 2007-05-23  Bruno Haible  <bruno@clisp.org>
53197
53198         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
53199         GNULIB_POSIXCHECK is defined.
53200
53201 2007-05-21  Bruno Haible  <bruno@clisp.org>
53202
53203         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
53204         Check also the output for NaN arguments. When cross-compiling, guess
53205         no on IRIX.
53206         * lib/vasnprintf.c: Update comments.
53207         * tests/test-vasnprintf-posix.c (strisnan): New function.
53208         (test_function): Use it.
53209         * tests/test-vasprintf-posix.c (strisnan): New function.
53210         (test_function): Use it.
53211         * tests/test-snprintf-posix.h (strisnan): New function.
53212         (test_function): Use it.
53213         * tests/test-sprintf-posix.h (strisnan): New function.
53214         (test_function): Use it.
53215         Reported by Eric Blake.
53216
53217 2007-05-20  Bruno Haible  <bruno@clisp.org>
53218
53219         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
53220         numbers that fails on BeOS.
53221         * doc/functions/frexpl.texi: Update.
53222
53223 2007-05-20  Jim Meyering  <jim@meyering.net>
53224
53225         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
53226         forced upon us by glibc-2.6.
53227
53228 2007-05-20  Bruno Haible  <bruno@clisp.org>
53229
53230         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
53231         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
53232         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
53233         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
53234         NEED_PRINTF_INFINITE.
53235         (is_infinitel): New function.
53236         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
53237         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
53238         gl_PREREQ_VASNPRINTF_INFINITE.
53239         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
53240         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53241         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
53242         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
53243         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
53244         gl_PREREQ_VASNPRINTF_INFINITE.
53245         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53246         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53247         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53248         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53249         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53250         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53251         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53252         * doc/functions/fprintf.texi: Update.
53253         * doc/functions/printf.texi: Update.
53254         * doc/functions/snprintf.texi: Update.
53255         * doc/functions/sprintf.texi: Update.
53256         * doc/functions/vfprintf.texi: Update.
53257         * doc/functions/vprintf.texi: Update.
53258         * doc/functions/vsnprintf.texi: Update.
53259         * doc/functions/vsprintf.texi: Update.
53260
53261 2007-05-20  Bruno Haible  <bruno@clisp.org>
53262
53263         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
53264         was not found in libc.
53265         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
53266
53267 2007-05-20  Bruno Haible  <bruno@clisp.org>
53268
53269         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53270         printed as "-nan" instead of "nan".
53271         * tests/test-vasprintf-posix.c (test_function): Likewise.
53272         * tests/test-snprintf-posix.h (test_function): Likewise.
53273         * tests/test-sprintf-posix.h (test_function): Likewise.
53274         Needed for HP-UX 11.
53275
53276 2007-05-20  Jim Meyering  <jim@meyering.net>
53277
53278         Fix buggy test for the fchownat-deref bug.
53279         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
53280         symlink required for the run-test.  Without it, this test would
53281         always declare that fchownat doesn't work, and client code would
53282         unnecessarily use the replacement function with fixed libc.
53283         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
53284         Reported by Greg Schafer.
53285
53286 2007-05-19  Bruno Haible  <bruno@clisp.org>
53287
53288         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
53289         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
53290         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
53291         Needed for IRIX 6.5 and Solaris 2.5.1.
53292
53293 2007-05-19  Bruno Haible  <bruno@clisp.org>
53294
53295         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
53296         (test_function): Skip tests involving -0.0 on platforms where
53297         -0.0 = 0.0.
53298         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
53299         (test_function): Skip tests involving -0.0 on platforms where
53300         -0.0 = 0.0.
53301         * tests/test-snprintf-posix.h (have_minus_zero): New function.
53302         (test_function): Skip tests involving -0.0 on platforms where
53303         -0.0 = 0.0.
53304         * tests/test-sprintf-posix.h (have_minus_zero): New function.
53305         (test_function): Skip tests involving -0.0 on platforms where
53306         -0.0 = 0.0.
53307         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
53308         tests.
53309         * tests/test-printf-posix.h (test_function): Likewise.
53310         * tests/test-printf-posix.output: Remove all -0.0 related results.
53311         Needed for IRIX 6.5.
53312
53313 2007-05-19  Bruno Haible  <bruno@clisp.org>
53314
53315         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53316         printed as "nan0x7fffffff" instead of "nan".
53317         * tests/test-vasprintf-posix.c (test_function): Likewise.
53318         * tests/test-snprintf-posix.h (test_function): Likewise.
53319         * tests/test-sprintf-posix.h (test_function): Likewise.
53320         * tests/test-fprintf-posix.h (NaN): Remove macro.
53321         (test_function): Remove all NaN related tests.
53322         * tests/test-printf-posix.h (NaN): Remove macro.
53323         (test_function): Remove all NaN related tests.
53324         * tests/test-printf-posix.output: Remove all NaN related results.
53325         Needed for IRIX 6.5.
53326
53327 2007-05-19  Bruno Haible  <bruno@clisp.org>
53328
53329         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
53330         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
53331
53332 2007-05-19  Bruno Haible  <bruno@clisp.org>
53333
53334         * lib/float_.h: New file.
53335         * m4/float_h.m4: New file.
53336         * modules/float: New file.
53337         * modules/isnanl (Dependencies): Add float.
53338         * modules/isnanl-nolibm (Dependencies): Likewise.
53339         * modules/mathl (Dependencies): Likewise.
53340         * modules/printf-frexpl (Dependencies): Likewise.
53341         * modules/signbit (Dependencies): Likewise.
53342         * modules/vasnprintf (Dependencies): Likewise.
53343         * doc/headers/float.texi: Update.
53344
53345 2007-05-19  Jim Meyering  <jim@meyering.net>
53346
53347         * lib/utimens.c (gl_futimens): Rename from futimens,
53348         now that glibc-2.6 declares futimens.
53349         * lib/utimens.h: Likewise.
53350
53351 2007-05-19  Bruno Haible  <bruno@clisp.org>
53352
53353         Avoid test failures on mingw.
53354         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
53355         * tests/test-printf-posix.sh: Likewise.
53356         * tests/test-vfprintf-posix.sh: Likewise.
53357         * tests/test-vprintf-posix.sh: Likewise.
53358
53359 2007-05-19  Bruno Haible  <bruno@clisp.org>
53360
53361         Fix *printf result for NaN, Inf, -0.0 on mingw.
53362         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
53363         * lib/vasnprintf.c: Include math.h and isnan.h.
53364         (is_infinite_or_zero): New function.
53365         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
53366         values in the %f, %F, %e, %E, %g, %G directives.
53367         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
53368         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53369         gl_PRINTF_INFINITE and test its result. Invoke
53370         gl_PREREQ_VASNPRINTF_INFINITE.
53371         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53372         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53373         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53374         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53375         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53376         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53377         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53378         * doc/functions/fprintf.texi: Update.
53379         * doc/functions/printf.texi: Update.
53380         * doc/functions/snprintf.texi: Update.
53381         * doc/functions/sprintf.texi: Update.
53382         * doc/functions/vfprintf.texi: Update.
53383         * doc/functions/vprintf.texi: Update.
53384         * doc/functions/vsnprintf.texi: Update.
53385         * doc/functions/vsprintf.texi: Update.
53386
53387 2007-05-19  Bruno Haible  <bruno@clisp.org>
53388
53389         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
53390         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
53391         Instead of multiplying with 10^k, set extra_zeroes to k.
53392         (scale10_round_long_double): Remove function.
53393
53394 2007-05-18  Bruno Haible  <bruno@clisp.org>
53395
53396         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
53397         introduced on 2007-05-06.
53398
53399 2007-05-18  Bruno Haible  <bruno@clisp.org>
53400
53401         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
53402         %g directives.
53403         * tests/test-vasprintf-posix.c (test_function): Likewise.
53404         * tests/test-snprintf-posix.h (test_function): Likewise.
53405         * tests/test-sprintf-posix.h (test_function): Likewise.
53406
53407 2007-05-18  Bruno Haible  <bruno@clisp.org>
53408
53409         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
53410         (strmatch): New function.
53411         (test_function): Test the %f directive on numbers of various exponents.
53412         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
53413         (strmatch): New function.
53414         (test_function): Test the %f directive on numbers of various exponents.
53415         * tests/test-snprintf-posix.h (strmatch): New function.
53416         (test_function): Test the %f directive on numbers of various exponents.
53417         * tests/test-sprintf-posix.h (strmatch): New function.
53418         (test_function): Test the %f directive on numbers of various exponents.
53419         * tests/test-snprintf-posix.c (SIZEOF): New macro.
53420         * tests/test-sprintf-posix.c (SIZEOF): New macro.
53421         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
53422         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
53423
53424 2007-05-18  Bruno Haible  <bruno@clisp.org>
53425
53426         Add support for 'long double' number output.
53427         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
53428         * lib/vasnprintf.c: Include math.h and float+.h.
53429         (mp_limb_t): New type.
53430         (GMP_LIMB_BITS): New macro.
53431         (mp_twolimb_t): New type.
53432         (GMP_TWOLIMB_BITS): New macro.
53433         (mpn_t): New type.
53434         (multiply, divide, convert_to_decimal, decode_long_double,
53435         scale10_round_long_double, scale10_round_decimal_long_double,
53436         floorlog10l): New functions.
53437         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
53438         for the %f, %F, %e, %E, %g, %G directives.
53439         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
53440         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53441         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
53442         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
53443         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53444         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53445         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53446         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53447         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53448         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53449         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53450         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
53451         * modules/snprintf-posix (Depends-on): Likewise.
53452         * modules/sprintf-posix (Depends-on): Likewise.
53453         * modules/vasnprintf-posix (Depends-on): Likewise.
53454         * modules/vasprintf-posix (Depends-on): Likewise.
53455         * modules/vfprintf-posix (Depends-on): Likewise.
53456         * modules/vsnprintf-posix (Depends-on): Likewise.
53457         * modules/vsprintf-posix (Depends-on): Likewise.
53458         * modules/vasnprintf (Files): Add lib/float+.h.
53459         * doc/functions/fprintf.texi: Update.
53460         * doc/functions/printf.texi: Update.
53461         * doc/functions/snprintf.texi: Update.
53462         * doc/functions/sprintf.texi: Update.
53463         * doc/functions/vfprintf.texi: Update.
53464         * doc/functions/vprintf.texi: Update.
53465         * doc/functions/vsnprintf.texi: Update.
53466         * doc/functions/vsprintf.texi: Update.
53467
53468 2007-05-18  Bruno Haible  <bruno@clisp.org>
53469
53470         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
53471
53472 2007-05-18  Bruno Haible  <bruno@clisp.org>
53473
53474         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
53475         for printing 64-bit integers. Needed for mingw.
53476
53477 2007-05-18  Bruno Haible  <bruno@clisp.org>
53478
53479         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
53480         gl_FUNC_FREXPL_WORKS.
53481         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
53482
53483 2007-05-18  Bruno Haible  <bruno@clisp.org>
53484
53485         * modules/frexpl-nolibm-tests: New file.
53486
53487         * modules/frexpl-nolibm: New file.
53488         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
53489
53490 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53491
53492         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
53493         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
53494         GCC 4.2, which otherwise issues a lot of warnings.
53495         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
53496         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
53497         Likewise.
53498         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
53499         * modules/iconv_open (iconv.h): Likewise.
53500         * modules/locale (locale.h): Likewise.
53501         * modules/netinet_in (netinet/in.h): Likewise.
53502         * modules/sys_select (sys_select.h): Likewise.
53503         * modules/sys_socket (sys/socket.h): Likewise.
53504         * modules/sys_stat (sys/stat.h): Likewise.
53505         * modules/sysexits (sysexits.h): Likewise.
53506         * modules/unistd (unistd.h): Likewise.
53507
53508 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53509
53510         * modules/closein-tests (Makefile.am): Distribute
53511         `test-closein.sh'.
53512
53513 2007-05-17  Bruno Haible  <bruno@clisp.org>
53514
53515         * tests/test-printf-posix.output: Renamed from
53516         tests/test-fprintf-posix.out.
53517         * modules/fprintf-posix-tests: Update.
53518         * modules/printf-posix-tests: Update.
53519         * modules/vfprintf-posix-tests: Update.
53520         * modules/vprintf-posix-tests: Update.
53521         * tests/test-fprintf-posix.sh: Update.
53522         * tests/test-printf-posix.sh: Update.
53523         * tests/test-vfprintf-posix.sh: Update.
53524         * tests/test-vprintf-posix.sh: Update.
53525         Reported by Ralf Wildenhues.
53526
53527 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53528
53529         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
53530         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
53531         GCC 4.2, which otherwise issues a lot of warnings.
53532         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
53533         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
53534         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
53535         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
53536         it should no longer be needed.
53537         * lib/string_.h: Likewise.
53538         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
53539         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
53540         * modules/inttypes (inttypes.h): Likewise.
53541         * modules/math (math.h): Likewise.
53542         * modules/search (search.h): Likewise.
53543         * modules/signal (signal.h): Likewise.
53544         * modules/stdint (stdint.h): Likewise.
53545         * modules/stdio (stdio.h): Likewise.
53546         * modules/stdlib (stdlib.h): Likewise.
53547         * modules/string (string.h): Likewise.
53548         * modules/sys_time (sys/time.h): Likewise.
53549         * modules/time (time.h): Likewise.
53550         * modules/wchar (wchar.h): Likewise.
53551         * modules/wctype (wtype.h): Likewise.
53552
53553 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
53554
53555         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
53556
53557 2007-05-13  Bruno Haible  <bruno@clisp.org>
53558
53559         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
53560         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53561         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
53562         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53563         (gl_PREREQ_STRTOK_R): Don't require it here.
53564
53565 2007-05-13  Bruno Haible  <bruno@clisp.org>
53566
53567         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
53568         when used in C++ mode.
53569
53570 2007-05-12  Bruno Haible  <bruno@clisp.org>
53571
53572         * lib/linebuffer.h: Tweak doc.
53573         * lib/linebuffer.c: Likewise.
53574
53575 2007-05-12  James Youngman  <jay@gnu.org>
53576
53577         * lib/linebuffer.c (readlinebuffer_delim): New function,
53578         like readlinebuffer, but use a caller-specified delimiter.
53579         (readlinebuffer): Just call readlinebuffer_delim with '\n'
53580         as the delimiter.
53581         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
53582
53583 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53584
53585         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
53586         * modules/openat (Files): Remove openat-die.c.
53587         (Depends-on): Add openat-die.
53588         * modules/openat-die: New module.
53589
53590 2007-05-06  Bruno Haible  <bruno@clisp.org>
53591
53592         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
53593         Update with info about Cygwin.
53594         * doc/functions/fprintf.texi: Update.
53595         * doc/functions/printf.texi: Update.
53596         * doc/functions/snprintf.texi: Update.
53597         * doc/functions/sprintf.texi: Update.
53598         * doc/functions/vfprintf.texi: Update.
53599         * doc/functions/vprintf.texi: Update.
53600         * doc/functions/vsnprintf.texi: Update.
53601         * doc/functions/vsprintf.texi: Update.
53602         Reported by Eric Blake.
53603
53604 2007-05-06  Bruno Haible  <bruno@clisp.org>
53605
53606         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
53607         padding ourselves for the floating-point directives.
53608         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
53609         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
53610         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53611         gl_PRINTF_FLAG_ZERO and test its result. Invoke
53612         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
53613         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53614         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
53615         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53616         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53617         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53618         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53619         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53620         * tests/test-snprintf-posix.h (test_function): Also check the width
53621         and some flags in the %f directive.
53622         * tests/test-sprintf-posix.h (test_function): Likewise.
53623         * tests/test-vasnprintf-posix.c (test_function): Likewise.
53624         * tests/test-vasprintf-posix.c (test_function): Likewise.
53625         * doc/functions/fprintf.texi: Update.
53626         * doc/functions/printf.texi: Update.
53627         * doc/functions/snprintf.texi: Update.
53628         * doc/functions/sprintf.texi: Update.
53629         * doc/functions/vfprintf.texi: Update.
53630         * doc/functions/vprintf.texi: Update.
53631         * doc/functions/vsnprintf.texi: Update.
53632         * doc/functions/vsprintf.texi: Update.
53633
53634 2007-05-06  Bruno Haible  <bruno@clisp.org>
53635
53636         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
53637         pass the ' flag character to sprintf or snprintf.
53638         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
53639         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
53640         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53641         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
53642         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
53643         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53644         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
53645         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53646         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53647         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53648         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53649         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53650         * tests/test-snprintf-posix.h (test_function): Also check the grouping
53651         flag.
53652         * tests/test-sprintf-posix.h (test_function): Likewise.
53653         * tests/test-vasnprintf-posix.c (test_function): Likewise.
53654         * tests/test-vasprintf-posix.c (test_function): Likewise.
53655         * doc/functions/fprintf.texi: Update.
53656         * doc/functions/printf.texi: Update.
53657         * doc/functions/snprintf.texi: Update.
53658         * doc/functions/sprintf.texi: Update.
53659         * doc/functions/vfprintf.texi: Update.
53660         * doc/functions/vprintf.texi: Update.
53661         * doc/functions/vsnprintf.texi: Update.
53662         * doc/functions/vsprintf.texi: Update.
53663
53664 2007-05-01  Bruno Haible  <bruno@clisp.org>
53665
53666         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
53667
53668 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
53669
53670         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
53671         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
53672
53673 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53674
53675         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
53676         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
53677         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
53678
53679 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
53680
53681         * lib/argp-help.c (struct hol_entry): New member `ord'.
53682         (HOL_ENTRY_PTRCMP): Use ord for comparison
53683         (hol_sort): Initialize ord.
53684
53685 2007-05-01  Bruno Haible  <bruno@clisp.org>
53686
53687         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
53688         Reported by Eric Blake.
53689         * doc/gnulib.texi (Function Substitutes): Update.
53690
53691 2007-05-01  Bruno Haible  <bruno@clisp.org>
53692
53693         * doc/functions.texi: Remove file, now redundant through
53694         doc/functions/*.texi.
53695
53696 2007-05-01  Bruno Haible  <bruno@clisp.org>
53697
53698         * modules/argp (Depends-on): Add sleep.
53699
53700 2007-05-01  Bruno Haible  <bruno@clisp.org>
53701
53702         * modules/sleep-tests: New file.
53703         * tests/test-sleep.c: New file.
53704
53705         * modules/sleep: New file.
53706         * lib/sleep.c: New file.
53707         * m4/sleep.m4: New file.
53708         * lib/unistd_.h (sleep): New declaration.
53709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
53710         HAVE_SLEEP.
53711         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
53712         * doc/functions/sleep.texi: Document the sleep module.
53713
53714 2007-05-01  Bruno Haible  <bruno@clisp.org>
53715
53716         * lib/sigprocmask.h: Remove file.
53717         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
53718         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
53719         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
53720         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
53721         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
53722         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
53723         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
53724         HAVE_SIGSET_T as a shell variable.
53725         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
53726         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
53727         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
53728         (Depends-on): Add signal. Remove verify.
53729         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
53730         (Include): Mention <signal.h> instead of sigprocmask.h.
53731         * NEWS: Mention the change.
53732         * lib/fatal-signal.c: Don't include sigprocmask.h.
53733
53734 2007-05-01  Bruno Haible  <bruno@clisp.org>
53735
53736         * modules/signal: New file.
53737         * lib/signal_.h: New file.
53738         * m4/signal_h.m4: New file.
53739
53740 2007-05-01  Bruno Haible  <bruno@clisp.org>
53741
53742         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
53743         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
53744         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
53745         HAVE_WCTYPE_CTMP_BUG into wctype.h.
53746
53747 2007-05-01  Bruno Haible  <bruno@clisp.org>
53748
53749         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
53750         configure time.
53751         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
53752         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
53753         * modules/sys_stat (Makefile.am): Substitute their values into
53754         sys/stat.h.
53755
53756 2007-05-01  Bruno Haible  <bruno@clisp.org>
53757
53758         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
53759         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
53760         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
53761
53762 2007-05-01  Bruno Haible  <bruno@clisp.org>
53763
53764         * doc/header/assert.texi: Undo last change: don't mention the gnulib
53765         'assert' module here.
53766
53767 2007-05-01  Bruno Haible  <bruno@clisp.org>
53768
53769         * doc/functions/*.texi: New files.
53770         * doc/functions/google-ranking.txt: New file.
53771         * doc/gnulib.texi (Function Substitutes): New chapter.
53772         (ctime, inet_ntoa): Remove sections.
53773         * doc/ctime.texi: Remove file.
53774         * doc/inet_ntoa.texi: Remove file.
53775         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
53776         dependencies.
53777         (%.info): New rule, specifying a --reference-limit.
53778
53779 2007-05-01  Bruno Haible  <bruno@clisp.org>
53780
53781         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
53782
53783 2007-05-01  Bruno Haible  <bruno@clisp.org>
53784
53785         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
53786         the portability of 'mkdir' to mingw systems.
53787
53788 2007-05-01  Bruno Haible  <bruno@clisp.org>
53789
53790         * doc/headers/google-ranking.txt: New file.
53791
53792 2007-04-30  Eric Blake  <ebb9@byu.net>
53793
53794         Prefer fseeko to fseek.
53795         * modules/getpass (Depends-on): Add fseeko.
53796         * lib/getpass.c (getpass): Use fseeko, not fseek.
53797
53798 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
53799
53800         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
53801         assumes the sorting is stable, while most qsort implementations
53802         are not.  Use argument addresses to ensure they never compare as
53803         equal.
53804
53805         * tests/test-argp-2.sh (usage-indent test): Fix output
53806         (func_compare): Restore diff options
53807         * tests/test-argp.c: Restore #include "progname.h"
53808
53809 2007-04-29  Bruno Haible  <bruno@clisp.org>
53810
53811         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
53812         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53813         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
53814         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53815         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
53816         (configure.ac): Define CHECK_SNPRINTF_POSIX.
53817         (TESTS, check_PROGRAMS): Add test-snprintf.
53818         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
53819         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
53820         (TESTS, check_PROGRAMS): Add test-vsnprintf.
53821         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
53822         assertions that fail on HP-UX, OSF/1, or IRIX.
53823         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
53824
53825 2007-04-29  Bruno Haible  <bruno@clisp.org>
53826
53827         * MODULES.html.sh (posix_functions): Remove 'contents'.
53828
53829 2007-04-29  Karl Berry  <karl@gnu.org>
53830
53831         * config/srclist.txt (gendocs_template_min): new entry.
53832
53833 2007-04-29  Bruno Haible  <bruno@clisp.org>
53834
53835         Work around fpurge bug on BSD systems.
53836         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
53837         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
53838         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
53839         fpurge to rpl_fpurge if the system already has this function.
53840         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
53841         the case where the system already has this function. Correct invariants
53842         on BSD systems.
53843         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
53844         BSD systems.
53845
53846 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
53847
53848         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
53849         proposed by Sven Verdoolaege.
53850
53851         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
53852         options.
53853         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
53854         (usage and help tests): Update
53855
53856 2007-04-29  Bruno Haible  <bruno@clisp.org>
53857
53858         * tests/test-fflush.c (main): Use a file of size 17, not 10.
53859         Print more information in case of failure. Disable a test on BeOS.
53860
53861 2007-04-29  Bruno Haible  <bruno@clisp.org>
53862
53863         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
53864         This helps debugging on systems on which no gdb is available.
53865
53866 2007-04-29  Bruno Haible  <bruno@clisp.org>
53867
53868         * lib/freading.h: Improve comments.
53869         * lib/fwriting.h: Likewise.
53870         * tests/test-freading.c (main): Don't check freading immediately after
53871         repositioning. Needed for glibc.
53872
53873 2007-04-29  Bruno Haible  <bruno@clisp.org>
53874
53875         * lib/freading.c (freading): Trivial simplification.
53876
53877 2007-04-28  Bruno Haible  <bruno@clisp.org>
53878
53879         * tests/test-fwriting.c (main): Also test the interaction between
53880         fflush and fwriting.
53881         * modules/fwriting-tests (Depends-on): Add fflush.
53882
53883         * tests/test-freading.c (main): Also test the interaction between
53884         fflush and freading.
53885         * modules/freading-tests (Depends-on): Add fflush.
53886
53887 2007-04-28  Bruno Haible  <bruno@clisp.org>
53888
53889         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
53890         fseeko and ftello.
53891         Suggested by Eric Blake.
53892
53893 2007-04-28  Jim Meyering  <jim@meyering.net>
53894
53895         Avoid false-negative in gl_STDINT_H's C99 conformance test.
53896         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
53897         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
53898
53899 2007-04-27  Eric Blake  <ebb9@byu.net>
53900
53901         * doc/headers/assert.texi (assert.h): Document assert module use.
53902
53903 2007-04-27  Bruno Haible  <bruno@clisp.org>
53904
53905         * doc/headers/*.texi: New files.
53906         * doc/gnulib.texi (Header File Substitutes): New chapter.
53907         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
53908         dependencies.
53909         (standards.info ,standards.html, standards.dvi): Update dependencies.
53910         (mostlyclean, clean): New targets.
53911
53912 2007-04-27  Bruno Haible  <bruno@clisp.org>
53913
53914         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
53915         * modules/sysexits (Files, Makefile.am): Update.
53916
53917         * lib/sys_socket_.h: Renamed from lib/socket_.h.
53918         * modules/sys_socket (Files, Makefile.am): Update.
53919
53920         * lib/sys_stat_.h: Renamed from lib/stat_.h.
53921         * modules/sys_stat (Files, Makefile.am): Update.
53922
53923 2007-04-27  Eric Blake  <ebb9@byu.net>
53924
53925         * lib/freading.h: Improve comments.
53926         * lib/fwriting.h: Likewise.
53927         * lib/fflush.c: Likewise.
53928
53929         Fix closein for mingw.
53930         * modules/closein-tests: Add tests for closein.
53931         * tests/test-closein.c: New file.
53932         * tests/test-closein.sh: Likewise.
53933         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
53934         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
53935
53936 2007-04-27  Bruno Haible  <bruno@clisp.org>
53937
53938         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
53939         version is < 6.
53940         * lib/math_.h [__DECC]: Likewise.
53941         * lib/stdio_.h [__DECC]: Likewise.
53942         * lib/stdlib_.h [__DECC]: Likewise.
53943         * lib/string_.h [__DECC]: Likewise.
53944         * lib/time_.h [__DECC]: Likewise.
53945         * lib/wchar_.h [__DECC]: Likewise.
53946         * lib/wctype_.h [__DECC]: Likewise.
53947
53948 2007-04-27  Bruno Haible  <bruno@clisp.org>
53949
53950         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
53951
53952 2007-04-27  Bruno Haible  <bruno@clisp.org>
53953
53954         * lib/fflush.c: Add comments.
53955         * modules/fpurge-tests (Depends-on): Add fflush.
53956         * modules/freadable-tests (Depends-on): Likewise.
53957         * modules/fwritable-tests (Depends-on): Likewise.
53958
53959 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
53960
53961         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
53962         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
53963         Report by Bruno Haible <bruno@clisp.org>.
53964
53965 2007-04-26  Eric Blake  <ebb9@byu.net>
53966
53967         Fix fflush on mingw.
53968         * modules/fflush (Depends-on): Add freading.
53969         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
53970         but unread data.
53971
53972 2007-04-26  Eric Blake  <ebb9@byu.net>
53973         and Bruno Haible  <bruno@clisp.org>
53974
53975         Implement freading and fwriting.
53976         * lib/freading.c: New file.
53977         * lib/freading.h: Likewise.
53978         * m4/freading.m4: Likewise.
53979         * modules/freading: Likewise.
53980         * modules/freading-tests: Likewise.
53981         * tests/test-freading.c: Likewise.
53982         * lib/fwriting.c: New file.
53983         * lib/fwriting.h: Likewise.
53984         * m4/fwriting.m4: Likewise.
53985         * modules/fwriting: Likewise.
53986         * modules/fwriting-tests: Likewise.
53987         * tests/test-fwriting.c: Likewise.
53988         * MODULES.html.sh (File stream based Input/Output): Mention them.
53989
53990 2007-04-26  Bruno Haible  <bruno@clisp.org>
53991
53992         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
53993         'long' when we assume it.
53994         Suggested by Eric Blake.
53995
53996 2007-04-26  Bruno Haible  <bruno@clisp.org>
53997
53998         Ensure fseeko, ftello are declared on glibc systems.
53999         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
54000         * modules/fseeko (configure.ac-early): Likewise.
54001         * modules/ftello (configure.ac-early): Likewise.
54002         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
54003         AC_FUNC_FSEEKO for this.
54004         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
54005         (gl_CHECK_FSEEKO): Remove macro.
54006
54007 2007-04-26  Bruno Haible  <bruno@clisp.org>
54008
54009         * tests/test-fflush.c (main): Also check the ftell result after
54010         fflush and fseek/fseeko.
54011         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
54012         file descriptor position cache in the stream.
54013         * lib/fseeko.c (rpl_fseeko): Likewise.
54014
54015 2007-04-26  Bruno Haible  <bruno@clisp.org>
54016
54017         * modules/fflush-tests (Depends-on): Add fseeko.
54018
54019 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
54020             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54021
54022         * lib/argz_.h: ensure error_t definition is obtained in same
54023         mechanism system argz.h would have.
54024         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
54025         argz facilities are known bad.  Err on the side of caution if
54026         cross-compiling.
54027
54028 2007-04-25  Eric Blake  <ebb9@byu.net>
54029
54030         * lib/fpurge.c (includes): Use stdlib.h for free.
54031         * tests/test-fflush.c (main): Also test fflush-fseeko.
54032
54033 2007-04-25  Bruno Haible  <bruno@clisp.org>
54034
54035         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
54036         * lib/fseeko.c: New file.
54037         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
54038         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
54039         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
54040         gl_FUNC_FSEEKO.
54041         (gl_FUNC_FSEEKO): Invoke it.
54042         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
54043         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
54044         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
54045
54046 2007-04-25  Bruno Haible  <bruno@clisp.org>
54047
54048         * modules/fflush (Depends-on): Add ftello.
54049
54050 2007-04-25  Bruno Haible  <bruno@clisp.org>
54051
54052         * modules/ftello-tests: New file.
54053         * tests/test-ftello.c: New file.
54054
54055         * modules/ftello: New file.
54056         * m4/ftello.m4: New file.
54057         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
54058         HAVE_FTELLO.
54059         * lib/stdio_.h (ftello): New declaration.
54060         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
54061         HAVE_FTELLO.
54062
54063 2007-04-25  Bruno Haible  <bruno@clisp.org>
54064
54065         * modules/fseeko-tests: New file.
54066         * tests/test-fseeko.c: New file.
54067
54068         * modules/fseeko: New file.
54069         * m4/fseeko.m4: New file.
54070         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
54071         HAVE_FSEEKO.
54072         * lib/stdio_.h (fseeko): New declaration.
54073         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
54074         HAVE_FSEEKO.
54075
54076 2007-04-25  Bruno Haible  <bruno@clisp.org>
54077
54078         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
54079
54080 2007-04-25  Bruno Haible  <bruno@clisp.org>
54081
54082         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
54083         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
54084         * tests/test-unistd.c: Likewise.
54085         * tests/test-fcntl.c: Likewise.
54086
54087 2007-04-23  Eric Blake  <ebb9@byu.net>
54088
54089         * lib/fflush.c: Fix missing include.
54090         Reported by Bruno Haible.
54091
54092 2007-04-23  Bruno Haible  <bruno@clisp.org>
54093
54094         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
54095         Reported by Eric Blake.
54096
54097 2007-04-23  Bruno Haible  <bruno@clisp.org>
54098
54099         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
54100
54101 2007-04-23  Bruno Haible  <bruno@clisp.org>
54102
54103         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
54104
54105 2007-04-23  Bruno Haible  <bruno@clisp.org>
54106
54107         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
54108         Needed on HP-UX 11.
54109
54110 2007-04-16  Eric Blake  <ebb9@byu.net>
54111
54112         Make fflush rely on fpurge.
54113         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
54114         open coding all variants.
54115         * modules/fflush (Depends-on): Add fpurge and unistd.
54116         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
54117         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
54118
54119         Fix --with-tests compilation on cygwin.
54120         * modules/argmatch-tests (Makefile.am): List gnulib library first
54121         in LDADD.
54122         * modules/argp-tests (Makefile.am): Likewise.
54123         * modules/array-list-tests (Makefile.am): Likewise.
54124         * modules/array-oset-tests (Makefile.am): Likewise.
54125         * modules/avltree-list-tests (Makefile.am): Likewise.
54126         * modules/avltree-oset-tests (Makefile.am): Likewise.
54127         * modules/avltreehash-list-tests (Makefile.am): Likewise.
54128         * modules/carray-list-tests (Makefile.am): Likewise.
54129         * modules/dirname-tests (Makefile.am): Likewise.
54130         * modules/frexp-tests (Makefile.am): Likewise.
54131         * modules/isnanl-tests (Makefile.am): Likewise.
54132         * modules/linked-list-tests (Makefile.am): Likewise.
54133         * modules/linkedhash-list-tests (Makefile.am): Likewise.
54134         * modules/lock-tests (Makefile.am): Likewise.
54135         * modules/rbtree-list-tests (Makefile.am): Likewise.
54136         * modules/rbtree-oset-tests (Makefile.am): Likewise.
54137         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
54138         * modules/tls-tests (Makefile.am): Likewise.
54139         * modules/tsearch-tests (Makefile.am): Likewise.
54140         * modules/xvasprintf-tests (Makefile.am): Likewise.
54141
54142         Fix fpurge for cygwin.
54143         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
54144         value.
54145         * modules/fpurge-tests (Depends-on): Clean up trash.
54146
54147 2007-04-16  Simon Josefsson  <simon@josefsson.org>
54148
54149         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
54150
54151         * m4/autobuild.m4: Re-indent.
54152
54153 2007-04-13  Bruno Haible  <bruno@clisp.org>
54154
54155         * modules/fpurge-tests: New file.
54156         * tests/test-fpurge.c: New file.
54157
54158         * modules/fpurge: New file.
54159         * lib/fpurge.h: New file.
54160         * lib/fpurge.c: New file.
54161         * m4/fpurge.m4: New file.
54162
54163 2007-04-13  Bruno Haible  <bruno@clisp.org>
54164
54165         * modules/fbufmode-tests: New file.
54166         * tests/test-fbufmode.c: New file.
54167
54168         * modules/fbufmode: New file.
54169         * lib/fbufmode.h: New file.
54170         * lib/fbufmode.c: New file.
54171         * m4/fbufmode.m4: New file.
54172
54173 2007-04-13  Bruno Haible  <bruno@clisp.org>
54174
54175         * modules/fwritable-tests: New file.
54176         * tests/test-fwritable.c: New file.
54177
54178         * modules/fwritable: New file.
54179         * lib/fwritable.h: New file.
54180         * lib/fwritable.c: New file.
54181         * m4/fwritable.m4: New file.
54182
54183 2007-04-13  Bruno Haible  <bruno@clisp.org>
54184
54185         * modules/freadable-tests: New file.
54186         * tests/test-freadable.c: New file.
54187
54188         * modules/freadable: New file.
54189         * lib/freadable.h: New file.
54190         * lib/freadable.c: New file.
54191         * m4/freadable.m4: New file.
54192
54193 2007-04-13  Bruno Haible  <bruno@clisp.org>
54194
54195         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
54196         MOSTLYCLEANFILES.
54197
54198 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
54199
54200         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
54201         gzip bootstrap.conf to avoid dragging in i18n machinery.
54202         (gnulib_tool_option): Use it.
54203
54204 2007-04-13  Bruno Haible  <bruno@clisp.org>
54205
54206         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
54207         %F directives.
54208         * tests/test-vasprintf-posix.c (test_function): Likewise.
54209         * tests/test-snprintf-posix.h (test_function): Likewise.
54210         * tests/test-sprintf-posix.h (test_function): Likewise.
54211         * tests/test-fprintf-posix.h (test_function): Likewise.
54212         * tests/test-printf-posix.h (test_function): Likewise.
54213         * tests/test-fprintf-posix.out: Likewise.
54214
54215 2007-04-13  Bruno Haible  <bruno@clisp.org>
54216
54217         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
54218         * modules/tls-tests (configure.ac): Likewise.
54219         Reported by Arto C. Nirkko <anirkko@insel.ch>.
54220
54221 2007-04-13  Bruno Haible  <bruno@clisp.org>
54222
54223         * lib/tls.c (glthread_tls_get): Fix return type.
54224         Patch by Arto C. Nirkko <anirkko@insel.ch>.
54225
54226 2007-04-12  Eric Blake  <ebb9@byu.net>
54227
54228         * modules/gettime (Depends-on): Remove gettime.
54229         Reported by Dmitry V. Levin.
54230
54231 2007-04-12  Bruno Haible  <bruno@clisp.org>
54232
54233         * modules/fflush (Include): Mention <stdio.h>.
54234         * modules/strtoimax (Include): Mention <inttypes.h>.
54235         * modules/strtoumax (Include): Likewise.
54236
54237 2007-04-12  Eric Blake  <ebb9@byu.net>
54238
54239         * .cvsignore: New file.
54240         * .gitignore: Likewise.
54241
54242 2007-04-12  Bruno Haible  <bruno@clisp.org>
54243
54244         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
54245         not before, since $(LDADD) often contains libgnu.a.
54246         * modules/striconv-tests (test_striconv_LDADD): Likewise.
54247         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
54248         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
54249         Needed on Cygwin.
54250
54251 2007-04-12  Eric Blake  <ebb9@byu.net>
54252
54253         Work around glibc's failure to flush stdin on fclose.
54254         * lib/closein.c (close_stdin): Flush stdin before closing.
54255
54256         Work around glibc's failure to reset seekable stdin on exit.
54257         * modules/closein: New module.
54258         * lib/closein.c: New file.
54259         * lib/closein.h: Likewise.
54260         * m4/closein.m4: Likewise.
54261         * MODULES.html.sh (File stream based Input/Output): Document it.
54262
54263 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54264
54265         * gnulib-tool: Rename generated 'autobuild' script to
54266         'do-autobuild' in --create-megatestdir output.
54267
54268         * doc/gnulib.texi (Build robot for gnulib): Fix.
54269
54270 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54271
54272         * modules/sysexits (Depends-on): Add absolute-header.
54273
54274 2007-04-12  Eric Blake  <ebb9@byu.net>
54275
54276         No need to preserve errno on success.
54277         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
54278         Reported by Bruno Haible.
54279
54280 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54281
54282         * MODULES.html.sh (Support for maintaining and releasing
54283         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
54284
54285 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54286
54287         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
54288
54289 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54290
54291         * modules/autobuild: New module.
54292
54293         * m4/autobuild.m4: New file.
54294
54295 2007-04-11  Bruno Haible  <bruno@clisp.org>
54296
54297         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
54298         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
54299         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
54300         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
54301         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54302         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54303         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54304         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54305         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54306         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54307         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
54308         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54309         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54310         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
54311         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54312         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54313         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
54314         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54315         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54316         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
54317         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54318         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54319         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
54320         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54321         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54322         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
54323         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54324         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54325         Reported by Eric Blake.
54326
54327 2007-04-11  Bruno Haible  <bruno@clisp.org>
54328
54329         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
54330
54331 2007-04-10  Bruno Haible  <bruno@clisp.org>
54332
54333         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
54334         for NaN and Infinity. Needed on FreeBSD 6.1.
54335         * tests/test-vasnprintf-posix.c (test_function): Undo last change
54336         regarding results for "%010a" of Infinity and NaN.
54337         * tests/test-vasprintf-posix.c (test_function): Likewise.
54338         * tests/test-snprintf-posix.h (test_function): Likewise.
54339         * tests/test-sprintf-posix.h (test_function): Likewise.
54340         * tests/test-fprintf-posix.h (test_function): Likewise.
54341         * tests/test-printf-posix.h (test_function): Likewise.
54342         * tests/test-fprintf-posix.out: Likewise.
54343
54344 2007-04-10  Bruno Haible  <bruno@clisp.org>
54345
54346         * modules/locale-tests: New file.
54347         * tests/test-locale.c: New file.
54348
54349         * modules/locale: New file.
54350         * lib/locale_.h: New file.
54351         * m4/locale_h.m4: New file.
54352
54353 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
54354             Bruno Haible  <bruno@clisp.org>
54355
54356         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
54357         be determined, test for availability of the copysignf, copysign,
54358         copysignl functions.
54359         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
54360         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
54361         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
54362
54363 2007-04-09  Eric Blake  <ebb9@byu.net>
54364
54365         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
54366         * modules/stdio (Makefile.am): Support fflush.
54367         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54368         * modules/fflush: New file.
54369         * lib/fflush.c: Likewise.
54370         * m4/fflush.m4: Likewise.
54371         * modules/fflush-tests: New test.
54372         * tests/test-fflush.c: Likewise.
54373         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
54374
54375 2007-04-06  Bruno Haible  <bruno@clisp.org>
54376
54377         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
54378         (VASNPRINTF): Use signbit for faster determination whether to print a
54379         minus sign.
54380         * modules/vasnprintf (Files): Remove lib/float+.h.
54381         * modules/fprintf-posix (Depends-on): Add signbit.
54382         * modules/snprintf-posix (Depends-on): Likewise.
54383         * modules/sprintf-posix (Depends-on): Likewise.
54384         * modules/vasnprintf-posix (Depends-on): Likewise.
54385         * modules/vasprintf-posix (Depends-on): Likewise.
54386         * modules/vfprintf-posix (Depends-on): Likewise.
54387         * modules/vsnprintf-posix (Depends-on): Likewise.
54388         * modules/vsprintf-posix (Depends-on): Likewise.
54389
54390 2007-04-06  Bruno Haible  <bruno@clisp.org>
54391
54392         * tests/test-frexp.c (main): Test also the sign bit of zero results.
54393         * tests/test-frexpl.c (main): Likewise.
54394         * tests/test-ldexpl.c (main): Likewise.
54395         * modules/frexp-tests (Depends-on): Add signbit.
54396         * modules/frexpl-tests (Depdends-on): Likewise.
54397         * modules/ldexpl-tests (Depdends-on): Likewise.
54398
54399 2007-04-06  Bruno Haible  <bruno@clisp.org>
54400
54401         * modules/signbit-tests: New file.
54402         * tests/test-signbit.c: New file.
54403
54404         * modules/signbit: New file.
54405         * lib/signbitf.c: New file.
54406         * lib/signbitd.c: New file.
54407         * lib/signbitl.c: New file.
54408         * m4/signbit.m4: New file.
54409         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
54410         (signbit): New macro.
54411         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
54412         REPLACE_SIGNBIT.
54413         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
54414         REPLACE_FREXPL into math.h.
54415
54416 2007-04-06  Bruno Haible  <bruno@clisp.org>
54417
54418         * modules/isnanf-nolibm-tests: New file.
54419         * tests/test-isnanf.c: New file.
54420
54421         * modules/isnanf-nolibm: New file.
54422         * lib/isnanf.h: New file.
54423         * lib/isnanf.c: New file.
54424         * lib/isnan.c: Consider the USE_FLOAT macro.
54425         * m4/isnanf.m4: New file.
54426
54427 2007-04-06  Bruno Haible  <bruno@clisp.org>
54428
54429         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
54430         (Link): New section.
54431
54432         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
54433
54434 2007-04-06  Bruno Haible  <bruno@clisp.org>
54435
54436         Assume the 'long double' type.
54437         * m4/longdouble.m4: Remove file.
54438         * config/srclist.txt: Don't mention longdouble.m4.
54439         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
54440         * lib/float+.h: Likewise.
54441         * lib/frexp.c: Likewise.
54442         * lib/printf-args.h: Likewise.
54443         * lib/printf-args.c: Likewise.
54444         * lib/printf-frexp.c: Likewise.
54445         * lib/printf-parse.c: Likewise.
54446         * lib/vasnprintf.c: Likewise.
54447         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
54448         * m4/intl.m4: Likewise.
54449         * m4/isnanl.m4: Likewise.
54450         * m4/printf.m4: Likewise.
54451         * m4/printf-frexpl.m4: Likewise.
54452         * m4/vasnprintf.m4: Likewise.
54453         * modules/allocsa (Files): Remove m4/longdouble.m4.
54454         * modules/gettext (Files): Likewise.
54455         * modules/relocatable-prog-wrapper (Files): Likewise.
54456         * modules/vasnprintf (Files): Likewise.
54457         * modules/isnanl (Files): Likewise.
54458         (Include): Simplify.
54459         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
54460         (Include): Simplify.
54461         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
54462         (Include): Simplify.
54463         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
54464         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54465         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
54466         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54467         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
54468         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54469         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
54470         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54471         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
54472         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54473         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
54474         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54475         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
54476         * tests/test-isnanl.c: Likewise.
54477         * tests/test-snprintf-posix.h: Likewise.
54478         * tests/test-sprintf-posix.h: Likewise.
54479         * tests/test-vasnprintf-posix.c: Likewise.
54480         * tests/test-vasnprintf-posix2.c: Likewise.
54481         * tests/test-vasprintf-posix.c: Likewise.
54482
54483 2007-04-06  Bruno Haible  <bruno@clisp.org>
54484
54485         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
54486         * lib/math_.h [__DECC]: Include the overridden include file through
54487         #include_next, outside the double-inclusion guard.
54488         * lib/stdio_.h [__DECC]: Likewise.
54489         * lib/stdlib_.h [__DECC]: Likewise.
54490         * lib/string_.h [__DECC]: Likewise.
54491         * lib/time_.h [__DECC]: Likewise.
54492         * lib/wchar_.h [__DECC]: Likewise.
54493         * lib/wctype_.h [__DECC]: Likewise.
54494         * lib/inttypes_.h [__DECC]: Likewise.
54495         Reported by Albert Chin <china@thewrittenword.com> in
54496         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
54497
54498 2007-04-04  Eric Blake  <ebb9@byu.net>
54499
54500         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
54501         1.5.x.
54502
54503 2007-04-04  Bruno Haible  <bruno@clisp.org>
54504
54505         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
54506         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
54507
54508 2007-04-04  Bruno Haible  <bruno@clisp.org>
54509
54510         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
54511         results for "%010a" of Infinity and NaN.
54512         * tests/test-vasprintf-posix.c (test_function): Likewise.
54513         * tests/test-snprintf-posix.h (test_function): Likewise.
54514         * tests/test-sprintf-posix.h (test_function): Likewise.
54515         * tests/test-fprintf-posix.h (test_function): Remove these tests.
54516         * tests/test-printf-posix.h (test_function): Likewise.
54517         * tests/test-fprintf-posix.out: Update.
54518         Needed for FreeBSD 6.1.
54519
54520 2007-04-04  Bruno Haible  <bruno@clisp.org>
54521
54522         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
54523         directly used by the gnulib modules nor by gnulib-tool.
54524
54525 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
54526
54527         * DEPENDENCIES: Give overall description of version dependency
54528         desirability.  Use more-typical names for apps.
54529         Add shell, coreutils, diffutils, grep, tar, gzip.
54530
54531 2007-04-04  Simon Josefsson  <simon@josefsson.org>
54532
54533         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
54534
54535 2007-04-04  Karl Berry  <karl@gnu.org>
54536
54537         * MODULES.html.sh (func_module): missing '.
54538
54539 2007-04-03  Bruno Haible  <bruno@clisp.org>
54540
54541         * modules/argmatch-tests (Makefile.am): New variable
54542         test_argmatch_LDADD.
54543         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
54544         * modules/array-list-tests (Makefile.am): New variable
54545         test_array_list_LDADD.
54546         * modules/array-oset-tests (Makefile.am): New variable
54547         test_array_oset_LDADD.
54548         * modules/avltree-list-tests (Makefile.am): New variable
54549         test_avltree_list_LDADD.
54550         * modules/avltree-oset-tests (Makefile.am): New variable
54551         test_avltree_oset_LDADD.
54552         * modules/avltreehash-list-tests (Makefile.am): New variable
54553         test_avltreehash_list_LDADD.
54554         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
54555         test_canonicalize_lgpl_LDADD.
54556         * modules/carray-list-tests (Makefile.am): New variable
54557         test_carray_list_LDADD.
54558         * modules/dirname-tests (Makefile.am): New variable
54559         test_dirname_LDADD.
54560         * modules/linked-list-tests (Makefile.am): New variable
54561         test_linked_list_LDADD.
54562         * modules/linkedhash-list-tests (Makefile.am): New variable
54563         test_linkedhash_list_LDADD.
54564         * modules/rbtree-list-tests (Makefile.am): New variable
54565         test_rbtree_list_LDADD.
54566         * modules/rbtree-oset-tests (Makefile.am): New variable
54567         test_rbtree_oset_LDADD.
54568         * modules/rbtreehash-list-tests (Makefile.am): New variable
54569         test_rbtreehash_list_LDADD.
54570         * modules/xvasprintf-tests (Makefile.am): New variable
54571         test_xvasprintf_LDADD.
54572         Reported by Eric Blake.
54573
54574 2007-04-03  Eric Blake  <ebb9@byu.net>
54575
54576         * DEPENDENCIES: Weaken m4 requirements.
54577
54578 2007-04-03  Bruno Haible  <bruno@clisp.org>
54579
54580         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
54581         * modules/isnanl-tests (configure.ac): Likewise.
54582
54583 2007-04-03  Ben Pfaff  <blp@gnu.org>
54584
54585         * modules/iconv_open: Add $(srcdir)/ to source directory
54586         references in Makefile fragments that call gperf, to fix VPATH
54587         builds.
54588
54589 2007-04-03  Bruno Haible  <bruno@clisp.org>
54590
54591         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
54592         * lib/ldexpl.c: Undo last change.
54593
54594 2007-04-03  Bruno Haible  <bruno@clisp.org>
54595
54596         * modules/printf-frexpl (Depends-on): Undo last change.
54597         (Files): Add m4/ldexpl.m4.
54598
54599 2007-04-03  Bruno Haible  <bruno@clisp.org>
54600
54601         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
54602         * modules/isnanl (Link): New section.
54603
54604         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
54605         * modules/frexp (Link): New section.
54606
54607         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
54608         * modules/frexpl (Link): New section.
54609
54610         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
54611         * modules/ldexpl (Link): New section.
54612
54613 2007-04-03  Bruno Haible  <bruno@clisp.org>
54614
54615         * modules/TEMPLATE-EXTENDED: New file.
54616         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
54617
54618 2007-04-03  Bruno Haible  <bruno@clisp.org>
54619
54620         * DEPENDENCIES: New file.
54621         Suggested by Simon Josefsson.
54622
54623 2007-04-03  Bruno Haible  <bruno@clisp.org>
54624
54625         * doc/gnulib.texi: Escape @.
54626
54627 2007-04-03  James Youngman  <jay@gnu.org>
54628         and Paul Eggert  <eggert@cs.ucla.edu>
54629
54630         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
54631         birthtime on all systems that have birthtime, not just those which
54632         use st_birthtimensec rather than st_birthtim.  Putting zero in
54633         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
54634         that the birth time is not available for files on an NFS mount.
54635
54636 2007-04-03  Simon Josefsson  <simon@josefsson.org>
54637
54638         * modules/memxor: Move back from crypto/, suggested by Bruno.
54639         * modules/crypto/hmac-sha1: Fix memxor dependency.
54640
54641         * modules/crypto/gc: Moved from ../.
54642
54643 2007-04-02  Eric Blake  <ebb9@byu.net>
54644
54645         * lib/ldexpl.c (includes): Avoid libm.
54646
54647         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
54648
54649 2007-04-02  Bruno Haible  <bruno@clisp.org>
54650
54651         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
54652         on IRIX.
54653
54654 2007-04-02  Bruno Haible  <bruno@clisp.org>
54655
54656         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
54657         x86 or x86_64 platforms running MacOS X.
54658         Reported by Ryan Schmidt <@ryandesign.com>.
54659
54660 2007-04-02  Bruno Haible  <bruno@clisp.org>
54661
54662         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
54663         i386.
54664
54665 2007-04-01  Simon Josefsson  <simon@josefsson.org>
54666
54667         * modules/crypto/arcfour: Moved from ../.
54668         * modules/crypto/arcfour-tests: Moved from ../.
54669         * modules/crypto/arctwo: Moved from ../.
54670         * modules/crypto/arctwo-tests: Moved from ../.
54671         * modules/crypto/des: Moved from ../.
54672         * modules/crypto/des-tests: Moved from ../.
54673         * modules/crypto/gc-arcfour: Moved from ../.
54674         * modules/crypto/gc-arcfour-tests: Moved from ../.
54675         * modules/crypto/gc-arctwo: Moved from ../.
54676         * modules/crypto/gc-arctwo-tests: Moved from ../.
54677         * modules/crypto/gc-des: Moved from ../.
54678         * modules/crypto/gc-des-tests: Moved from ../.
54679         * modules/crypto/gc-hmac-md5: Moved from ../.
54680         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
54681         * modules/crypto/gc-hmac-sha1: Moved from ../.
54682         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
54683         * modules/crypto/gc-md2: Moved from ../.
54684         * modules/crypto/gc-md2-tests: Moved from ../.
54685         * modules/crypto/gc-md4: Moved from ../.
54686         * modules/crypto/gc-md4-tests: Moved from ../.
54687         * modules/crypto/gc-md5: Moved from ../.
54688         * modules/crypto/gc-md5-tests: Moved from ../.
54689         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
54690         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
54691         * modules/crypto/gc-random: Moved from ../.
54692         * modules/crypto/gc-rijndael: Moved from ../.
54693         * modules/crypto/gc-rijndael-tests: Moved from ../.
54694         * modules/crypto/gc-sha1: Moved from ../.
54695         * modules/crypto/gc-sha1-tests: Moved from ../.
54696         * modules/crypto/gc-tests: Moved from ../.
54697         * modules/crypto/hmac-md5: Moved from ../.
54698         * modules/crypto/hmac-md5-tests: Moved from ../.
54699         * modules/crypto/hmac-sha1: Moved from ../.
54700         * modules/crypto/hmac-sha1-tests: Moved from ../.
54701         * modules/crypto/md2: Moved from ../.
54702         * modules/crypto/md2-tests: Moved from ../.
54703         * modules/crypto/md4: Moved from ../.
54704         * modules/crypto/md4-tests: Moved from ../.
54705         * modules/crypto/md5: Moved from ../.
54706         * modules/crypto/md5-tests: Moved from ../.
54707         * modules/crypto/memxor: Moved from ../.
54708         * modules/crypto/rijndael: Moved from ../.
54709         * modules/crypto/rijndael-tests: Moved from ../.
54710         * modules/crypto/sha1: Moved from ../.
54711
54712 2007-03-30  James Youngman  <jay@gnu.org>
54713
54714         * tests/test-stat-time.c (prepare_test): use chmod() rather than
54715         rename() to change the ctime of a file (because ctime is unaffected
54716         by rename on jfs2 on AIX 5.1).
54717         (main): Start by doing cleanup, in case a previous run failed leaving
54718         test files behind.
54719
54720 2007-03-31  Bruno Haible  <bruno@clisp.org>
54721
54722         Support old proprietary implementations of iconv.
54723         * modules/iconv_open: New file.
54724         * lib/iconv_.h: New file.
54725         * m4/iconv_h.m4: New file.
54726         * lib/iconv_open.c: New file.
54727         * lib/iconv_open-aix.gperf: New file.
54728         * lib/iconv_open-hpux.gperf: New file.
54729         * lib/iconv_open-irix.gperf: New file.
54730         * lib/iconv_open-osf.gperf: New file.
54731         * m4/iconv_open.m4: New file.
54732         * modules/linebreak (Depends-on): Add iconv_open.
54733         * modules/striconv (Depends-on): Likewise.
54734         * modules/striconveh (Depends-on): Likewise.
54735         * modules/unicodeio (Depends-on): Likewise.
54736         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
54737         (iconv_t)(-1).
54738         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
54739         conversion if cd is (iconv_t)(-1).
54740         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
54741         is not possible.
54742
54743 2007-03-31  Bruno Haible  <bruno@clisp.org>
54744
54745         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
54746         work on Solaris either. Protect also second use of "autodetect_jp".
54747
54748 2007-03-31  Bruno Haible  <bruno@clisp.org>
54749
54750         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
54751         the function is not present.
54752
54753 2007-03-31  Bruno Haible  <bruno@clisp.org>
54754
54755         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
54756         the function is not present.
54757
54758 2007-03-31  Bruno Haible  <bruno@clisp.org>
54759
54760         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
54761         a bug in HP-UX iconv_open().
54762
54763 2007-03-31  Bruno Haible  <bruno@clisp.org>
54764
54765         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
54766         (Mathematics <math.h>): New section, add fpieee.
54767         (Input/output <stdio.h>): Add fseterr.
54768         (Mathematics <math.h>): New section, add printf-frexp.
54769         (Container data structures): Add sublist.
54770         (Core language properties): Add fpucw, inline.
54771         (Functions for greatest-width integer types <inttypes.h>): Add
54772         imaxabs, imaxdiv, inttypes.
54773         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
54774         isnanl-nolibm, ldexp.
54775         (Mathematics <math.h>): New section, add printf-frexpl.
54776         (Support for systems lacking POSIX:2001): Add fprintf-posix,
54777         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
54778         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
54779         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
54780         (Unicode string functions): Add unistr/u*-mbtoucr.
54781         (Java): Add javacomp-script, javaexec-script.
54782         (C#): Add csharpcomp-script, csharpexec-script.
54783         (Support for building libraries and executables): Add havelib,
54784         relocatable-*.
54785         (Support for maintaining and releasing projects): Renamed from
54786         'Support for maintaining and release projects'. Add announce-gen.
54787
54788 2007-03-31  Bruno Haible  <bruno@clisp.org>
54789
54790         * README: Talk primarily about git.
54791         (git and CVS): Renamed from CVS.
54792         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
54793         gnulib is available through git.
54794         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
54795
54796 2007-03-30  Bruno Haible  <bruno@clisp.org>
54797
54798         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
54799         * lib/poll_.h: Likewise.
54800         * lib/stat_.h: Likewise.
54801         * lib/sys_time_.h: Likewise.
54802         * lib/sysexit_.h: Likewise.
54803         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
54804         * lib/stdbool_.h: Likewise.
54805         * lib/byteswap_.h: Add double-inclusion guard.
54806
54807 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
54808
54809         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
54810
54811 2007-03-30  Karl Berry  <karl@gnu.org>
54812
54813         * config/srclist-update: double space after USA in the license
54814         substitution, since that's how it's usually (?) written.
54815
54816 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
54817
54818         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
54819         reported by Bruno Haible.
54820
54821 2007-03-29  Bruno Haible  <bruno@clisp.org>
54822
54823         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
54824         a bug in AIX iconv().
54825
54826 2007-03-29  Bruno Haible  <bruno@clisp.org>
54827
54828         * modules/ldexpl-tests: New file.
54829         * tests/test-ldexpl.c: New file.
54830
54831 2007-03-29  Bruno Haible  <bruno@clisp.org>
54832
54833         * lib/ldexpl.c: Include fpucw.h.
54834         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
54835         multiplication.
54836         * modules/ldexpl (Depends-on): Add fpucw.
54837
54838 2007-03-29  Bruno Haible  <bruno@clisp.org>
54839
54840         * modules/ldexpl: New file.
54841         * m4/ldexpl.m4: New file.
54842         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
54843         set.
54844         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
54845         REPLACE_LDEXPL.
54846         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
54847         REPLACE_LDEXPL.
54848         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
54849         gl_FUNC_LDEXPL_WORKS.
54850         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
54851         * modules/mathl (Files): Remove lib/ldexpl.c.
54852         (Depends-on): Add ldexpl.
54853
54854 2007-03-29  Bruno Haible  <bruno@clisp.org>
54855
54856         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
54857
54858 2007-03-29  Bruno Haible  <bruno@clisp.org>
54859
54860         * tests/test-striconveh.c (main): Don't assume that a direct conversion
54861         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
54862         and possibly also HP-UX.
54863         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
54864         work on AIX, IRIX, HP-UX, OSF/1.
54865         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
54866         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
54867         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
54868         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
54869         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
54870         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
54871
54872 2007-03-29  Bruno Haible  <bruno@clisp.org>
54873
54874         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
54875
54876 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
54877
54878         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
54879         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
54880
54881 2007-03-29  Eric Blake  <ebb9@byu.net>
54882
54883         * lib/acl-internal.h: Remove redundant include.
54884         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
54885         Cygwin when a file is locked.
54886
54887 2007-03-29  Bruno Haible  <bruno@clisp.org>
54888
54889         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
54890         file.
54891         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
54892
54893 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
54894
54895         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
54896         try to remove a parent directory if the child couldn't be removed
54897         (except for the first rmdir, which could fail because the child
54898         doesn't exist).  Problem reported by Jeff Blaine in
54899         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
54900
54901 2007-03-28  Bruno Haible  <bruno@clisp.org>
54902
54903         * lib/striconveh.c (utf8conv_carefully): New function.
54904         (mem_cd_iconveh_internal): Invoke it.
54905
54906 2007-03-28  Bruno Haible  <bruno@clisp.org>
54907
54908         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
54909         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
54910         input.
54911         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
54912         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
54913         unistr/u8-uctomb.
54914
54915 2007-03-28  Bruno Haible  <bruno@clisp.org>
54916
54917         * modules/unistr/u8-mbtoucr: New file.
54918         * lib/unistr/u8-mbtoucr.c: New file.
54919         * modules/unistr/u16-mbtoucr: New file.
54920         * lib/unistr/u16-mbtoucr.c: New file.
54921         * modules/unistr/u16-mbtoucr: New file.
54922         * lib/unistr/u16-mbtoucr.c: New file.
54923         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
54924
54925 2007-03-27  Simon Josefsson  <simon@josefsson.org>
54926             Bruno Haible  <bruno@clisp.org>
54927
54928         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
54929         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
54930         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
54931
54932         * m4/stdio_h.m4: Add stubs for vasprintf too.
54933
54934         * modules/stdio: Support vasprintf in sed command.
54935
54936         * modules/vasprintf: Depend on stdio for prototypes.  Remove
54937         vasprintf.h.  Add stdio module indicator.
54938
54939         * lib/stdio_.h: Declare asprintf and vasprintf, based on
54940         vasprintf.h.
54941
54942         * lib/vasprintf.h: File removed.
54943
54944         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
54945         * lib/vasprintf.c: Ditto.
54946         * lib/xvasprintf.c: Ditto.
54947         * tests/test-vasprintf-posix.c: Ditto.
54948         * tests/test-vasprintf.c: Ditto.
54949
54950 2007-03-27  Bruno Haible  <bruno@clisp.org>
54951
54952         Make vasnprintf multithread-safe.
54953         * lib/vasnprintf.c (decimal_point_char): New function.
54954         (VASNPRINTF): Use it.
54955         Suggested by Simon Josefsson.
54956
54957 2007-03-27  Eric Blake  <ebb9@byu.net>
54958
54959         Support sub-second birthtime on cygwin.
54960         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
54961         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
54962         (get_stat_birthtime): Also work with st_birthtim.
54963
54964 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
54965
54966         * lib/stat-time.h (USE_BIRTHTIME): Remove.
54967         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
54968         (get_stat_birthtime_ns): Do not try to use "spare" fields.
54969         (get_stat_birthtime_ns): Simplify compile-time tests.
54970         (get_stat_birthtime): Change the API to look like
54971         get_stat_mtime etc., except return a negative tv_nsec on error.
54972         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
54973         Don't check for "spare" fields.
54974         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
54975         or for struct stat.st_birthtime, as these tests aren't used.
54976         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
54977
54978 2007-03-27  Bruno Haible  <bruno@clisp.org>
54979
54980         * lib/stat-time.h: Include <sys/stat.h>.
54981
54982 2007-03-27  James Youngman  <jay@gnu.org>
54983
54984         * lib/stat-time.h (get_stat_birthtime): New function for
54985           retrieving st_birthtime as provided by UFS2 (hence *BSD).
54986         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
54987           and its variants.
54988         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
54989         * modules/stat-time-test: New file.
54990         * tests/test-stat-time.c: New test, devised by Bruno Haible.
54991
54992 2007-03-26  Bruno Haible  <bruno@clisp.org>
54993
54994         Better support of signalling NaNs.
54995         * lib/atanl.c: Include isnanl.h.
54996         (atanl): Perform test for NaN at the beginning of the function and
54997         through a call to isnanl.
54998         * lib/cosl.c: Include isnanl.h.
54999         (cosl): Perform test for NaN at the beginning of the function and
55000         through a call to isnanl.
55001         * lib/ldexpl.c: Include isnanl.h.
55002         (ldexpl): Perform test for NaN through a call to isnanl.
55003         * lib/logl.c: Include isnanl.h.
55004         (logl): Perform test for NaN at the beginning of the function and
55005         through a call to isnanl.
55006         * lib/sinl.c: Include isnanl.h.
55007         (sinl): Perform test for NaN at the beginning of the function and
55008         through a call to isnanl.
55009         * lib/sqrtl.c: Include isnanl.h.
55010         (sqrtl): Perform test for NaN at the beginning of the function and
55011         through a call to isnanl.
55012         * lib/tanl.c: Include isnanl.h.
55013         (tanl): Perform test for NaN at the beginning of the function and
55014         through a call to isnanl.
55015         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
55016         * modules/mathl (Depends-on): Add isnanl.
55017
55018 2007-03-26  Eric Blake  <ebb9@byu.net>
55019
55020         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
55021         regression in logic sense of previous patch.
55022
55023 2007-03-26  Bruno Haible  <bruno@clisp.org>
55024
55025         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
55026         unportable shell command "if ! ...".
55027         Reported by Ralf Wildenhues.
55028
55029 2007-03-25  Bruno Haible  <bruno@clisp.org>
55030
55031         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
55032         <sysexits.h> file, and only add EX_CONFIG.
55033         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
55034         absolute file name and whether it is sufficient. Substitute also
55035         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
55036         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
55037         ABSOLUTE_SYSEXITS_H into sysexits.h.
55038
55039 2007-03-25  Bruno Haible  <bruno@clisp.org>
55040
55041         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
55042         hints is NULL.
55043
55044 2007-03-25  Bruno Haible  <bruno@clisp.org>
55045
55046         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
55047         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
55048
55049 2007-03-25  Bruno Haible  <bruno@clisp.org>
55050
55051         * lib/vasnprintf.c: Include langinfo.h.
55052         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
55053         multithread-safe.
55054         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
55055         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
55056         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55057         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55058         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55059         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55060         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55061         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
55062         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55063         Reported by Simon Josefsson.
55064
55065 2007-03-25  Bruno Haible  <bruno@clisp.org>
55066
55067         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
55068         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
55069         * modules/vasnprintf (Depends-on): Add stdint.
55070
55071 2007-03-25  Bruno Haible  <bruno@clisp.org>
55072
55073         * modules/fpieee: New file.
55074         * m4/fpieee.m4: New file.
55075         * modules/isnan-nolibm (Depends-on): Add fpieee.
55076         * modules/isnanl-nolibm (Depends-on): Add fpieee.
55077         * modules/isnanl (Depends-on): Add fpieee.
55078
55079 2007-03-25  Bruno Haible  <bruno@clisp.org>
55080
55081         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
55082
55083 2007-03-25  Bruno Haible  <bruno@clisp.org>
55084
55085         Avoid test failures on IRIX 6.5.
55086         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
55087         (main): Use it.
55088         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
55089         macros.
55090         (main): Use them.
55091
55092 2007-03-25  Bruno Haible  <bruno@clisp.org>
55093
55094         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
55095         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
55096         exists but doesn't work.
55097         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
55098         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
55099         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
55100         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
55101         math.h.
55102
55103 2007-03-25  Bruno Haible  <bruno@clisp.org>
55104
55105         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
55106         returns inf. Needed on IRIX 6.5.
55107
55108 2007-03-25  Bruno Haible  <bruno@clisp.org>
55109
55110         * tests/test-frexpl.c: Include isnanl-nolibm.h.
55111         (main): Use isnanl instead of x != x idiom.
55112         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
55113
55114         * tests/test-frexp.c: Include isnan.h.
55115         (main): Use isnan instead of x != x idiom.
55116         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
55117
55118 2007-03-25  Bruno Haible  <bruno@clisp.org>
55119
55120         * tests/test-frexp.c (NaN): New function/macro.
55121         (main): Use it instead of 0.0 / 0.0.
55122         * tests/test-isnan.c (NaN): New function/macro.
55123         (main): Use it instead of 0.0 / 0.0.
55124         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
55125         (test_function): Use it instead of 0.0 / 0.0.
55126         * tests/test-vasprintf-posix.c (NaN): New function/macro.
55127         (test_function): Use it instead of 0.0 / 0.0.
55128         * tests/test-snprintf-posix.h (NaN): New function/macro.
55129         (test_function): Use it instead of 0.0 / 0.0.
55130         * tests/test-sprintf-posix.h (NaN): New function/macro.
55131         (test_function): Use it instead of 0.0 / 0.0.
55132         * tests/test-fprintf-posix.h (NaN): New function/macro.
55133         (test_function): Use it instead of 0.0 / 0.0.
55134         * tests/test-printf-posix.h (NaN): New function/macro.
55135         (test_function): Use it instead of 0.0 / 0.0.
55136
55137         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
55138
55139 2007-03-25  Bruno Haible  <bruno@clisp.org>
55140
55141         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
55142
55143 2007-03-25  Bruno Haible  <bruno@clisp.org>
55144
55145         * lib/regexec.c (merge_state_with_log): Make static.
55146
55147 2007-03-25  Bruno Haible  <bruno@clisp.org>
55148
55149         * lib/trigl.c (kernel_rem_pio2): Make static.
55150
55151 2007-03-25  Bruno Haible  <bruno@clisp.org>
55152
55153         * lib/sincosl.c (sincosl_table): Make static.
55154
55155 2007-03-25  Bruno Haible  <bruno@clisp.org>
55156
55157         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
55158         if the compiler does not support C99.
55159
55160 2007-03-25  Bruno Haible  <bruno@clisp.org>
55161
55162         * modules/time (Makefile.am): Ensure all rule action lines start with a
55163         tab.
55164
55165 2007-03-24  Bruno Haible  <bruno@clisp.org>
55166
55167         * modules/tsearch-tests: New file.
55168         * tests/test-tsearch.sh: New file.
55169         * tests/test-tsearch.c: New file, mostly copied from glibc.
55170
55171         * modules/search-tests: New file.
55172         * tests/test-search.c: New file.
55173
55174         * modules/search: New file.
55175         * lib/search_.h: New file, incorporating lib/tsearch.h.
55176         * m4/search_h.m4: New file.
55177         * lib/tsearch.h: Remove file.
55178         * lib/tsearch.c: Include search.h instead of tsearch.h.
55179         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
55180         HAVE_TSEARCH.
55181         * modules/tsearch (Files): Remove lib/tsearch.h.
55182         (Depends-on): Add search.
55183         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
55184         (Include): Change tsearch.h into search.h.
55185
55186 2007-03-24  Bruno Haible  <bruno@clisp.org>
55187
55188         * modules/fpucw: New file.
55189         * lib/fpucw.h: New file.
55190         * lib/frexp.c: Include fpucw.h.
55191         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55192         (FUNC): Use them.
55193         * lib/printf-frexp.c: Include fpucw.h.
55194         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55195         (FUNC): Use them.
55196         * lib/vasnprintf.c: Include fpucw.h.
55197         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
55198         'long double' calculations.
55199         * tests/test-frexpl.c: Include fpucw.h.
55200         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55201         * tests/test-printf-frexpl.c: Include fpucw.h.
55202         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55203         * modules/frexpl (Depends-on): Add fpucw.
55204         * modules/printf-frexpl (Depends-on): Likewise.
55205         * modules/fprintf-posix (Depends-on): Likewise.
55206         * modules/snprintf-posix (Depends-on): Likewise.
55207         * modules/sprintf-posix (Depends-on): Likewise.
55208         * modules/vasnprintf-posix (Depends-on): Likewise.
55209         * modules/vasprintf-posix (Depends-on): Likewise.
55210         * modules/vfprintf-posix (Depends-on): Likewise.
55211         * modules/vsnprintf-posix (Depends-on): Likewise.
55212         * modules/vsprintf-posix (Depends-on): Likewise.
55213         * modules/frexpl-tests (Depends-on): Likewise.
55214         * modules/printf-frexpl-tests (Depends-on): Likewise.
55215
55216 2007-03-24  Bruno Haible  <bruno@clisp.org>
55217
55218         * lib/float+.h: New file.
55219         * lib/isnan.c: Include float+.h.
55220         (SIZE): New macro.
55221         (FUNC): Compare only SIZE bytes of the value.
55222         * lib/vasnprintf.c: Include float+.h.
55223         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
55224         SIZEOF_LDBL or SIZEOF_DBL bytes.
55225         * modules/isnan-nolibm (Files): Add lib/float+.h.
55226         * modules/isnanl-nolibm (Files): Add lib/float+.h.
55227         * modules/isnanl (Files): Add lib/float+.h.
55228         * modules/vasnprintf (Files): Add lib/float+.h.
55229
55230 2007-03-24  Bruno Haible  <bruno@clisp.org>
55231
55232         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
55233         include isnanl-nolibm.h.
55234
55235 2007-03-24  Bruno Haible  <bruno@clisp.org>
55236
55237         * tests/test-read-file.c (main): Don't produce spurious output for
55238         expected situations. Make the test fail if it encountered unexpected
55239         results.
55240
55241 2007-03-24  Bruno Haible  <bruno@clisp.org>
55242
55243         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
55244         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
55245
55246 2007-03-24  Bruno Haible  <bruno@clisp.org>
55247
55248         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
55249
55250 2007-03-24  Bruno Haible  <bruno@clisp.org>
55251
55252         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
55253         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
55254
55255         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
55256         * modules/utf8-ucs4: Turn into a symbolic link to module
55257         unistr/u8-mbtouc.
55258
55259         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
55260         utf8-ucs4-unsafe.
55261         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
55262         unistr/u8-mbtouc-unsafe.
55263
55264         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
55265         * modules/utf16-ucs4: Turn into a symbolic link to module
55266         unistr/u16-mbtouc.
55267
55268         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
55269         utf16-ucs4-unsafe.
55270         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
55271         unistr/u16-mbtouc-unsafe.
55272
55273         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
55274         * modules/ucs4-utf8: Turn into a symbolic link to module
55275         unistr/u8-ubtomb.
55276
55277         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
55278         * modules/ucs4-utf16: Turn into a symbolic link to module
55279         unistr/u16-ubtomb.
55280
55281 2007-03-24  Bruno Haible  <bruno@clisp.org>
55282
55283         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
55284         Enable the function only if HAVE_INLINE.
55285         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
55286         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55287         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
55288         Enable the function only if HAVE_INLINE.
55289         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
55290         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55291         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
55292         Enable the function only if HAVE_INLINE.
55293         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
55294         Enable the function only if HAVE_INLINE.
55295         * modules/utf8-ucs4: Update.
55296         * modules/utf8-ucs4-unsafe: Update.
55297         * modules/utf16-ucs4: Update.
55298         * modules/utf16-ucs4-unsafe: Update.
55299         * modules/ucs4-utf8: Update.
55300         * modules/ucs4-utf16: Update.
55301
55302 2007-03-24  Bruno Haible  <bruno@clisp.org>
55303
55304         * lib/utf8-ucs4.h: Remove file.
55305         * lib/utf8-ucs4-unsafe.h: Remove file.
55306         * lib/utf16-ucs4.h: Remove file.
55307         * lib/utf16-ucs4-unsafe.h: Remove file.
55308         * lib/ucs4-utf8.h: Remove file.
55309         * lib/ucs4-utf16.h: Remove file.
55310         * lib/unistr.h: Include their previous contents.
55311         * m4/utf-ucs4.m4: Remove file.
55312         * m4/ucs4-utf.m4: Remove file.
55313         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
55314         (Depends-on): Add unistr/base.
55315         (configure.ac): Remove gl_UTF_UCS4.
55316         (Makefile.am): Update.
55317         (Include): Change to unistr.h.
55318         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
55319         (Depends-on): Add unistr/base.
55320         (configure.ac): Remove gl_UTF_UCS4.
55321         (Makefile.am): Update.
55322         (Include): Change to unistr.h.
55323         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
55324         (Depends-on): Add unistr/base.
55325         (configure.ac): Remove gl_UTF_UCS4.
55326         (Makefile.am): Update.
55327         (Include): Change to unistr.h.
55328         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
55329         (Depends-on): Add unistr/base.
55330         (configure.ac): Remove gl_UTF_UCS4.
55331         (Makefile.am): Update.
55332         (Include): Change to unistr.h.
55333         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
55334         (Depends-on): Add unistr/base.
55335         (configure.ac): Remove gl_UCS4_UTF.
55336         (Makefile.am): Update.
55337         (Include): Change to unistr.h.
55338         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
55339         (Depends-on): Add unistr/base.
55340         (configure.ac): Remove gl_UCS4_UTF.
55341         (Makefile.am): Update.
55342         (Include): Change to unistr.h.
55343         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
55344         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
55345         utf8-ucs4-unsafe.h.
55346         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
55347         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
55348         utf16-ucs4-unsafe.h.
55349         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
55350         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
55351         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
55352         * lib/unistr/u8-strchr.c: Likewise.
55353         * lib/unistr/u8-strrchr.c: Likewise.
55354         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
55355         * lib/unistr/u16-strchr.c: Likewise.
55356         * lib/unistr/u16-strrchr.c: Likewise.
55357         * lib/striconveh.c: Update.
55358         * lib/linebreak.c: Update.
55359
55360 2007-03-24  Bruno Haible  <bruno@clisp.org>
55361
55362         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
55363         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
55364
55365 2007-03-22  Bruno Haible  <bruno@clisp.org>
55366
55367         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
55368
55369 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
55370
55371         * MODULES.html.sh (File system functions): New module write-any-file.
55372         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
55373         * m4/write-any-file.m4: New files.
55374
55375 2007-03-23  Eric Blake  <ebb9@byu.net>
55376
55377         * gnulib-tool: Rearrange space-tab sequences, since some editors
55378         like to eat them.
55379
55380 2007-03-23  Eric Blake  <ebb9@byu.net>
55381
55382         * lib/version-etc.c (version_etc_va): Update license wording to
55383         be more concise.  Recommended by Richard Stallman.
55384
55385 2007-03-22  Bruno Haible  <bruno@clisp.org>
55386
55387         * lib/poll.c (MSG_PEEK): New fallback definition.
55388
55389 2007-03-22  Bruno Haible  <bruno@clisp.org>
55390
55391         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
55392         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
55393         (main): Update.
55394         Fixes a compilation error on BeOS.
55395
55396 2007-03-22  Bruno Haible  <bruno@clisp.org>
55397
55398         * modules/frexpl-tests: New file.
55399         * tests/test-frexpl.c: New file.
55400
55401         * modules/frexpl: New file.
55402         * m4/frexpl.m4: New file.
55403         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
55404         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
55405         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
55406         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
55407         (Depends-on): Add frexpl. Remove isnanl-nolibm.
55408         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
55409
55410 2007-03-22  Bruno Haible  <bruno@clisp.org>
55411
55412         * lib/frexpl.c: Share code with lib/frexp.c.
55413         * modules/mathl (Files): Add lib/frexp.c.
55414         (Depends-on): Add isnanl-nolibm.
55415
55416 2007-03-22  Bruno Haible  <bruno@clisp.org>
55417
55418         * modules/printf-frexp (Files): Add m4/frexp.m4.
55419         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
55420         only if the found frexp function actually works.
55421
55422 2007-03-22  Bruno Haible  <bruno@clisp.org>
55423
55424         * lib/frexp.c: Remove older implementation that uses divisions.
55425
55426 2007-03-21  Bruno Haible  <bruno@clisp.org>
55427
55428         * modules/frexp-tests: New file.
55429         * tests/test-frexp.c: New file.
55430
55431         * modules/frexp: New file.
55432         * lib/frexp.c: New file.
55433         * m4/frexp.m4: New file.
55434         * lib/math_.h (frexp): New declaration.
55435         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
55436         REPLACE_FREXP.
55437         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
55438
55439 2007-03-21  Bruno Haible  <bruno@clisp.org>
55440
55441         * modules/isnanl-tests: New file.
55442         * tests/test-isnanl.c: New file.
55443
55444         * modules/isnanl: New file.
55445         * lib/isnanl.h: New file.
55446         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
55447         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
55448         gl_FUNC_ISNANL_WORKS.
55449         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
55450         New macros.
55451
55452 2007-03-21  Bruno Haible  <bruno@clisp.org>
55453
55454         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
55455         lib/isnanl.h.
55456         (Include): Update.
55457         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
55458         * lib/vasnprintf.c: Update.
55459         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
55460         tests/test-isnanl.h, remove tests/test-isnanl.c.
55461         (Makefile.am): Update.
55462         * tests/test-isnanl-nolibm.c: New file.
55463         * tests/test-isnanl.h: New file.
55464         * tests/test-isnanl.c: Remove file.
55465
55466 2007-03-21  Jim Meyering  <jim@meyering.net>
55467
55468         When trying to open ".", treat ESTALE like EACCES.
55469         * lib/savewd.c (savewd_save): Resort to forking not just upon
55470         failure with EACCES, but also when errno is ESTALE.
55471
55472 2007-03-20  Bruno Haible  <bruno@clisp.org>
55473
55474         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
55475         Needed on AIX 5.1. Reported by Matthew Woehlke.
55476
55477 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55478
55479         Suggestions by Bruno Haible:
55480         * lib/acl-internal.h: Include "gettext.h" rather than rolling
55481         our own.
55482         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
55483         * modules/acl (Depends-on): Add gettext.
55484
55485 2007-03-19  Bruno Haible  <bruno@clisp.org>
55486
55487         * modules/iconvme: Remove file.
55488         * lib/iconvme.h: Remove file.
55489         * lib/iconvme.c: Remove file.
55490         * m4/iconvme.m4: Remove file.
55491
55492 2007-03-19  Bruno Haible  <bruno@clisp.org>
55493
55494         * doc/relocatable-maint.texi: Break long shell script line.
55495         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
55496
55497 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55498
55499         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
55500         handle file_has_acl.
55501         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
55502         * lib/acl.c: Move header inclusions and related macro defns into
55503         lib/acl-internal.h.
55504         (S_ISLNK): Remove defn, since that's now done for us.
55505         (file_has_acl): Move to lib/file-has-acl.c.
55506         Call acl_trivial if available.  This is the crucial part of the fix.
55507         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
55508         shared within the library.  Rewrite a bit, partly to make it compatible
55509         with the GNU coding style.
55510         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
55511         Remove unnecessary double-quotes.
55512         Don't test for acl_to_text; the build will catch that.
55513         Replace acl_entries if it doesn't exist and it is needed.
55514         Check for -lsec and acl_trivial (as used on Solaris 10).
55515         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
55516         lib/file-has-acl.c.
55517         (Depends-on): Add sys_stat, for S_ISLNK.
55518
55519 2007-03-19  Ben Pfaff  <blp@gnu.org>
55520
55521         * doc/gnulib.texi: Fix typos.
55522         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
55523
55524 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55525
55526         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
55527         If size is zero here, buf must be zero.
55528
55529 2007-03-19  Simon Josefsson  <simon@josefsson.org>
55530
55531         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
55532         <bruno@clisp.org>.
55533
55534 2007-03-18  Bruno Haible  <bruno@clisp.org>
55535
55536         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
55537         Suggested by Eric Blake.
55538
55539 2007-03-18  Ben Pfaff  <blp@gnu.org>
55540
55541         * doc/relocatable.texi: Recommend using as prefix a directory
55542         that does not exist and will never be created.  Based on
55543         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
55544         and others.
55545
55546 2007-03-17  Bruno Haible  <bruno@clisp.org>
55547
55548         * lib/fchownat.c: Include lchown.h.
55549
55550 2007-03-17  Bruno Haible  <bruno@clisp.org>
55551
55552         Fix endless loop when the given allocated size was > INT_MAX.
55553         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
55554         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
55555         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
55556         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
55557         * lib/sprintf.c (sprintf): Likewise.
55558
55559 2007-03-17  Bruno Haible  <bruno@clisp.org>
55560
55561         * tests/test-argp-2.sh (func_compare): Output a context diff.
55562
55563 2007-03-17  Bruno Haible  <bruno@clisp.org>
55564
55565         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
55566         locale's decimal-point character.
55567
55568 2007-03-17  Bruno Haible  <bruno@clisp.org>
55569
55570         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
55571         before comparing it. Needed because on some platforms (e.g. x86) a
55572         'long double' occupies less bytes than sizeof (long double).
55573
55574 2007-03-17  Bruno Haible  <bruno@clisp.org>
55575
55576         * tests/test-crc.c (main): Make printf statements 64-bit clean.
55577         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
55578         * tests/test-getaddrinfo.c (simple): Likewise.
55579         * tests/test-read-file.c (main): Likewise.
55580
55581 2007-03-17  Bruno Haible  <bruno@clisp.org>
55582
55583         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
55584
55585 2007-03-17  Bruno Haible  <bruno@clisp.org>
55586
55587         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
55588         unused variable.
55589
55590 2007-03-17  Bruno Haible  <bruno@clisp.org>
55591
55592         * tests/test-c-strcasecmp.c: Include c-strcase.h.
55593         * tests/test-c-strncasecmp.c: Likewise.
55594
55595 2007-03-17  Bruno Haible  <bruno@clisp.org>
55596
55597         * modules/stdlib (Depends-on): Add unistd.
55598         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
55599         Needed for MacOS X 10.3.
55600
55601 2007-03-17  Bruno Haible  <bruno@clisp.org>
55602
55603         * lib/unistr/u-strdup.h: Include <stdlib.h>.
55604
55605 2007-03-17  Bruno Haible  <bruno@clisp.org>
55606
55607         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
55608
55609 2007-03-17  Bruno Haible  <bruno@clisp.org>
55610
55611         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
55612         to reflect files copied from gnulib (with or without modifications).
55613         Suggested by Jim Meyering.
55614
55615 2007-03-17  Eric Blake  <ebb9@byu.net>
55616
55617         * NEWS: Document stdlib change from 2007-02-18.
55618
55619 2007-03-17  Jim Meyering  <jim@meyering.net>
55620
55621         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
55622         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
55623         someone uses a name containing shell meta-characters.
55624         Reported by Alfred M. Szmidt.
55625
55626         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
55627
55628 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
55629
55630         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
55631         and copy gettext configuration files only if configure.ac contains
55632         a use of AM_GNU_GETTEXT_VERSION.
55633
55634 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
55635
55636         * build-aux/bootstrap (gnulib_name): New variable.
55637         (gnulib_tool_options): Use it.
55638
55639 2007-03-13  Simon Josefsson  <simon@josefsson.org>
55640
55641         * tests/test-des.c: Use new namespace.
55642
55643 2007-03-15  Bruno Haible  <bruno@clisp.org>
55644
55645         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
55646         Reported by James Youngman <jay@gnu.org>.
55647
55648 2007-03-15  Bruno Haible  <bruno@clisp.org>
55649
55650         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
55651         declared prototype. Needed with cc on OSF/1 5.1.
55652
55653 2007-03-15  Bruno Haible  <bruno@clisp.org>
55654
55655         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
55656         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
55657         (struct gl_list_implementation): Add dispose_fn argument to the
55658         'create_empty', 'create' methods.
55659         (struct gl_list_impl_base): Add field 'dispose_fn'.
55660         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
55661         argument.
55662         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
55663         dispose_fn argument.
55664         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
55665         dispose_fn on the dropped values.
55666         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
55667         dispose_fn argument.
55668         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
55669         dropped values.
55670         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
55671         (gl_tree_remove_node): Call dispose_fn on the dropped value.
55672         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
55673         (gl_tree_remove_node): Call dispose_fn on the dropped value.
55674         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
55675         argument.
55676         (gl_tree_list_free): Call dispose_fn on the dropped values.
55677         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
55678         the dropped values.
55679         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
55680         Add dispose_fn argument.
55681         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
55682         Call dispose_fn on the dropped values.
55683         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
55684         Add dispose_fn argument.
55685         (gl_sublist_create): Initialize the 'dispose_fn' field.
55686         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
55687         * tests/test-array_list.c (main): Update.
55688         * tests/test-carray_list.c (main): Update.
55689         * tests/test-avltree_list.c (main): Update.
55690         * tests/test-rbtree_list.c (main): Update.
55691         * tests/test-avltreehash_list.c (main): Update.
55692         * tests/test-rbtreehash_list.c (main): Update.
55693         * tests/test-linked_list.c (main): Update.
55694         * tests/test-linkedhash_list.c (main): Update.
55695         * tests/test-array_oset.c (main): Update.
55696
55697 2007-03-15  Bruno Haible  <bruno@clisp.org>
55698
55699         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
55700         (gl_oset_create_empty): Add dispose_fn argument.
55701         (struct gl_oset_implementation): Add dispose_fn argument to
55702         'create_empty' method.
55703         (struct gl_oset_impl_base): Add dispose_fn field.
55704         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
55705         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
55706         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
55707         values.
55708         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
55709         (gl_tree_oset_free): Call dispose_fn on the dropped values.
55710         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
55711         dropped value.
55712         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
55713         dropped value.
55714         * tests/test-array_oset.c (main): Update.
55715         * tests/test-avltree_oset.c (main): Update.
55716         * tests/test-rbtree_oset.c (main): Update.
55717         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
55718
55719 2007-03-13  Bruno Haible  <bruno@clisp.org>
55720
55721         * tests/test-stdbool.c (i): Update after last patch.
55722
55723 2007-03-12  Bruno Haible  <bruno@clisp.org>
55724
55725         * lib/quotearg.c: Include <wctype.h> early, before the definition of
55726         the iswprint macro. Needed on Solaris 2.5.1.
55727
55728 2007-03-12  Bruno Haible  <bruno@clisp.org>
55729
55730         * tests/test-printf-frexp.c (main): Declare x as volatile.
55731
55732 2007-03-12  Simon Josefsson  <simon@josefsson.org>
55733
55734         * doc/gnulib.texi (Build robot for gnulib): New section.
55735
55736 2007-03-12  Jim Meyering  <jim@meyering.net>
55737
55738         * build-aux/bootstrap: New file.
55739         * build-aux/bootstrap.conf: New file, from coreutils.
55740
55741 2007-03-11  Bruno Haible  <bruno@clisp.org>
55742
55743         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
55744
55745 2007-03-12  Simon Josefsson  <simon@josefsson.org>
55746
55747         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
55748         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
55749         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
55750
55751 2007-03-11  Bruno Haible  <bruno@clisp.org>
55752
55753         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
55754         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
55755
55756 2007-03-11  Bruno Haible  <bruno@clisp.org>
55757
55758         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
55759         formula. Needed for SunPRO C 5.0.
55760
55761 2007-03-11  Bruno Haible  <bruno@clisp.org>
55762
55763         * modules/long-options (Depends-on): Add getopt.
55764
55765 2007-03-11  Bruno Haible  <bruno@clisp.org>
55766
55767         * modules/modechange (Depends-on): Add stdbool.
55768
55769 2007-03-11  Bruno Haible  <bruno@clisp.org>
55770
55771         * modules/i-ring (Depends-on): Add stdbool.
55772
55773 2007-03-11  Bruno Haible  <bruno@clisp.org>
55774
55775         * modules/gc-des (Depends-on): Add stdbool.
55776
55777 2007-03-11  Bruno Haible  <bruno@clisp.org>
55778
55779         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
55780
55781 2007-03-11  Bruno Haible  <bruno@clisp.org>
55782
55783         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
55784
55785 2007-03-11  Bruno Haible  <bruno@clisp.org>
55786
55787         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
55788
55789 2007-03-11  Bruno Haible  <bruno@clisp.org>
55790
55791         * lib/vasnprintf.c (sprintf): Undefine.
55792
55793 2007-03-11  Bruno Haible  <bruno@clisp.org>
55794
55795         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
55796         initializers in SunPRO C and Compaq C compilers.
55797
55798 2007-03-11  Bruno Haible  <bruno@clisp.org>
55799
55800         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
55801         decrementing code ANSI C compliant.
55802
55803 2007-03-11  Bruno Haible  <bruno@clisp.org>
55804
55805         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
55806         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
55807
55808 2007-03-11  Bruno Haible  <bruno@clisp.org>
55809
55810         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
55811         <stdbool.h> substitute doesn't pass.
55812
55813 2007-03-11  Bruno Haible  <bruno@clisp.org>
55814
55815         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
55816
55817 2007-03-11  Bruno Haible  <bruno@clisp.org>
55818
55819         * gnulib-tool (func_create_megatestdir): Create also an autobuild
55820         script, for submission to autobuild.josefsson.org.
55821
55822 2007-03-10  Bruno Haible  <bruno@clisp.org>
55823
55824         * modules/canonicalize-lgpl-tests: New file.
55825         * tests/test-canonicalize-lgpl.sh: New file.
55826         * tests/test-canonicalize-lgpl.c: New file.
55827
55828         * modules/c-strcase-tests: New file.
55829         * tests/test-c-strcase.sh: New file.
55830         * tests/test-c-strcasecmp.c: New file.
55831         * tests/test-c-strncasecmp.c: New file.
55832
55833         * modules/atexit-tests: New file.
55834         * tests/test-atexit.sh: New file.
55835         * tests/test-atexit.c: New file.
55836
55837 2007-03-10  Bruno Haible  <bruno@clisp.org>
55838
55839         * tests/test-binary-io.sh: Use temporary filenames that are not so
55840         likely to clash with those of other tests (in a parallel make).
55841         * tests/test-binary-io.c: Likewise.
55842
55843 2007-03-10  Bruno Haible  <bruno@clisp.org>
55844
55845         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
55846         fallback; use #error instead.
55847         Suggested by Simon Josefsson.
55848
55849 2007-03-10  Bruno Haible  <bruno@clisp.org>
55850
55851         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
55852         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
55853         first and the last.
55854
55855 2007-03-10  Bruno Haible  <bruno@clisp.org>
55856
55857         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
55858
55859 2007-03-10  Bruno Haible  <bruno@clisp.org>
55860
55861         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
55862         "make distcheck".
55863         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
55864         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
55865         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
55866
55867 2007-03-10  Bruno Haible  <bruno@clisp.org>
55868
55869         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
55870         variable.
55871         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
55872         variable.
55873
55874 2007-03-09  Eric Blake  <ebb9@byu.net>
55875         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
55876
55877         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
55878         types are not being provided by gnulib.
55879         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
55880         types are supported.
55881
55882 2007-03-10  Bruno Haible  <bruno@clisp.org>
55883
55884         * lib/stdio_.h (__attribute__): New macro.
55885         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
55886         vsprintf): Specify __attribute__ __format__ for GCC.
55887         Suggested by Eric Blake.
55888
55889 2007-03-09  Bruno Haible  <bruno@clisp.org>
55890
55891         * modules/printf-posix-tests: New file.
55892         * tests/test-printf-posix.sh: New file.
55893         * tests/test-printf-posix.c: New file.
55894
55895         * modules/printf-posix: New file.
55896         * lib/printf.c: New file.
55897         * m4/printf-posix-rpl.m4: New file.
55898         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
55899         REPLACE_PRINTF.
55900         * lib/stdio_.h (printf): New declaration.
55901         (format, __format__, ____printf____, ____scanf____, ____strftime____,
55902         ____strfmon____): New macros.
55903         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
55904         REPLACE_PRINTF.
55905
55906 2007-03-09  Bruno Haible  <bruno@clisp.org>
55907
55908         * tests/test-vasnprintf-posix2.sh: New file.
55909         * tests/test-vasnprintf-posix2.c: New file.
55910         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
55911         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
55912         (Makefile.am): Activate test-vasnprintf-posix2.sh.
55913
55914         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
55915         a locale dependent decimal point, rather than always '.'.
55916
55917 2007-03-09  Eric Blake  <ebb9@byu.net>
55918
55919         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
55920         spite of platforms like Tandem/NSK that define it to -1.
55921
55922 2007-03-08  Bruno Haible  <bruno@clisp.org>
55923
55924         * modules/vprintf-posix-tests: New file.
55925         * tests/test-vprintf-posix.sh: New file.
55926         * tests/test-vprintf-posix.c: New file.
55927         * tests/test-printf-posix.h: New file.
55928
55929         * modules/vprintf-posix: New file.
55930         * lib/vprintf.c: New file.
55931         * m4/vprintf-posix.m4: New file.
55932         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
55933         REPLACE_VPRINTF.
55934         * lib/stdio_.h (vprintf): New declaration.
55935         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
55936         REPLACE_VPRINTF.
55937
55938 2007-03-08  Bruno Haible  <bruno@clisp.org>
55939
55940         * modules/fprintf-posix-tests: New file.
55941         * tests/test-fprintf-posix.sh: New file.
55942         * tests/test-fprintf-posix.c: New file.
55943
55944         * modules/fprintf-posix: New file.
55945         * lib/fprintf.c: New file.
55946         * m4/fprintf-posix.m4: New file.
55947         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
55948         REPLACE_FPRINTF.
55949         * lib/stdio_.h (fprintf): New declaration.
55950         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
55951         REPLACE_FPRINTF.
55952
55953 2007-03-08  Bruno Haible  <bruno@clisp.org>
55954
55955         * modules/vfprintf-posix-tests: New file.
55956         * tests/test-vfprintf-posix.sh: New file.
55957         * tests/test-vfprintf-posix.c: New file.
55958         * tests/test-fprintf-posix.h: New file.
55959         * tests/test-fprintf-posix.out: New file.
55960
55961         * modules/vfprintf-posix: New file.
55962         * lib/vfprintf.c: New file.
55963         * m4/vfprintf-posix.m4: New file.
55964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
55965         REPLACE_VFPRINTF.
55966         * lib/stdio_.h (vfprintf): New declaration.
55967         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
55968         REPLACE_VFPRINTF.
55969
55970 2007-03-08  Bruno Haible  <bruno@clisp.org>
55971
55972         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
55973
55974 2007-03-08  Bruno Haible  <bruno@clisp.org>
55975
55976         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
55977         instead of 'expr' invocations.
55978         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55979         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55980         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55981         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55982         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55983         Suggested by Paul Eggert.
55984
55985 2007-03-08  Bruno Haible  <bruno@clisp.org>
55986
55987         * modules/fseterr-tests: New file.
55988         * tests/test-fseterr.c: New file.
55989
55990         * modules/fseterr: New file.
55991         * lib/fseterr.h: New file.
55992         * lib/fseterr.c: New file.
55993
55994 2007-03-08  Bruno Haible  <bruno@clisp.org>
55995
55996         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
55997         * lib/getopt_.h: Likewise.
55998         * lib/mbswidth.h: Likewise.
55999         * lib/setenv.h: Likewise.
56000         * lib/vasnprintf.h: Likewise.
56001         * lib/vasprintf.h: Likewise.
56002         * lib/verror.h: Likewise.
56003         * lib/xsetenv.h: Likewise.
56004         * lib/xvasprintf.h: Likewise.
56005
56006 2007-03-08  Jim Meyering  <jim@meyering.net>
56007
56008         * users.txt: Add parted.
56009
56010         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
56011
56012 2007-03-07  Bruno Haible  <bruno@clisp.org>
56013
56014         * m4/printf.m4: Make the shell script snippets copy&pastable.
56015
56016 2007-03-02  Bruno Haible  <bruno@clisp.org>
56017
56018         * lib/netinet_in_.h: New file.
56019         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
56020         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
56021         * modules/netinet_in (Files): Add lib/netinet_in_.h.
56022         (Depends-on): Add absolute-header.
56023         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
56024         into netinet/in.h.
56025
56026 2007-03-03  Bruno Haible  <bruno@clisp.org>
56027
56028         * lib/sys_select_.h: New file.
56029         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
56030         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
56031         * modules/sys_select (Files): Add lib/sys_select_.h.
56032         (Depends-on): Add absolute-header.
56033         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
56034         into sys/select.h.
56035
56036 2007-03-02  Bruno Haible  <bruno@clisp.org>
56037
56038         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
56039         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
56040         values.
56041         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
56042         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
56043         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
56044         * modules/sys_socket (Depends-on): Add absolute-header.
56045         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
56046         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
56047         (Include): Remove requirement of inclusion of <sys/types.h>.
56048
56049 2007-03-02  Bruno Haible  <bruno@clisp.org>
56050
56051         * lib/byteswap_.h (bswap_32): Fix formula.
56052
56053 2007-03-06  Bruno Haible  <bruno@clisp.org>
56054
56055         * modules/sprintf-posix-tests: New file.
56056         * tests/test-sprintf-posix.c: New file.
56057
56058         * modules/sprintf-posix: New file.
56059         * lib/sprintf.c: New file.
56060         * m4/sprintf-posix.m4: New file.
56061         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
56062         REPLACE_SPRINTF.
56063         * lib/stdio_.h (sprintf): New declaration.
56064         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
56065         REPLACE_SPRINTF.
56066
56067 2007-03-06  Bruno Haible  <bruno@clisp.org>
56068
56069         * modules/vsprintf-posix-tests: New file.
56070         * tests/test-vsprintf-posix.c: New file.
56071         * tests/test-sprintf-posix.h: New file.
56072
56073         * modules/vsprintf-posix: New file.
56074         * lib/vsprintf.c: New file.
56075         * m4/vsprintf-posix.m4: New file.
56076         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
56077         REPLACE_VSPRINTF.
56078         * lib/stdio_.h (vsprintf): New declaration.
56079         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
56080         REPLACE_VSPRINTF.
56081
56082 2007-03-06  Bruno Haible  <bruno@clisp.org>
56083
56084         * modules/vsnprintf (Depend-on): Remove minmax.
56085
56086 2007-03-06  Bruno Haible  <bruno@clisp.org>
56087
56088         * modules/snprintf-posix-tests: New file.
56089         * tests/test-snprintf-posix.c: New file.
56090
56091         * modules/snprintf-posix: New file.
56092         * m4/snprintf-posix.m4: New file.
56093         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
56094         gl_FUNC_SNPRINTF.
56095         (gl_FUNC_SNPRINTF): Invoke it.
56096         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
56097         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
56098         is set.
56099         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
56100
56101 2007-03-06  Bruno Haible  <bruno@clisp.org>
56102
56103         * modules/vsnprintf-posix-tests: New file.
56104         * tests/test-vsnprintf-posix.c: New file.
56105         * tests/test-snprintf-posix.h: New file.
56106
56107         * modules/vsnprintf-posix: New file.
56108         * m4/vsnprintf-posix.m4: New file.
56109         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
56110         gl_FUNC_VSNPRINTF.
56111         (gl_FUNC_VSNPRINTF): Invoke it.
56112         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
56113         * lib/stdio_.h (vsnprintf): Define as a replacement if
56114         REPLACE_VSNPRINTF is set.
56115         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
56116
56117 2007-03-06  Bruno Haible  <bruno@clisp.org>
56118
56119         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
56120         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
56121
56122 2007-03-06  Bruno Haible  <bruno@clisp.org>
56123
56124         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
56125         (asinl): Declare also if HAVE_DECL_ASINL is set.
56126         (atanl): Declare also if HAVE_DECL_ATANL is set.
56127         (ceill): Declare also if HAVE_DECL_CEILL is set.
56128         (cosl): Declare also if HAVE_DECL_COSL is set.
56129         (expl): Declare also if HAVE_DECL_EXPL is set.
56130         (floorl): Declare also if HAVE_DECL_FLOORL is set.
56131         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
56132         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
56133         (logl): Declare also if HAVE_DECL_LOGL is set.
56134         (sinl): Declare also if HAVE_DECL_SINL is set.
56135         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
56136         (tanl): Declare also if HAVE_DECL_TANL is set.
56137         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
56138         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
56139         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
56140         declaration of frexpl, ldexpl.
56141         * modules/printf-frexpl (Depends-on): Add math.
56142         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
56143
56144 2007-03-05  Bruno Haible  <bruno@clisp.org>
56145
56146         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
56147         frexpl and ldexpl are declared.
56148         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
56149
56150 2007-03-05  Bruno Haible  <bruno@clisp.org>
56151
56152         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
56153         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
56154
56155 2007-03-05  Bruno Haible  <bruno@clisp.org>
56156
56157         * lib/stdio_.h: Include <stddef.h>.
56158
56159 2007-03-05  Bruno Haible  <bruno@clisp.org>
56160
56161         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
56162
56163 2007-03-05  Bruno Haible  <bruno@clisp.org>
56164
56165         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
56166         NetBSD 4, from Ralf Wildenhues.
56167
56168 2007-03-04  Bruno Haible  <bruno@clisp.org>
56169
56170         * lib/vasprintf.h: Update #if logic for the case when the functions
56171         exist but are overridden.
56172
56173 2007-03-04  Bruno Haible  <bruno@clisp.org>
56174
56175         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
56176         implementations: glibc-2.4 and MacOS X 10.3.
56177         * tests/test-vasnprintf-posix.c (test_function): Test also the case
56178         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
56179         * tests/test-vasprintf-posix.c (test_function): Likewise.
56180
56181 2007-03-04  Bruno Haible  <bruno@clisp.org>
56182
56183         * modules/vasprintf-posix-tests: New file.
56184         * tests/test-vasprintf-posix.c: New file.
56185
56186         * modules/vasprintf-posix: New file.
56187         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
56188         defined.
56189         * m4/vasprintf-posix.m4: New file.
56190         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
56191         gl_FUNC_VASPRINTF.
56192         (gl_FUNC_VASPRINTF): Invoke it.
56193         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
56194         here.
56195         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
56196
56197 2007-03-04  Bruno Haible  <bruno@clisp.org>
56198
56199         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
56200         REPLACE_GETTIMEOFDAY.
56201         * modules/sys_time (Makefile.am): Likewise.
56202         * m4/sys_time_h.m4: Likewise.
56203         * m4/gettimeofday.m4: Likewise.
56204
56205 2007-03-04  Bruno Haible  <bruno@clisp.org>
56206
56207         * modules/vasnprintf-posix-tests: New file.
56208         * tests/test-vasnprintf-posix.c: New file.
56209
56210         * modules/vasnprintf-posix: New file.
56211         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
56212         printf-frexpl.h.
56213         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
56214         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
56215         REPLACE_VASNPRINTF is defined.
56216         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
56217         gl_FUNC_VASNPRINTF.
56218         (gl_FUNC_VASNPRINTF): Invoke it.
56219         * m4/vasnprintf-posix.m4: New file.
56220         * m4/printf.m4: New file.
56221
56222 2007-03-04  Bruno Haible  <bruno@clisp.org>
56223
56224         Compile progreloc.c only if --enable-relocatable is specified.
56225         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
56226         if --enable-relocatable was specified.
56227         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
56228         lib_SOURCES.
56229
56230 2007-03-04  Jim Meyering  <jim@meyering.net>
56231
56232         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
56233         Use it consistently, rather than enumerating errno constants.
56234
56235 2007-03-04  Bruno Haible  <bruno@clisp.org>
56236
56237         * modules/xvasprintf-tests: New file.
56238         * tests/test-xvasprintf.c: New file.
56239
56240         * modules/vasprintf-tests: New file.
56241         * tests/test-vasprintf.c: New file.
56242
56243         * modules/vasnprintf-tests: New file.
56244         * tests/test-vasnprintf.c: New file.
56245
56246         * modules/vsnprintf-tests: New file.
56247         * tests/test-vsnprintf.c: New file.
56248
56249         * modules/snprintf-tests: New file.
56250         * tests/test-snprintf.c: New file.
56251
56252 2007-03-04  Bruno Haible  <bruno@clisp.org>
56253
56254         Compile relocatable.c only if --enable-relocatable is specified.
56255         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
56256         gl_RELOCATABLE_LIBRARY.
56257         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
56258         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
56259         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
56260         gl_RELOCATABLE_LIBRARY.
56261         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
56262         (Makefile.am): Remove lib_SOURCES.
56263         * modules/relocatable-lib-lgpl (configure.ac): Invoke
56264         gl_RELOCATABLE_LIBRARY.
56265         (Makefile.am): Remove lib_SOURCES.
56266         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
56267         always.
56268         * modules/relocatable-prog-wrapper (configure.ac): Invoke
56269         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
56270
56271 2007-03-04  Bruno Haible  <bruno@clisp.org>
56272
56273         * modules/argmatch-tests: New file.
56274         * tests/test-argmatch.c: New file.
56275
56276         * tests/test-allocsa.c (main): Halve the number of loop runs.
56277
56278         * modules/alloca-opt-tests: New file.
56279         * tests/test-alloca-opt.c: New file.
56280
56281 2007-03-04  Jim Meyering  <jim@meyering.net>
56282
56283         Work around difference between Linux ACLs and Solaris 10 ZFS.
56284         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
56285         for EINVAL.
56286
56287 2007-03-03  Bruno Haible  <bruno@clisp.org>
56288
56289         * modules/relocatable-prog (Depends-on): Add back progreloc's
56290         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
56291
56292 2007-03-03  Bruno Haible  <bruno@clisp.org>
56293
56294         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
56295         * modules/relocatable-lib: New file.
56296
56297 2007-03-03  Bruno Haible  <bruno@clisp.org>
56298
56299         * modules/relocatable-prog: Renamed from modules/relocatable.
56300         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
56301
56302 2007-03-03  Bruno Haible  <bruno@clisp.org>
56303
56304         * modules/relocatable-script (Files): Add doc/relocatable.texi,
56305         m4/relocatable-lib.m4.
56306         (Depends-on): Remove 'relocatable'.
56307         (configure.ac): Add gl_RELOCATABLE_NOP.
56308
56309 2007-03-03  Bruno Haible  <bruno@clisp.org>
56310
56311         * modules/relocatable-prog-wrapper: New file.
56312         * modules/relocatable (Depends-on): Add it. Remove all other
56313         dependencies except progname.
56314         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
56315
56316         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
56317         (gl_FUNC_STRERROR): Nop.
56318         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
56319
56320         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
56321         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
56322
56323         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
56324         (gl_FUNC_READLINK): Update.
56325
56326         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
56327
56328 2007-03-03  Bruno Haible  <bruno@clisp.org>
56329
56330         * lib/xreadlink.c: Include <unistd.h> unconditionally.
56331         * modules/xreadlink (Depends-on): Add unistd.
56332         * modules/xreadlink-with-size (Depends-on): Likewise.
56333
56334 2007-03-03  Bruno Haible  <bruno@clisp.org>
56335
56336         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
56337         extracted from gt_FUNC_SETENV.
56338         (gt_FUNC_SETENV): Remove macro.
56339         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
56340         remove gt_FUNC_SETENV.
56341
56342 2007-03-03  Bruno Haible  <bruno@clisp.org>
56343
56344         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
56345         ENABLE_RELOCATABLE here.
56346         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
56347
56348 2007-03-03  Bruno Haible  <bruno@clisp.org>
56349
56350         * modules/rbtreehash-list-tests (Depends-on): Add progname.
56351         * tests/test-rbtreehash_list.c: Include progname.h.
56352         (main): Call set_program_name.
56353
56354         * modules/rbtree-oset-tests (Depends-on): Add progname.
56355         * tests/test-rbtree_oset.c: Include progname.h.
56356         (main): Call set_program_name.
56357
56358         * modules/rbtree-list-tests (Depends-on): Add progname.
56359         * tests/test-rbtree_list.c: Include progname.h.
56360         (main): Call set_program_name.
56361
56362         * modules/linked-list-tests (Depends-on): Add progname.
56363         * tests/test-linked_list.c: Include progname.h.
56364         (main): Call set_program_name.
56365
56366 2007-03-03  Bruno Haible  <bruno@clisp.org>
56367
56368         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
56369         All uses of __restrict changed to _Restrict_.
56370         * lib/glob_.h (__restrict): Remove macro.
56371
56372 2007-03-02  Bruno Haible  <bruno@clisp.org>
56373
56374         * modules/gettext (configure.ac): Require gettext infrastructure
56375         from version 0.16.1.
56376
56377 2007-03-02  Bruno Haible  <bruno@clisp.org>
56378
56379         * modules/linkedhash-list-tests (Depends-on): Add progname.
56380         * tests/test-linkedhash_list.c: Include progname.h.
56381         (main): Call set_program_name.
56382
56383         * modules/carray-list-tests (Depends-on): Add progname.
56384         * tests/test-carray_list.c: Include progname.h.
56385         (main): Call set_program_name.
56386
56387         * modules/avltreehash-list-tests (Depends-on): Add progname.
56388         * tests/test-avltreehash_list.c: Include progname.h.
56389         (main): Call set_program_name.
56390
56391         * modules/avltree-oset-tests (Depends-on): Add progname.
56392         * tests/test-avltree_oset.c: Include progname.h.
56393         (main): Call set_program_name.
56394
56395         * modules/avltree-list-tests (Depends-on): Add progname.
56396         * tests/test-avltree_list.c: Include progname.h.
56397         (main): Call set_program_name.
56398
56399         * modules/array-oset-tests (Depends-on): Add progname.
56400         * tests/test-array_oset.c: Include progname.h.
56401         (main): Call set_program_name.
56402
56403         * modules/array-list-tests (Depends-on): Add progname.
56404         * tests/test-array_list.c: Include progname.h.
56405         (main): Call set_program_name.
56406
56407         * modules/argp-tests (Depends-on): Add progname.
56408         * tests/test-argp.c: Include argp.h first. Include progname.h.
56409         (main): Call set_program_name.
56410
56411 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
56412
56413         * doc/gnulib-tool.texi (Initial import): Reword description of
56414         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
56415         limited effect even if defined after the first system include.
56416
56417 2007-03-01  Bruno Haible  <bruno@clisp.org>
56418
56419         * build-aux/config.libpath: Update to libtool-1.5.22.
56420         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56421
56422 2007-03-01  Bruno Haible  <bruno@clisp.org>
56423
56424         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
56425         foo_CFLAGS.
56426         Reported by Ralf Wildenhues.
56427
56428 2007-03-01  Bruno Haible  <bruno@clisp.org>
56429
56430         * build-aux/install-reloc: Remove object files left over by some
56431         compilers.
56432         Reported by Ralf Wildenhues.
56433
56434 2007-03-01  Bruno Haible  <bruno@clisp.org>
56435
56436         * build-aux/install-reloc: Break long lines.
56437
56438 2007-03-01  Bruno Haible  <bruno@clisp.org>
56439
56440         * doc/relocatable.texi: Document that it may not work on OpenBSD.
56441         Reported by Ralf Wildenhues.
56442
56443 2007-03-01  Bruno Haible  <bruno@clisp.org>
56444
56445         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
56446         include ordering constraints.
56447
56448 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56449
56450         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
56451         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
56452         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
56453         as another example.
56454         * lib/time_.h: Fix misspelling.
56455         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56456         Require gl_HEADER_TIME_H_DEFAULTS.
56457         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
56458         * m4/time_r.m4 (gl_TIME_R): Likewise.
56459         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
56460
56461 2007-03-01  Bruno Haible  <bruno@clisp.org>
56462
56463         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
56464         * m4/utimens.m4 (gl_UTIMENS): Likewise.
56465
56466 2007-03-01  Jim Meyering  <jim@meyering.net>
56467
56468         * modules/xreadlink (Maintainer): Add my name.
56469         * modules/xreadlink-with-size (Depends-on): Alphabetize.
56470
56471 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
56472             Bruno Haible  <bruno@clisp.org>
56473
56474         * build-aux/install-reloc: Compile also c-ctype.c.
56475         * build-aux/relocatable.sh.in: New file.
56476         * doc/relocatable.texi: New file.
56477         * doc/relocatable-maint.texi: New file.
56478         * doc/gnulib.texi: Include relocatable-maint.texi.
56479         * lib/progreloc.c: Include unistd.h unconditionally.
56480         * lib/relocwrapper.c: Include unistd.h unconditionally.
56481         Include c-ctype.h.
56482         (add_dotbin): Use c_tolower.
56483         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
56484         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
56485         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
56486         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
56487         to m4/relocatable-lib.m4.
56488         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
56489         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
56490         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
56491         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
56492         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
56493         * modules/relocatable: New file.
56494         * modules/relocatable-lib: New file.
56495         * modules/relocatable-script: New file.
56496
56497 2007-02-28  Bruno Haible  <bruno@clisp.org>
56498
56499         Import --enable-relocatable infrastructure.
56500         * build-aux/config.libpath: New file, from GNU gettext.
56501         * build-aux/install-reloc: New file, from GNU gettext.
56502         * build-aux/reloc-ldflags: New file, from GNU gettext.
56503         * lib/relocatable.h: New file, from GNU gettext.
56504         * lib/relocatable.c: New file, from GNU gettext.
56505         * lib/relocwrapper.c: New file, from GNU gettext.
56506         * m4/relocatable.m4: New file, from GNU gettext.
56507
56508 2007-02-28  Bruno Haible  <bruno@clisp.org>
56509
56510         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
56511
56512         * modules/xreadlink: New file, from GNU gettext with modifications.
56513         * lib/xreadlink.c: New file, from GNU gettext.
56514         * lib/xreadlink.h: Add comments.
56515         (xreadlink): New declaration.
56516
56517         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
56518         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
56519         lib/xreadlink-with-size.c.
56520         (configure.ac): Remove gl_XREADLINK invocation.
56521         (Makefile.am): Augment lib_SOURCES.
56522         * m4/xreadlink.m4: Remove file.
56523         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
56524         (xreadlink_with_size): Renamed from xreadink.
56525         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
56526         * modules/canonicalize (Depends-on): Replace xreadlink with
56527         xreadlink-with-size.
56528         * lib/canonicalize.c (canonicalize_filename_mode): Update.
56529
56530 2007-02-25  Jim Meyering  <jim@meyering.net>
56531
56532         * build-aux/announce-gen: When complaining about excess arguments,
56533         list them.
56534
56535 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56536
56537         * README: Document signed integer overflow situation more
56538         accurately.
56539
56540 2007-02-25  Bruno Haible  <bruno@clisp.org>
56541
56542         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
56543         'a' or 'A' conversion.
56544
56545 2007-02-25  Bruno Haible  <bruno@clisp.org>
56546
56547         * modules/filename: Renamed from modules/pathname.
56548         (Files): Replace lib/pathname.h with lib/filename.h. Replace
56549         lib/concatpath.c with lib/concat-filename.c.
56550         (Makefile.am): Update.
56551         (Include): Replace pathname.h with filename.h.
56552         * lib/filename.h: Renamed from lib/pathname.h.
56553         (concatenated_filename): Renamed from concatenated_pathname.
56554         * lib/concat-filename.c: Renamed from lib/concatpath.c.
56555         (concatenated_filename): Renamed from concatenated_pathname.
56556         * lib/findprog.c: Include filename.h instead of pathname.h.
56557         (find_in_path): Update.
56558         * lib/javacomp.c: Include filename.h instead of pathname.h.
56559         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56560         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56561         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56562         is_oldgcj_14_13_usable, is_javac_usable): Update.
56563         * lib/javaexec.c: Include filename.h instead of pathname.h.
56564         (execute_java_class): Update.
56565         * modules/findprog: Update.
56566         * modules/javacomp: Update.
56567         * modules/javaexec: Update.
56568         * MODULES.html.sh (File system functions): Add 'filename', remove
56569         'pathname'.
56570
56571 2007-02-25  Bruno Haible  <bruno@clisp.org>
56572
56573         * modules/printf-frexpl-tests: New file.
56574         * tests/test-printf-frexpl.c: New file.
56575
56576         * modules/printf-frexpl: New file.
56577         * lib/printf-frexpl.h: New file.
56578         * lib/printf-frexpl.c: New file.
56579         * m4/printf-frexpl.m4: New file.
56580
56581 2007-02-25  Bruno Haible  <bruno@clisp.org>
56582
56583         * modules/printf-frexp-tests: New file.
56584         * tests/test-printf-frexp.c: New file.
56585
56586         * modules/printf-frexp: New file.
56587         * lib/printf-frexp.h: New file.
56588         * lib/printf-frexp.c: New file.
56589         * m4/printf-frexp.m4: New file.
56590
56591 2007-02-25  Bruno Haible  <bruno@clisp.org>
56592
56593         Assume automake >= 1.10 for the tests.
56594         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
56595         * modules/arctwo-tests: Likewise.
56596         * modules/argp-tests: Likewise.
56597         * modules/avltree-list-tests: Likewise.
56598         * modules/avltree-oset-tests: Likewise.
56599         * modules/avltreehash-list-tests: Likewise.
56600         * modules/carray-list-tests: Likewise.
56601         * modules/crc-tests: Likewise.
56602         * modules/des-tests: Likewise.
56603         * modules/gc-arcfour-tests: Likewise.
56604         * modules/gc-arctwo-tests: Likewise.
56605         * modules/gc-des-tests: Likewise.
56606         * modules/gc-hmac-md5-tests: Likewise.
56607         * modules/gc-hmac-sha1-tests: Likewise.
56608         * modules/gc-md2-tests: Likewise.
56609         * modules/gc-md4-tests: Likewise.
56610         * modules/gc-md5-tests: Likewise.
56611         * modules/gc-pbkdf2-sha1-tests: Likewise.
56612         * modules/gc-rijndael-tests: Likewise.
56613         * modules/gc-sha1-tests: Likewise.
56614         * modules/gc-tests: Likewise.
56615         * modules/getaddrinfo-tests: Likewise.
56616         * modules/hmac-md5-tests: Likewise.
56617         * modules/hmac-sha1-tests: Likewise.
56618         * modules/linked-list-tests: Likewise.
56619         * modules/linkedhash-list-tests: Likewise.
56620         * modules/lock-tests: Likewise.
56621         * modules/md2-tests: Likewise.
56622         * modules/md4-tests: Likewise.
56623         * modules/md5-tests: Likewise.
56624         * modules/rbtree-list-tests: Likewise.
56625         * modules/rbtree-oset-tests: Likewise.
56626         * modules/rbtreehash-list-tests: Likewise.
56627         * modules/read-file-tests: Likewise.
56628         * modules/rijndael-tests: Likewise.
56629         * modules/stdint-tests: Likewise.
56630         * modules/tls-tests: Likewise.
56631
56632 2007-02-24  Bruno Haible  <bruno@clisp.org>
56633
56634         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
56635         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
56636         function; instead check whether isnan with a double argument links.
56637         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
56638         function; instead check whether isnan with a 'long double' argument
56639         links.
56640         Reported by Eric Blake <ebb9@byu.net>.
56641
56642 2007-02-24  Bruno Haible  <bruno@clisp.org>
56643
56644         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
56645         defined.
56646         * lib/isnanl.c: Remove all code. Just include isnan.c.
56647         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
56648
56649 2007-02-25  Jim Meyering  <jim@meyering.net>
56650
56651         Avoid conflicting types for 'unsetenv' on FreeBSD.
56652         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
56653         conflicting with FreeBSD's (5.0 and 6.1) function declaration
56654         in stdlib.h.
56655
56656 2007-02-24  Bruno Haible  <bruno@clisp.org>
56657
56658         * modules/isnanl-nolibm-tests: New file.
56659         * tests/test-isnanl.c: New file.
56660
56661         * modules/isnanl-nolibm: New file.
56662         * lib/isnanl.h: New file.
56663         * lib/isnanl.c: New file.
56664         * m4/isnanl.m4: New file.
56665
56666 2007-02-24  Bruno Haible  <bruno@clisp.org>
56667
56668         * modules/isnan-nolibm-tests: New file.
56669         * tests/test-isnan.c: New file.
56670
56671         * modules/isnan-nolibm: New file.
56672         * lib/isnan.h: New file.
56673         * lib/isnan.c: New file.
56674         * m4/isnan.m4: New file.
56675
56676 2007-02-24  Bruno Haible  <bruno@clisp.org>
56677
56678         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
56679         assume that an exponent fits in 20 bits.
56680
56681 2007-02-24  Jim Meyering  <jim@meyering.net>
56682
56683         * m4/regex.m4: Update the description of the configure-time option,
56684         --without-included-regex, to state accurately what the defaults are,
56685         and perhaps to give people an idea why using this option is risky.
56686
56687 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
56688
56689         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
56690         loops on small arguments.  This attempts to avoid the problem
56691         Bruno Haible reported for AIX 4.3.2 in
56692         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
56693
56694 2007-02-23  Bruno Haible  <bruno@clisp.org>
56695
56696         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
56697         Needed for help2man.
56698
56699 2007-02-23  Karl Berry  <karl@gnu.org>
56700
56701         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
56702         exists, foo.h should be cvs-ignored, not committed.
56703
56704 2007-02-23  Eric Blake  <ebb9@byu.net>
56705
56706         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
56707         * lib/stat-time.h (includes): Likewise.
56708         * lib/utimecmp.c (includes): Likewise.
56709         * lib/utimens.h (includes): Likewise.
56710         * lib/getdate.y (includes): Also include "timespec.h" for use
56711         internal to the module.
56712         * modules/utimens (Depends-on): Revert yesterday's patch.
56713         * modules/nanosleep (Depends-on): Add missing dependency.
56714
56715 2007-02-22  Bruno Haible  <bruno@clisp.org>
56716
56717         * lib/glob.c: Don't include getlogin_r.h.
56718
56719 2007-02-22  Jim Meyering  <jim@meyering.net>
56720
56721         * modules/utimens (Depends-on): Add timespec, required for
56722         utimens.h's inclusion of timespec.h.
56723
56724 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
56725
56726         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
56727         long unreadable paths in GNU/Linux.  Problem reported by Andreas
56728         Schwab in
56729         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
56730         I'll try to think of a better way to fix the Solaris problem.
56731
56732         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
56733         like glibc; on Solaris 10, it fails with errno == EINVAL.
56734         POSIX says the behavior is unspecified if the first argument is NULL,
56735         so play it safe and never pass NULL to the system getcwd.
56736
56737 2007-02-21  Jim Meyering  <jim@meyering.net>
56738
56739         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
56740         of gettimeofday.  It would conflict with the one now always
56741         provided via sys_time_.h.  Reported by Matthew Woehlke, as
56742         an IRIX 6.5 build failure.
56743
56744 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
56745
56746         Minor fixups to port to Solaris 10 with Sun C 5.8.
56747         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
56748         * modules/getcwd (Depends-on): Add dirfd.
56749         * lib/putenv.c (putenv): #undef it.
56750         (rpl_putenv): New decl.
56751         (malloc, free): Include <stdlib.h> rather than prototyping separately.
56752
56753 2007-02-20  Bruno Haible  <bruno@clisp.org>
56754
56755         * modules/stdio-tests: New file.
56756         * tests/test-stdio.c: New file.
56757
56758         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
56759         (Depends-on): Add stdio.
56760         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
56761         (Include): Use <stdio.h> instead of vsnprintf.h.
56762         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
56763         HAVE_DECL_VSNPRINTF.
56764         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
56765
56766         * modules/snprintf (Files): Remove lib/snprintf.h.
56767         (Depends-on): Add stdio.
56768         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
56769         (Include): Use <stdio.h> instead of snprintf.h.
56770         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
56771         HAVE_DECL_SNPRINTF.
56772         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
56773         * lib/getaddrinfo.c: Likewise.
56774
56775         * modules/stdio: New file.
56776         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
56777         * lib/snprintf.h: Remove file.
56778         * lib/vsnprintf.h: Remove file.
56779         * lib/.cppi-disable: Remove snprintf.h.
56780         * m4/stdio_h.m4: New file.
56781         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
56782
56783 2007-02-20  Jim Meyering  <jim@meyering.net>
56784
56785         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
56786         used by e.g., mingw.  From Bruno Haible.
56787
56788 2007-02-19  Bruno Haible  <bruno@clisp.org>
56789
56790         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
56791         warnings.
56792         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56793
56794 2007-02-19  Bruno Haible  <bruno@clisp.org>
56795
56796         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
56797         from mingw users.
56798
56799 2007-02-19  Bruno Haible  <bruno@clisp.org>
56800
56801         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
56802         warnings.
56803         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
56804
56805 2007-02-19  Jim Meyering  <jim@meyering.net>
56806
56807         Don't use FD after a successful "fdopendir (fd)".
56808         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
56809         Reset it by calling dirfd on the just-obtained DIR*.
56810
56811         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
56812         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
56813
56814 2007-02-18  Bruno Haible  <bruno@clisp.org>
56815
56816         * lib/readlink.c: Include <unistd.h>.
56817         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
56818         HAVE_READLINK.
56819         * modules/readlink (Depends-on): Add unistd.
56820         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56821         (Include): Add <unistd.h>.
56822
56823         * lib/getlogin_r.h: Remove file.
56824         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
56825         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
56826         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
56827         HAVE_DECL_GETLOGIN_R.
56828         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
56829         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56830         (Include): Use <unistd.h> instead of getlogin_r.h.
56831
56832         * lib/getcwd.h: Remove file.
56833         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
56834         * lib/xgetcwd.c: Likewise.
56835         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
56836         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
56837         * modules/getcwd (Files): Remove lib/getcwd.h.
56838         (Depends-on): Add unistd.
56839         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56840         (Include): Use <unistd.h> instad of getcwd.h.
56841
56842         * lib/ftruncate.c: Include <unistd.h> first.
56843         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
56844         Set HAVE_FTRUNCATE.
56845         * modules/ftruncate (Depends-on): Add unistd.
56846         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56847
56848         * lib/fchdir.c: Include <unistd.h> first.
56849         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
56850         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
56851         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
56852         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56853         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
56854
56855         * lib/dup2.c: Include <unistd.h> first.
56856         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
56857         HAVE_DUP2.
56858         * modules/dup2 (Depends-on): Add unistd.
56859         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56860
56861         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
56862         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
56863         REPLACE_CHOWN. Don't define chown as a macro here.
56864         * modules/chown (Depends-on): Add unistd.
56865         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56866
56867         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
56868         Add definition for GL_LINK_WARNING.
56869         (chown, dup2): New declarations.
56870         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
56871         link warning.
56872         (ftruncate): New declaration.
56873         (getcwd): New declaration, taken from old getcwd.h.
56874         (getlogin_r): New declaration, taken from old getlogin_r.h.
56875         (readlink): New declaration.
56876         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
56877         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
56878         (gl_PREREQ_UNISTD): Remove macro.
56879         (gl_UNISTD_MODULE_INDICATOR): New macro.
56880         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
56881         many new variables. Don't set UNISTD_H.
56882         * modules/unistd (Description): Change.
56883         (Depends-on): Add link-warning.
56884         (configure.ac): Update.
56885         (Makefile.am): Create unistd.h always. Substitute many new variables
56886         into it.
56887
56888 2007-02-18  Bruno Haible  <bruno@clisp.org>
56889
56890         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
56891         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
56892         HAVE_GETSUBOPT.
56893         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
56894         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
56895         * lib/getsubopt.h: Remove file.
56896         * modules/getsubopt (Files): Remove lib/getsubopt.h.
56897         (Depends-on): Add stdlib.
56898         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56899         (Includes): Use <stdlib.h> instead of getsubopt.h.
56900         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
56901         Set HAVE_GETSUBOPT.
56902         * lib/getsubopt.c: Don't include getsubopt.h.
56903
56904 2007-02-18  Bruno Haible  <bruno@clisp.org>
56905
56906         * modules/fchdir (Depends-on): Add dup2.
56907
56908 2007-02-18  Bruno Haible  <bruno@clisp.org>
56909
56910         * lib/stdlib_.h: Handle glibc's special invocation convention
56911         specially.
56912
56913 2007-02-18  Bruno Haible  <bruno@clisp.org>
56914
56915         * modules/stdlib-tests: New file.
56916         * tests/test-stdlib.c: New file.
56917
56918         * modules/mkstemp (Files): Remove lib/mkstemp.h.
56919         (Depends-on): Add stdlib.
56920         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56921         (Includes): Use <stdlib.h> instead of mkstemp.h.
56922         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
56923         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
56924         * lib/mkstemp.c: Don't include mkstemp.h.
56925         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
56926         * lib/stdlib--.h: Don't include mkstemp.h.
56927
56928         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
56929         (Depends-on): Add stdlib.
56930         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56931         (Includes): Use <stdlib.h> instead of mkdtemp.h.
56932         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
56933         HAVE_MKDTEMP.
56934         * lib/mkdtemp.c: Don't include mkdtemp.h.
56935         * lib/clean-temp.c: Don't include mkdtemp.h.
56936
56937         * modules/exit (Files): Remove lib/exit.h.
56938         (Depends-on): Add stdlib.
56939         (Makefile.am): Remove lib_SOURCES.
56940         (Include): Use <stdlib.h> instead of exit.h.
56941         * lib/argmatch.c: Don't include exit.h.
56942         * lib/execute.c: Likewise.
56943         * lib/pagealign_alloc.c: Likewise.
56944         * lib/pipe.c: Likewise.
56945         * lib/wait-process.c: Likewise.
56946         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
56947         * lib/exitfail.c: Likewise.
56948         * lib/savewd.c: Likewise.
56949         * lib/xsetenv.c: Likewise.
56950
56951         * modules/stdlib: New file.
56952         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
56953         and extra comments about mkstemp().
56954         * lib/exit.h: Remove file.
56955         * lib/mkdtemp.h: Remove file.
56956         * lib/mkstemp.h: Remove file.
56957         * m4/stdlib_h.m4: New file.
56958         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
56959
56960 2007-02-18  Bruno Haible  <bruno@clisp.org>
56961
56962         * modules/math-tests: New file.
56963         * tests/test-math.c: New file.
56964
56965         * modules/math: New file.
56966         * modules/mathl (Files): Remove lib/mathl.h.
56967         (Depends-on): Add math.
56968         (Makefile.am): Don't mention mathl.h.
56969         (Include): Use <math.h> instead of mathl.h.
56970         * lib/math_.h: New file.
56971         * lib/mathl.h: Remove file.
56972         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
56973         mathl.h.
56974         * lib/asinl.c: Likewise.
56975         * lib/atanl.c: Likewise.
56976         * lib/ceill.c: Likewise.
56977         * lib/cosl.c: Likewise.
56978         * lib/expl.c: Likewise.
56979         * lib/floorl.c: Likewise.
56980         * lib/frexpl.c: Likewise.
56981         * lib/ldexpl.c: Likewise.
56982         * lib/logl.c: Likewise.
56983         * lib/sincosl.c: Likewise.
56984         * lib/sinl.c: Likewise.
56985         * lib/sqrtl.c: Likewise.
56986         * lib/tanl.c: Likewise.
56987         * lib/trigl.c: Likewise.
56988         * m4/math_h.m4: New file.
56989         * MODULES.html.sh (Mathematics): Add math.
56990
56991 2007-02-17  Bruno Haible  <bruno@clisp.org>
56992
56993         * modules/wctype-tests: New file.
56994         * tests/test-wctype.c: New file.
56995
56996         * modules/wchar-tests: New file.
56997         * tests/test-wchar.c: New file.
56998
56999         * modules/unistd-tests: New file.
57000         * tests/test-unistd.c: New file.
57001
57002         * modules/time-tests: New file.
57003         * tests/test-time.c: New file.
57004
57005         * modules/sysexits-tests: New file.
57006         * tests/test-sysexits.c: New file.
57007
57008         * modules/sys_time-tests: New file.
57009         * tests/test-sys_time.c: New file.
57010
57011         * modules/sys_stat-tests: New file.
57012         * tests/test-sys_stat.c: New file.
57013
57014         * modules/sys_socket-tests: New file.
57015         * tests/test-sys_socket.c: New file.
57016
57017         * modules/sys_select-tests: New file.
57018         * tests/test-sys_select.c: New file.
57019
57020         * modules/string-tests: New file.
57021         * tests/test-string.c: New file.
57022
57023         * modules/stdbool-tests: New file.
57024         * tests/test-stdbool.c: New file.
57025
57026         * modules/netinet_in-tests: New file.
57027         * tests/test-netinet_in.c: New file.
57028
57029         * modules/inttypes-tests: New file.
57030         * tests/test-inttypes.c: New file.
57031
57032         * modules/fcntl-tests: New file.
57033         * tests/test-fcntl.c: New file.
57034
57035         * modules/byteswap-tests: New file.
57036         * tests/test-byteswap.c: New file.
57037
57038         * modules/arpa_inet-tests: New file.
57039         * tests/test-arpa_inet.c: New file.
57040
57041 2007-02-17  Bruno Haible  <bruno@clisp.org>
57042
57043         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
57044         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
57045         if the corresponding module is not enabled. Emit link warnings if
57046         the function is used nevertheless.
57047         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
57048         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
57049         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
57050         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
57051         * modules/inttypes (Depends-on): Add link-warning.
57052         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57053         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
57054         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
57055         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
57056         * modules/imaxdiv (configure.ac): Likewise.
57057         * modules/strtoimax (configure.ac): Likewise.
57058         * modules/strtoumax (configure.ac): Likewise.
57059
57060 2007-02-17  Bruno Haible  <bruno@clisp.org>
57061
57062         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
57063         gl_STRING_MODULE_INDICATOR_DEFAULTS.
57064         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
57065         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
57066
57067 2007-02-17  Bruno Haible  <bruno@clisp.org>
57068
57069         * modules/link-warning: New file.
57070         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
57071         * lib/string_.h (GL_LINK_WARNING): Remove definition.
57072         * modules/string (Depends-on): Add link-warning.
57073         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57074         string.h.
57075         * MODULES.html.sh (Support for building libraries and executables): Add
57076         link-warning.
57077
57078 2007-02-17  Bruno Haible  <bruno@clisp.org>
57079
57080         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
57081         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
57082         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
57083         long lines.
57084
57085 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
57086             Bruno Haible  <bruno@clisp.org>
57087
57088         * modules/tmpfile: New file.
57089         * lib/tmpfile.c: New file.
57090         * m4/tmpfile.m4: New file.
57091         * MODULES.html.sh (func_all_modules): New section "Input/output".
57092
57093 2007-02-15  Bruno Haible  <bruno@clisp.org>
57094
57095         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
57096         (supports_delete_on_close): New function.
57097         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
57098
57099 2007-02-14  Bruno Haible  <bruno@clisp.org>
57100
57101         * modules/mbspcasecmp-tests: New file.
57102         * tests/test-mbspcasecmp.sh: New file.
57103         * tests/test-mbspcasecmp.c: New file.
57104
57105         New module mbspcasecmp.
57106         * modules/mbspcasecmp: New file.
57107         * lib/mbspcasecmp.c: New file.
57108         * lib/string_.h (strncasecmp): Change warning message.
57109         (mbspcasecmp): New declaration.
57110         * m4/mbspcasecmp.m4: New file.
57111         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57112         GNULIB_MBSPCASECMP.
57113         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
57114         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
57115
57116 2007-02-14  Bruno Haible  <bruno@clisp.org>
57117
57118         * modules/mbsncasecmp-tests: New file.
57119         * tests/test-mbsncasecmp.sh: New file.
57120         * tests/test-mbsncasecmp.c: New file.
57121
57122         New module mbsncasecmp.
57123         * modules/mbsncasecmp: New file.
57124         * lib/mbsncasecmp.c: New file.
57125         * lib/string_.h (mbsncasecmp): New declaration.
57126         * m4/mbsncasecmp.m4: New file.
57127         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57128         GNULIB_MBSNCASECMP.
57129         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
57130         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
57131
57132 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
57133
57134         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
57135         Verify that it doesn't overlap with our flags.
57136         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
57137         do not have the desired effect in multibyte locales; instead, use
57138         mbscasecmp.
57139         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
57140         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
57141         we don't require GNU fnmatch ourselves (if our users require it, they
57142         should do so explicitly).
57143
57144         Fix regex code so it doesn't rely on strcasecmp.
57145         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
57146         Otherwise, include gnulib's langinfo.h.
57147         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
57148         undesirable behavior in non-C locales.  Instead, rely on localecharset.
57149         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
57150         * modules/regex (FILES): Remove m4/codeset.m4.
57151         (Depends-on): Add localcharset.  Remove strcase.
57152
57153 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57154
57155         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
57156         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
57157
57158 2007-02-13  Bruno Haible  <bruno@clisp.org>
57159
57160         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
57161         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57162
57163 2007-02-12  Bruno Haible  <bruno@clisp.org>
57164
57165         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
57166         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
57167         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
57168         time warning rather than a link error.
57169
57170 2007-02-12  Bruno Haible  <bruno@clisp.org>
57171
57172         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
57173         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57174         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57175
57176 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57177
57178         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
57179         args, not 2.
57180
57181 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57182
57183         New module 'time', so that apps can include <time.h> as per
57184         POSIX and GNU instead of separate include files like time_r.h
57185         and timegm.h.  This implementation tries out a simpler approach
57186         for replacing decls in standard include files (as compared to
57187         the string module), somewhat as an experiment.
57188
57189         * config/srclist.txt: Comment out mktime.c for now.
57190         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
57191         since it doesn't apply any more.  Use generic wording instead.
57192         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
57193         'time'.
57194         * lib/time_.h, m4/time_h.m4, modules/time: New files.
57195         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
57196         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
57197         Don't include <sys/types.h>; no longer needed since we assume C89.
57198         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
57199         * lib/strftime.c: Likewise.
57200         * lib/time_r.c: Likewise.
57201         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
57202         * lib/nanosleep.c: Include <time.h> first, to check interface.
57203         * lib/strptime.c: Likewise.
57204         * lib/time_r.c: Likewise.
57205         * lib/timegm.c: Likewise.
57206         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
57207         needed.
57208         * lib/timegm.c: Don't include timegm.h; no longer needed.
57209         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
57210         time.h now handles any problems in that area.
57211         (struct timespec, nanosleep): Remove; time.h now arranges for these.
57212         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
57213         that time.h defines struct timespec.
57214         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
57215         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
57216         handles that.
57217         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
57218         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
57219         needed.  Set REPLACE_LOCALTIME.
57220         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
57221         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
57222         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
57223         nanosleep; time_h.m4 now does that.  Don't require
57224         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
57225         module handles this now.
57226         * modules/getdate (Depends-on): Remove timespec.  Add time.
57227         * modules/nanosleep (Depends-on): Likewise.
57228         * modules/stat-time (Depends-on): Likewise.
57229         * modules/nanosleep (Include): Include time.h, not timespec.h.
57230         * modules/strptime (Files): Remove lib/strptime.h.
57231         (Depends-on): Add extensions, time.
57232         (Include): Include time.h, not strptime.h.
57233         * modules/time_r (Files): Remove lib/time_r.h.
57234         (Depends-on): Add time.
57235         (Include): Include time.h, not time_r.h.
57236         * modules/timegm: Likewise.
57237         * modules/timespec (Description): Now does timespec-related decls
57238         of our own, instead of struct timespec itself.
57239         (Depends-on): Add time; remove extensions.
57240         (Maintainer): Add self.
57241         * modules/utimecmp (Depends-on): Add time; remove timespec.
57242         * modules/utimens (Depends-on): Likewise.
57243         * modules/xnanosleep (Depends-on): Likewise.
57244
57245 2007-02-11  Bruno Haible  <bruno@clisp.org>
57246
57247         * lib/c-strstr.c: Include allocsa.h.
57248         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57249         * lib/c-strcasestr.c: Include allocsa.h.
57250         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57251         * lib/strcasestr.c: Include allocsa.h.
57252         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57253         * lib/mbsstr.c: Include allocsa.h.
57254         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57255         allocsa/freesa instead of malloc/free.
57256         * lib/mbscasestr.c: Include allocsa.h.
57257         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57258         allocsa/freesa instead of malloc/free.
57259         * modules/c-strstr (Depends-on): Add allocsa.
57260         * modules/c-strcasestr (Depends-on): Likewise.
57261         * modules/strcasestr (Depends-on): Likewise.
57262         * modules/mbsstr (Depends-on): Likewise.
57263         * modules/mbscasestr (Depends-on): Likewise.
57264
57265 2007-02-11  Bruno Haible  <bruno@clisp.org>
57266
57267         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
57268
57269         * modules/mbsspn-tests: New file.
57270         * tests/test-mbsspn.sh: New file.
57271         * tests/test-mbsspn.c: New file.
57272
57273 2007-02-11  Bruno Haible  <bruno@clisp.org>
57274
57275         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
57276
57277         * modules/mbspbrk-tests: New file.
57278         * tests/test-mbspbrk.sh: New file.
57279         * tests/test-mbspbrk.c: New file.
57280
57281 2007-02-11  Bruno Haible  <bruno@clisp.org>
57282
57283         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
57284         unneeded cast.
57285
57286         * modules/mbscspn-tests: New file.
57287         * tests/test-mbscspn.sh: New file.
57288         * tests/test-mbscspn.c: New file.
57289
57290 2007-02-11  Bruno Haible  <bruno@clisp.org>
57291
57292         * modules/mbscasecmp-tests: New file.
57293         * tests/test-mbscasecmp.sh: New file.
57294         * tests/test-mbscasecmp.c: New file.
57295
57296 2007-02-11  Bruno Haible  <bruno@clisp.org>
57297
57298         Ensure O(n) worst-case complexity of mbscasestr.
57299         * lib/mbscasestr.c: Include stdbool.h.
57300         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57301         functions.
57302         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
57303         the bookkeeping indicates that it's worth it.
57304         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
57305
57306         * modules/mbscasestr-tests: New file.
57307         * tests/test-mbscasestr1.c: New file.
57308         * tests/test-mbscasestr2.sh: New file.
57309         * tests/test-mbscasestr2.c: New file.
57310         * tests/test-mbscasestr3.sh: New file.
57311         * tests/test-mbscasestr3.c: New file.
57312         * tests/test-mbscasestr4.sh: New file.
57313         * tests/test-mbscasestr4.c: New file.
57314         * m4/locale-tr.m4: New file.
57315
57316 2007-02-11  Bruno Haible  <bruno@clisp.org>
57317
57318         Ensure O(n) worst-case complexity of mbsstr.
57319         * lib/mbsstr.c: Include stdbool.h.
57320         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57321         functions.
57322         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
57323         bookkeeping indicates that it's worth it.
57324         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
57325
57326         * modules/mbsstr-tests: New file.
57327         * tests/test-mbsstr1.c: New file.
57328         * tests/test-mbsstr2.sh: New file.
57329         * tests/test-mbsstr2.c: New file.
57330         * tests/test-mbsstr3.sh: New file.
57331         * tests/test-mbsstr3.c: New file.
57332         * m4/locale-fr.m4: New file.
57333
57334 2007-02-11  Bruno Haible  <bruno@clisp.org>
57335
57336         * lib/mbsrchr.c (mbsrchr): Fix bug.
57337
57338         * modules/mbsrchr-tests: New file.
57339         * tests/test-mbsrchr.sh: New file.
57340         * tests/test-mbsrchr.c: New file.
57341
57342 2007-02-11  Bruno Haible  <bruno@clisp.org>
57343
57344         * lib/mbschr.c (mbschr): Fix bug.
57345
57346         * modules/mbschr-tests: New file.
57347         * tests/test-mbschr.sh: New file.
57348         * tests/test-mbschr.c: New file.
57349         * m4/locale-zh.m4: New file.
57350
57351 2007-02-11  Bruno Haible  <bruno@clisp.org>
57352
57353         Support for copying multibyte string iterators.
57354         * lib/mbiter.h: Include <string.h>.
57355         (mbiter_multi_copy): New function.
57356         (mbi_copy): New macro.
57357         * lib/mbuiter.h: Include <string.h>.
57358         (mbuiter_multi_copy): New function.
57359         (mbui_copy): New macro.
57360
57361 2007-02-11  Bruno Haible  <bruno@clisp.org>
57362
57363         New module mbslen.
57364         * modules/mbslen: New file.
57365         * lib/mbslen.c: New file.
57366         * lib/string_.h (mbslen): New declaration.
57367         * m4/mbslen.m4: New file.
57368         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57369         GNULIB_MBSLEN.
57370         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
57371         * MODULES.html.sh (Internationalization functions): Add mbslen.
57372
57373 2007-02-11  Bruno Haible  <bruno@clisp.org>
57374
57375         Ensure O(n) worst-case complexity of strcasestr substitute.
57376         * lib/strcasestr.c: Include stdbool.h.
57377         (knuth_morris_pratt): New function.
57378         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
57379         bookkeeping indicates that it's worth it.
57380         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
57381
57382         * modules/strcasestr-tests: New file.
57383         * tests/test-strcasestr.c: New file.
57384
57385 2007-02-11  Bruno Haible  <bruno@clisp.org>
57386
57387         Ensure O(n) worst-case complexity of c_strcasestr.
57388         * lib/c-strcasestr.c: Include stdbool.h, string.h.
57389         (knuth_morris_pratt): New function.
57390         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
57391         the bookkeeping indicates that it's worth it.
57392         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
57393
57394         * modules/c-strcasestr-tests: New file.
57395         * tests/test-c-strcasestr.c: New file.
57396
57397 2007-02-11  Bruno Haible  <bruno@clisp.org>
57398
57399         Ensure O(n) worst-case complexity of c_strstr.
57400         * lib/c-strstr.c: Include stdbool.h, string.h.
57401         (knuth_morris_pratt): New function.
57402         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
57403         bookkeeping indicates that it's worth it.
57404         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
57405
57406         * lib/c-strstr.c: Complete rewrite for maintainability.
57407
57408         * modules/c-strstr-tests: New file.
57409         * tests/test-c-strstr.c: New file.
57410
57411 2007-02-11  Bruno Haible  <bruno@clisp.org>
57412
57413         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
57414         5.2.1 and earlier, whereby \055 was treated just like the range
57415         delimiter '-'.
57416         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57417
57418 2007-02-08  Bruno Haible  <bruno@clisp.org>
57419
57420         * modules/regex (Depends-on): Add stdbool.
57421         Reported by Dalibor Topic <robilad@kaffe.org>.
57422
57423 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
57424
57425         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
57426         Prefer returning from main to exiting from it.
57427         Remove unnecessary parens after sizeof.
57428
57429 2007-02-05  Bruno Haible  <bruno@clisp.org>
57430
57431         New module mbssep.
57432         * modules/mbssep: New file.
57433         * lib/mbssep.c: New file.
57434         * lib/string_.h (strsep): Add a conditional link warning.
57435         (mbssep): New declaration.
57436         * m4/mbssep.m4: New file.
57437         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57438         GNULIB_MBSSEP.
57439         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
57440         * MODULES.html.sh (Internationalization functions): Add mbssep.
57441
57442 2007-02-05  Bruno Haible  <bruno@clisp.org>
57443
57444         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
57445         Optimize search in case of 1 delimiter.
57446
57447 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
57448
57449         * lib/acl.h: Include sys/types.h before sys/acl.h.
57450
57451 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
57452
57453         Merge upstream fix for glibc bugzilla #3957:
57454
57455         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
57456
57457         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
57458         bit for RE_HAT_LISTS_NOT_NEWLINE.
57459         (build_charclass_op): Remove bogus comment.
57460
57461 2007-02-05  Simon Josefsson  <simon@josefsson.org>
57462
57463         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
57464
57465 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
57466
57467         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
57468         * lib/memmem.c [!defined _LIBC]: Include config.h.
57469
57470 2007-02-04  Bruno Haible  <bruno@clisp.org>
57471
57472         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
57473         warning message.
57474
57475 2007-02-04  Bruno Haible  <bruno@clisp.org>
57476
57477         New module mbstok_r.
57478         * modules/mbstok_r: New file.
57479         * lib/mbstok_r.c: New file.
57480         * lib/string_.h (strtok_r): Change argument names to match the
57481         comments. Add a conditional link warning.
57482         (mbstok_r): New declaration.
57483         * m4/mbstok_r.m4: New file.
57484         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57485         GNULIB_MBSTOK_R.
57486         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
57487         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
57488
57489 2007-02-04  Bruno Haible  <bruno@clisp.org>
57490
57491         New module mbsspn.
57492         * modules/mbsspn: New file.
57493         * lib/mbsspn.c: New file.
57494         * lib/string_.h (strspn): Add a conditional link warning.
57495         (mbsspn): New declaration.
57496         * m4/mbsspn.m4: New file.
57497         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57498         GNULIB_MBSSPN.
57499         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
57500         * MODULES.html.sh (Internationalization functions): Add mbsspn.
57501
57502 2007-02-04  Bruno Haible  <bruno@clisp.org>
57503
57504         New module mbspbrk.
57505         * modules/mbspbrk: New file.
57506         * lib/mbspbrk.c: New file.
57507         * lib/string_.h (strpbrk): Add a conditional link warning.
57508         (mbspbrk): New declaration.
57509         * m4/mbspbrk.m4: New file.
57510         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57511         GNULIB_MBSPBRK.
57512         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
57513         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
57514
57515 2007-02-04  Bruno Haible  <bruno@clisp.org>
57516
57517         New module mbscspn.
57518         * modules/mbscspn: New file.
57519         * lib/mbscspn.c: New file.
57520         * lib/string_.h (strcspn): Add a conditional link warning.
57521         (mbscspn): New declaration.
57522         * m4/mbscspn.m4: New file.
57523         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57524         GNULIB_MBSCSPN.
57525         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
57526         * MODULES.html.sh (Internationalization functions): Add mbscspn.
57527
57528 2007-02-04  Bruno Haible  <bruno@clisp.org>
57529
57530         New module mbscasestr, reduced goal of strcasestr.
57531         * modules/mbscasestr: New file.
57532         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
57533         (mbscasestr): Renamed from strcasestr.
57534         * lib/strcasestr.c: Don't include mbuiter.h.
57535         (strcasestr): Remove support for multibyte locales.
57536         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
57537         Change the conditional link warning.
57538         (mbscasestr): New declaration.
57539         * m4/mbscasestr.m4: New file.
57540         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
57541         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
57542         REPLACE_STRCASESTR.
57543         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
57544         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57545         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
57546         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
57547         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
57548         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
57549         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
57550         (Depends-on): Remove mbuiter.
57551         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
57552
57553 2007-02-04  Bruno Haible  <bruno@clisp.org>
57554
57555         Simplify handling of strncasecmp.
57556         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
57557         the conditional link warning.
57558         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57559         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
57560         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
57561         * modules/strcase (configure.ac): Don't invoke
57562         gl_STRING_MODULE_INDICATOR.
57563         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
57564
57565 2007-02-04  Bruno Haible  <bruno@clisp.org>
57566
57567         New module mbscasecmp, reduced goal of strcasecmp.
57568         * modules/mbscasecmp: New file.
57569         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
57570         (mbscasecmp): Renamed from strcasecmp.
57571         * lib/strcasecmp.c: Don't include mbuiter.h.
57572         (strcasecmp): Remove support for multibyte locales.
57573         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
57574         Change the conditional link warning.
57575         (mbscasecmp): New declaration.
57576         * m4/mbscasecmp.m4: New file.
57577         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
57578         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
57579         REPLACE_STRCASECMP.
57580         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
57581         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57582         GNULIB_MBSCASECMP.
57583         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
57584         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
57585         * modules/strcase (Files): Remove m4/mbrtowc.m4.
57586         (Depends-on): Remove mbuiter.
57587         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
57588
57589 2007-02-04  Bruno Haible  <bruno@clisp.org>
57590
57591         New module mbsstr. Remove module strstr.
57592         * modules/mbsstr: New file.
57593         * modules/strstr: Remove file.
57594         * lib/mbsstr.c: Renamed from lib/strstr.c.
57595         (mbsstr): Renamed from strstr.
57596         * lib/string_.h (strstr): Remove declaration. Change the conditional
57597         link warning.
57598         (mbsstr): New declaration.
57599         * m4/mbsstr.m4: New file.
57600         * m4/strstr.m4: Remove file.
57601         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
57602         REPLACE_STRSTR.
57603         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
57604         Don't initialize GNULIB_STRSTR.
57605         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
57606         substitute GNULIB_STRSTR and REPLACE_STRSTR.
57607         * MODULES.html.sh (Internationalization functions): Add mbsstr.
57608         (Support for systems lacking ANSI C 89): Remove strstr.
57609
57610 2007-02-04  Bruno Haible  <bruno@clisp.org>
57611
57612         New module mbsrchr.
57613         * modules/mbsrchr: New file.
57614         * lib/mbsrchr.c: New file.
57615         * lib/string_.h (strrchr): Add a conditional link warning.
57616         (mbsrchr): New declaration.
57617         * m4/mbsrchr.m4: New file.
57618         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57619         GNULIB_MBSRCHR.
57620         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
57621         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
57622
57623 2007-02-04  Bruno Haible  <bruno@clisp.org>
57624
57625         New module mbschr.
57626         * modules/mbschr: New file.
57627         * lib/mbschr.c: New file.
57628         * lib/string_.h (strchr): Add a conditional link warning.
57629         (mbschr): New declaration.
57630         * m4/mbschr.m4: New file.
57631         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57632         GNULIB_MBSCHR.
57633         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
57634         * MODULES.html.sh (Internationalization functions): Add mbschr.
57635
57636 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
57637
57638         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
57639
57640         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
57641
57642 2007-02-04  Bruno Haible  <bruno@clisp.org>
57643
57644         New module description section 'configure.ac-early'.
57645         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
57646         (func_get_autoconf_early_snippet): New function.
57647         (func_import, func_create_testdir): Use it. Remove special cases for
57648         modules 'extensions' and 'lock'.
57649         * modules/extensions (configure.ac-early): Require
57650         gl_USE_SYSTEM_EXTENSIONS.
57651         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
57652
57653 2007-02-04  Bruno Haible  <bruno@clisp.org>
57654
57655         Make use of gcj-4.3's -fsource and -ftarget option.
57656         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
57657         and if so try the options -fsource and -ftarget.
57658         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
57659         source_version, ftarget_option, target_version arguments.
57660         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
57661         (is_envjavac_oldgcj_14_14_usable): Renamed from
57662         is_envjavac_gcj_14_14_usable.
57663         (is_envjavac_oldgcj_14_13_usable): Renamed from
57664         is_envjavac_gcj_14_13_usable.
57665         (is_gcj_present): Update.
57666         (is_gcj_43, is_gcj43_usable): New functions.
57667         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
57668         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
57669         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
57670         try the options -fsource and -ftarget.
57671
57672 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
57673
57674         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
57675         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
57676         larger value.
57677
57678 2007-02-03  Jim Meyering  <jim@meyering.net>
57679
57680         Give tools a better chance to allocate space for very large buffers.
57681         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
57682
57683         Make pwd and readlink work also when run with an unreadable parent dir
57684         on systems with openat support.
57685         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
57686         provided getcwd function, even when we have openat support.
57687         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
57688
57689 2007-02-02  Bruno Haible  <bruno@clisp.org>
57690
57691         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
57692         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
57693         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
57694         portability problems if one of these functions is only used on specific
57695         platforms.
57696         Reported by Paul Eggert.
57697
57698 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
57699
57700         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
57701         is causing more trouble than it's curing.
57702         * lib/regex_internal.h (__mempcpy): Remove.
57703         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
57704         (and make the code a tad smaller to boot).
57705         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
57706
57707 2007-02-02  Jim Meyering  <jim@meyering.net>
57708
57709         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
57710         section, not in the Makefile.am: one.
57711
57712 2007-02-02  Eric Blake  <ebb9@byu.net>
57713
57714         * lib/strchrnul.c: Always include config.h first.
57715
57716         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
57717         gnulib strstr is not necessary here.
57718
57719 2007-02-02  Simon Josefsson  <simon@josefsson.org>
57720
57721         * m4/socklen.m4: Fix typo.
57722
57723 2007-02-02  Eric Blake  <ebb9@byu.net>
57724
57725         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
57726         * modules/netinet_in (Makefile.am): Likewise.
57727
57728 2007-02-01  Bruno Haible  <bruno@clisp.org>
57729
57730         * lib/string_.h (GL_LINK_WARNING): New macro.
57731         (strcasecmp, strstr, strcasestr): If provided by the system,
57732         conditionally define as a macro that leads to a warning instead of to
57733         an error.
57734         (strncasecmp): Conditionally define as a macro that leads to a warning.
57735
57736 2007-02-01  Karl Berry  <karl@gnu.org>
57737
57738         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
57739
57740 2007-02-01  Bruno Haible  <bruno@clisp.org>
57741
57742         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
57743         renamings.
57744
57745 2007-02-01  Eric Blake  <ebb9@byu.net>
57746
57747         * modules/regex (Depends-on): Revert dependence on mempcpy.
57748         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
57749         module's definition of mempcpy.
57750         Reported by Paul Eggert.
57751
57752 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
57753
57754         * lib/string_.h: If the gnulib module XYZ is not present, undefine
57755         the symbol XYZ before redefining it.  This fixes a problem with
57756         programs that don't use XYZ, when compiled on systems that define
57757         XYZ to something else.
57758
57759 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
57760
57761         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
57762         occurs when "mkdir -m foo" creates a setgid directory that is (1)
57763         writeable to group or other and (2) is intended to have a special
57764         mode bit that is set or cleared.  In such a case, the directory
57765         should be neither group- nor other-writeable until the special
57766         mode bits are right.
57767
57768 2007-01-31  Eric Blake  <ebb9@byu.net>
57769
57770         * modules/mountlist (Depends-on): Add strstr.
57771
57772         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
57773         bug.
57774         * modules/string (Makefile.am): Remove redundant replacement.
57775         * modules/regex (Depends-on): Add mempcpy.
57776
57777 2007-01-31  Bruno Haible  <bruno@clisp.org>
57778
57779         New module description field 'Link'.
57780         * gnulib-tool (func_usage): Document --extract-link-directive.
57781         (sed_extract_prog): Recognize 'Link' directive.
57782         (func_get_link_directive): New function.
57783         (func_import): Show summary of link directives.
57784         Handle --extract-link-directive option.
57785         * modules/acl (Link): New section.
57786         * modules/clock-time (Link): New section.
57787         * modules/euidaccess (Link): New section.
57788         * modules/gettext (Link): New section.
57789         * modules/iconv (Link): New section.
57790         * modules/lock (Link): New section.
57791         * modules/nanosleep (Link): New section.
57792         * modules/readline (Link): New section.
57793
57794 2007-01-27  Bruno Haible  <bruno@clisp.org>
57795
57796         Enforce the use of gnulib modules for unportable <string.h> functions.
57797         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
57798         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
57799         (gl_HEADER_STRING_H_BODY): Require it.
57800         * lib/string_.h: If the gnulib module XYZ is not present, redefine
57801         the symbol XYZ to one that gives a link error.
57802         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
57803         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
57804         * modules/mempcpy (configure.ac): Likewise.
57805         * modules/memrchr (configure.ac): Likewise.
57806         * modules/stpcpy (configure.ac): Likewise.
57807         * modules/stpncpy (configure.ac): Likewise.
57808         * modules/strcase (configure.ac): Likewise.
57809         * modules/strcasestr (configure.ac): Likewise.
57810         * modules/strchrnul (configure.ac): Likewise.
57811         * modules/strdup (configure.ac): Likewise.
57812         * modules/strndup (configure.ac): Likewise.
57813         * modules/strnlen (configure.ac): Likewise.
57814         * modules/strpbrk (configure.ac): Likewise.
57815         * modules/strsep (configure.ac): Likewise.
57816         * modules/strstr (configure.ac): Likewise.
57817         * modules/strtok_r (configure.ac): Likewise.
57818
57819 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
57820
57821         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
57822
57823 2007-01-30  Jim Meyering  <jim@meyering.net>
57824
57825         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
57826
57827 2007-01-29  Bruno Haible  <bruno@clisp.org>
57828
57829         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
57830         * lib/execute.c: Likewise.
57831         * lib/pipe.c: Likewise.
57832         * lib/printf-args.h: Likewise.
57833         * lib/printf-args.c: Likewise.
57834         * lib/printf-parse.c: Likewise.
57835         * lib/vasnprintf.c: Likewise.
57836
57837 2007-01-29  Eric Blake  <ebb9@byu.net>
57838
57839         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
57840         declaration.
57841
57842 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
57843
57844         * lib/strptime.h (strptime): Use 'restrict' for args where
57845         POSIX requires this.
57846         * lib/strptime.c (strptime): Likewise.
57847         Change license notice from LGPL to GPL, since gnulib-tool will
57848         change this as needed.
57849         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
57850         defined.
57851         Include "strptime.h" first, to check interface.
57852         Do not #undef _LIBC and _NL_CURRENT.
57853         Do not include <stdlib.h>; no longer needed.
57854         Include "time_r.h" and declare ptime_locale_status
57855         only if _LIBC is not defined.
57856         (__P): Remove unused macro.
57857         (match_string): Bring back glibc version, but use it only if _LIBC
57858         is defined.
57859         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
57860         Remove unnecessary assertion and abort() call.
57861         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
57862         * m4/strptime.m4: Fix serial number comment.
57863         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
57864         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
57865         (Depends-on): Add time_r.
57866
57867 2007-01-29  Bruno Haible  <bruno@clisp.org>
57868
57869         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57870         strptime.
57871         * modules/strptime (Depends-on): Add stdbool.
57872         * lib/strptime.h: Include <time.h> always. Add comments.
57873
57874 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57875
57876         * modules/strptime: New file.
57877         * lib/strptime.h: New file.
57878         * lib/strptime.c: New file.
57879         * m4/strptime.m4: New file.
57880
57881 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
57882
57883         * MODULES.html.sh: New module mpsort.
57884         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
57885
57886         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
57887         a circularity problem with HP-UX ia64 reported by Bob Proulx in
57888         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
57889         All uses changed.
57890         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
57891         All uses changed.
57892         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
57893         to _Restrict_.
57894         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
57895         the parameter matches the prototype.
57896
57897 2007-01-28  Jim Meyering  <jim@meyering.net>
57898
57899         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
57900         sys/time.h here, reverting that part of the previous patch:
57901         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
57902
57903 2007-01-28  Bruno Haible  <bruno@clisp.org>
57904
57905         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
57906         value of $(SYS_TIME_H).
57907         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
57908         remove it conditionally, too. [added by Jim Meyering]
57909         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
57910         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
57911         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
57912         GETTIMEOFDAY_REPLACEMENT to 1.
57913
57914 2007-01-28  Bruno Haible  <bruno@clisp.org>
57915
57916         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
57917         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
57918         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
57919         Set UNISTD_H instead of UNISTD_H2.
57920         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
57921
57922 2007-01-28  Bruno Haible  <bruno@clisp.org>
57923
57924         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
57925         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
57926
57927 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57928
57929         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
57930         (func_create_testdir): Ensure C locale for `grep' and `tr'
57931         character ranges.
57932         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
57933         ACLOCAL_AMFLAGS parsing state machine.
57934
57935 2007-01-27  Bruno Haible  <bruno@clisp.org>
57936
57937         * modules/unistr/base: Update.
57938
57939 2007-01-27  Bruno Haible  <bruno@clisp.org>
57940
57941         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
57942         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
57943         * modules/unistr/u32-mbtouc-unsafe: Renamed from
57944         modules/unistr/u32-mbtouc.
57945         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
57946         * lib/unistr.h: Update.
57947         * lib/linebreak.c: Update.
57948         * modules/unistr/u32-mbtouc: Renamed from
57949         modules/unistr/u32-mbtouc-safe.
57950         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
57951         * lib/unistr.h: Update.
57952         * lib/unistr/u32-to-u8.c: Update.
57953         * lib/unistr/u32-to-u16.c: Update.
57954
57955 2007-01-27  Bruno Haible  <bruno@clisp.org>
57956
57957         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
57958         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
57959         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
57960         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
57961         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
57962         * modules/unistr/u16-mbtouc-unsafe: Renamed from
57963         modules/unistr/u16-mbtouc.
57964         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
57965         * lib/unistr.h: Update.
57966         * lib/linebreak.c: Update.
57967         * modules/linebreak: Update.
57968         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
57969         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
57970         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
57971         * modules/unistr/u16-mbtouc: Renamed from
57972         modules/unistr/u16-mbtouc-safe.
57973         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
57974         * lib/unistr.h: Update.
57975         * lib/unistr/u16-to-u8.c: Update.
57976         * modules/unistr/u16-to-u8: Update.
57977         * lib/unistr/u16-to-u32.c: Update.
57978         * modules/unistr/u16-to-u32: Update.
57979
57980 2007-01-27  Bruno Haible  <bruno@clisp.org>
57981
57982         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
57983         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
57984         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
57985         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
57986         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
57987         * modules/unistr/u8-mbtouc-unsafe: Renamed from
57988         modules/unistr/u8-mbtouc.
57989         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
57990         * lib/unistr.h: Update.
57991         * lib/striconveh.c: Update.
57992         * modules/striconveh: Update.
57993         * lib/linebreak.c: Update.
57994         * modules/linebreak: Update.
57995         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
57996         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
57997         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
57998         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
57999         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
58000         * lib/unistr.h: Update.
58001         * lib/striconveh.c: Update.
58002         * modules/striconveh: Update.
58003         * lib/unistr/u8-to-u16.c: Update.
58004         * modules/unistr/u8-to-u16: Update.
58005         * lib/unistr/u8-to-u32.c: Update.
58006         * modules/unistr/u8-to-u32: Update.
58007
58008 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58009
58010         Sync from Libtool.
58011         * lib/argz.c: Do not include strings.h nor memory.h, include
58012         string.h unconditionally.  Patch by Simon Josefsson.
58013
58014 2007-01-27  Bruno Haible  <bruno@clisp.org>
58015
58016         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
58017         from gl_HEADER_STRING_H_BODY.
58018         (gl_HEADER_STRING_H_BODY): Require it.
58019         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
58020         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58021         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58022         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58023         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58024         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
58025         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58026         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58027         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
58028         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58029         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58030         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
58031         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58032         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58033         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58034
58035 2007-01-27  Bruno Haible  <bruno@clisp.org>
58036
58037         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
58038         check_PROGRAMS into noinst_PROGRAMS.
58039         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
58040         check_PROGRAMS in this case.
58041         (func_import): Set for_test to false.
58042         (func_create_testdir): Set for_test to true.
58043
58044 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
58045             Bruno Haible  <bruno@clisp.org>
58046
58047         * modules/strcasestr (Files): Remove lib/strcasestr.h.
58048         (Depends-on): Add string.
58049         (Includes): Use <string.h> instead of strcasestr.h.
58050         * modules/string (Makefile.am): Also substitute the value of
58051         REPLACE_STRCASESTR.
58052         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
58053         assume strcasestr is declared in <string.h> not <strings.h>. Also
58054         set REPLACE_STRCASESTR.
58055         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
58056         REPLACE_STRCASESTR.
58057         * lib/strcasestr.h: Remove file.
58058         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
58059         * lib/string_.h (strcasestr): New declaration.
58060
58061 2007-01-27  Bruno Haible  <bruno@clisp.org>
58062
58063         * lib/string_.h: Use 'extern'.
58064
58065 2007-01-27  Jim Meyering  <jim@meyering.net>
58066
58067         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
58068         of set-but-not-used local, "q".
58069
58070         * lib/mempcpy.c: Include <config.h> before <string.h>.
58071         This fixes a compilation error on HP-UX, due to the system's
58072         "restrict"-using mempcpy prototype.
58073
58074 2007-01-26  Bruno Haible  <bruno@clisp.org>
58075
58076         Small optimization.
58077         * lib/javacomp.c: Include c-strstr.h.
58078          (is_envjavac_gcj): Use c_strstr instead of strstr.
58079         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
58080
58081 2007-01-26  Bruno Haible  <bruno@clisp.org>
58082
58083         * MODULES.html.sh (Unicode string functions): Add the new modules.
58084
58085         * modules/uniconv/u32-strconv-to-locale: New file.
58086         * lib/uniconv/u32-strconv-to-locale.c: New file.
58087
58088         * modules/uniconv/u16-strconv-to-locale: New file.
58089         * lib/uniconv/u16-strconv-to-locale.c: New file.
58090
58091         * modules/uniconv/u8-strconv-to-locale: New file.
58092         * lib/uniconv/u8-strconv-to-locale.c: New file.
58093
58094         * modules/uniconv/u32-strconv-from-locale: New file.
58095         * lib/uniconv/u32-strconv-from-locale.c: New file.
58096
58097         * modules/uniconv/u16-strconv-from-locale: New file.
58098         * lib/uniconv/u16-strconv-from-locale.c: New file.
58099
58100         * modules/uniconv/u8-strconv-from-locale: New file.
58101         * lib/uniconv/u8-strconv-from-locale.c: New file.
58102
58103         * modules/uniconv/u32-strconv-to-enc: New file.
58104         * lib/uniconv/u32-strconv-to-enc.c: New file.
58105         * modules/uniconv/u32-strconv-to-enc-tests: New file.
58106         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
58107
58108         * modules/uniconv/u16-strconv-to-enc: New file.
58109         * lib/uniconv/u16-strconv-to-enc.c: New file.
58110         * lib/uniconv/u-strconv-to-enc.h: New file.
58111         * modules/uniconv/u16-strconv-to-enc-tests: New file.
58112         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
58113
58114         * modules/uniconv/u8-strconv-to-enc: New file.
58115         * lib/uniconv/u8-strconv-to-enc.c: New file.
58116         * modules/uniconv/u8-strconv-to-enc-tests: New file.
58117         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
58118
58119         * modules/uniconv/u32-strconv-from-enc: New file.
58120         * lib/uniconv/u32-strconv-from-enc.c: New file.
58121         * modules/uniconv/u32-strconv-from-enc-tests: New file.
58122         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
58123
58124         * modules/uniconv/u16-strconv-from-enc: New file.
58125         * lib/uniconv/u16-strconv-from-enc.c: New file.
58126         * modules/uniconv/u16-strconv-from-enc-tests: New file.
58127         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
58128
58129         * modules/uniconv/u8-strconv-from-enc: New file.
58130         * lib/uniconv/u8-strconv-from-enc.c: New file.
58131         * lib/uniconv/u-strconv-from-enc.h: New file.
58132         * modules/uniconv/u8-strconv-from-enc-tests: New file.
58133         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
58134
58135         * modules/uniconv/u32-conv-from-enc: New file.
58136         * lib/uniconv/u32-conv-from-enc.c: New file.
58137         * modules/uniconv/u32-conv-from-enc-tests: New file.
58138         * tests/uniconv/test-u32-conv-from-enc.c: New file.
58139
58140         * modules/uniconv/u16-conv-from-enc: New file.
58141         * lib/uniconv/u16-conv-from-enc.c: New file.
58142         * lib/uniconv/u-conv-from-enc.h: New file.
58143         * modules/uniconv/u16-conv-from-enc-tests: New file.
58144         * tests/uniconv/test-u16-conv-from-enc.c: New file.
58145
58146         * modules/uniconv/u8-conv-from-enc: New file.
58147         * lib/uniconv/u8-conv-from-enc.c: New file.
58148         * modules/uniconv/u8-conv-from-enc-tests: New file.
58149         * tests/uniconv/test-u8-conv-from-enc.c: New file.
58150
58151         * modules/uniconv/base: New file.
58152         * lib/uniconv.h: New file.
58153
58154 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
58155
58156         * doc/gnulib-tool.texi (Initial import): Update to match current
58157         behavior with strdup module.
58158         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
58159         * lib/memmem.h: Remove; all uses removed.  This is now done
58160         by <string.h>.
58161         * lib/mempcpy.h: Likewise.
58162         * lib/memrchr.h: Likewise.
58163         * lib/stpcpy.h: Likewise.
58164         * lib/stpncpy.h: Likewise.
58165         * lib/strcase.h: Likewise.
58166         * lib/strchrnul.h: Likewise.
58167         * lib/strdup.h: Likewise.
58168         * lib/strndup.h: Likewise.
58169         * lib/strnlen.h: Likewise.
58170         * lib/strpbrk.h: Likewise.
58171         * lib/strsep.h: Likewise.
58172         * lib/strstr.h: Likewise.
58173         * lib/strtok_r.h: Likewise.
58174         * lib/string_.h: New file.
58175         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
58176         Rely on <string.h> instead.
58177         * lib/canon-host.c: Likewise.
58178         * lib/chdir-long.c: Likewise.
58179         * lib/concatpath.c: Likewise.
58180         * lib/exclude.c: Likewise.
58181         * lib/fchdir.c: Likewise.
58182         * lib/getaddrinfo.c: Likewise.
58183         * lib/getcwd.c: Likewise.
58184         * lib/getsubopt.c: Likewise.
58185         * lib/glob.c: Likewise.
58186         * lib/hard-locale.c: Likewise.
58187         * lib/iconvme.c: Likewise.
58188         * lib/javacomp.c: Likewise.
58189         * lib/mempcpy.c: Likewise.
58190         * lib/memrchr.c: Likewise.
58191         * lib/regex_internal.h: Likewise.
58192         * lib/stpncpy.c: Likewise.
58193         * lib/strcasecmp.c: Likewise.
58194         * lib/strchrnul.c: Likewise.
58195         * lib/strdup.c: Likewise.
58196         * lib/striconv.c: Likewise.
58197         * lib/striconveh.c: Likewise.
58198         * lib/striconveha.c: Likewise.
58199         * lib/strncasecmp.c: Likewise.
58200         * lib/strndup.c: Likewise.
58201         * lib/strnlen.c: Likewise.
58202         * lib/strsep.c: Likewise.
58203         * lib/strstr.c: Likewise.
58204         * lib/strtok_r.c: Likewise.
58205         * lib/userspec.c: Likewise.
58206         * lib/w32spawn.h: Likewise.
58207         * lib/xstrndup.c: Likewise.
58208         * lib/mountlist.c (strstr): Remove decl.
58209         * m4/string_h.m4: New file.
58210         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
58211         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
58212         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
58213         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
58214         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
58215         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
58216         Set REPLACE_STRCASECMP if necessary.
58217         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
58218         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
58219         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
58220         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
58221         HAVE_DECL_STRDUP if necessary.
58222         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
58223         since gl_FUNC_STRNDUP does that now.
58224         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
58225         Check for decl here...
58226         (gl_PREREQ_STRNLEN): ... not here.
58227         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
58228         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
58229         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
58230         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
58231         necessary.
58232         * modules/string: New file.
58233         * modules/memmem (Files): Remove special-purpose include file.
58234         (Depends-on): Add string.
58235         (Include): Include <string.h>, not the removed file.
58236         * modules/mempcpy: Likewise.
58237         * modules/memrchr: Likewise.
58238         * modules/stpcpy: Likewise.
58239         * modules/stpncpy: Likewise.
58240         * modules/strcase: Likewise.
58241         * modules/strchrnul: Likewise.
58242         * modules/strdup: Likewise.
58243         * modules/strndup: Likewise.
58244         * modules/strnlen: Likewise.
58245         * modules/strpbrk: Likewise.
58246         * modules/strsep: Likewise.
58247         * modules/strstr: Likewise.
58248         * modules/strtok_r: Likewise.
58249         * tests/test-dirname.c: Don't include "strdup.h", since
58250         <string.h> now suffices.
58251         * tests/test-memmem.c: Don't include "memmem.h", since
58252         <string.h> now suffices.
58253
58254 2007-01-25  Bruno Haible  <bruno@clisp.org>
58255
58256         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
58257         *resultp is 0.
58258
58259         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
58260         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
58261         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
58262         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
58263
58264         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
58265         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
58266         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
58267         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
58268         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
58269         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
58270
58271 2007-01-24  Bruno Haible  <bruno@clisp.org>
58272
58273         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
58274         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
58275         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
58276         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
58277         gl_FUNC_FTS_CORE.
58278         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
58279         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
58280         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58281         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
58282         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
58283         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
58284         gl_FUNC_FCHOWNAT.
58285         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
58286         gl_FUNC_STRFTIME.
58287         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
58288         Reported by Ralf Wildenhues.
58289
58290 2007-01-24  Bruno Haible  <bruno@clisp.org>
58291
58292         Drop AC_REQUIRE calls that are redundant with the module dependencies.
58293         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
58294         gl_GETADDRINFO.
58295         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
58296         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
58297         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
58298
58299 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
58300
58301         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
58302         Don't use 'exit'; just return from 'main'.
58303         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
58304
58305         * lib/fnmatch_.h: Readjust white space and comments to match
58306         glibc, to avoid spurious diffs.
58307
58308 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58309
58310         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
58311         2004-12-01 change by Jakub Jelinek, since this code won't compile
58312         if !LIBC.  Problem reported by Bob Proulx.
58313
58314 2007-01-23  Bruno Haible  <bruno@clisp.org>
58315
58316         * lib/striconveh.c: Include c-strcaseeq.h.
58317         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
58318         * modules/striconveh (Depends-on): Add c-strcaseeq.
58319
58320 2007-01-23  Bruno Haible  <bruno@clisp.org>
58321
58322         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
58323
58324         * modules/c-strcaseeq: New file.
58325         * lib/c-strcaseeq.h: New file.
58326
58327         * modules/streq: New file.
58328         * lib/streq.h: New file.
58329
58330 2007-01-23  Bruno Haible  <bruno@clisp.org>
58331
58332         * modules/striconveha-tests: New file.
58333         * tests/test-striconveha.c: New file.
58334
58335         * lib/striconveha.h: Include <stdbool.h>.
58336         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
58337         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
58338         (mem_iconveha_notranslit): Renamed from mem_iconveha.
58339         (mem_iconveha): New function.
58340         (str_iconveha_notranslit): Renamed from str_iconveha.
58341         (str_iconveha): New function.
58342         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
58343         c-strcase.
58344
58345 2007-01-23  Bruno Haible  <bruno@clisp.org>
58346
58347         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
58348         encodings without forgiving before trying any encoding with handler.
58349         (str_iconveha): Try all encodings without forgiving before trying any
58350         encoding with handler.
58351
58352 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58353
58354         Import the following changes from libc.
58355
58356         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
58357
58358         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
58359
58360         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58361
58362         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
58363         normal_bracket label.
58364
58365         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
58366
58367         [BZ #361]
58368         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
58369         to normal_bracket after fetching the next character.
58370
58371 2007-01-22  Bruno Haible  <bruno@clisp.org>
58372
58373         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
58374         argument.
58375         * lib/striconveh.c (iconv_carefully_1): New function.
58376         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
58377         argument.
58378         (str_cd_iconveh): Update.
58379         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
58380         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
58381         * tests/test-striconveh.c (MAGIC): New macro.
58382         (new_offsets): New function.
58383         (main): Test call with and without offsets.
58384
58385 2007-01-22  Bruno Haible  <bruno@clisp.org>
58386
58387         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
58388         * modules/sys_select (Makefile.am): Likewise.
58389         * modules/sys_socket (Makefile.am): Likewise.
58390         * modules/sys_time (Makefile.am): Likewise.
58391
58392 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
58393
58394         * modules/gettimeofday (License): Change from GPL to LGPL, since
58395         gettimeofday is a library function.
58396
58397 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58398
58399         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
58400
58401 2007-01-21  Bruno Haible  <bruno@clisp.org>
58402
58403         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
58404
58405 2007-01-21  Bruno Haible  <bruno@clisp.org>
58406
58407         * modules/striconveha: New file.
58408         * lib/striconveha.h: New file.
58409         * lib/striconveha.c: New file.
58410         * MODULES.html.sh (Internationalization functions): Add striconveha.
58411         * lib/striconv.c (str_iconv): Optimize the case of an empty input
58412         string.
58413         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
58414
58415 2007-01-21  Bruno Haible  <bruno@clisp.org>
58416
58417         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
58418         * lib/striconveh.c (str_iconveh): Likewise.
58419
58420 2007-01-21  Bruno Haible  <bruno@clisp.org>
58421
58422         * lib/striconveh.h (mem_iconveh): New declaration.
58423         * lib/striconveh.c (mem_iconveh): New function.
58424         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
58425
58426 2007-01-21  Bruno Haible  <bruno@clisp.org>
58427
58428         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
58429
58430         * lib/striconveh.h (mem_cd_iconveh): Change specification.
58431         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
58432         original result buffer.
58433         (str_cd_iconveh): Update.
58434         * tests/test-striconveh.c (main): Update.
58435
58436         * lib/striconv.h (mem_cd_iconv): Change specification.
58437         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
58438         result buffer.
58439         (str_cd_iconv): Update.
58440         * tests/test-striconv.c (main): Update.
58441
58442 2007-01-21  Bruno Haible  <bruno@clisp.org>
58443
58444         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
58445
58446 2007-01-20  Jim Meyering  <jim@meyering.net>
58447
58448         * lib/userspec.c (parse_with_separator): If a user or group string
58449         starts with "+", skip the corresponding name-to-ID look-up, since
58450         such a look-up must fail: user and group names may not include "+".
58451
58452 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
58453
58454         * lib/poll.c: Include sys/time.h and time.h unconditionally,
58455         since we now assume the sys_time module.
58456         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
58457         check for sys/time.h; no longer needed.
58458         * modules/poll (Depends-on): Depend on sys_time.
58459
58460 2007-01-18  Bruno Haible  <bruno@clisp.org>
58461
58462         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
58463         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
58464
58465         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
58466         gettimeofday.
58467
58468         * tests/test-gettimeofday.c: Include <time.h>.
58469         (dummy): Remove variable.
58470
58471         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
58472         gl_HEADER_SYS_TIME_H.
58473         (gl_HEADER_SYS_TIME_H): New macro.
58474
58475         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
58476         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58477         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
58478         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
58479         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58480         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
58481         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
58482         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58483         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
58484         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
58485         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58486
58487         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
58488         last change; it caused a compilation error when cross-compiling to
58489         Cygwin.
58490
58491 2007-01-18  Jim Meyering  <jim@meyering.net>
58492
58493         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
58494         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
58495         than the race-prone "test -d sys || mkdir sys".
58496         (configure.ac): Use AC_PROG_MKDIR_P.
58497         * modules/sys_select: Likewise.
58498         * modules/sys_socket: Likewise.
58499         * modules/sys_time: Likewise.
58500
58501 2007-01-18  Eric Blake  <ebb9@byu.net>
58502
58503         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
58504         replace gettimeofday.
58505         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
58506         name, to avoid infinite recursion.
58507
58508 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
58509
58510         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
58511         module sys_time.
58512         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
58513         assume timespec.h defines struct timeval.
58514         * lib/settime.c: Likewise.
58515         * lib/utimens.c: Likewise.
58516         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
58517         since we now assume the gettimeofday module.
58518         * lib/tempname.c (__gen_tempname): Likewise.
58519         * lib/gettimeofday.h: Remove.
58520         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
58521         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
58522         Include <time.h>, for 'time()'.
58523         (localtime_buffer_addr): Also use this workaround if
58524         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
58525         to simplify the uses.  All uses changed.
58526         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
58527         that #undef is inside {}, and 'const' follows type name consistently.
58528         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
58529         (gettimeofday): Do not use the maximum possible value for
58530         tv->tv_usec, since that might break usages other than ls.c.
58531         Instead, we'll leave ls.c alone.  This undoes today's patch
58532         by Bruno.  Add a compile-time warning for 1s-clock resolution;
58533         we've never observed the problem but might as well keep the
58534         canary.
58535         * lib/nanosleep.c: Include timespec.h first, for interface check.
58536         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
58537         now assume the sys_time module.
58538         * lib/tempname.c: Likewise.
58539         * lib/timespec.h: Likewise.
58540         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
58541         needed.
58542         * lib/strftime.c: Likewise.
58543         * lib/timespec.h: Likewise.
58544         * lib/posixtm.c: Include posixtm.h first, for interface check.
58545         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
58546         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
58547         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
58548         * lib/sys_time_.h: New file.
58549         * lib/timespec.h (struct timespec): Use long int, not long.
58550         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58551         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
58552         Remove obsolescent call to AC_HEADER_TIME.
58553         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
58554         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58555         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
58556         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
58557         Likewise.
58558         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
58559         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
58560         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
58561         into the sys_time module.  Check for gettimeofday just once.
58562         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
58563         for gettimeofday signature to just check the signature.  Merely
58564         compile it, since linking doesn't test signature.  Improve test for
58565         whether gettimeofday.o is actually needed.
58566         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
58567         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
58568         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
58569         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58570         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
58571         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
58572         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
58573         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
58574         than worrying about sys/time.h.
58575         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58576         Don't bother worrying about TIME_WITH_SYS_TIME.
58577         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
58578         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
58579         * m4/sys_time_h.m4: New file.
58580         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
58581         Don't include sys/time.h.  Return from main rather than exiting.
58582         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
58583         all uses changed.
58584         * modules/gethrxtime (Depends-on): Add sys_time.
58585         * modules/gettime (Depends-on): Likewise.
58586         * modules/gettimeofday (Depends-on): Likewise.
58587         * modules/nanosleep (Depends-on): Likewise.
58588         * modules/settime (Depends-on): Likewise.
58589         * modules/tempname (Depends-on): Likewise.
58590         * modules/utimens (Depends-on): Likewise.
58591         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
58592         (Include): Change back to <sys/time.h>.
58593         (Maintainer): Add self.
58594         * modules/sys_time: New file.
58595         * modules/tempname (Depends-on): Add gettimeofday.
58596         * tests/test-gettimeofday.c: Include <sys/time.h>
58597         rather than gettimeofday.h.
58598
58599 2007-01-17  Bruno Haible  <bruno@clisp.org>
58600
58601         * gnulib-tool (func_get_license): Revert last patch. Instead, let
58602         the license default to GPL.
58603         (func_create_testdir): Don't complain if a module is LGPL and its
58604         tests module depends on GPLed modules.
58605
58606 2007-01-17  Bruno Haible  <bruno@clisp.org>
58607
58608         * lib/gettimeofday.c (gettimeofday): Add code for the case
58609         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
58610         maximum possible value for tv->tv_usec, rather than the minimum one.
58611
58612 2005-10-08  Martin Lambers  <marlam@marlam.de>
58613 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58614 2007-01-16  Bruno Haible  <bruno@clisp.org>
58615
58616         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
58617         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
58618         gl_FUNC_GETTIMEOFDAY.
58619         (Include): Add gettimeofday.h.
58620         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
58621         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
58622         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
58623         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
58624         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
58625         * lib/gettimeofday.h: New file.
58626         * lib/gettimeofday.c: Include <sys/timeb.h>.
58627         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
58628         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58629         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
58630         fall back on time().
58631
58632         * tests/test-gettimeofday.c: New file.
58633         * modules/gettimeofday-tests: New file.
58634
58635 2007-01-16  Eric Blake  <ebb9@byu.net>
58636
58637         * modules/fnmatch (Depends-on): Depend on wchar.
58638         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
58639         * m4/fnmatch.m4: Likewise.
58640         * modules/mbchar (Makefile.am): Assume <wchar.h>.
58641         * m4/mbchar.m4: Likewise.
58642         * modules/mbswidth (Depends-on): Depend on wchar.
58643         * lib/mbswidth.c: Assume <wchar.h>.
58644         * m4/mbswidth.m4: Likewise.
58645         * modules/quotearg (Depends-on): Depend on wchar.
58646         * lib/quotearg.c: Assume <wchar.h>.
58647         * m4/quotearg.m4: Likewise.
58648         * modules/regex (Depends-on): Depend on wchar.
58649         * lib/regex_internal.h: Assume <wchar.h>.
58650         * m4/regex.m4: Likewise.
58651         * modules/stdint (Depends-on): Depend on wchar.
58652         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
58653         * m4/stdint.m4: Likewise.
58654         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
58655         * modules/strftime (Depends-on): Depend on wchar.
58656         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
58657         * modules/strtol (Depends-on): Depend on wchar.
58658         * lib/strtol.c: Assume <wchar.h>.
58659         * modules/wcwidth (Depends-on): Depend on wchar.
58660         * lib/wcwidth.h: Assume <wchar.h>.
58661         * m4/wcwidth.m4: Likewise.
58662
58663 2007-01-16  Bruno Haible  <bruno@clisp.org>
58664
58665         * modules/csharpexec-script: New, created from...
58666         * modules/csharpexec: ... this.
58667
58668 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58669
58670         * modules/javaexec-script: New, created from...
58671         * modules/javaexec: ... this.
58672
58673 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58674
58675         * modules/poll (Dependencies): Add sys_select.
58676
58677 2007-01-15  Jim Meyering  <jim@meyering.net>
58678
58679         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
58680         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
58681         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
58682         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
58683
58684 2007-01-15  Bruno Haible  <bruno@clisp.org>
58685
58686         * modules/striconveh: New file.
58687         * lib/striconveh.h: New file.
58688         * lib/striconveh.c: New file.
58689         * MODULES.html.sh (Internationalization functions): Add striconveh.
58690
58691         * modules/striconveh-tests: New file.
58692         * tests/test-striconveh.c: New file.
58693
58694 2007-01-15  Bruno Haible  <bruno@clisp.org>
58695
58696         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
58697         not from GNU libiconv or GNU libc.
58698
58699 2007-01-15  Bruno Haible  <bruno@clisp.org>
58700
58701         * doc/gnulib-intro.texi (Copyright): Explain the different license
58702         terms for module descriptions, autoconf macros, tests, documentation.
58703
58704 2007-01-14  Bruno Haible  <bruno@clisp.org>
58705
58706         * modules/striconv-tests: New file.
58707         * tests/test-striconv.c: New file.
58708
58709 2007-01-14  Bruno Haible  <bruno@clisp.org>
58710
58711         * modules/iconv-tests: New file.
58712         * tests/test-iconv.c: New file.
58713
58714 2007-01-14  Bruno Haible  <bruno@clisp.org>
58715
58716         * gnulib-tool (func_get_license): For test modules, use the license of
58717         the main module.
58718
58719 2007-01-14  Bruno Haible  <bruno@clisp.org>
58720
58721         * modules/iconv (Include): Clarify that <iconv.h> can only be included
58722         if iconv is found to exist.
58723
58724 2007-01-14  Bruno Haible  <bruno@clisp.org>
58725
58726         * modules/c-ctype-tests: New file.
58727         * tests/test-c-ctype.c: New file.
58728
58729 2007-01-14  Bruno Haible  <bruno@clisp.org>
58730
58731         * modules/binary-io-tests: New file.
58732         * tests/test-binary-io.sh: New file.
58733         * tests/test-binary-io.c: New file.
58734
58735 2007-01-14  Bruno Haible  <bruno@clisp.org>
58736
58737         * modules/array-oset-tests: New file.
58738         * tests/test-array_oset.c: New file.
58739
58740 2007-01-14  Bruno Haible  <bruno@clisp.org>
58741
58742         * modules/array-list-tests: New file.
58743         * tests/test-array_list.c: New file.
58744
58745 2007-01-14  Bruno Haible  <bruno@clisp.org>
58746
58747         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
58748         and make.
58749         Reported by Simon Josefsson in
58750         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
58751
58752 2007-01-14  Bruno Haible  <bruno@clisp.org>
58753
58754         * modules/allocsa-tests: New file.
58755         * tests/test-allocsa.c: New file.
58756
58757 2007-01-14  Bruno Haible  <bruno@clisp.org>
58758
58759         * modules/fchdir (Depends-on): Add absolute-header.
58760         * modules/unistd (Depends-on): Likewise.
58761
58762 2006-12-30  Bruno Haible  <bruno@clisp.org>
58763
58764         * modules/fchdir: New file.
58765         * modules/unistd (Files): Add lib/unistd_.h.
58766         (Makefile.am): Generate unistd.h from unistd_.h.
58767         * lib/fchdir.c: New file.
58768         * lib/dirent_.h: New file.
58769         * lib/unistd_.h: New file.
58770         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
58771         * m4/fchdir.m4: New file.
58772         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
58773         (gl_HEADER_UNISTD): Invoke it.
58774         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
58775         function.
58776         * lib/backupfile.c (opendir, closedir): Undefine.
58777         * lib/chown.c (open, close): Undefine.
58778         * lib/clean-temp.c (open, close): Undefine.
58779         * lib/copy-file.c (open, close): Undefine.
58780         * lib/execute.c (open, close): Undefine.
58781         * lib/fsusage.c (open, close): Undefine.
58782         * lib/gc-gnulib.c (open, close): Undefine.
58783         * lib/getcwd.c (opendir, closedir): Undefine.
58784         * lib/glob.c (opendir, closedir): Undefine.
58785         * lib/javacomp.c (open, close): Undefine.
58786         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
58787         * lib/openat-proc.c (open, close): Undefine.
58788         * lib/pagealign_alloc.c (open, close): Undefine.
58789         * lib/pipe.c (open, close): Undefine.
58790         * lib/progreloc.c (open, close): Undefine.
58791         * lib/savedir.c (opendir, closedir): Undefine.
58792         * lib/utime.c (open, close): Undefine.
58793         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
58794
58795 2007-01-10  Bruno Haible  <bruno@clisp.org>
58796
58797         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
58798
58799 2007-01-12  Eric Blake  <ebb9@byu.net>
58800
58801         Provide a robust <wchar.h>.  Further simplifications are now
58802         possible in other modules, but not included here.
58803         * modules/wchar: New module.
58804         * m4/wchar.m4: New file.
58805         * lib/wchar_.h: Likewise.
58806         * modules/mbchar (Depends-on): Depend on wchar, as the first use
58807         of the new module.
58808         * MODULES.html.sh (Extended multibyte and wide character utilities):
58809         New section.
58810
58811 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
58812
58813         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
58814         to a reasonable default for memory allocation.
58815         (xreadlink): Don't allocate a huge buffer, to work around a buggy
58816         file system that reports garbage st_size values for symlinks.
58817         Problem reported by Liyang Hu.
58818
58819 2007-01-11  Simon Josefsson  <simon@josefsson.org>
58820
58821         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
58822         Emacs .#* auto-save files).
58823
58824 2007-01-11  Bruno Haible  <bruno@clisp.org>
58825
58826         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
58827         directory.
58828
58829 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58830
58831         Use @...@ consistently in lib/wctype_.h.
58832         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
58833         on it being set to 1 or 0.
58834         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
58835         go back to AC_SUBSTing it.
58836         * modules/wctype (Makefile.am): Undo previous change.
58837
58838 2007-01-10  Eric Blake  <ebb9@byu.net>
58839
58840         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
58841         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
58842         * modules/wctype (Makefile.am): Likewise.
58843         Reported by Chris McGuire.
58844
58845 2007-01-10  Jim Meyering  <jim@meyering.net>
58846
58847         fts.c: a small readability/maintainability improvement
58848         * lib/fts.c (fts_read): Make this code slightly more readable and
58849         maintainable by hoisting the "sp->fts_cur = p" assignments to
58850         immediately follow the statements that set P.  Derived from
58851         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
58852
58853 2007-01-10  Eric Blake  <ebb9@byu.net>
58854
58855         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
58856         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
58857         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58858         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
58859         Reported by Chris McGuire.
58860
58861 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58862
58863         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
58864         in sed script.
58865
58866 2007-01-09  Bruno Haible  <bruno@clisp.org>
58867
58868         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
58869         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
58870         variables.
58871         (func_module): Use them.
58872
58873 2007-01-09  Bruno Haible  <bruno@clisp.org>
58874
58875         * modules/unistr/base: New file.
58876         * lib/unistr.h: New file.
58877
58878         * modules/unistr/u8-to-u16: New file.
58879         * lib/unistr/u8-to-u16.c: New file.
58880
58881         * modules/unistr/u8-to-u32: New file.
58882         * lib/unistr/u8-to-u32.c: New file.
58883
58884         * modules/unistr/u16-to-u8: New file.
58885         * lib/unistr/u16-to-u8.c: New file.
58886
58887         * modules/unistr/u16-to-u32: New file.
58888         * lib/unistr/u16-to-u32.c: New file.
58889
58890         * modules/unistr/u32-to-u8: New file.
58891         * lib/unistr/u32-to-u8.c: New file.
58892
58893         * modules/unistr/u32-to-u16: New file.
58894         * lib/unistr/u32-to-u16.c: New file.
58895
58896         * modules/unistr/u8-check: New file.
58897         * modules/unistr/u16-check: New file.
58898         * modules/unistr/u32-check: New file.
58899         * lib/unistr/u8-check.c: New file.
58900         * lib/unistr/u16-check.c: New file.
58901         * lib/unistr/u32-check.c: New file.
58902
58903         * modules/unistr/u8-chr: New file.
58904         * modules/unistr/u16-chr: New file.
58905         * modules/unistr/u32-chr: New file.
58906         * lib/unistr/u8-chr.c: New file.
58907         * lib/unistr/u16-chr.c: New file.
58908         * lib/unistr/u32-chr.c: New file.
58909
58910         * modules/unistr/u8-cmp: New file.
58911         * modules/unistr/u16-cmp: New file.
58912         * modules/unistr/u32-cmp: New file.
58913         * lib/unistr/u8-cmp.c: New file.
58914         * lib/unistr/u16-cmp.c: New file.
58915         * lib/unistr/u32-cmp.c: New file.
58916
58917         * modules/unistr/u8-cpy: New file.
58918         * modules/unistr/u16-cpy: New file.
58919         * modules/unistr/u32-cpy: New file.
58920         * lib/unistr/u8-cpy.c: New file.
58921         * lib/unistr/u16-cpy.c: New file.
58922         * lib/unistr/u32-cpy.c: New file.
58923         * lib/unistr/u-cpy.h: New file.
58924
58925         * modules/unistr/u8-cpy-alloc: New file.
58926         * modules/unistr/u16-cpy-alloc: New file.
58927         * modules/unistr/u32-cpy-alloc: New file.
58928         * lib/unistr/u8-cpy-alloc.c: New file.
58929         * lib/unistr/u16-cpy-alloc.c: New file.
58930         * lib/unistr/u32-cpy-alloc.c: New file.
58931         * lib/unistr/u-cpy-alloc.h: New file.
58932
58933         * modules/unistr/u8-endswith: New file.
58934         * modules/unistr/u16-endswith: New file.
58935         * modules/unistr/u32-endswith: New file.
58936         * lib/unistr/u8-endswith.c: New file.
58937         * lib/unistr/u16-endswith.c: New file.
58938         * lib/unistr/u32-endswith.c: New file.
58939         * lib/unistr/u-endswith.h: New file.
58940
58941         * modules/unistr/u8-mblen: New file.
58942         * modules/unistr/u16-mblen: New file.
58943         * modules/unistr/u32-mblen: New file.
58944         * lib/unistr/u8-mblen.c: New file.
58945         * lib/unistr/u16-mblen.c: New file.
58946         * lib/unistr/u32-mblen.c: New file.
58947
58948         * modules/unistr/u8-mbtouc: New file.
58949         * modules/unistr/u16-mbtouc: New file.
58950         * modules/unistr/u32-mbtouc: New file.
58951         * lib/unistr/u8-mbtouc.c: New file.
58952         * lib/unistr/u16-mbtouc.c: New file.
58953         * lib/unistr/u32-mbtouc.c: New file.
58954
58955         * modules/unistr/u8-mbtouc-safe: New file.
58956         * modules/unistr/u16-mbtouc-safe: New file.
58957         * modules/unistr/u32-mbtouc-safe: New file.
58958         * lib/unistr/u8-mbtouc-safe.c: New file.
58959         * lib/unistr/u16-mbtouc-safe.c: New file.
58960         * lib/unistr/u32-mbtouc-safe.c: New file.
58961
58962         * modules/unistr/u8-move: New file.
58963         * modules/unistr/u16-move: New file.
58964         * modules/unistr/u32-move: New file.
58965         * lib/unistr/u8-move.c: New file.
58966         * lib/unistr/u16-move.c: New file.
58967         * lib/unistr/u32-move.c: New file.
58968         * lib/unistr/u-move.h: New file.
58969
58970         * modules/unistr/u8-next: New file.
58971         * modules/unistr/u16-next: New file.
58972         * modules/unistr/u32-next: New file.
58973         * lib/unistr/u8-next.c: New file.
58974         * lib/unistr/u16-next.c: New file.
58975         * lib/unistr/u32-next.c: New file.
58976
58977         * modules/unistr/u8-prev: New file.
58978         * modules/unistr/u16-prev: New file.
58979         * modules/unistr/u32-prev: New file.
58980         * lib/unistr/u8-prev.c: New file.
58981         * lib/unistr/u16-prev.c: New file.
58982         * lib/unistr/u32-prev.c: New file.
58983
58984         * modules/unistr/u8-set: New file.
58985         * modules/unistr/u16-set: New file.
58986         * modules/unistr/u32-set: New file.
58987         * lib/unistr/u8-set.c: New file.
58988         * lib/unistr/u16-set.c: New file.
58989         * lib/unistr/u32-set.c: New file.
58990         * lib/unistr/u-set.h: New file.
58991
58992         * modules/unistr/u8-startswith: New file.
58993         * modules/unistr/u16-startswith: New file.
58994         * modules/unistr/u32-startswith: New file.
58995         * lib/unistr/u8-startswith.c: New file.
58996         * lib/unistr/u16-startswith.c: New file.
58997         * lib/unistr/u32-startswith.c: New file.
58998         * lib/unistr/u-startswith.h: New file.
58999
59000         * modules/unistr/u8-stpcpy: New file.
59001         * modules/unistr/u16-stpcpy: New file.
59002         * modules/unistr/u32-stpcpy: New file.
59003         * lib/unistr/u8-stpcpy.c: New file.
59004         * lib/unistr/u16-stpcpy.c: New file.
59005         * lib/unistr/u32-stpcpy.c: New file.
59006         * lib/unistr/u-stpcpy.h: New file.
59007
59008         * modules/unistr/u8-stpncpy: New file.
59009         * modules/unistr/u16-stpncpy: New file.
59010         * modules/unistr/u32-stpncpy: New file.
59011         * lib/unistr/u8-stpncpy.c: New file.
59012         * lib/unistr/u16-stpncpy.c: New file.
59013         * lib/unistr/u32-stpncpy.c: New file.
59014         * lib/unistr/u-stpncpy.h: New file.
59015
59016         * modules/unistr/u8-strcat: New file.
59017         * modules/unistr/u16-strcat: New file.
59018         * modules/unistr/u32-strcat: New file.
59019         * lib/unistr/u8-strcat.c: New file.
59020         * lib/unistr/u16-strcat.c: New file.
59021         * lib/unistr/u32-strcat.c: New file.
59022         * lib/unistr/u-strcat.h: New file.
59023
59024         * modules/unistr/u8-strchr: New file.
59025         * modules/unistr/u16-strchr: New file.
59026         * modules/unistr/u32-strchr: New file.
59027         * lib/unistr/u8-strchr.c: New file.
59028         * lib/unistr/u16-strchr.c: New file.
59029         * lib/unistr/u32-strchr.c: New file.
59030
59031         * modules/unistr/u8-strcmp: New file.
59032         * modules/unistr/u16-strcmp: New file.
59033         * modules/unistr/u32-strcmp: New file.
59034         * lib/unistr/u8-strcmp.c: New file.
59035         * lib/unistr/u16-strcmp.c: New file.
59036         * lib/unistr/u32-strcmp.c: New file.
59037
59038         * modules/unistr/u8-strcpy: New file.
59039         * modules/unistr/u16-strcpy: New file.
59040         * modules/unistr/u32-strcpy: New file.
59041         * lib/unistr/u8-strcpy.c: New file.
59042         * lib/unistr/u16-strcpy.c: New file.
59043         * lib/unistr/u32-strcpy.c: New file.
59044         * lib/unistr/u-strcpy.h: New file.
59045
59046         * modules/unistr/u8-strcspn: New file.
59047         * modules/unistr/u16-strcspn: New file.
59048         * modules/unistr/u32-strcspn: New file.
59049         * lib/unistr/u8-strcspn.c: New file.
59050         * lib/unistr/u16-strcspn.c: New file.
59051         * lib/unistr/u32-strcspn.c: New file.
59052         * lib/unistr/u-strcspn.h: New file.
59053
59054         * modules/unistr/u8-strdup: New file.
59055         * modules/unistr/u16-strdup: New file.
59056         * modules/unistr/u32-strdup: New file.
59057         * lib/unistr/u8-strdup.c: New file.
59058         * lib/unistr/u16-strdup.c: New file.
59059         * lib/unistr/u32-strdup.c: New file.
59060         * lib/unistr/u-strdup.h: New file.
59061
59062         * modules/unistr/u8-strlen: New file.
59063         * modules/unistr/u16-strlen: New file.
59064         * modules/unistr/u32-strlen: New file.
59065         * lib/unistr/u8-strlen.c: New file.
59066         * lib/unistr/u16-strlen.c: New file.
59067         * lib/unistr/u32-strlen.c: New file.
59068         * lib/unistr/u-strlen.h: New file.
59069
59070         * modules/unistr/u8-strmblen: New file.
59071         * modules/unistr/u16-strmblen: New file.
59072         * modules/unistr/u32-strmblen: New file.
59073         * lib/unistr/u8-strmblen.c: New file.
59074         * lib/unistr/u16-strmblen.c: New file.
59075         * lib/unistr/u32-strmblen.c: New file.
59076
59077         * modules/unistr/u8-strmbtouc: New file.
59078         * modules/unistr/u16-strmbtouc: New file.
59079         * modules/unistr/u32-strmbtouc: New file.
59080         * lib/unistr/u8-strmbtouc.c: New file.
59081         * lib/unistr/u16-strmbtouc.c: New file.
59082         * lib/unistr/u32-strmbtouc.c: New file.
59083
59084         * modules/unistr/u8-strncat: New file.
59085         * modules/unistr/u16-strncat: New file.
59086         * modules/unistr/u32-strncat: New file.
59087         * lib/unistr/u8-strncat.c: New file.
59088         * lib/unistr/u16-strncat.c: New file.
59089         * lib/unistr/u32-strncat.c: New file.
59090         * lib/unistr/u-strncat.h: New file.
59091
59092         * modules/unistr/u8-strncmp: New file.
59093         * modules/unistr/u16-strncmp: New file.
59094         * modules/unistr/u32-strncmp: New file.
59095         * lib/unistr/u8-strncmp.c: New file.
59096         * lib/unistr/u16-strncmp.c: New file.
59097         * lib/unistr/u32-strncmp.c: New file.
59098
59099         * modules/unistr/u8-strncpy: New file.
59100         * modules/unistr/u16-strncpy: New file.
59101         * modules/unistr/u32-strncpy: New file.
59102         * lib/unistr/u8-strncpy.c: New file.
59103         * lib/unistr/u16-strncpy.c: New file.
59104         * lib/unistr/u32-strncpy.c: New file.
59105         * lib/unistr/u-strncpy.h: New file.
59106
59107         * modules/unistr/u8-strnlen: New file.
59108         * modules/unistr/u16-strnlen: New file.
59109         * modules/unistr/u32-strnlen: New file.
59110         * lib/unistr/u8-strnlen.c: New file.
59111         * lib/unistr/u16-strnlen.c: New file.
59112         * lib/unistr/u32-strnlen.c: New file.
59113         * lib/unistr/u-strnlen.h: New file.
59114
59115         * modules/unistr/u8-strpbrk: New file.
59116         * modules/unistr/u16-strpbrk: New file.
59117         * modules/unistr/u32-strpbrk: New file.
59118         * lib/unistr/u8-strpbrk.c: New file.
59119         * lib/unistr/u16-strpbrk.c: New file.
59120         * lib/unistr/u32-strpbrk.c: New file.
59121         * lib/unistr/u-strpbrk.h: New file.
59122
59123         * modules/unistr/u8-strrchr: New file.
59124         * modules/unistr/u16-strrchr: New file.
59125         * modules/unistr/u32-strrchr: New file.
59126         * lib/unistr/u8-strrchr.c: New file.
59127         * lib/unistr/u16-strrchr.c: New file.
59128         * lib/unistr/u32-strrchr.c: New file.
59129
59130         * modules/unistr/u8-strspn: New file.
59131         * modules/unistr/u16-strspn: New file.
59132         * modules/unistr/u32-strspn: New file.
59133         * lib/unistr/u8-strspn.c: New file.
59134         * lib/unistr/u16-strspn.c: New file.
59135         * lib/unistr/u32-strspn.c: New file.
59136         * lib/unistr/u-strspn.h: New file.
59137
59138         * modules/unistr/u8-strstr: New file.
59139         * modules/unistr/u16-strstr: New file.
59140         * modules/unistr/u32-strstr: New file.
59141         * lib/unistr/u8-strstr.c: New file.
59142         * lib/unistr/u16-strstr.c: New file.
59143         * lib/unistr/u32-strstr.c: New file.
59144         * lib/unistr/u-strstr.h: New file.
59145
59146         * modules/unistr/u8-strtok: New file.
59147         * modules/unistr/u16-strtok: New file.
59148         * modules/unistr/u32-strtok: New file.
59149         * lib/unistr/u8-strtok.c: New file.
59150         * lib/unistr/u16-strtok.c: New file.
59151         * lib/unistr/u32-strtok.c: New file.
59152         * lib/unistr/u-strtok.h: New file.
59153
59154         * modules/unistr/u8-uctomb: New file.
59155         * modules/unistr/u16-uctomb: New file.
59156         * modules/unistr/u32-uctomb: New file.
59157         * lib/unistr/u8-uctomb.c: New file.
59158         * lib/unistr/u16-uctomb.c: New file.
59159         * lib/unistr/u32-uctomb.c: New file.
59160
59161         * MODULES.html.sh (Unicode string functions): Add the new modules.
59162
59163 2007-01-08  Bruno Haible  <bruno@clisp.org>
59164
59165         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
59166         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
59167         subdirectories.
59168
59169 2007-01-08  Karl Berry  <karl@gnu.org>
59170
59171         * doc/error.texi: mention that main() fns must set program_name
59172         when progname is used.
59173
59174 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
59175
59176         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
59177         WCTYPE_H is empty, for the benefit of builds from non-distclean
59178         directories.  Problem reported by Eric Blake in
59179         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
59180
59181 2007-01-08  Bruno Haible  <bruno@clisp.org>
59182
59183         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
59184         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
59185         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
59186         PROVIDE_CANONICALIZE_FILENAME_MODE.
59187         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
59188
59189 2007-01-08  Bruno Haible  <bruno@clisp.org>
59190
59191         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
59192         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
59193         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
59194         * lib/fts.c: Likewise.
59195         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
59196
59197 2006-12-25  Bruno Haible  <bruno@clisp.org>
59198
59199         * modules/utf8-ucs4-safe: New file.
59200         * lib/utf8-ucs4-safe.h: New file.
59201         * lib/unistr/utf8-ucs4-safe.c: New file.
59202
59203         * modules/utf16-ucs4-safe: New file.
59204         * lib/utf16-ucs4-safe.h: New file.
59205         * lib/unistr/utf16-ucs4-safe.c: New file.
59206
59207         * MODULES.html.sh (Unicode string functions): Add the new modules.
59208
59209 2007-01-08  Bruno Haible  <bruno@clisp.org>
59210
59211         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
59212         (Depends-on): Add unitypes.
59213         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59214         (u8_mbtouc_aux): Move out to separate file.
59215         (u8_mbtouc): Use ucs4_t, uint8_t types.
59216         * lib/unistr/utf8-ucs4.c: New file.
59217
59218         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
59219         (Depends-on): Add unitypes.
59220         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59221         (u16_mbtouc_aux): Move out to separate file.
59222         (u16_mbtouc): Use ucs4_t, uint16_t types.
59223         * lib/unistr/utf16-ucs4.c: New file.
59224
59225         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
59226         (Depends-on): Add unitypes.
59227         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
59228         (u8_uctomb_aux): Move out to separate file.
59229         (u8_uctomb): Use ucs4_t, uint8_t types.
59230         * lib/unistr/ucs4-utf8.c: New file.
59231
59232         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
59233         (Depends-on): Add unitypes.
59234         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
59235         (u16_uctomb_aux): Move out to separate file.
59236         (u16_uctomb): Use ucs4_t, uint16_t types.
59237         * lib/unistr/ucs4-utf16.c: New file.
59238
59239 2006-12-25  Bruno Haible  <bruno@clisp.org>
59240
59241         * modules/unitypes: New file.
59242         * lib/unitypes.h: New file.
59243         * MODULES.html.sh (func_all_modules): New section "Unicode string
59244         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
59245         this section. Add unitypes.
59246
59247 2007-01-08  Bruno Haible  <bruno@clisp.org>
59248
59249         Avoid variable names that conflict with those from libtool.
59250         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
59251         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
59252         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
59253         library_names_spec to acl_library_names_spec, hardcode_* to
59254         acl_hardcode_*.
59255         Reported by Ralf Wildenhues.
59256
59257 2007-01-08  Bruno Haible  <bruno@clisp.org>
59258
59259         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
59260         definition.
59261         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
59262         definition.
59263         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
59264         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
59265         definition.
59266         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
59267         definition.
59268         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
59269         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
59270         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
59271         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
59272         definition.
59273         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
59274         definition.
59275         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
59276         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
59277         GC_USE_<algorithm>.
59278         * lib/gc-libgcrypt.c: Likewise.
59279         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
59280         * modules/gc-arctwo (configure.ac): Likewise.
59281         * modules/gc-des (configure.ac): Likewise.
59282         * modules/gc-hmac-md5 (configure.ac): Likewise.
59283         * modules/gc-hmac-sha1 (configure.ac): Likewise.
59284         * modules/gc-md2 (configure.ac): Likewise.
59285         * modules/gc-md4 (configure.ac): Likewise.
59286         * modules/gc-md5 (configure.ac): Likewise.
59287         * modules/gc-random (configure.ac): Likewise.
59288         * modules/gc-rijndael (configure.ac): Likewise.
59289         * modules/gc-sha1 (configure.ac): Likewise.
59290
59291 2007-01-08  Bruno Haible  <bruno@clisp.org>
59292
59293         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
59294         macro definition.
59295         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
59296         definition.
59297         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
59298         definition.
59299         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
59300         * modules/fcntl-safer (configure.ac): Likewise.
59301         * modules/fopen-safer (configure.ac): Likewise.
59302         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
59303         GNULIB_FWRITEERROR macro definition.
59304
59305 2007-01-08  Bruno Haible  <bruno@clisp.org>
59306
59307         * m4/gnulib-common.m4: New file.
59308         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
59309         (func_get_filelist): Add m4/gnulib-common.m4.
59310
59311 2007-01-08  Bruno Haible  <bruno@clisp.org>
59312
59313         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
59314         command.
59315
59316 2007-01-08  Jim Meyering  <jim@meyering.net>
59317
59318         Use a more robust test for a "can't happen" condition.
59319         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
59320         narrowed the st_size value.  Presuming the "can't happen" condition
59321         is true, that narrowing could conceivably convert an invalid st_size
59322         value into a valid one.  Instead, use a change based on Matthew
59323         Woehlke's original patch.
59324
59325         Slight readability improvement: use an assert-like macro
59326         in place of literal "abort ()" uses.
59327         * lib/fts.c (fts_assert): Define.
59328         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
59329         Use this macro instead of a bare 'abort'.
59330
59331 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
59332
59333         Don't worry about using IRIX 5.3's wctype.h broken definitions;
59334         simply work around them.
59335         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
59336         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
59337         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
59338         declaring.
59339         Don't bother to define as macros, since the standard doesn't require it.
59340         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
59341         longer worry about IRIX 5.3.
59342         (HAVE_WCTYPE_CTMP_BUG): Remove.
59343
59344 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59345
59346         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
59347         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
59348         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59349         Problems reported by Georg Schwarz for IRIX 5.3.
59350
59351         * gnulib-tool (autoconf_minversion): Take the maximum version number
59352         found, not the minimum.  Problem reported by James Youngman.
59353
59354 2007-01-03  Karl Berry  <karl@gnu.org>
59355
59356         * doc/error.texi: new file, explaining interaction with progname.
59357         * doc/gnulib.texi: include it.  Update copyright.
59358
59359 2007-01-03  Simon Josefsson  <simon@josefsson.org>
59360
59361         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
59362         AC_CANONICAL_HOST, to improve autobuild outputs.
59363
59364 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
59365             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
59366
59367         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
59368         sockets, server sockets, and other file descriptors.  Count errors
59369         to compute the return value.  Reorder the code a bit to be easier
59370         to follow.  Don't set event bits that were not requested (except
59371         POLLERR and POLLHUP).
59372
59373 2007-01-01  Bruno Haible  <bruno@clisp.org>
59374
59375         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
59376
59377 2007-01-03  Jim Meyering  <jim@meyering.net>
59378
59379         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
59380
59381 2007-01-02  Bruno Haible  <bruno@clisp.org>
59382
59383         * modules/settime (Include): Require timespec.h.
59384         * modules/nanosleep (Include): Likewise.
59385
59386 2007-01-01  Bruno Haible  <bruno@clisp.org>
59387
59388         * gnulib-tool (func_emit_copyright_notice): Bump year.
59389         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
59390
59391 2007-01-01  Bruno Haible  <bruno@clisp.org>
59392
59393         Improve support for OpenBSD.
59394         * build-aux/config.rpath (libname_spec): Export.
59395         (library_names_spec): New variable. Export.
59396         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
59397         library_names_spec from the config.rpath output. Locate shared library
59398         through the name pattern in library_names_spec.
59399
59400 2007-01-01  Eric Blake  <ebb9@byu.net>
59401
59402         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
59403
59404 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
59405
59406         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
59407         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
59408         assume the C locale, and avoid an "eval" that could cause trouble.
59409         Problem with SORT reported by Bob Proulx.
59410
59411         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
59412         Define.  Trivial patch from Henning Nielsen Lund, originally
59413         sent to bug-grep@gnu.org today.
59414
59415 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59416
59417         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
59418         struct stat.  Problem reported by Henning Nielsen Lund.
59419         * lib/acl.c: Include acl.h first, to check interface.  Don't
59420         bother to include sys/types.h and sys/stat.h again.
59421
59422 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
59423
59424         Import the following change from libc; problem reported by
59425         Sven Verdoolaege.
59426
59427         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
59428
59429         [BZ #1373]
59430         * lib/argp.h: Remove __NTH for __argp_usage inline function.
59431
59432 2006-12-28  Jim Meyering  <jim@meyering.net>
59433
59434         * build-aux/announce-gen: Do not assume that the package
59435         builds any of tar.gz, tar.bz2, and .xdelta files.
59436         Suggestion from Simon Josefsson.
59437
59438 2006-12-28  Simon Josefsson  <simon@josefsson.org>
59439
59440         * modules/announce-gen: New file.
59441
59442 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
59443
59444         * lib/mbchar.h: Just include <wctype.h>; the wctype module
59445         handles its gotchas now.
59446         * lib/mbswidth.c: Likewise.
59447         * lib/wcwidth.h: Likewise.
59448         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
59449         and iswcntrl; the wctype module does this stuff now.
59450         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
59451         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59452         * modules/mbchar (Depends-on): Add wctype.
59453         * modules/mbswidth (Depends-on): Likewise.
59454         * modules/wcwidth (Depends-on): Likewise.
59455
59456 2006-12-27  Eric Blake  <ebb9@byu.net>
59457
59458         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
59459         module uses more than what <wctype.h> is required to provide.
59460
59461 2006-12-26  Eric Blake  <ebb9@byu.net>
59462
59463         * gnulib-tool (sed_extract_prog): Avoid space-tab.
59464
59465 2006-12-26  Eric Blake  <ebb9@byu.net>
59466
59467         * modules/absolute-header: New module.
59468         * modules/fcntl (Depends-on): Depend on it.
59469         * modules/inttypes (Depends-on): Likewise.
59470         * modules/stdint (Depends-on): Likewise.
59471         * modules/sys_stat (Depends-on): Likewise.
59472         * modules/wctype (Depends-on): Likewise.
59473         * MODULES.html.sh (Support for building libraries and
59474         executables): Document it.
59475
59476 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59477
59478         * gnulib-tool (SED): Remove, undoing previous change.
59479         The problem was that it broke coreutils on Solaris, because
59480         "sed --posix" leaked into a makefile.
59481         (sed): New alias, if 'alias' and GNU sed.
59482
59483 2006-12-24  Jim Meyering  <jim@meyering.net>
59484
59485         Work around an fchownat bug in glibc-2.4:
59486         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
59487         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
59488         in spite of the -P option.
59489         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
59490         New macros.
59491         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
59492         * modules/openat (Files): Add lib/fchownat.c.
59493         * lib/openat.c (fchownat): Don't define here.  Move to...
59494         * lib/fchownat.c: ...this new file.
59495
59496 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59497
59498         Fix bug reported by Bruno Haible in
59499         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
59500         where quotearg.c didn't compile on Mac OS X 10.2 because it
59501         lacks <wchar.h> and wint_t.
59502         * lib/wctype_.h (__wctype_wint_t): New type.
59503         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
59504         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
59505         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
59506         Arg is now of type __wctype_wint_t, not wint_t.
59507         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
59508         substitute HAVE_WINT_T.
59509         * modules/wctype (Files): Add m4/wint_t.m4.
59510         (wctype.h): Substitute HAVE_WINT_T.
59511
59512 2006-12-23  Bruno Haible  <bruno@clisp.org>
59513
59514         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
59515
59516 2006-12-23  Bruno Haible  <bruno@clisp.org>
59517
59518         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
59519         S_ISLNK.
59520         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
59521         mingw.
59522
59523 2006-12-22  Bruno Haible  <bruno@clisp.org>
59524
59525         * lib/copy-file.c: Include acl.h.
59526         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
59527         Close the file descriptors only after being done with copy_acl.
59528         * modules/copy-file (Depends-on): Add acl.
59529
59530 2006-12-22  Bruno Haible  <bruno@clisp.org>
59531
59532         * gnulib-tool (SED): New variable.
59533         Use $SED instead of sed everywhere.
59534
59535 2006-12-22  Bruno Haible  <bruno@clisp.org>
59536
59537         * modules/no-c++: New file.
59538         * m4/no-c++.m4: New file.
59539         * MODULES.html.sh (Support for building libraries and executables):
59540         Add no-c++.
59541
59542 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
59543
59544         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59545         Include <limits.h>, and use its INT_MAX to rewrite the
59546         j loop so that it does not overflow 'int'.  Problem reported by
59547         Ralf Wildenhues in
59548         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
59549         Play it safe by shifting left by 1 rather than multiplying by 2,
59550         as GCC is less likely to optimize this away when the value
59551         is signed (when it assumes overflow leads to undefined behavior).
59552         Also, don't assume time_t uses two's complement.
59553
59554 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
59555
59556         * MODULES.html.sh: New module wctype.
59557         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
59558         * lib/fnmatch.c: Don't bother to include <wchar.h> before
59559         <wctype.h>, since the new wctype module should fix this.
59560         * lib/quotearg.c: Include <wctype.h> unconditionally, since
59561         the wctype module should arrange for it.
59562         * lib/regex_internal.h: Likewise.
59563         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
59564         since the wctype module should handle this now.
59565         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
59566         * modules/fnmatch (Depends-on): Add wctype.
59567         * modules/quotearg (Depends-on): Likewise.
59568         * modules/regex (Depends-on): Likewise.
59569
59570 2006-12-19  Bruno Haible  <bruno@clisp.org>
59571
59572         * lib/strdup.h [C++]: Wrap definitions in extern "C".
59573         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
59574
59575 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59576
59577         * modules/savewd (Depends-on): Fix dependency on fcntl.
59578
59579 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59580
59581         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
59582         conforms to C99, rather than relying on the user's environment
59583         setting of STDINT_H.
59584
59585 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59586         and Eric Blake  <ebb9@byu.net>
59587
59588         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
59589         This is more consistent with the other defines here.
59590         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
59591         Port to z/OS.  Problem reported by Paul Gilmartin.
59592         Change local vars to use gl_ prefix rather than ac_.
59593         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
59594         with other defines.
59595         * modules/double-slash-root: New module.
59596         * modules/dirname (Files): Remove m4/double-slash-root.m4.
59597         (Depends-on): Add double-slash-root.
59598         * MODULES.html.sh (File system functions): Mention new module.
59599
59600 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
59601
59602         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
59603         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
59604         This is for the benefit of gzip, which doesn't do i18n.
59605
59606 2006-12-12  Jim Meyering  <jim@meyering.net>
59607
59608         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
59609         Reported by Andreas Schwab <schwab@suse.de>.
59610
59611 2006-12-12  Bruno Haible  <bruno@clisp.org>
59612
59613         Merge these changes.
59614         2006-09-05  Bruno Haible  <bruno@clisp.org>
59615         * lib/iconvme.c (iconv_string): No need to save and restore errno when
59616         iconv_alloc succeeded.
59617         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
59618         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
59619         test for " && dest " at the end - dest is always != NULL there. Call
59620         iconv with 4xNULL arguments initially, to reset the state. Call iconv
59621         with 2xNULL arguments, also to flush the state storage. Handle the
59622         IRIX iconv behaviour. Realloc the final result, to throw away unused
59623         memory.
59624
59625 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
59626
59627         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
59628         and fchmodat unconditionally, since glibc 2.4 has them.
59629         Problem reported by Arkadiusz Miskiewicz.
59630
59631 2006-12-10  Bruno Haible  <bruno@clisp.org>
59632
59633         * gnulib-tool (func_import): Show the include files only for those
59634         modules that are copied and specified.
59635         Reported by Karl Berry.
59636
59637 2006-12-08  Jim Meyering  <jim@meyering.net>
59638
59639         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
59640         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
59641
59642         * build-aux/announce-gen: Add two new options, both optional:
59643         --bootstrap-tools=TOOL_LIST
59644               a comma-separated list of tools, e.g.,
59645               autoconf,automake,bison,gnulib
59646         --gnulib-snapshot-date=DATE
59647               if gnulib is in the bootstrap tool list,
59648               then report this as the snapshot date.
59649               If not specified, use the current date/time.
59650               If you specify a date here, be sure it's UTC.
59651
59652 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59653
59654         * tests/test-argp-2.sh: Fix test to match actual output.
59655         (func_compare): Fix sed script to be portable.
59656
59657 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
59658
59659         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
59660         workaround for this case.  It is not autoconfigured now; offhand
59661         it's hard to see how to autoconfigure it.
59662
59663 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
59664
59665         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
59666         a directory that is about to be chowned.  Such a directory's
59667         initial file permissions should permit the owner only and this
59668         should not be changed until after the chown, since the group and
59669         other bits would be incorrect if they granted permission before
59670         the chown.
59671
59672         Fix porting problem for iswctype reported by Georg Schwarz in:
59673         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
59674         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
59675         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
59676         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
59677         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59678
59679 2006-12-03  Jim Meyering  <jim@meyering.net>
59680
59681         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
59682         p->fts_statp may not yet be defined.
59683         (fts_read): Instead, set it in the caller, once p->fts_statp is
59684         sure to be defined, and corresponds to a top-level directory.
59685         This bug made du -x fail.  Here's the coreutils test case:
59686         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
59687         Reported by Mike Frysinger.
59688
59689 2006-12-01  Jim Meyering  <jim@meyering.net>
59690
59691         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
59692         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
59693         Reported by Simon Josefsson.
59694
59695 2006-11-30  Jim Meyering  <jim@meyering.net>
59696
59697         * m4/warning.m4: Use the all-permissive copyright notice
59698         recommended by RMS (rather than LGPL).
59699         * m4/vararrays.m4: Likewise.
59700         * m4/flexmember.m4: Likewise.
59701
59702 2006-11-29  Bruno Haible  <bruno@clisp.org>
59703
59704         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59705         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
59706         using +=.
59707         Reported by Simon Josefsson <simon@josefsson.org>.
59708
59709 2006-11-28  James Youngman <jay@gnu.org>
59710
59711         * README: Advise users that they might find the bug-gnulib@gnu.org
59712         and autotools-announce@gnu.org mailing lists useful.
59713
59714 2006-11-28  Bruno Haible  <bruno@clisp.org>
59715
59716         * m4/ptrdiff_max.m4: Remove file.
59717
59718 2006-11-21  Bruno Haible  <bruno@clisp.org>
59719
59720         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
59721         _AC_COMPUTE_INT.
59722         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59723         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
59724         _AC_COMPUTE_INT.
59725         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59726         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
59727         _AC_COMPUTE_INT.
59728         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59729
59730 2006-11-28  Jim Meyering  <jim@meyering.net>
59731
59732         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
59733         warning from "gcc -Wshadow" about shadowing the builtin.
59734
59735 2006-11-27  Bruno Haible  <bruno@clisp.org>
59736
59737         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
59738         _AC_COMPUTE_INT.
59739         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59740
59741 2006-11-27  Bruno Haible  <bruno@clisp.org>
59742             Paul Eggert  <eggert@cs.ucla.edu>
59743
59744         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
59745
59746 2006-11-26  Bruno Haible  <bruno@clisp.org>
59747
59748         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59749         noinst_LTLIBRARIES.
59750
59751 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
59752             Bruno Haible  <bruno@clisp.org>
59753
59754         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
59755         if compiling with "gcc -ansi".
59756
59757 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
59758
59759         Fix some incompatibilities with gcc -ansi -pedantic.
59760         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
59761         if compiling pedantically with GCC, unless it's C99 or later.
59762         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
59763         it mishandles gcc -ansi -pedantic as well.
59764         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
59765         if gcc -pedantic.
59766         * lib/regexec.c (check_node_accept_bytes): Don't use auto
59767         initializers for struct if -pedantic, unless it's C99 or later.
59768
59769 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
59770
59771         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
59772         Don't close an fd more than once. Identical atimes indicate
59773         success, not failure.
59774
59775 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
59776
59777         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
59778
59779 2006-11-23  Jim Meyering  <jim@meyering.net>
59780
59781         * build-aux/announce-gen: New file.  From coreutils.
59782
59783 2006-11-22  Jim Meyering  <jim@meyering.net>
59784
59785         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
59786         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
59787         (fts_read): Use a temporary to narrow the overused st_size member
59788         before using it in a switch statement.  Reported by Matthew Woehlke.
59789
59790         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
59791         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
59792
59793 2006-11-20  Bruno Haible  <bruno@clisp.org>
59794
59795         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
59796         changequote instead of pairs of brackets.
59797         Reported by Andreas Schwab <schwab@suse.de>.
59798
59799 2006-11-21  Jim Meyering  <jim@meyering.net>
59800
59801         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
59802         so as to remain compatible with older compilers.
59803         Patch from Michael Deutschmann.
59804
59805 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
59806
59807         * MODULES.html.sh (File system functions): Add openat.
59808
59809         * lib/openat.h (rpl_fstatat): New macro, if
59810         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
59811         (fstatat): Define to rpl_fstatat under the same conditions,
59812         unless COMPILING_FSTATAT.
59813         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
59814         seems to have the bug.
59815         * lib/fstatat.c: New file.
59816         * modules/openat (Files): Add it.
59817
59818 2006-11-20  Bruno Haible  <bruno@clisp.org>
59819
59820         * Makefile: New file.
59821
59822 2006-11-20  Jim Meyering  <jim@meyering.net>
59823
59824         The beginnings of syntax-related checks for gnulib.
59825         * lib/Makefile: New file.
59826         * lib/t-idcache: New script.  Ensure that the two halves of
59827         idcache.c stay in sync.
59828
59829         * lib/idcache.c: Adjust comments in user- and group- portions to
59830         be more accurate, and to be consistent with one another.
59831
59832 2006-11-20  Jim Meyering  <jim@meyering.net>
59833
59834         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
59835         continue using the flexible array member (thus, this module performs
59836         half as many malloc calls), with the addition that...
59837         (getgroup, getuser): Consistently record a non-match via an empty
59838         "name" string, and map an empty string match to a NULL return value.
59839         * modules/idcache (Depends-on): Re-add flexmember.
59840
59841         * lib/idcache.c (getuser): Remove all uses of the register keyword.
59842         (getuidbyname, getgroup, getgidbyname): Likewise.
59843
59844         Use cleaner syntax: NULL rather than 0.
59845         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
59846
59847 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
59848
59849         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
59850         It mishandled the case where the group was missing.
59851         Problem reported by Greg Schafer.
59852         * modules/idcache: Likewise.
59853
59854 2006-11-18  Jim Meyering  <jim@meyering.net>
59855
59856         * check-module (%exempt_header): Add exception for some
59857         conditionally-included headers.
59858
59859         * modules/i-ring (Depends-on): Add verify.
59860         (License): Change to LGPL.
59861
59862 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59863
59864         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
59865         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
59866         and inttostr.h.  Use snprintf rather than uinttostr, so that
59867         LGPLed code doesn't depend on GPLed.
59868
59869 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59870
59871         * modules/inline (License): Change from GPL to LGPL.
59872
59873 2006-11-17  Jim Meyering  <jim@meyering.net>
59874
59875         * modules/d-type (License): Switch to LGPL.
59876
59877 2006-11-15  Bruno Haible  <bruno@clisp.org>
59878
59879         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
59880
59881 2006-11-15  Eric Blake  <ebb9@byu.net>
59882
59883         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
59884         the module dependency.
59885
59886 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59887             Bruno Haible  <bruno@clisp.org>
59888
59889         * gnulib-tool (func_create_testdir): Add license consistency check.
59890
59891 2006-11-15  Eric Blake  <ebb9@byu.net>
59892
59893         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
59894         random "(cached)" in configure output.
59895
59896 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59897
59898         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
59899         test for conforming inttypes.h is both announced and cached.
59900
59901         * MODULES.html.sh (seen_modules, seen_files): New variables.
59902         (func_module): Rewrite to use a few less gnulib-tool and sed
59903         invocations.  Avoid a couple of quadratic algorithms for ...
59904         (missed_modules, missed_files): ... these, with ...
59905         (func_append, func_tmpdir): ... these new functions, from
59906         gnulib-tool.  Analogously, install traps for cleanup.
59907
59908         * tests/test-gc.c (main): Remove unused variables.
59909         * tests/test-read-file.c: Include stdlib.h, for 'free'.
59910
59911 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
59912
59913         * modules/inttostr (License): Change to LGPL.
59914
59915 2006-11-14  Eric Blake  <ebb9@byu.net>
59916
59917         * modules/tempname (License): Change to LGPL.
59918
59919 2006-11-14  Eric Blake  <ebb9@byu.net>
59920
59921         * doc/functions.texi (Function Portability): *printf functions on
59922         Cygwin now understand all POSIX size specifiers.
59923
59924 2006-11-14  Bruno Haible  <bruno@clisp.org>
59925
59926         * modules/c-ctype (License): Change to LGPL.
59927
59928 2006-11-12  Bruno Haible  <bruno@clisp.org>
59929
59930         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
59931         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
59932         for GNOME libraries, for which the include files are installed in
59933         subdirectories of $prefix/include.
59934
59935 2006-11-12  Bruno Haible  <bruno@clisp.org>
59936
59937         * m4/lib-link.m4: Require at least autoconf-2.54.
59938         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
59939         name to underscores for the --with option.
59940
59941 2006-11-13  Bruno Haible  <bruno@clisp.org>
59942
59943         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
59944         the tests directory.
59945         Reported by Ralf Wildenhues.
59946
59947 2006-11-13  Bruno Haible  <bruno@clisp.org>
59948
59949         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
59950         (func_emit_initmacro_end): Undo the override here.
59951         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
59952         Works around the famous automake error in coreutils.
59953
59954 2006-11-13  Eric Blake  <ebb9@byu.net>
59955
59956         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
59957         element, not its node.
59958
59959 2006-11-12  Bruno Haible  <bruno@clisp.org>
59960
59961         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
59962         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
59963
59964 2006-11-12  Bruno Haible  <bruno@clisp.org>
59965
59966         * gnulib-tool: New option --local-symlink.
59967         (func_usage): Document it.
59968         (lsymbolic): New variable.
59969         (func_import, func_create_testdir): If --symlink was not specified,
59970         test whether --local-symlink was specified and the file comes from
59971         the local_gnulib_dir.
59972
59973 2006-11-12  Bruno Haible  <bruno@clisp.org>
59974
59975         * gnulib-tool (func_ln): New function.
59976         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
59977
59978 2006-11-12  Bruno Haible  <bruno@clisp.org>
59979
59980         Finish support for source files in subdirectories.
59981         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
59982         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
59983         AUTOMAKE_OPTIONS.
59984         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
59985
59986 2006-11-12  Bruno Haible  <bruno@clisp.org>
59987
59988         * gnulib-tool (func_get_automake_snippet): Synthesize also an
59989         EXTRA_lib_SOURCES augmentation.
59990         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
59991
59992 2006-11-12  Jim Meyering  <jim@meyering.net>
59993
59994         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
59995         file descriptors.  This also averts a failure on systems with
59996         native openat support when a traversed directory lacks "x" access.
59997         * lib/fts_.h: Include "i-ring.h"
59998         (struct FTS) [fts_fd_ring]: New member.
59999         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
60000         (FCHDIR): Add parentheses.
60001         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
60002         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
60003         When descending, rather than simply closing the previous
60004         fts_cwd_fd value, push that file descriptor onto the ring.
60005         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
60006         (fts_open): Initialize the new fd_ring member.
60007         (fts_close): Clear the ring.
60008         (fts_safe_changedir): When possible, use our new fd_ring to skip
60009         the diropen and fstat and dev/ino comparison that would normally
60010         accompany a virtual `chdir ("..")'.
60011
60012         * modules/fts (Depends-on): Add i-ring.
60013         * modules/i-ring: New module.
60014         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
60015         * m4/i-ring.m4: New file.
60016
60017 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60018
60019         * gnulib-tool (func_create_testdir): Fix replacement of
60020         `build-aux' in configure.ac.  Run autotools in gltests
60021         subdirectory.
60022         (func_create_testdir, func_create_megatestdir, test): There is
60023         no need for '--force' in most autotool invocations in a new
60024         tree.  Actually fail the whole test if any of the tools, or the
60025         configure or make stages fail.
60026
60027         Sync from Automake.
60028         * build-aux/gnupload: Revert last change.  Add pointer to upload
60029         instructions of the GNU Maintenance Instructions.
60030         Suggestion by Karl Berry.
60031
60032 2006-11-10  Jim Meyering  <jim@meyering.net>
60033
60034         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
60035
60036 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60037
60038         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
60039         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
60040         (bind_textdomain_codeset) [! ENABLE_NLS]:
60041         Evaluate all the arguments.  That way, callers get compatible behavior
60042         if the arguments have side effects.  Also, it avoids some GCC
60043         diagnostics in some cases; Joel E. Denny reported problems when Bison
60044         was configured with --enable-gcc-warnigs.
60045
60046 2006-11-10  Jim Meyering  <jim@meyering.net>
60047
60048         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
60049         relevant options in CFLAGS (like -O, -fno-inline) are taken into
60050         account.
60051
60052 2006-11-10  Jim Meyering  <jim@meyering.net>
60053
60054         * modules/inline: New file/module.
60055         * modules/xalloc (Files): Remove m4/inline.m4.
60056         (Depends-on): Add inline, instead.
60057         * modules/oset: Likewise.
60058         * modules/list: Likewise.
60059
60060 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60061
60062         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
60063         Problem reported by Matthew Woehlke.
60064
60065 2006-11-09  Bruno Haible  <bruno@clisp.org>
60066
60067         * lib/tempname.c (gen_tempname): Remove variant that invokes
60068         __gen_tempname.
60069         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
60070         __gen_tempname.
60071
60072 2006-11-08  Bruno Haible  <bruno@clisp.org>
60073
60074         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
60075         to 'yes' instead of 'cross-compiling'.
60076
60077 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
60078
60079         * lib/quotearg.h (quotearg_free): New decl.
60080         * lib/quotearg.c (quotearg_free): New function.
60081         (slot0, nslots, slotvec0, slotvec):
60082         Now file-scope so that quotearg_free can get at them.
60083
60084 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60085
60086         Sync from Automake.
60087         * build-aux/gnupload: Add missing 'gnu' to example URL.
60088         Report by Karl Berry.
60089
60090 2006-11-08  Bruno Haible  <bruno@clisp.org>
60091
60092         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
60093         Suggested by Paul Eggert.
60094
60095 2006-11-08  Jim Meyering  <jim@meyering.net>
60096
60097         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
60098         It's already included if !_LIBC.
60099         (fts_safe_changedir): Add a comment.
60100
60101 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60102
60103         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
60104         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
60105         Matthew Woehlke.
60106
60107         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
60108         definitions up, to avoid colliding with change below.
60109         (static_inline) [HAVE_INLINE]: New macro.
60110         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
60111         Provide extern decls when !HAVE_INLINE.  Do not define unless
60112         static_inline is defined, either by us or by xmalloc.c.  Use
60113         static_inline rather than static inline.
60114         (XCALLOC): Optimize sizeof(T) = 1 case.
60115         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
60116
60117 2006-11-07  Bruno Haible  <bruno@clisp.org>
60118
60119         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
60120         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
60121         AC_C_INLINE.
60122         * modules/xalloc (Files): Add m4/inline.m4.
60123
60124 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60125
60126         * README: Fix typo.
60127         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
60128         (Miscellanous Notes): ...from this.
60129
60130 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60131
60132         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
60133         Mention that offsetof should be used instead of sizeof.
60134         From Bruno Haible.
60135
60136 2006-11-07  Bruno Haible  <bruno@clisp.org>
60137
60138         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
60139
60140 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60141
60142         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60143         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
60144         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60145         (gl_tree_add_before, gl_tree_add_after):
60146         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
60147         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
60148         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60149         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
60150         (gl_linked_add_after, gl_linked_add_at): Likewise.
60151         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
60152         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60153         (gl_tree_add_before, gl_tree_add_after): Likewise.
60154         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
60155         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
60156         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
60157
60158 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60159
60160         * lib/gl_oset.h: Use C comment style, not C++ comment style.
60161
60162 2006-11-06  Bruno Haible  <bruno@clisp.org>
60163
60164         * m4/inline.m4: New file.
60165         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
60166         * modules/list (Files): Add m4/inline.m4.
60167         * modules/oset (Files): Likewise.
60168
60169 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60170
60171         * lib/idcache.c: Include <stddef.h>, for offsetof.
60172         (struct userid.name): Change from char * to a flexible array member.
60173         All uses changed.
60174         * modules/idcache (Depends-on): Add flexmember.
60175
60176         * MODULES.html.sh (Core language properties): New module flexmember.
60177         * modules/flexmember, m4/flexmember.m4: New files.
60178
60179         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
60180         inline functions that are identical with the old xnmalloc_inline,
60181         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
60182         that we can avoid some unnecessary integer multiplications and
60183         divisions in the common case where the element size is known at
60184         compile time.
60185         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
60186         needed.
60187         (xnboundedmalloc): Remove.
60188         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
60189         arguments, for consistency with rest of this header.
60190         (xcharalloc): Rewrite using XNMALLOC.
60191         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
60192         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
60193         versions have been moved to lib/xalloc.h and renamed to be the
60194         non-*_inline versions.
60195         (xmalloc, xrealloc): Implement without reference to the xnmalloc
60196         and xnrealloc functions, since those functions are now inline and
60197         now call us.
60198         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
60199         renaming described above.
60200         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
60201         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
60202         captures the dependency in AC_C_INLINE.
60203
60204         New module canonicalize-lgpl, proposed by Charles Wilson in
60205         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
60206         with a few small changes afterwards.
60207         * MODULES.html.sh (File system functions): New module
60208         canonicalize-lgpl.
60209         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
60210         and canonicalize_file_name.
60211         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
60212         * modules/canonicalize-lgpl: New files.
60213
60214 2006-11-05  Bruno Haible  <bruno@clisp.org>
60215
60216         * gnulib-tool (func_import, func_create_testdir): Create directories
60217         also for files in subdirectories of lib/.
60218
60219 2006-11-05  Bruno Haible  <bruno@clisp.org>
60220
60221         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
60222         ANSI C compliant.
60223
60224 2006-11-03  Bruno Haible  <bruno@clisp.org>
60225
60226         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60227         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
60228         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
60229         (xnboundedmalloc): New inline function.
60230         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
60231         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
60232         xmalloc.
60233         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
60234         xmalloc.
60235         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
60236         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
60237         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
60238         xmalloc.
60239         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60240         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
60241         xmalloc.
60242         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
60243         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60244         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
60245         xmalloc.
60246         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60247         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
60248         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60249         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
60250         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
60251         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
60252         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
60253
60254 2006-11-03  Bruno Haible  <bruno@clisp.org>
60255
60256         * lib/c-ctype.h [C++]: Define functions without name mangling.
60257         * lib/fwriteerror.h [C++]: Likewise.
60258         * lib/gcd.h [C++]: Likewise.
60259         * lib/linebreak.h [C++]: Likewise.
60260
60261 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
60262
60263         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
60264         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
60265         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
60266         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60267         Check for functions and headers just once.
60268         Check for declaration of canonicalize_file_name.
60269         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
60270
60271 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60272
60273         * gnulib-tool (func_import): Fix typo in actioncmd.
60274
60275 2006-11-02  Bruno Haible  <bruno@clisp.org>
60276
60277         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
60278         newline sequence in the Makefile.am snippet as a space, like "make"
60279         does.
60280         Reported by Roger Persson <perrog@gmail.com>.
60281
60282 2006-11-01  Bruno Haible  <bruno@clisp.org>
60283
60284         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
60285         already declared in <string.h>.
60286         * lib/strcase.h (strncasecmp): Don't declare it if yes.
60287
60288 2006-11-01  Bruno Haible  <bruno@clisp.org>
60289
60290         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
60291         * lib/strcase.h: Include <string.h>.
60292         (strcasecmp): Define to rpl_strcasecmp here.
60293
60294 2006-11-01  Bruno Haible  <bruno@clisp.org>
60295
60296         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
60297
60298 2006-11-01  Eric Blake  <ebb9@byu.net>
60299
60300         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
60301
60302         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
60303
60304 2006-10-29  Bruno Haible  <bruno@clisp.org>
60305
60306         Make it compile in C++ mode.
60307         * lib/full-write.c (full_rw): Add a cast.
60308
60309 2006-11-01  Bruno Haible  <bruno@clisp.org>
60310
60311         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
60312         be POSIX compliant.
60313         Reported by Roger Persson <perrog@gmail.com>.
60314
60315 2006-11-01  Eric Blake  <ebb9@byu.net>
60316
60317         * lib/getopt_.h: Fix comments.
60318
60319 2006-10-31  Eric Blake  <ebb9@byu.net>
60320
60321         * modules/tmpdir (Depends-on): Add sys_stat.
60322         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
60323         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
60324         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
60325         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
60326         tempname.
60327
60328 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
60329
60330         Avoid some C++ diagnostics reported by Bruno Haible.
60331         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
60332         xmalloc.
60333         (quotearg_alloc): Use xcharalloc rather than xmalloc.
60334         (struct slotvec): Move to top level.
60335         (quotearg_n_options): Rewrite to avoid xmalloc.
60336         * lib/xalloc.h (xcharalloc): New function.
60337         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
60338         [defined __cplusplus]: Add function template that provides result
60339         type propagation.  This part of the change is from Bruno Haible.
60340
60341 2006-10-29  Bruno Haible  <bruno@clisp.org>
60342
60343         Make it compile in C++ mode.
60344         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
60345         * lib/strnlen1.c (strnlen1): Cast memchr result.
60346         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
60347         * lib/clean-temp.c (string_equals, string_hash): Add casts.
60348         (create_temp_dir): Rename local variable 'template'.
60349         (compile_csharp_using_sscli): Add cast.
60350         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
60351         * lib/findprog.c (find_in_path): Likewise.
60352         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
60353         * lib/wait-process.c (register_slave_subprocess): Likewise.
60354
60355 2006-10-22  Bruno Haible  <bruno@clisp.org>
60356
60357         * modules/tsearch: New file.
60358         * lib/tsearch.h: New file.
60359         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
60360         * m4/tsearch.m4: New file.
60361         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
60362
60363 2006-10-29  Eric Blake  <ebb9@byu.net>
60364
60365         * lib/arcfour.c: Assume config.h.
60366         * lib/arctwo.c: Likewise.
60367         * lib/base64.c: Likewise.
60368         * lib/check-version.c: Likewise.
60369         * lib/crc.c: Likewise.
60370         * lib/des.c: Likewise.
60371         * lib/gc-gnulib.c: Likewise.
60372         * lib/gc-libgcrypt.c: Likewise.
60373         * lib/gc-pbkdf2-sha1.c: Likewise.
60374         * lib/getaddrinfo.c: Likewise.
60375         * lib/getdelim.c: Likewise.
60376         * lib/getline.c: Likewise.
60377         * lib/hmac-md5.c: Likewise.
60378         * lib/hmac-sha1.c: Likewise.
60379         * lib/iconvme.c: Likewise.
60380         * lib/md2.c: Likewise.
60381         * lib/md4.c: Likewise.
60382         * lib/memxor.c: Likewise.
60383         * lib/read-file.c: Likewise.
60384         * lib/readline.c: Likewise.
60385         * lib/rijndael-alg-fst.c: Likewise.
60386         * lib/rijndael-api-fst.c: Likewise.
60387         * lib/xgetdomainname.c: Likewise.
60388
60389 2006-10-28  Eric Blake  <ebb9@byu.net>
60390
60391         * lib/xstrndup.c: Assume config.h.
60392
60393 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
60394
60395         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
60396         stat-macros.h is now for our own macros, whereas stat_h is for
60397         macros in the <sys/stat.h> name space.
60398         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
60399         (STAT_MACROS_H): Remove.
60400         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
60401         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
60402         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
60403         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
60404         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
60405         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
60406         Move these macros to ...
60407         * lib/stat_.h: here.  Don't include stat-macros.h.
60408         * lib/canonicalize.c: Don't include stat-macros.h.
60409         * lib/chown.c: Likewise.
60410         * lib/euidaccess.c: Likewise.
60411         * lib/file-type.c: Likewise.
60412         * lib/filemode.c: Likewise.
60413         * lib/glob.c: Likewise.
60414         * lib/isapipe.c: Likewise.
60415         * lib/lchown.c: Likewise.
60416         * lib/lstat.c: Likewise.
60417         * lib/mkdir-p.c: Likewise.
60418         * lib/rmdir.c: Likewise.
60419         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
60420         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
60421         unless mkdir isn't declared, to speed up 'configure'.
60422         Always create sys/stat.h, since it's unlikely any real sys/stat.h
60423         would define all the S_* symbols.
60424         * modules/canonicalize (Depends-on):
60425         Depend on sys_stat, not stat-macros.
60426         * modules/chown: Likewise.
60427         * modules/euidaccess: Likewise.
60428         * modules/filemode: Likewise.
60429         * modules/file-type: Likewise.
60430         * modules/glob: Likewise.
60431         * modules/isapipe: Likewise.
60432         * modules/lchown: Likewise.
60433         * modules/lstat: Likewise.
60434         * modules/mkancesdirs: Likewise.
60435         * modules/rmdir: Likewise.
60436         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
60437         * modules/modechange: Likewise.
60438         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
60439         (configure.ac): Remove gl_STAT_MACROS.
60440         * modules/sys_stat (Depends-on): Remove stat-macros.
60441
60442 2006-10-27  Bruno Haible  <bruno@clisp.org>
60443
60444         * m4/signed.m4: Remove file.
60445         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
60446         invocation.
60447         * modules/vasnprintf (Files): Remove m4/signed.m4.
60448
60449 2006-10-27  Bruno Haible  <bruno@clisp.org>
60450
60451         Update to GNU gettext 0.16.
60452         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
60453         m4/inttypes-h.m4, m4/signed.m4.
60454         * m4/gettext.m4: Update to GNU gettext 0.16.
60455         * m4/intl.m4: New file, from GNU gettext.
60456         * m4/intldir.m4: New file, from GNU gettext.
60457         * config/srclist.txt: Update
60458
60459 2006-10-27  Eric Blake  <ebb9@byu.net>
60460
60461         * MODULES.html.sh: Document tempname.
60462         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
60463         dependencies.
60464         (Files): Move lib/tempname.c...
60465         * modules/tempname: ...to this new module.
60466         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
60467         (gl_PREREQ_TEMPNAME): Move...
60468         * m4/tempname.m4: ...to this new file.
60469         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
60470         * modules/sys_stat (Depends-on): Add stat-macros.
60471         * lib/stat_.h (includes): Pick up stat macros.
60472         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
60473         if stat macros are broken.
60474         * lib/tempname.c (includes): No need to include "stat-macros.h".
60475         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
60476         (direxists, __path_search) [!_LIBC]: Don't compile these in
60477         gnulib; the tmpdir module covers that.
60478         * lib/tempname.h: New file.
60479
60480 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
60481
60482         * COPYING: Explain how gnulib-tool converts licence headers.
60483         Almost all wording by Eric Blake.
60484
60485 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
60486
60487         * lib/mbchar.h (is_basic_table): Make read-only.
60488         * lib/mbchar.c (is_basic_table): Likewise.
60489         Reported by John Darrington.
60490
60491 2006-10-25  Bruno Haible  <bruno@clisp.org>
60492
60493         * lib/progname.h (set_program_name): Undefine before defining.
60494
60495 2006-10-25  Bruno Haible  <bruno@clisp.org>
60496
60497         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
60498         false for non-gcc C++ compilers.
60499         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
60500
60501 2006-10-24  Bruno Haible  <bruno@clisp.org>
60502
60503         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
60504         iconv implementations like Irix iconv.
60505
60506 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60507
60508         * modules/vararrays: New file.
60509         * m4/vararrays.m4: New file, taken from diffutils.
60510         * MODULES.html.sh: New module vararrays.
60511
60512 2006-10-24  Karl Berry  <karl@gnu.org>
60513
60514         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
60515         Don't call GNU Unix.
60516
60517 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60518
60519         * users.txt: Add Libtool.
60520
60521         Sync from Libtool:
60522
60523         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60524
60525         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
60526         to gnulib's policy of including config.h unconditionally.
60527
60528 2006-10-24  Bruno Haible  <bruno@clisp.org>
60529
60530         * modules/wcwidth (Files): Add m4/wint_t.m4.
60531         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
60532         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
60533
60534 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60535
60536         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
60537         to pacify GCC with some -W flags enabled.  Problem reported by
60538         Bruno Haible.
60539
60540 2006-10-24  Jim Meyering  <jim@meyering.net>
60541
60542         * MODULES.html.sh: Remove uinttostr.  It's not a module.
60543         Reported by Karl Berry.
60544
60545 2006-10-23  Bruno Haible  <bruno@clisp.org>
60546
60547         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
60548
60549 2006-10-24  Bruno Haible  <bruno@clisp.org>
60550
60551         * lib/gl_list.h: Use C comment style, not C++ comment style.
60552
60553 2006-10-23  Eric Blake  <ebb9@byu.net>
60554
60555         * lib/getaddrinfo.c (includes): Add missing include.
60556
60557 2006-10-23  Bruno Haible  <bruno@clisp.org>
60558             Paul Eggert  <eggert@cs.ucla.edu>
60559
60560         Ability to rename obstack_free.
60561         * lib/obstack.h (__obstack_free): New macro. Declare instead of
60562         obstack_free.
60563         (obstack_free): Invoke the __obstack_free macro.
60564         * lib/obstack.c (obstack_free): Use __obstack_free macro.
60565
60566 2006-10-23  Bruno Haible  <bruno@clisp.org>
60567             Paul Eggert  <eggert@cs.ucla.edu>
60568
60569         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
60570         __argc, __argv from the declaration. (They are defined as macros on
60571         mingw.)
60572
60573 2006-10-22  Bruno Haible  <bruno@clisp.org>
60574
60575         * doc/gnulib-intro.texi: New file.
60576         * doc/gnulib.texi: Include it.
60577
60578 2006-10-21  Bruno Haible  <bruno@clisp.org>
60579
60580         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
60581         "Introduction", "Miscellanous Notes", "Particular Modules".
60582
60583 2006-10-21  Bruno Haible  <bruno@clisp.org>
60584
60585         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60586         Change mostlyclean-local rule to avoid sh syntax error from bash
60587         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
60588
60589 2006-10-23  Jim Meyering  <jim@meyering.net>
60590
60591         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
60592         in place of snprintf.
60593
60594         * modules/inttostr (Files): Add lib/uinttostr.c.
60595         * lib/uinttostr.c (inttostr): New file/function.
60596         * lib/inttostr.h (uinttostr): Declare.
60597         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
60598         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
60599         Add uinttostr.
60600         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
60601
60602 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
60603
60604         * lib/canonicalize.c (ELOOP): Define if not already defined.
60605         Problem reported by Bruno Haible in
60606         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
60607
60608 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
60609
60610         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
60611         Problem reported by Perry Smith and Ville Laurikari.
60612
60613         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
60614         uses.
60615
60616 2006-10-19  Bruno Haible  <bruno@clisp.org>
60617
60618         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
60619         for mingw.
60620
60621 2006-10-19  Bruno Haible  <bruno@clisp.org>
60622
60623         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
60624         Needed for mingw.
60625
60626 2006-10-19  Bruno Haible  <bruno@clisp.org>
60627
60628         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
60629
60630 2006-10-19  Bruno Haible  <bruno@clisp.org>
60631
60632         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
60633         it.
60634
60635 2006-10-19  Bruno Haible  <bruno@clisp.org>
60636
60637         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
60638         invocation.
60639
60640 2006-10-19  Bruno Haible  <bruno@clisp.org>
60641
60642         * gnulib-tool (func_create_testdir): Don't include ftruncate and
60643         mountlist by default.
60644
60645 2006-10-16  Bruno Haible  <bruno@clisp.org>
60646
60647         * lib/c-strstr.c: Include c-strstr.h.
60648
60649 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60650
60651         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
60652         in a slash.
60653
60654 2006-10-18  Bruno Haible  <bruno@clisp.org>
60655
60656         * lib/lock.h [C++]: Wrap definitions in extern "C".
60657
60658 2006-10-18  Bruno Haible  <bruno@clisp.org>
60659
60660         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
60661         gl_LIBOBJS list.
60662
60663 2006-10-18  Bruno Haible  <bruno@clisp.org>
60664
60665         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
60666
60667 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
60668
60669         * lib/xstrtol.h: Include gettext.h.
60670         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
60671         Problem reported by Eric Blake.
60672         * modules/xstrtol (Depends-on): Add gettext-h.
60673
60674 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
60675
60676         * lib/strftime.c (advance): New macro.
60677         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
60678         incomplete type, so you can't add 0 to it.  Problem and patch
60679         reported by Eelco Dolstra for dietlibc.
60680
60681 2006-10-18  Jim Meyering  <jim@meyering.net>
60682
60683         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
60684         type for a local, and rename it: s/up/user_proc/.
60685
60686 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
60687
60688         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
60689         READ_UTMP_USER_PROCESS.
60690         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
60691
60692 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60693
60694         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
60695         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
60696
60697 2006-10-17  Eric Blake  <ebb9@byu.net>
60698
60699         * lib/sigprocmask.c (sigprocmask): Fix typo.
60700
60701         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
60702
60703         * modules/clean-temp (Makefile.am): Don't add to make output...
60704         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
60705         config.h.
60706
60707 2006-10-17  Bruno Haible  <bruno@clisp.org>
60708
60709         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
60710         differently if DEFAULT_TEXT_DOMAIN is set.
60711
60712 2006-10-16  Bruno Haible  <bruno@clisp.org>
60713
60714         * lib/clean-temp.c: Include fwriteerror.h.
60715
60716 2006-10-16  Bruno Haible  <bruno@clisp.org>
60717
60718         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
60719
60720 2006-10-16  Bruno Haible  <bruno@clisp.org>
60721
60722         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
60723         * lib/sigprocmask.h: Include <sys/types.h>.
60724         (sigset_t): Use the system's definition if present.
60725
60726 2006-10-17  Eric Blake  <ebb9@byu.net>
60727
60728         * lib/xvasprintf.c (includes): Assume config.h.
60729         * lib/xasprintf.c (includes): Likewise.
60730
60731 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60732
60733         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
60734         at least as wide as intmax_t.
60735
60736 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
60737
60738         (Imported from Automake.)
60739         * build-aux/gnupload: Update to version 1.1 of directive file.
60740
60741 2006-10-16  Eric Blake  <ebb9@byu.net>
60742
60743         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
60744         match Automake 1.10a.
60745
60746 2006-10-14  Bruno Haible  <bruno@clisp.org>
60747
60748         * modules/sigprocmask: New file.
60749         * lib/sigprocmask.h: New file.
60750         * lib/sigprocmask.c: New file.
60751         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
60752         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
60753         request sigprocmask.o.
60754         (gl_PREREQ_SIGPROCMASK): New macro.
60755         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
60756         (Depends-on): Add sigprocmask.
60757         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
60758         gt_SIGNALBLOCKING. Test for 'raise' only once.
60759         * lib/fatal-signal.c: Include sigprocmask.h.
60760         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
60761         unblock_fatal_signals): Define always.
60762         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60763         sigprocmask.
60764
60765 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
60766
60767         Sync from Automake.
60768         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
60769         which incorrectly sets the mode of an existing destination
60770         directory.  In some cases the unpatched install-sh could do the
60771         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
60772         system.  We hope this is rare in practice, but it's clearly worth
60773         fixing.  Problem reported by Alex Unleashed in
60774         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
60775         Also, don't bother to check for -m bugs unless we're using -m;
60776         suggested by Stepan Kasal.
60777
60778 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60779
60780         Sync from Automake.
60781         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
60782         `-c' flag, so they appear at the same position as in %FASTDEP%
60783         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
60784         which ignores unknown options only after the first non-option.
60785         Bug report against M4 by Nelson H. F. Beebe.
60786
60787 2006-10-13  Jim Meyering  <jim@meyering.net>
60788
60789         Fix a bug in yesterday's change.
60790         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
60791         p->fts_statp->st_dev would be used uninitialized.
60792         Ensures that we always call fts_stat on the very first entry.
60793         Miklos Szeredi reported that find -xdev stopped working.
60794
60795 2006-10-12  Bruno Haible  <bruno@clisp.org>
60796
60797         * gnulib-tool (func_get_automake_snippet): Append an automatically
60798         computed EXTRA_DIST augmentation.
60799         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
60800         * modules/alloca-opt (Makefile.am): Likewise.
60801         * modules/allocsa (Makefile.am): Likewise.
60802         * modules/arcfour (Makefile.am): Likewise.
60803         * modules/arctwo (Makefile.am): Likewise.
60804         * modules/argmatch (Makefile.am): Likewise.
60805         * modules/argz (Makefile.am): Likewise.
60806         * modules/atexit (Makefile.am): Likewise.
60807         * modules/backupfile (Makefile.am): Likewise.
60808         * modules/byteswap (Makefile.am): Likewise.
60809         * modules/c-strtod (Makefile.am): Likewise.
60810         * modules/c-strtold (Makefile.am): Likewise.
60811         * modules/calloc (Makefile.am): Likewise.
60812         * modules/canon-host (Makefile.am): Likewise.
60813         * modules/canonicalize (Makefile.am): Likewise.
60814         * modules/chdir-long (Makefile.am): Likewise.
60815         * modules/chdir-safer (Makefile.am): Likewise.
60816         * modules/check-version (Makefile.am): Likewise.
60817         * modules/chown (Makefile.am): Likewise.
60818         * modules/cloexec (Makefile.am): Likewise.
60819         * modules/close-stream (Makefile.am): Likewise.
60820         * modules/closeout (Makefile.am): Likewise.
60821         * modules/crc (Makefile.am): Likewise.
60822         * modules/csharpexec (Makefile.am): Likewise.
60823         * modules/cycle-check (Makefile.am): Likewise.
60824         * modules/des (Makefile.am): Likewise.
60825         * modules/dev-ino (Makefile.am): Likewise.
60826         * modules/dirfd (Makefile.am): Likewise.
60827         * modules/dirname (Makefile.am): Likewise.
60828         * modules/dup2 (Makefile.am): Likewise.
60829         * modules/eealloc (Makefile.am): Likewise.
60830         * modules/error (Makefile.am): Likewise.
60831         * modules/euidaccess (Makefile.am): Likewise.
60832         * modules/exclude (Makefile.am): Likewise.
60833         * modules/exitfail (Makefile.am): Likewise.
60834         * modules/fcntl-safer (Makefile.am): Likewise.
60835         * modules/fcntl (Makefile.am): Likewise.
60836         * modules/file-type (Makefile.am): Likewise.
60837         * modules/fileblocks (Makefile.am): Likewise.
60838         * modules/filemode (Makefile.am): Likewise.
60839         * modules/filenamecat (Makefile.am): Likewise.
60840         * modules/fnmatch (Makefile.am): Likewise.
60841         * modules/fopen-safer (Makefile.am): Likewise.
60842         * modules/fpending (Makefile.am): Likewise.
60843         * modules/fprintftime (Makefile.am): Likewise.
60844         * modules/free (Makefile.am): Likewise.
60845         * modules/fsusage (Makefile.am): Likewise.
60846         * modules/ftruncate (Makefile.am): Likewise.
60847         * modules/fts (Makefile.am): Likewise.
60848         * modules/gc-arcfour (Makefile.am): Likewise.
60849         * modules/gc-des (Makefile.am): Likewise.
60850         * modules/gc-hmac-md5 (Makefile.am): Likewise.
60851         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
60852         * modules/gc-md4 (Makefile.am): Likewise.
60853         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
60854         * modules/gc-sha1 (Makefile.am): Likewise.
60855         * modules/gc (Makefile.am): Likewise.
60856         * modules/getaddrinfo (Makefile.am): Likewise.
60857         * modules/getcwd (Makefile.am): Likewise.
60858         * modules/getdelim (Makefile.am): Likewise.
60859         * modules/getdomainname (Makefile.am): Likewise.
60860         * modules/getgroups (Makefile.am): Likewise.
60861         * modules/gethostname (Makefile.am): Likewise.
60862         * modules/gethrxtime (Makefile.am): Likewise.
60863         * modules/getline (Makefile.am): Likewise.
60864         * modules/getloadavg (Makefile.am): Likewise.
60865         * modules/getlogin_r (Makefile.am): Likewise.
60866         * modules/getndelim2 (Makefile.am): Likewise.
60867         * modules/getopt (Makefile.am): Likewise.
60868         * modules/getpagesize (Makefile.am): Likewise.
60869         * modules/getpass-gnu (Makefile.am): Likewise.
60870         * modules/getpass (Makefile.am): Likewise.
60871         * modules/getsubopt (Makefile.am): Likewise.
60872         * modules/gettime (Makefile.am): Likewise.
60873         * modules/gettimeofday (Makefile.am): Likewise.
60874         * modules/getugroups (Makefile.am): Likewise.
60875         * modules/getusershell (Makefile.am): Likewise.
60876         * modules/glob (Makefile.am): Likewise.
60877         * modules/group-member (Makefile.am): Likewise.
60878         * modules/hard-locale (Makefile.am): Likewise.
60879         * modules/hash (Makefile.am): Likewise.
60880         * modules/hmac-md5 (Makefile.am): Likewise.
60881         * modules/hmac-sha1 (Makefile.am): Likewise.
60882         * modules/human (Makefile.am): Likewise.
60883         * modules/idcache (Makefile.am): Likewise.
60884         * modules/imaxabs (Makefile.am): Likewise.
60885         * modules/imaxdiv (Makefile.am): Likewise.
60886         * modules/inet_ntop (Makefile.am): Likewise.
60887         * modules/inet_pton (Makefile.am): Likewise.
60888         * modules/intprops (Makefile.am): Likewise.
60889         * modules/inttostr (Makefile.am): Likewise.
60890         * modules/inttypes (Makefile.am): Likewise.
60891         * modules/isapipe (Makefile.am): Likewise.
60892         * modules/javaversion (Makefile.am): Likewise.
60893         * modules/lchmod (Makefile.am): Likewise.
60894         * modules/lchown (Makefile.am): Likewise.
60895         * modules/localcharset (Makefile.am): Likewise.
60896         * modules/long-options (Makefile.am): Likewise.
60897         * modules/lstat (Makefile.am): Likewise.
60898         * modules/malloc (Makefile.am): Likewise.
60899         * modules/mathl (Makefile.am): Likewise.
60900         * modules/mbchar (Makefile.am): Likewise.
60901         * modules/md2 (Makefile.am): Likewise.
60902         * modules/md4 (Makefile.am): Likewise.
60903         * modules/md5 (Makefile.am): Likewise.
60904         * modules/memcasecmp (Makefile.am): Likewise.
60905         * modules/memchr (Makefile.am): Likewise.
60906         * modules/memcmp (Makefile.am): Likewise.
60907         * modules/memcoll (Makefile.am): Likewise.
60908         * modules/memcpy (Makefile.am): Likewise.
60909         * modules/memmem (Makefile.am): Likewise.
60910         * modules/memmove (Makefile.am): Likewise.
60911         * modules/mempcpy (Makefile.am): Likewise.
60912         * modules/memrchr (Makefile.am): Likewise.
60913         * modules/memset (Makefile.am): Likewise.
60914         * modules/memxor (Makefile.am): Likewise.
60915         * modules/mkancesdirs (Makefile.am): Likewise.
60916         * modules/mkdir-p (Makefile.am): Likewise.
60917         * modules/mkdir (Makefile.am): Likewise.
60918         * modules/mkdtemp (Makefile.am): Likewise.
60919         * modules/mkstemp (Makefile.am): Likewise.
60920         * modules/mktime (Makefile.am): Likewise.
60921         * modules/modechange (Makefile.am): Likewise.
60922         * modules/mountlist (Makefile.am): Likewise.
60923         * modules/nanosleep (Makefile.am): Likewise.
60924         * modules/obstack (Makefile.am): Likewise.
60925         * modules/openat (Makefile.am): Likewise.
60926         * modules/pagealign_alloc (Makefile.am): Likewise.
60927         * modules/pathmax (Makefile.am): Likewise.
60928         * modules/physmem (Makefile.am): Likewise.
60929         * modules/poll (Makefile.am): Likewise.
60930         * modules/posixtm (Makefile.am): Likewise.
60931         * modules/posixver (Makefile.am): Likewise.
60932         * modules/putenv (Makefile.am): Likewise.
60933         * modules/quote (Makefile.am): Likewise.
60934         * modules/quotearg (Makefile.am): Likewise.
60935         * modules/raise (Makefile.am): Likewise.
60936         * modules/read-file (Makefile.am): Likewise.
60937         * modules/readline (Makefile.am): Likewise.
60938         * modules/readlink (Makefile.am): Likewise.
60939         * modules/readtokens (Makefile.am): Likewise.
60940         * modules/readutmp (Makefile.am): Likewise.
60941         * modules/realloc (Makefile.am): Likewise.
60942         * modules/regex (Makefile.am): Likewise.
60943         * modules/rename-dest-slash (Makefile.am): Likewise.
60944         * modules/rename (Makefile.am): Likewise.
60945         * modules/rijndael (Makefile.am): Likewise.
60946         * modules/rmdir (Makefile.am): Likewise.
60947         * modules/rpmatch (Makefile.am): Likewise.
60948         * modules/safe-read (Makefile.am): Likewise.
60949         * modules/safe-write (Makefile.am): Likewise.
60950         * modules/same-inode (Makefile.am): Likewise.
60951         * modules/same (Makefile.am): Likewise.
60952         * modules/save-cwd (Makefile.am): Likewise.
60953         * modules/savedir (Makefile.am): Likewise.
60954         * modules/setenv (Makefile.am): Likewise.
60955         * modules/settime (Makefile.am): Likewise.
60956         * modules/sha1 (Makefile.am): Likewise.
60957         * modules/sig2str (Makefile.am): Likewise.
60958         * modules/snprintf (Makefile.am): Likewise.
60959         * modules/stat-macros (Makefile.am): Likewise.
60960         * modules/stat-time (Makefile.am): Likewise.
60961         * modules/stdbool (Makefile.am): Likewise.
60962         * modules/stdint (Makefile.am): Likewise.
60963         * modules/stdlib-safer (Makefile.am): Likewise.
60964         * modules/stpcpy (Makefile.am): Likewise.
60965         * modules/stpncpy (Makefile.am): Likewise.
60966         * modules/strcase (Makefile.am): Likewise.
60967         * modules/strcasestr (Makefile.am): Likewise.
60968         * modules/strchrnul (Makefile.am): Likewise.
60969         * modules/strcspn (Makefile.am): Likewise.
60970         * modules/strdup (Makefile.am): Likewise.
60971         * modules/strerror (Makefile.am): Likewise.
60972         * modules/strftime (Makefile.am): Likewise.
60973         * modules/strndup (Makefile.am): Likewise.
60974         * modules/strnlen (Makefile.am): Likewise.
60975         * modules/strpbrk (Makefile.am): Likewise.
60976         * modules/strsep (Makefile.am): Likewise.
60977         * modules/strstr (Makefile.am): Likewise.
60978         * modules/strtod (Makefile.am): Likewise.
60979         * modules/strtoimax (Makefile.am): Likewise.
60980         * modules/strtok_r (Makefile.am): Likewise.
60981         * modules/strtol (Makefile.am): Likewise.
60982         * modules/strtoll (Makefile.am): Likewise.
60983         * modules/strtoul (Makefile.am): Likewise.
60984         * modules/strtoull (Makefile.am): Likewise.
60985         * modules/strtoumax (Makefile.am): Likewise.
60986         * modules/strverscmp (Makefile.am): Likewise.
60987         * modules/sys_socket (Makefile.am): Likewise.
60988         * modules/sys_stat (Makefile.am): Likewise.
60989         * modules/sysexits (Makefile.am): Likewise.
60990         * modules/time_r (Makefile.am): Likewise.
60991         * modules/timegm (Makefile.am): Likewise.
60992         * modules/timespec (Makefile.am): Likewise.
60993         * modules/tmpfile-safer (Makefile.am): Likewise.
60994         * modules/trim (Makefile.am): Likewise.
60995         * modules/unistd-safer (Makefile.am): Likewise.
60996         * modules/unlinkdir (Makefile.am): Likewise.
60997         * modules/unlocked-io (Makefile.am): Likewise.
60998         * modules/userspec (Makefile.am): Likewise.
60999         * modules/utime (Makefile.am): Likewise.
61000         * modules/utimecmp (Makefile.am): Likewise.
61001         * modules/utimens (Makefile.am): Likewise.
61002         * modules/vasnprintf (Makefile.am): Likewise.
61003         * modules/vasprintf (Makefile.am): Likewise.
61004         * modules/vsnprintf (Makefile.am): Likewise.
61005         * modules/xalloc (Makefile.am): Likewise.
61006         * modules/xgetcwd (Makefile.am): Likewise.
61007         * modules/xnanosleep (Makefile.am): Likewise.
61008         * modules/xreadlink (Makefile.am): Likewise.
61009         * modules/xstrtod (Makefile.am): Likewise.
61010         * modules/xstrtol (Makefile.am): Likewise.
61011         * modules/xstrtold (Makefile.am): Likewise.
61012         * modules/yesno (Makefile.am): Likewise.
61013         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
61014
61015 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61016
61017         * modules/error (Makefile.am): Distribute files through
61018         EXTRA_DIST, not lib_SOURCES.
61019
61020 2006-10-12  Eric Blake  <ebb9@byu.net>
61021
61022         * modules/error (Makefile.am): Distribute files in /lib.
61023         * modules/obstack (Makefile.am): Likewise.
61024
61025 2006-10-12  Bruno Haible  <bruno@clisp.org>
61026
61027         * modules/acl (Makefile.am): Distribute all files in lib/ through
61028         EXTRA_DIST.
61029         * modules/arcfour (Makefile.am): Likewise.
61030         * modules/arctwo (Makefile.am): Likewise.
61031         * modules/argmatch (Makefile.am): Likewise.
61032         * modules/argz (Makefile.am): Likewise.
61033         * modules/atexit (Makefile.am): Likewise.
61034         * modules/backupfile (Makefile.am): Likewise.
61035         * modules/c-strtod (Makefile.am): Likewise.
61036         * modules/c-strtold (Makefile.am): Likewise.
61037         * modules/calloc (Makefile.am): Likewise.
61038         * modules/canon-host (Makefile.am): Likewise.
61039         * modules/canonicalize (Makefile.am): Likewise.
61040         * modules/chdir-long (Makefile.am): Likewise.
61041         * modules/chdir-safer (Makefile.am): Likewise.
61042         * modules/check-version (Makefile.am): Likewise.
61043         * modules/chown (Makefile.am): Likewise.
61044         * modules/cloexec (Makefile.am): Likewise.
61045         * modules/close-stream (Makefile.am): Likewise.
61046         * modules/closeout (Makefile.am): Likewise.
61047         * modules/crc (Makefile.am): Likewise.
61048         * modules/cycle-check (Makefile.am): Likewise.
61049         * modules/des (Makefile.am): Likewise.
61050         * modules/dirfd (Makefile.am): Likewise.
61051         * modules/dirname (Makefile.am): Likewise.
61052         * modules/dup2 (Makefile.am): Likewise.
61053         * modules/euidaccess (Makefile.am): Likewise.
61054         * modules/exclude (Makefile.am): Likewise.
61055         * modules/exitfail (Makefile.am): Likewise.
61056         * modules/fcntl-safer (Makefile.am): Likewise.
61057         * modules/file-type (Makefile.am): Likewise.
61058         * modules/fileblocks (Makefile.am): Likewise.
61059         * modules/filemode (Makefile.am): Likewise.
61060         * modules/filenamecat (Makefile.am): Likewise.
61061         * modules/fnmatch (Makefile.am): Likewise.
61062         * modules/fopen-safer (Makefile.am): Likewise.
61063         * modules/fpending (Makefile.am): Likewise.
61064         * modules/fprintftime (Makefile.am): Likewise.
61065         * modules/free (Makefile.am): Likewise.
61066         * modules/fsusage (Makefile.am): Likewise.
61067         * modules/ftruncate (Makefile.am): Likewise.
61068         * modules/fts (Makefile.am): Likewise.
61069         * modules/gc (Makefile.am): Likewise.
61070         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61071         * modules/getaddrinfo (Makefile.am): Likewise.
61072         * modules/getcwd (Makefile.am): Likewise.
61073         * modules/getdelim (Makefile.am): Likewise.
61074         * modules/getdomainname (Makefile.am): Likewise.
61075         * modules/getgroups (Makefile.am): Likewise.
61076         * modules/gethostname (Makefile.am): Likewise.
61077         * modules/gethrxtime (Makefile.am): Likewise.
61078         * modules/getline (Makefile.am): Likewise.
61079         * modules/getloadavg (Makefile.am): Likewise.
61080         * modules/getlogin_r (Makefile.am): Likewise.
61081         * modules/getopt (Makefile.am): Likewise.
61082         * modules/getpass (Makefile.am): Likewise.
61083         * modules/getpass-gnu (Makefile.am): Likewise.
61084         * modules/getsubopt (Makefile.am): Likewise.
61085         * modules/gettime (Makefile.am): Likewise.
61086         * modules/gettimeofday (Makefile.am): Likewise.
61087         * modules/getugroups (Makefile.am): Likewise.
61088         * modules/getusershell (Makefile.am): Likewise.
61089         * modules/glob (Makefile.am): Likewise.
61090         * modules/group-member (Makefile.am): Likewise.
61091         * modules/hard-locale (Makefile.am): Likewise.
61092         * modules/hash (Makefile.am): Likewise.
61093         * modules/hmac-md5 (Makefile.am): Likewise.
61094         * modules/hmac-sha1 (Makefile.am): Likewise.
61095         * modules/human (Makefile.am): Likewise.
61096         * modules/idcache (Makefile.am): Likewise.
61097         * modules/imaxabs (Makefile.am): Likewise.
61098         * modules/imaxdiv (Makefile.am): Likewise.
61099         * modules/inet_ntop (Makefile.am): Likewise.
61100         * modules/inet_pton (Makefile.am): Likewise.
61101         * modules/inttostr (Makefile.am): Likewise.
61102         * modules/isapipe (Makefile.am): Likewise.
61103         * modules/lchown (Makefile.am): Likewise.
61104         * modules/long-options (Makefile.am): Likewise.
61105         * modules/lstat (Makefile.am): Likewise.
61106         * modules/malloc (Makefile.am): Likewise.
61107         * modules/mathl (Makefile.am): Likewise.
61108         * modules/mbchar (Makefile.am): Likewise.
61109         * modules/md2 (Makefile.am): Likewise.
61110         * modules/md4 (Makefile.am): Likewise.
61111         * modules/md5 (Makefile.am): Likewise.
61112         * modules/memcasecmp (Makefile.am): Likewise.
61113         * modules/memchr (Makefile.am): Likewise.
61114         * modules/memcmp (Makefile.am): Likewise.
61115         * modules/memcoll (Makefile.am): Likewise.
61116         * modules/memcpy (Makefile.am): Likewise.
61117         * modules/memmem (Makefile.am): Likewise.
61118         * modules/memmove (Makefile.am): Likewise.
61119         * modules/mempcpy (Makefile.am): Likewise.
61120         * modules/memrchr (Makefile.am): Likewise.
61121         * modules/memset (Makefile.am): Likewise.
61122         * modules/memxor (Makefile.am): Likewise.
61123         * modules/mkancesdirs (Makefile.am): Likewise.
61124         * modules/mkdir (Makefile.am): Likewise.
61125         * modules/mkdir-p (Makefile.am): Likewise.
61126         * modules/mkdtemp (Makefile.am): Likewise.
61127         * modules/mkstemp (Makefile.am): Likewise.
61128         * modules/mktime (Makefile.am): Likewise.
61129         * modules/modechange (Makefile.am): Likewise.
61130         * modules/mountlist (Makefile.am): Likewise.
61131         * modules/nanosleep (Makefile.am): Likewise.
61132         * modules/openat (Makefile.am): Likewise.
61133         * modules/pagealign_alloc (Makefile.am): Likewise.
61134         * modules/physmem (Makefile.am): Likewise.
61135         * modules/poll (Makefile.am): Likewise.
61136         * modules/posixtm (Makefile.am): Likewise.
61137         * modules/posixver (Makefile.am): Likewise.
61138         * modules/putenv (Makefile.am): Likewise.
61139         * modules/quote (Makefile.am): Likewise.
61140         * modules/quotearg (Makefile.am): Likewise.
61141         * modules/raise (Makefile.am): Likewise.
61142         * modules/read-file (Makefile.am): Likewise.
61143         * modules/readline (Makefile.am): Likewise.
61144         * modules/readlink (Makefile.am): Likewise.
61145         * modules/readtokens (Makefile.am): Likewise.
61146         * modules/readutmp (Makefile.am): Likewise.
61147         * modules/realloc (Makefile.am): Likewise.
61148         * modules/regex (Makefile.am): Likewise.
61149         * modules/rename (Makefile.am): Likewise.
61150         * modules/rename-dest-slash (Makefile.am): Likewise.
61151         * modules/rijndael (Makefile.am): Likewise.
61152         * modules/rmdir (Makefile.am): Likewise.
61153         * modules/rpmatch (Makefile.am): Likewise.
61154         * modules/safe-read (Makefile.am): Likewise.
61155         * modules/safe-write (Makefile.am): Likewise.
61156         * modules/same (Makefile.am): Likewise.
61157         * modules/save-cwd (Makefile.am): Likewise.
61158         * modules/savedir (Makefile.am): Likewise.
61159         * modules/setenv (Makefile.am): Likewise.
61160         * modules/settime (Makefile.am): Likewise.
61161         * modules/sha1 (Makefile.am): Likewise.
61162         * modules/sig2str (Makefile.am): Likewise.
61163         * modules/snprintf (Makefile.am): Likewise.
61164         * modules/stdlib-safer (Makefile.am): Likewise.
61165         * modules/stpcpy (Makefile.am): Likewise.
61166         * modules/stpncpy (Makefile.am): Likewise.
61167         * modules/strcase (Makefile.am): Likewise.
61168         * modules/strcasestr (Makefile.am): Likewise.
61169         * modules/strchrnul (Makefile.am): Likewise.
61170         * modules/strcspn (Makefile.am): Likewise.
61171         * modules/strdup (Makefile.am): Likewise.
61172         * modules/strerror (Makefile.am): Likewise.
61173         * modules/strftime (Makefile.am): Likewise.
61174         * modules/strndup (Makefile.am): Likewise.
61175         * modules/strnlen (Makefile.am): Likewise.
61176         * modules/strpbrk (Makefile.am): Likewise.
61177         * modules/strsep (Makefile.am): Likewise.
61178         * modules/strstr (Makefile.am): Likewise.
61179         * modules/strtod (Makefile.am): Likewise.
61180         * modules/strtoimax (Makefile.am): Likewise.
61181         * modules/strtok_r (Makefile.am): Likewise.
61182         * modules/strtol (Makefile.am): Likewise.
61183         * modules/strtoll (Makefile.am): Likewise.
61184         * modules/strtoul (Makefile.am): Likewise.
61185         * modules/strtoull (Makefile.am): Likewise.
61186         * modules/strtoumax (Makefile.am): Likewise.
61187         * modules/strverscmp (Makefile.am): Likewise.
61188         * modules/time_r (Makefile.am): Likewise.
61189         * modules/timegm (Makefile.am): Likewise.
61190         * modules/tmpfile-safer (Makefile.am): Likewise.
61191         * modules/unistd-safer (Makefile.am): Likewise.
61192         * modules/unlinkdir (Makefile.am): Likewise.
61193         * modules/userspec (Makefile.am): Likewise.
61194         * modules/utime (Makefile.am): Likewise.
61195         * modules/utimecmp (Makefile.am): Likewise.
61196         * modules/utimens (Makefile.am): Likewise.
61197         * modules/vasnprintf (Makefile.am): Likewise.
61198         * modules/vasprintf (Makefile.am): Likewise.
61199         * modules/vsnprintf (Makefile.am): Likewise.
61200         * modules/xalloc (Makefile.am): Likewise.
61201         * modules/xgetcwd (Makefile.am): Likewise.
61202         * modules/xnanosleep (Makefile.am): Likewise.
61203         * modules/xreadlink (Makefile.am): Likewise.
61204         * modules/xstrtod (Makefile.am): Likewise.
61205         * modules/xstrtol (Makefile.am): Likewise.
61206         * modules/xstrtold (Makefile.am): Likewise.
61207         * modules/yesno (Makefile.am): Likewise.
61208
61209 2006-10-12  Jim Meyering  <jim@meyering.net>
61210
61211         * m4/getloadavg.m4: Revert the change below.
61212
61213         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
61214         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
61215         fail with a symlink, which is what coreutils' ./bootstrap now
61216         creates by default.
61217
61218 2006-10-12  Bruno Haible  <bruno@clisp.org>
61219
61220         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
61221         mingw.
61222         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
61223         MSVC and mingw explicitly.
61224
61225 2006-10-11  Simon Josefsson  <jas@extundo.com>
61226             Bruno Haible  <bruno@clisp.org>
61227
61228         Add support for multiple gnulib-tool invocations in the scope of a
61229         single configure.ac file.
61230         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
61231         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
61232         with the same contents as the _LIBADD variable.
61233         (func_emit_initmacro_start, func_emit_initmacro_end,
61234         func_emit_initmacro_done): New functions.
61235         (func_import, func_create_testdir): Invoke them. Allow the identifiers
61236         gl_LIBOBJS and gl_LTLIBOBJS.
61237
61238 2006-10-11  Bruno Haible  <bruno@clisp.org>
61239
61240         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
61241         (func_create_testdir): Don't create po/Makefile.am, don't invoke
61242         autoreconf. Instead, invoke autopoint explicitly but move back the
61243         *.m4 files from gnulib.
61244
61245 2006-10-11  Bruno Haible  <bruno@clisp.org>
61246
61247         * gnulib-tool (func_usage): Make module names after --create-testdir
61248         optional.
61249         (func_create_testdir): If no module was specified, use nearly all
61250         modules.
61251
61252 2006-10-12  Jim Meyering  <jim@meyering.net>
61253
61254         Big performance improvement for fts-based tools that use FTS_NOSTAT.
61255         Avoid spurious inode-mismatch problems on non-POSIX file systems.
61256         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
61257         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
61258         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
61259         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
61260         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
61261         (fts_set_stat_required): New function.
61262         (fts_open): Defer the calls to fts_stat, if possible or requested.
61263         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
61264         into fts_stat itself.
61265         (fts_read): Perform any required (deferred) fts_stat call.
61266         (fts_build): Likewise, for the directory we're about to open and read.
61267         In the readdir loop, carefully decide whether each entry will require
61268         an eventual call to fts_stat, using dirent.d_type info if available.
61269         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
61270         a command line argument into this function.  Update all callers.
61271         Map a return value of FTS_DOT to FTS_D for a command line argument.
61272         * modules/fts (Depends-on): Add d-type.  Alphabetize.
61273         Thanks to Miklos Szeredi for his tenacity and for the initial
61274         bug report about "find" failing on a FUSE-based file system.
61275
61276         * lib/fts.c (fts_open): Use consistent indentation.
61277
61278 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61279
61280         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
61281         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
61282         reported by Jim Meyering.  All uses of cache variables renamed
61283         to match Autoconf's.
61284         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
61285         the other one.
61286
61287         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
61288         Fix misspelling in diagnostic.
61289
61290 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61291
61292         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
61293         defined.  Problem reported by Matthew Woehlke.
61294
61295         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
61296         Add support for Tandem NonStop R series.
61297         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
61298         Use new macro.
61299
61300         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
61301         (has_trailing_slash): Omit size arg; all callers changed.
61302         Omit 'inline', since it doesn't help performance and we'd
61303         need to configure it.
61304         Don't count //, ///, etc. as having a trailing slash.
61305         As a side effect, this removes a C99ism reported by Matthew Woehlke.
61306         (rpl_rename_dest_slash): On failure, use rename's errno rather
61307         than (in some cases) an incorrect or junk errno.
61308         Simplify code by removing need to compute length; this does
61309         cause it to make two passes instead of one over the file name,
61310         but it's worth it.
61311
61312         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
61313         change, since Autoconf's version may no longer be appropriate now
61314         that we are using CVS Autoconf's version.  Add support for Tandem.
61315
61316 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61317             Bruno Haible  <bruno@clisp.org>
61318
61319         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
61320         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
61321         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
61322         gl_AC_TYPE_LONG_LONG.
61323
61324         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
61325         instead of HAVE_LONG_LONG.
61326         * lib/printf-args.c (printf_fetchargs): Likewise.
61327         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
61328         * lib/vasnprintf.c (VASNPRINTF): Likewise.
61329         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
61330         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
61331         gl_AC_TYPE_LONG_LONG.
61332
61333 2006-10-11  Bruno Haible  <bruno@clisp.org>
61334
61335         * m4/longlong.m4: Add comments.
61336         * m4/ulonglong.m4: Likewise.
61337
61338 2006-10-10  Bruno Haible  <bruno@clisp.org>
61339
61340         Make it possible to #define stpcpy, strdup to aliases.
61341         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
61342         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
61343
61344 2006-10-10  Bruno Haible  <bruno@clisp.org>
61345
61346         Make it possible to #define gcd to an alias.
61347         * lib/gcd.c: Include config.h.
61348
61349 2006-10-10  Bruno Haible  <bruno@clisp.org>
61350
61351         Make it possible to #define c_isascii to an alias.
61352         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
61353         defined. Undefine the macros before defining them, to avoid gcc
61354         warnings.
61355         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
61356         define NO_C_CTYPE_MACROS early.
61357
61358 2006-10-10  Bruno Haible  <bruno@clisp.org>
61359
61360         Make it possible to #define set_program_name to an alias.
61361         * lib/progname.c: Don't undefine set_program_name; instead, undefine
61362         ENABLE_RELOCATABLE early.
61363
61364 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61365
61366         Port to Tandem NSK OSS, which has 64-bit signed int but at most
61367         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
61368         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
61369         More generally, don't assume that 64-bit signed int is available
61370         if unsigned int is, and vice versa.
61371         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
61372         unsigned symbols, not on their signed counterparts.
61373         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
61374         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
61375         (UINT64_C, UINTMAX_C):
61376         Likewise.
61377         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
61378         unsigned counterparts.
61379         (Have_long_long, Unsigned): New macros.
61380         (Int): Renamed from INT.
61381         (strtoimax): Use the new macros.
61382         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
61383         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
61384         * modules/inttypes (inttypes.h): Substitute
61385         HAVE_UNSIGNED_LONG_LONG_INT.
61386         * modules/stdint (stdint.h): Likewise.
61387         (Files): Add m4/ulonglong.m4.
61388
61389 2006-10-10  Bruno Haible  <bruno@clisp.org>
61390
61391         Fix a gcc -Wshadow warning.
61392         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
61393         to 'bucket'.
61394         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
61395         gl_linked_indexof_from_to): Likewise.
61396         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
61397         Likewise.
61398         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
61399         Likewise.
61400         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
61401         Reported by Eric Blake.
61402
61403 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
61404
61405         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
61406         for NetBSD.  Problem reported by Bruno Haible.
61407
61408 2006-10-09  Jim Meyering  <jim@meyering.net>
61409
61410         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
61411         Patch from Bruno Haible.
61412
61413 2006-10-09  Jim Meyering  <jim@meyering.net>
61414
61415         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
61416         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
61417         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
61418
61419 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61420
61421         Don't include <config.h> twice; this doesn't work in some cases,
61422         e.g., when config.h has "#define intmax_t long long int" and
61423         we include <config.h>, <inttypes.h>, <config.h> in that order.
61424         Problem reported by Matthew Woehlke in:
61425         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
61426         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
61427         * lib/fts-cycle.c: Don't include config.h.
61428         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
61429         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
61430         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
61431         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
61432         inttypes.h.
61433         * lib/xstrtoumax.c: Likewise.
61434         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
61435         __strtol and the like, so that this module is more like its siblings.
61436         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
61437         Remove; no longer needed now that we assume gnulib inttypes.h.
61438
61439 2006-10-08  Bruno Haible  <bruno@clisp.org>
61440
61441         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
61442         option.
61443
61444 2006-10-07  Jim Meyering  <jim@meyering.net>
61445
61446         * modules/inttypes (inttypes.h): Revert what seems to have been
61447         an inadvertent part of today's change: use "|", not "/" in the
61448         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
61449
61450 2006-10-07  Bruno Haible  <bruno@clisp.org>
61451
61452         * modules/sublist: New file.
61453
61454 2006-10-07  Bruno Haible  <bruno@clisp.org>
61455
61456         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
61457         * modules/argz (argz.h): Likewise.
61458         * modules/arpa_inet (arpa/inet.h): Likewise.
61459         * modules/byteswap (byteswap.h): Likewise.
61460         * modules/configmake (configmake.h): Likewise.
61461         * modules/fcntl (fcntl.h): Likewise.
61462         * modules/fnmatch (fnmatch.h): Likewise.
61463         * modules/getopt (getopt.h): Likewise.
61464         * modules/glob (glob.h): Likewise.
61465         * modules/inttypes (inttypes.h): Likewise.
61466         * modules/netinet_in (netinet/in.h): Likewise.
61467         * modules/poll (poll.h): Likewise.
61468         * modules/stdbool (stdbool.h): Likewise.
61469         * modules/stdint (stdint.h): Likewise.
61470         * modules/sys_select (sys/select.h): Likewise.
61471         * modules/sys_socket (sys/socket.h): Likewise.
61472         * modules/sys_stat (sys/stat.h): Likewise.
61473         * modules/sysexits (sysexits.h): Likewise.
61474         * modules/unistd (unistd.h): Likewise.
61475         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61476         Add a "DO NOT EDIT" comment to the generated file.
61477         (func_import): Likewise for gnulib-comp.m4.
61478
61479 2006-10-07  Bruno Haible  <bruno@clisp.org>
61480
61481         * lib/gl_sublist.h: New file.
61482         * lib/gl_sublist.c: New file.
61483
61484 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
61485
61486         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
61487         name (relative to the original working directory) and the file
61488         name component (relative to the temporary working directory).  All
61489         callers changed.
61490         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
61491         * lib/mkdir-p.c (make_dir_parents): Likewise.
61492         * lib/mkdir-p.h (make_dir_parents): Likewise.
61493
61494 2006-10-06  Eric Blake  <ebb9@byu.net>
61495
61496         Define several macros for use by the clean-temp module.
61497         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
61498         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
61499         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
61500
61501         * lib/clean-temp.h (close_stream_temp): New declaration.
61502         * lib/clean-temp.c (includes): Pull in headers according to what
61503         other modules are in use.
61504         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
61505
61506 2006-10-06  Bruno Haible  <bruno@clisp.org>
61507
61508         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
61509         instead of fopen, fwriteerror.
61510
61511 2006-10-06  Bruno Haible  <bruno@clisp.org>
61512
61513         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
61514         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
61515         int.
61516         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
61517         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
61518         Return an error indicator.
61519         Suggested by Eric Blake.
61520
61521 2006-10-06  Bruno Haible  <bruno@clisp.org>
61522
61523         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
61524         Reported by Eric Blake.
61525
61526 2006-10-06  Bruno Haible  <bruno@clisp.org>
61527
61528         * modules/closeout (Description): Mention stderr too.
61529
61530 2006-10-06  Bruno Haible  <bruno@clisp.org>
61531         and Paul Eggert  <eggert@cs.ucla.edu>
61532
61533         * lib/closeout.c (close_stdout): Also close stderr.
61534         * lib/closeout.h: Update comment.
61535
61536 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
61537
61538         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
61539         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
61540         * lib/dirchownmod.c: Include lchown.h.
61541         * lib/lchown.c: Don't include files that lchown.h now includes.
61542         Don't declare chown, since lchown.h now does that.
61543         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
61544         (lchown): Define to rpl_chown if lchown is declared but
61545         does not exist.  Declare using a prototype if lchown is not
61546         declared.  Add a copyright notice.
61547         * lib/mkstemp.h: Include <unistd.h>.
61548         * lib/openat.c: Include lchown.h.
61549
61550         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
61551         we now test for that separately.
61552         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
61553         rather than O_NOFOLLOW, when testing whether it's possible to
61554         avoid a race condition reliably.
61555         * lib/savewd.c (savewd_chdir): Likewise.
61556
61557         Remove macros that are no longer needed now that stdint.h is
61558         reliable.
61559         * lib/fsusage.c (UINTMAX_MAX): Remove.
61560         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
61561         * lib/utimecmp.c (SIZE_MAX): Remove.
61562
61563         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
61564
61565         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
61566         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
61567         O_NOATIME works.
61568
61569 2006-10-05  Bruno Haible  <bruno@clisp.org>
61570
61571         * lib/gl_list.h (gl_sortedlist_search_from_to,
61572         gl_sortedlist_indexof_from_to): New declarations.
61573         (gl_list_implementation): New fields sortedlist_search_from_to,
61574         sortedlist_indexof_from_to.
61575         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
61576         inline functions.
61577         * lib/gl_list.c (gl_sortedlist_search_from_to,
61578         gl_sortedlist_indexof_from_to): New functions.
61579         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
61580         function.
61581         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
61582         (gl_array_sortedlist_search_from_to): New function.
61583         (gl_array_list_implementation): Update.
61584         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
61585         function.
61586         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
61587         (gl_carray_sortedlist_search_from_to): New function.
61588         (gl_carray_list_implementation): Update.
61589         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
61590         gl_linked_sortedlist_indexof_from_to): New functions.
61591         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61592         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61593         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
61594         gl_tree_sortedlist_indexof_from_to): New functions.
61595         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61596         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61597         Update.
61598         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61599         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
61600         Update.
61601
61602 2006-10-05  Bruno Haible  <bruno@clisp.org>
61603
61604         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
61605         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
61606         (struct gl_list_implementation): Add fields search_from_to,
61607         indexof_from_to. Remove fields search, indexof.
61608         (gl_list_search): Use the search_from_to method.
61609         (gl_list_search_from, gl_list_search_from_to): New functions.
61610         (gl_list_indexof): Use the indexof_from_to method.
61611         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
61612         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
61613         (gl_list_search_from, gl_list_search_from_to): New functions.
61614         (gl_list_indexof): Use the indexof_from_to method.
61615         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
61616         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
61617         gl_array_indexof. Add start_index, end_index arguments.
61618         (gl_array_search_from_to): Renamed from gl_array_search. Add
61619         start_index, end_index arguments.
61620         (gl_array_remove, gl_array_list_implementation): Update.
61621         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
61622         gl_carray_indexof. Add start_index, end_index arguments.
61623         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
61624         start_index, end_index arguments.
61625         (gl_carray_remove, gl_carray_list_implementation): Update.
61626         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
61627         gl_linked_search. Add start_index, end_index arguments.
61628         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
61629         start_index, end_index arguments.
61630         (gl_linked_remove): Update.
61631         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61632         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61633         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
61634         field to 'size_t'.
61635         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
61636         gl_tree_search. Add start_index, end_index arguments.
61637         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
61638         start_index, end_index arguments.
61639         (gl_tree_remove): Update.
61640         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61641         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61642         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
61643         function.
61644         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
61645         gl_tree_search. Add start_index, end_index arguments.
61646         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
61647         start_index, end_index arguments.
61648         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61649         Update.
61650         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
61651
61652 2006-10-05  Bruno Haible  <bruno@clisp.org>
61653
61654         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
61655
61656         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
61657         fwriteerror_temp): New declarations.
61658         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
61659         (descriptors): New variable.
61660         (cleanup): First, close the descriptors.
61661         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
61662         fclose_temp, fwriteerror_temp): New functions.
61663
61664 2006-10-04  Jim Meyering  <jim@meyering.net>
61665
61666         * lib/fts.c (fts_open): Tiny comment change.
61667
61668 2006-10-04  Bruno Haible  <bruno@clisp.org>
61669
61670         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
61671         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
61672         gl_LOCK_BODY.
61673         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
61674         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
61675         gl_LOCK_EARLY_BODY.
61676         (gl_LOCK): Require gl_LOCK_BODY.
61677
61678 2006-10-04  Bruno Haible  <bruno@clisp.org>
61679
61680         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
61681         (gl_oset_search_atleast): New declaration.
61682         (struct gl_oset_implementation): Add field 'search_atleast'.
61683         (gl_oset_search_atleast): New inline function.
61684         * lib/gl_oset.c (gl_oset_search_atleast): New function.
61685         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
61686         (gl_array_oset_implementation): Update.
61687         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
61688         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
61689         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
61690
61691 2006-10-04  Bruno Haible  <bruno@clisp.org>
61692
61693         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
61694
61695 2006-10-03  Bruno Haible  <bruno@clisp.org>
61696
61697         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
61698         from gl_avltreehash_list_implementation.
61699
61700 2006-10-03  Bruno Haible  <bruno@clisp.org>
61701
61702         * lib/gl_oset.c (gl_oset_add): Fix return type.
61703
61704 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
61705
61706         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
61707
61708 2006-10-02  Eric Blake  <ebb9@byu.net>
61709
61710         * modules/strnlen (Depends-on): Add extensions.
61711
61712 2006-10-02  Eric Blake  <ebb9@byu.net>
61713
61714         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
61715         definition in 2.60+.
61716
61717 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
61718
61719         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
61720         checks.
61721
61722 2006-10-02  Bruno Haible  <bruno@clisp.org>
61723
61724         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
61725         to the AUTOMAKE_OPTIONS.
61726         Reported by Jim Meyering.
61727
61728 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
61729
61730         Work around bug in Solaris 10 /proc file system:
61731         /proc/self/fd/NNN/.. isn't the parent directory of
61732         the directory whose file descriptor is NNN.  This needs to
61733         be worked around at run time, not compile time, since a
61734         program might be built on Solaris 8, where things work, and
61735         run on Solaris 10.
61736         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
61737         to use the following interface instead:
61738         (OPENAT_BUFFER_SIZE): New macro.
61739         (openat_proc_name): New function.
61740         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
61741         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
61742         Likewise.
61743         * lib/openat-proc.c: New file.
61744         * modules/openat (Files): Add lib/openat-proc.c.
61745         (Depends-on): Add same-inode, stdbool.
61746         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
61747
61748 2006-09-29  Bruno Haible  <bruno@clisp.org>
61749
61750         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
61751         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
61752         argument. Set stdout_closed before testing for ferror, not after.
61753         (fwriteerror, fwriteerror_no_ebadf): New functions.
61754
61755 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61756
61757         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
61758
61759 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
61760
61761         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
61762         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
61763
61764 2006-09-28  Jim Meyering  <jim@meyering.net>
61765
61766         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
61767         Include <unistd.h>.
61768
61769 2006-09-28  Bruno Haible  <bruno@clisp.org>
61770
61771         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
61772         * modules/linkedhash-list (Depends-on): Likewise.
61773         * modules/rbtreehash-list (Depends-on): Likewise.
61774
61775 2006-09-28  Bruno Haible  <bruno@clisp.org>
61776
61777         * lib/strndup.h: Simplify the redefinition of strndup.
61778         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
61779         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
61780
61781 2006-09-28  Bruno Haible  <bruno@clisp.org>
61782
61783         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
61784         * lib/gl_linkedhash_list.c: Likewise.
61785         * lib/gl_rbtreehash_list.c: Likewise.
61786
61787 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
61788
61789         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
61790         getaddrinfo.
61791
61792         * lib/__fpending.h: Don't include <stdio_ext.h> unless
61793         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
61794         it causes <stdio_ext.h> to cause a compile-time error.
61795         Problem reported by Nelson H. F. Beebe.
61796         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
61797         of HAVE_DECL___PENDING.
61798
61799         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
61800         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
61801         declaration.
61802
61803 2006-09-27  Jim Meyering  <jim@meyering.net>
61804
61805         This file could end up with a definition for a function
61806         named __strndup, rather than rpl_strndup on a system with
61807         incomplete weak_alias support.
61808         * lib/strndup.c (strndup): Rename from __strndup.
61809         Remove #defines that used to map __strndup to strndup.
61810         Don't use K&R prototypes.
61811         Remove LIBC-related code, since this file is not sync'd with glibc.
61812         * lib/strndup.h: Revamp, accordingly.
61813         * m4/strndup.m4: Modernize.
61814
61815 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
61816
61817         * modules/savewd (Depends-on): Add 'raise'.
61818         * lib/savewd.c: Include <signal.h>, for 'raise'.
61819
61820 2006-09-26  Jim Meyering  <jim@meyering.net>
61821
61822         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
61823         when we detect Darwin 8.7.0's acl_get_file bug.
61824         Rearrange to perform the new (below) run-test while $LIBS
61825         contains any acl-related library.  Set USE_ACL at the end.
61826         (gl_ACL_GET_FILE): New function.
61827
61828 2006-09-26  Eric Blake  <ebb9@byu.net>
61829
61830         * lib/verror.c: Include <config.h> unconditionally.
61831
61832 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
61833
61834         * modules/clock-time (Maintainer): Add self.
61835         * modules/getlogin_r (Depends-on): Add extensions.
61836
61837 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61838
61839         * modules/clock-time: New module.
61840         * modules/nanosleep (Depends-on): Add clock-time.
61841         * modules/gethrxtime (Depends-on): Likewise.
61842         * modules/gettime (Depends-on): Likewise.
61843         * modules/settime (Depends-on): Likewise.
61844
61845         * modules/fts-lgpl: Depend on openat.
61846         * modules/mkancesdirs: Depend on savewd.
61847         * modules/mkdir-p: Likewise.
61848
61849 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61850
61851         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
61852
61853         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
61854         `gl_have_arbitrary_file_name_length_limit' to
61855         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
61856         actually works between configure runs.
61857
61858 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61859             Bruno Haible  <bruno@clisp.org>
61860
61861         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
61862
61863 2006-09-25  Jim Meyering  <jim@meyering.net>
61864
61865         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
61866         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
61867
61868 2006-09-25  Eric Blake  <ebb9@byu.net>
61869
61870         * gnulib-tool (func_import, func_create_testdir): Fix typos in
61871         exec's in 2006-09-18 patch when shuffling fds.
61872
61873 2006-09-25  Bruno Haible  <bruno@clisp.org>
61874
61875         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
61876         Reported by Jim Meyering.
61877
61878 2006-09-24  Jim Meyering  <jim@meyering.net>
61879
61880         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
61881         compare a pointer against a literal "0".  That caused failures with
61882         at least HP-UX's hpcc.
61883
61884 2006-09-22  Simon Josefsson  <jas@extundo.com>
61885
61886         * modules/gc-sha1:
61887         * modules/gc-md4:
61888         * modules/gc-hmac-sha1:
61889         * modules/gc-hmac-md5:
61890         * modules/gc-des:
61891         * modules/gc-arcfour: Distribute more files.
61892
61893 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61894
61895         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
61896         (gl_linked_iterator_from_to): Initialize struct completely.
61897         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
61898         (gl_tree_iterator_from_to): Likewise
61899         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
61900         * lib/gl_array_list.c [lint] (gl_array_iterator)
61901         (gl_array_iterator_from_to): Likewise.
61902         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
61903         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
61904         (gl_carray_iterator_from_to): Likewise.
61905
61906         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
61907         * lib/md4.c (md4_process_block): Remove unused variable.
61908         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
61909         parentheses for clarity.
61910
61911 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61912
61913         * modules/bison-i18n (Depends-on): Add gettext.
61914
61915 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61916
61917         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
61918         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
61919         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
61920         also add missing comma that caused broken test.
61921         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
61922         stdlib.h, for `abort'.
61923         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
61924         variables.
61925         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
61926         include unistd.h if present, for `rmdir'.
61927         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
61928         variables.
61929         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
61930         in the process include standard headers for prototypes.
61931         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
61932         gets declared on GNU/Linux.
61933         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
61934         unistd.h, for `rmdir'.
61935         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
61936
61937         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
61938         always true.
61939         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
61940
61941         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
61942
61943 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61944
61945         * gnulib-tool (func_version): Create output all at once.  This
61946         may help avoid triggering unnecessary SIGPIPEs, and at any
61947         rate it doesn't hurt.
61948
61949 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61950             Bruno Haible  <bruno@clisp.org>
61951
61952         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
61953         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61954         * m4/signed.m4 (bh_C_SIGNED): Likewise.
61955
61956         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
61957         (gl_FUNC_VASPRINTF): Invoke it.
61958
61959 2006-09-22  Bruno Haible  <bruno@clisp.org>
61960
61961         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
61962         getloadavg.c as first argument.
61963
61964 2006-09-22  Bruno Haible  <bruno@clisp.org>
61965
61966         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
61967         at the beginning of the gl_INIT macro.
61968         * modules/getloadavg (configure.ac): Pass $gl_source_base to
61969         gl_GETLOADAVG.
61970
61971 2006-09-22  Bruno Haible  <bruno@clisp.org>
61972
61973         * gnulib-tool (func_create_megatestdir): Don't include the config-h
61974         module.
61975         Suggested by Ralf Wildenhues.
61976
61977 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61978
61979         Import this patch from libc:
61980
61981         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
61982
61983         * lib/regex_internal.c (re_string_reconstruct): Handle
61984         offset < pstr->valid_raw_len && pstr->offsets_needed case.
61985         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
61986         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
61987         re_string_context_at.
61988
61989         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
61990         now requires it.
61991         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
61992         gl_REGEX now does it for us.
61993         (gl_REGEX): Add test taken from
61994         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
61995
61996         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
61997         Check that large offsets work.  Modernize Autoconf usages.
61998         Prefer "yes" to mean a good thing rather than a bad.
61999         Don't put "#define mkstemp" in config.h, as this might interfere
62000         with standard system headers that "#define mkstemp mkstemp64".
62001
62002         * modules/mkstemp (Depends-on): Add extensions, so that
62003         mkstemp is visible on some platforms.
62004         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
62005         (Include): Change to "mkstemp.h" from <stdlib.h>.
62006         (Files): Add mkstemp.h.
62007
62008         * lib/mkstemp.h: New file, since some standard headers
62009         #define mkstemp.
62010         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
62011         Include "mkstemp.h".
62012         Make the _LIBC code resemble glibc original more,
62013         e.g., use K&R style.
62014         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
62015         (mkstemp): Remove, since mkstemp.h does this for us.
62016         * lib/stdlib--.h: Include mkstemp.h.
62017
62018         Import this patch from libc:
62019
62020         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62021
62022         * lib/tempname.c (__gen_tempname): Change attempts_min
62023         into a macro.  Use preprocessor to decide how to initialize
62024         attempts [Coverity CID 67].
62025
62026 2006-09-20  Bruno Haible  <bruno@clisp.org>
62027
62028         * lib/mkdtemp.c: Import from libc.
62029         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62030                 * sysdeps/posix/tempname.c (__gen_tempname): Change
62031                 attempts_min into a macro.  Use preprocessor to decide how to
62032                 initialize attempts [Coverity CID 67].
62033         2001-11-27  Paul Eggert  <eggert@twinsun.com>
62034                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
62035                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
62036
62037 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62038
62039         * gnulib-tool (func_exit): New function, to allow to pass the
62040         exit status portably through the trap.  Use everywhere.
62041         (--help, --version): Signal a write error.
62042         (trap): catch SIGPIPE, for write errors.
62043         Exit at the end of the trap, with the correct exit status.
62044
62045 2006-09-19  Karl Berry  <karl@gnu.org>
62046
62047         * doc/gnulib.texi: note about the license texinfo files.
62048
62049 2006-09-19  Eric Blake  <ebb9@byu.net>
62050
62051         * gnulib-tool: Avoid space-tab.
62052
62053 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62054
62055         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
62056         that prevented coreutils 6.1 from building.  Problem reported
62057         by Petter Reinholdtsen.
62058
62059 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62060
62061         * gnulib-tool (avoidlist): Fix typo that broke options like
62062         --avoid=lock that are used by coreutils bootstrap.
62063
62064 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
62065
62066         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
62067         more systematically.
62068
62069 2006-09-18  Jim Meyering  <jim@meyering.net>
62070
62071         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
62072
62073 2006-09-18  Bruno Haible  <bruno@clisp.org>
62074
62075         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
62076
62077 2006-09-18  Bruno Haible  <bruno@clisp.org>
62078
62079         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
62080         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
62081         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
62082         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
62083         * m4/gettext.m4: Require autoconf >= 2.52.
62084         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
62085         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
62086         of gl_cv_header_inttypes_h.
62087
62088 2006-09-18  Bruno Haible  <bruno@clisp.org>
62089
62090         * lib/javaversion.c: Include configmake.h.
62091
62092 2006-09-18  Bruno Haible  <bruno@clisp.org>
62093
62094         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
62095         avoid that the while loops be executed in a subshell.
62096
62097 2006-09-18  Bruno Haible  <bruno@clisp.org>
62098
62099         * MODULES.html.sh (func_module): Break long lines.
62100         Suggested by Bruce Korb <bkorb@gnu.org>.
62101
62102 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62103
62104         Speed up by a factor of 1.12.
62105         * gnulib-tool (nl): New variable.
62106         (func_import): Rewrite include directive extraction to only read each
62107         directive once.
62108
62109 2006-09-17  Bruno Haible  <bruno@clisp.org>
62110
62111         * modules/javaversion (Makefile.am): Remove DEFS setting.
62112         (Depends-on): Add configmake, for PKGDATADIR definition.
62113
62114 2006-09-17  Bruno Haible  <bruno@clisp.org>
62115
62116         * gnulib-tool (func_create_testdir): Rewrite all files at once.
62117
62118 2006-09-17  Bruno Haible  <bruno@clisp.org>
62119
62120         * gnulib-tool (func_append): New function, stolen from libtool.m4.
62121         (func_modules_transitive_closure, func_modules_add_dummy,
62122         func_modules_to_filelist, func_import, func_create_testdir,
62123         func_create_megatestdir, ...): Use it wherever possible.
62124         Suggested by Ralf Wildenhues.
62125
62126 2006-09-16  Karl Berry  <karl@gnu.org>
62127
62128         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
62129         to avoid sectioning errors.
62130         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
62131         [ifinfo]: blank line after @center-ed titles.
62132         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
62133         Spell FSF address consistently with others.
62134         (These changes approved by rms.)
62135
62136 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62137
62138         Speed up by a factor of 1.61.
62139         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
62140         already checked module names again.
62141
62142 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62143
62144         Speed up by a factor of 1.13.
62145         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
62146         for new_files, and the input to func_add_or_update.
62147
62148 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62149
62150         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
62151         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
62152
62153 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62154
62155         * modules/mkancesdirs (Depends-on): Add fcntl.
62156         * modules/savewd: New file.
62157         * MODULES.html.sh (File system functions): Add savewd.
62158
62159         * modules/configmake (Makefile.am): Add support for the
62160         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
62161
62162 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62163
62164         * m4/savewd.m4: New file.
62165
62166 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62167
62168         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
62169         (dirchownmod): New arg FD.  All callers changed.
62170         Use FD rather than opening the directory ourself, as opening is
62171         now the caller's responsibility.
62172         * lib/dirchownmod.h: Likewise.
62173         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
62174         hosts that require <sys/types.h> before <sys/stat.h>.  Include
62175         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
62176         (test_dir): Remove.
62177         (mkancesdirs): Return length of prefix of FILE that has already
62178         been made, or -2 if there is a child doing the work.  Redo
62179         algorithm so that it is O(N) rather than O(N**2).  Optimize away
62180         ".", and treat ".." specially since it might stray back into
62181         already-created areas.  Use a subprocess if necessary.  New arg
62182         WD; all users changed.  MAKE_DIR function should now return 1
62183         if it creates a directory that is not readable.  Return -2 if
62184         a child process is spun off.
62185         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
62186         Adjust signature to match code.
62187         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
62188         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
62189         all users changed.
62190         * lib/savewd.c, lib/savewd.h: New files.
62191
62192 2006-09-15  Jim Meyering  <jim@meyering.net>
62193
62194         * modules/rename-dest-slash: New module.
62195         * MODULES.html.sh (posix_compat): Add it here.
62196
62197         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
62198
62199 2006-09-15  Jim Meyering  <jim@meyering.net>
62200
62201         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
62202         file.
62203
62204         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
62205
62206 2006-09-15  Jim Meyering  <jim@meyering.net>
62207
62208         * lib/rename-dest-slash.c (has_trailing_slash): Use
62209         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
62210         (rpl_rename_dest_slash): Perform the cheaper trailing slash
62211         test before testing whether SRC is a directory.
62212         Suggestions from Bruno Haible.
62213
62214         Avoid a warning about an unused variable.
62215         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
62216         into the #ifdef block where it's used.
62217
62218         * lib/rename-dest-slash.c: New file.
62219
62220 2006-09-14  Bruno Haible  <bruno@clisp.org>
62221
62222         * lib/allocsa.c: Include <config.h> unconditionally.
62223         * lib/asnprintf.c: Likewise.
62224         * lib/asprintf.c: Likewise.
62225         * lib/c-strcasecmp.c: Likewise.
62226         * lib/c-strcasestr.c: Likewise.
62227         * lib/c-strncasecmp.c: Likewise.
62228         * lib/c-strstr.c: Likewise.
62229         * lib/classpath.c: Likewise.
62230         * lib/clean-temp.c: Likewise.
62231         * lib/concatpath.c: Likewise.
62232         * lib/copy-file.c: Likewise.
62233         * lib/csharpcomp.c: Likewise.
62234         * lib/csharpexec.c: Likewise.
62235         * lib/execute.c: Likewise.
62236         * lib/fatal-signal.c: Likewise.
62237         * lib/findprog.c: Likewise.
62238         * lib/fwriteerror.c: Likewise.
62239         * lib/gl_array_list.c: Likewise.
62240         * lib/gl_array_oset.c: Likewise.
62241         * lib/gl_avltree_list.c: Likewise.
62242         * lib/gl_avltree_oset.c: Likewise.
62243         * lib/gl_avltreehash_list.c: Likewise.
62244         * lib/gl_carray_list.c: Likewise.
62245         * lib/gl_linked_list.c: Likewise.
62246         * lib/gl_linkedhash_list.c: Likewise.
62247         * lib/gl_list.c: Likewise.
62248         * lib/gl_oset.c: Likewise.
62249         * lib/gl_rbtree_list.c: Likewise.
62250         * lib/gl_rbtree_oset.c: Likewise.
62251         * lib/gl_rbtreehash_list.c: Likewise.
62252         * lib/imaxabs.c: Likewise.
62253         * lib/imaxdiv.c: Likewise.
62254         * lib/javacomp.c: Likewise.
62255         * lib/javaexec.c: Likewise.
62256         * lib/javaversion.c: Likewise.
62257         * lib/linebreak.c: Likewise.
62258         * lib/localcharset.c: Likewise.
62259         * lib/lock.c: Likewise.
62260         * lib/mbchar.c: Likewise.
62261         * lib/mbswidth.c: Likewise.
62262         * lib/mkdtemp.c: Likewise.
62263         * lib/pipe.c: Likewise.
62264         * lib/printf-args.c: Likewise.
62265         * lib/printf-parse.c: Likewise.
62266         * lib/progname.c: Likewise.
62267         * lib/progreloc.c: Likewise.
62268         * lib/readlink.c: Likewise.
62269         * lib/sh-quote.c: Likewise.
62270         * lib/stpcpy.c: Likewise.
62271         * lib/stpncpy.c: Likewise.
62272         * lib/strcasecmp.c: Likewise.
62273         * lib/strcasestr.c: Likewise.
62274         * lib/strcspn.c: Likewise.
62275         * lib/striconv.c: Likewise.
62276         * lib/strncasecmp.c: Likewise.
62277         * lib/strnlen1.c: Likewise.
62278         * lib/strstr.c: Likewise.
62279         * lib/strtok_r.c: Likewise.
62280         * lib/tls.c: Likewise.
62281         * lib/tmpdir.c: Likewise.
62282         * lib/unicodeio.c: Likewise.
62283         * lib/unsetenv.c: Likewise.
62284         * lib/vasnprintf.c: Likewise.
62285         * lib/vasprintf.c: Likewise.
62286         * lib/wait-process.c: Likewise.
62287         * lib/xallocsa.c: Likewise.
62288         * lib/xsetenv.c: Likewise.
62289         * lib/xstriconv.c: Likewise.
62290
62291 2006-09-13  Simon Josefsson  <jas@extundo.com>
62292
62293         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
62294         that internally, suggested by Ralf Wildenhues
62295         <Ralf.Wildenhues@gmx.de>.
62296
62297 2006-09-13  Simon Josefsson  <jas@extundo.com>
62298
62299         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
62300         @LIBOBJS@.
62301         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62302
62303 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62304
62305         * lib/_fpending.c: Include <config.h> unconditionally, since we no
62306         longer worry about uses that don't define HAVE_CONFIG_H.
62307         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
62308         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
62309         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
62310         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
62311         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
62312         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
62313         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
62314         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
62315         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
62316         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
62317         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
62318         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
62319         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
62320         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
62321         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
62322         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
62323         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
62324         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
62325         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
62326         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
62327         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
62328         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
62329         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
62330         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
62331         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
62332         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
62333         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
62334         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
62335         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
62336         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
62337         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
62338         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
62339         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
62340         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
62341         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
62342         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
62343         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
62344         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
62345         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
62346         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
62347         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
62348         Likewise.
62349
62350 2006-09-13  Eric Blake  <ebb9@byu.net>
62351
62352         * lib/getopt.c: Fix typo in last commit.
62353
62354 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62355
62356         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
62357         dgettext.
62358
62359 2006-09-12  Jim Meyering  <jim@meyering.net>
62360
62361         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
62362         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
62363         Reported by Nelson H. F. Beebe.
62364
62365 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62366
62367         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
62368         program_invocation_name and program_invocation_short_name are
62369         initialized.
62370         * lib/argp-namefrob.h: Move declarations of program_invocation_name
62371         and program_invocation_short_name to argp.h, so they are visible
62372         to user programs.
62373         * lib/argp.h: Likewise
62374
62375 2006-09-10  Bruno Haible  <bruno@clisp.org>
62376
62377         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
62378         m4/inttypes_h.m4, m4/uintmax_t.m4.
62379
62380 2006-09-10  Bruno Haible  <bruno@clisp.org>
62381
62382         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
62383         gl_AC_TYPE_UINTMAX_T.
62384
62385 2006-09-10  Bruno Haible  <bruno@clisp.org>
62386
62387         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
62388
62389 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62390
62391         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
62392         convention.  Text proposed by Bruno Haible.
62393         (struct argp_option): Document the use of N_() wrappers.
62394
62395         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
62396         '\v', and translate the two parts separately, instead of feeding
62397         the whole string to gettext.  This allows to exclude
62398         '\v' from the strings visible to the translator by writing doc
62399         strings as N_("..") "\v" N_("..").
62400
62401 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
62402
62403         * config/srclist.txt: Undo latest change; the bug was fixed.
62404
62405 2006-09-09  Bruno Haible  <bruno@clisp.org>
62406
62407         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
62408         assignments if building a library without libtool.
62409         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
62410         in func_emit_lib_Makefile_am.
62411         (func_import): When building a static library libfoo.a, arrange to
62412         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
62413         (func_create_testdir): Likewise.
62414         * modules/gc (configure.ac, Makefile.am): If building statically,
62415         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
62416         * modules/iconvme (configure.ac, Makefile.am): Likewise.
62417         * modules/striconv (configure.ac, Makefile.am): Likewise.
62418         Based on a suggestion by Ralf Wildenhues.
62419
62420 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62421
62422         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62423         Check for unistd.h too, since Autoconf doesn't assume POSIX.
62424         Also:
62425
62426         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62427         Add year_2050_test to catch glibc bug 2821
62428         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
62429
62430         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62431         Prefer #ifdef to #if.
62432
62433         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
62434         Return from 'main' instead of calling 'exit'.
62435
62436 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62437
62438         * lib/mktime.c (guess_time_tm): Fix bug where mktime
62439         returned the maximum time_t value rather than (time_t) -1.
62440         Problem originally reported by William Bardwell
62441         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
62442
62443         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
62444         Moved to here ...
62445         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
62446         ... from here.
62447
62448 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62449
62450         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
62451         2821 is fixed.
62452
62453 2006-09-08  Jim Meyering  <jim@meyering.net>
62454
62455         Don't make generated files read-only.  That would bother too many
62456         people.  However, do retain the ability to work when targets are
62457         read-only: remove the destination and temporary files before writing
62458         them (when generated via sed or echo), or by using the -f option for
62459         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
62460         * modules/alloca-opt, modules/argz, modules/arpa_inet:
62461         * modules/byteswap, modules/configmake, modules/fcntl:
62462         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
62463         * modules/localcharset, modules/netinet_in, modules/poll:
62464         * modules/stdbool, modules/stdint, modules/sys_select:
62465         * modules/sys_socket, modules/sys_stat, modules/sysexits:
62466
62467 2006-09-08  Jim Meyering  <jim@meyering.net>
62468
62469         Avoid new build failure on FreeBSD 6.0.
62470         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
62471         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
62472         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
62473
62474 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62475
62476         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
62477
62478 2006-09-07  Jim Meyering  <jim@meyering.net>
62479
62480         Fix global typo in last change: use chmod u-w, not chmod u-x.
62481         Spotted by Paul Eggert and Bruce Korb.
62482         * modules/alloca-opt, modules/argz, modules/arpa_inet:
62483         * modules/byteswap, modules/configmake, modules/fcntl:
62484         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
62485         * modules/localcharset, modules/netinet_in, modules/poll:
62486         * modules/stdbool, modules/stdint, modules/sys_select:
62487         * modules/sys_socket, modules/sys_stat, modules/sysexits:
62488
62489 2006-09-06  Jim Meyering  <jim@meyering.net>
62490
62491         Make generated files be read-only.
62492         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
62493         Ensure that each generated file is now read-only.
62494         * modules/argz: Likewise.
62495         * modules/arpa_inet: Likewise.
62496         * modules/byteswap: Likewise.
62497         * modules/configmake: Likewise.
62498         * modules/fcntl: Likewise.
62499         * modules/fnmatch: Likewise.
62500         * modules/getopt: Likewise.
62501         * modules/glob: Likewise.
62502         * modules/inttypes: Likewise.
62503         * modules/netinet_in: Likewise.
62504         * modules/poll: Likewise.
62505         * modules/stdbool: Likewise.
62506         * modules/stdint: Likewise.
62507         * modules/sys_select: Likewise.
62508         * modules/sys_socket: Likewise.
62509         * modules/sys_stat: Likewise.
62510         * modules/sysexits: Likewise.
62511         * modules/localcharset: Same as above, but continue using temporary
62512         file named "t-$@" (why different?) rather than the "$@-t" used
62513         everywhere else.
62514
62515         * modules/sysexits (Makefile.am): Replace literal occurrences
62516         of "sysexit.h" more readable, and more consistent, "$@".
62517
62518 2006-09-06  Bruno Haible  <bruno@clisp.org>
62519
62520         * modules/striconv: New file.
62521         * modules/xstriconv: New file.
62522         * MODULES.html.sh (Internationalization functions): Add striconv,
62523         xstriconv.
62524
62525 2006-09-06  Bruno Haible  <bruno@clisp.org>
62526
62527         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
62528         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
62529         not using libtool correctly.
62530
62531 2006-09-06  Bruno Haible  <bruno@clisp.org>
62532
62533         * lib/striconv.h: New file.
62534         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
62535         iconvstring.c.
62536         * lib/xstriconv.h: New file.
62537         * lib/xstriconv.c: New file.
62538
62539 2006-09-06  Bruno Haible  <bruno@clisp.org>
62540
62541         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62542         lib_..._LDFLAGS.
62543
62544 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62545
62546         * lib/argz_.h: Sync from Libtool.
62547
62548         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
62549                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62550
62551         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
62552
62553 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
62554
62555         * modules/trim: New file.
62556
62557 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
62558
62559         * lib/trim.h: New file.
62560         * lib/trim.c: New file.
62561
62562 2006-09-05  Bruno Haible  <bruno@clisp.org>
62563
62564         * MODULES.html.sh (String handling): Add trim.
62565
62566 2006-09-04  Karl Berry  <karl@gnu.org>
62567
62568         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
62569         until next release.
62570
62571 2006-09-03  Bruno Haible  <bruno@clisp.org>
62572
62573         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
62574         correctly.
62575
62576 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62577
62578         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
62579         not gl_GETLOADAVG.  Omit unneeded semicolons.
62580         Problems reported by Ralf Wildenhues in
62581         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
62582         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
62583         at the end, which is the usual gnulib style.
62584
62585         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
62586         of doing all the work ourselves.
62587         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
62588         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
62589
62590 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62591
62592         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
62593         Problem reported by Ralf Wildenhues in
62594         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
62595
62596         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
62597         HAVE_STRUCT_STATFS_F_FSTYPENAME.
62598
62599 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62600
62601         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
62602         yesterday's patch by changing test -n to test -z.
62603
62604 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62605
62606         * modules/getloadavg (Files): Add m4/getloadavg.m4.
62607         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
62608         the former is now obsolescent.
62609
62610         * modules/chdir-long (Depends-on): Add fcntl.
62611
62612 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62613
62614         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
62615         obsolescent, and programs should use gnulib instead.
62616         * m4/getloadavg.m4: New file, with contents taken from Autoconf
62617         but with prefixes changed.
62618
62619 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62620
62621         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
62622         or stdbool.h, because they might not exist while configuring.
62623
62624         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
62625         Don't include unistd.h or limits.h; not needed, since chdir-long.h
62626         does that for us.
62627         (O_DIRECTORY): Remove.
62628
62629 2006-08-31  Eric Blake  <ebb9@byu.net>
62630
62631         * gnulib-tool: Don't let emacs change spaces to TAB.
62632
62633 2006-08-31  Bruno Haible  <bruno@clisp.org>
62634
62635         * gnulib-tool: When calling func_import more than once, do it in a
62636         subshell.
62637         Reported by Eric Blake <ebb9@byu.net>.
62638
62639 2006-08-31  Bruno Haible  <bruno@clisp.org>
62640
62641         * gnulib-tool (nl): Remove variable.
62642         (sed_transform_lib_file): Use more robust test for config-h module.
62643         (func_import): Fix typo in 2006-08-25 patch.
62644
62645 2006-08-31  Bruno Haible  <bruno@clisp.org>
62646
62647         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
62648         specified, augment Makefile.am variables instead of assigning them.
62649
62650 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62651
62652         Work around a bug in both the Linux and SunOS 64-bit kernels:
62653         nanosleep mishandles sleeps for longer than 2**31 seconds.
62654         Problem reported by Frank v Waveren in
62655         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
62656         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
62657         Check for nanosleep bug.
62658         (LIB_NANOSLEEP): Append clock_gettime library if needed.
62659
62660 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62661
62662         Work around a bug in both the Linux and SunOS 64-bit kernels:
62663         nanosleep mishandles sleeps for longer than 2**31 seconds.
62664         Problem reported by Frank v Waveren in
62665         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
62666         * lib/nanosleep.c (BILLION): New constant.
62667         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
62668         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
62669         implementation.
62670
62671 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62672
62673         * modules/nanosleep (Depends-on): Add gettime.
62674
62675 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62676         and Simon Josefsson  <jas@extundo.com>
62677         and Oskar Liljeblad  <oskar@osk.mine.nu>
62678
62679         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
62680         * gnulib-tool (func_import): New license type 'unmodifiable license
62681         text'.
62682         * modules/fdl: Use it.  Longer description.
62683         * module/gpl, module/lgpl: New files.
62684
62685 2006-08-30  Jim Meyering  <jim@meyering.net>
62686
62687         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
62688         shadowing the parameter.
62689
62690 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62691
62692         Sync from Libtool:
62693
62694         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62695
62696         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
62697         sharing with gnulib.  Report by Eric Blake.
62698
62699 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62700
62701         * modules/isapipe: New file.
62702         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
62703
62704 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62705
62706         * modules/configmake (Makefile.am): Add a comment, and omit
62707         the CONFIGMAKE_ prefix from generated macro names.  Suggested
62708         by Bruno Haible.
62709
62710 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62711
62712         * m4/isapipe.m4: New file.
62713
62714 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62715
62716         * lib/isapipe.c, lib/isapipe.h: New files.
62717
62718 2006-08-29  Jim Meyering  <jim@meyering.net>
62719
62720         * modules/configmake (Makefile.am): Make configmake.h depend on
62721         Makefile.  Otherwise, a stale configmake.h could hang around.
62722
62723 2006-08-29  Eric Blake  <ebb9@byu.net>
62724
62725         * lib/error.c (error_at_line, print_errno_message): Match libc, after
62726         resolution of upstream bug 3044.
62727
62728 2006-08-29  Bruno Haible  <bruno@clisp.org>
62729
62730         * modules/localcharset (Depends-on): Add configmake.
62731         (Makefile.am): Remove setting of LIBDIR through DEFS.
62732
62733 2006-08-29  Bruno Haible  <bruno@clisp.org>
62734
62735         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
62736         defined.
62737
62738 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62739
62740         * modules/fcntl: New file.
62741         * modules/chdir-safer (Depends-on): Add fcntl.
62742         * modules/fts: Likewise.
62743         * modules/mkdir-p: Likewise.
62744
62745         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
62746         This undoes the most recent change, since we're now addressing the
62747         problem in a different way.
62748
62749         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
62750         into output, since the output might be called Makefile.am even
62751         if $makefile_name is something different.
62752         (func_import): Use $makefile_am rather than
62753         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
62754         empty.
62755
62756         * modules/inttypes (Files): Add m4/inttypes-h.m4.
62757
62758 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62759
62760         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
62761         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
62762         recent change to stdint.m4, since we're now addressing the problem in a
62763         different way.
62764
62765 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62766
62767         * m4/fcntl_h.m4: New file.
62768
62769 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62770
62771         * lib/fcntl_.h: New file.
62772         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
62773         the fcntl module.
62774         * lib/dirchownmod.c: Likewise.
62775         * lib/fts.c: Likewise.
62776
62777         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
62778         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
62779         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
62780         just before including <inttypes.h>, to avoid circular inclusion.
62781
62782 2006-08-28  Jim Meyering  <jim@meyering.net>
62783
62784         * doc/visibility.texi: Actually read and correct the grammar of the
62785         sentence affected by yesterday's change.
62786
62787 2006-08-28  Eric Blake  <ebb9@byu.net>
62788
62789         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
62790         needs wrapper.
62791
62792 2006-08-28  Eric Blake  <ebb9@byu.net>
62793
62794         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
62795
62796 2006-08-28  Eric Blake  <ebb9@byu.net>
62797
62798         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
62799
62800 2006-08-28  Bruno Haible  <bruno@clisp.org>
62801
62802         * modules/c-strstr: New file, from GNU gettext.
62803         * MODULES.html.sh (String handling): Add c-strstr.
62804
62805 2006-08-28  Bruno Haible  <bruno@clisp.org>
62806
62807         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
62808         macros.
62809         Reported by Eric Blake.
62810
62811 2006-08-28  Bruno Haible  <bruno@clisp.org>
62812
62813         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
62814         (VASNPRINTF): Return a string of length > INT_MAX without failing.
62815         * lib/vasprintf.c: Include errno.h, limits.h.
62816         (EOVERFLOW): New fallback definition.
62817         (vasprintf): Test here whether the string length is > INT_MAX.
62818         * lib/vsnprintf.c: Include errno.h, limits.h.
62819         (EOVERFLOW): New fallback definition.
62820         (vsnprintf): Fix bug when generated string was too long for the buffer.
62821         Test here whether the string length is > INT_MAX.
62822
62823 2006-08-28  Bruno Haible  <bruno@clisp.org>
62824
62825         * lib/inttypes_.h (SCNX*): Remove definitions.
62826         Reported by Eric Blake.
62827
62828 2006-08-28  Bruno Haible  <bruno@clisp.org>
62829
62830         * lib/c-strstr.h: New file, from GNU gettext.
62831         * lib/c-strstr.c: New file, from GNU gettext.
62832
62833 2006-08-28  Bruno Haible  <bruno@clisp.org>
62834
62835         * gnulib-tool: Reorder some statements.
62836
62837 2006-08-28  Bruno Haible  <bruno@clisp.org>
62838
62839         * gnulib-tool: New option --makefile-name.
62840         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
62841         $makefile_name.
62842         (func_import): Write $makefile_name to the cache file, and read it from
62843         there unless explicitly specified. Use $makefile_name as file name
62844         instead of Makefile.am. Adjust the recommendations accordingly.
62845
62846 2006-08-28  Bruno Haible  <bruno@clisp.org>
62847
62848         * gnulib-tool (func_verify_module): Check against misapplying patch.
62849
62850 2006-08-28  Bruno Haible  <bruno@clisp.org>
62851
62852         * gnulib-tool (func_relativize, func_relconcat): New functions.
62853         Give an error if --local-dir is given with --update.
62854         Remove trailing slashes from $local_gnulib_dir.
62855         (func_import): Store the relativized $local_gnulib_dir in
62856         gnulib-cache.m4, and read it from there if not specified explicitly.
62857
62858 2006-08-28  Bruno Haible  <bruno@clisp.org>
62859
62860         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
62861         is the current directory. Respect also $local_gnulib_dir.
62862
62863 2006-08-28  Bruno Haible  <bruno@clisp.org>
62864             Simon Josefsson  <jas@extundo.com>
62865
62866         BeOS portability.
62867         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
62868
62869 2006-08-27  Jim Meyering  <jim@meyering.net>
62870
62871         * doc/visibility.texi: Remove duplicate word: "pointer".
62872
62873 2006-08-26  Bruno Haible  <bruno@clisp.org>
62874
62875         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
62876         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
62877         (Makefile.am): Create inttypes.h from inttypes_.h.
62878         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
62879
62880         * modules/imaxabs: New file.
62881
62882         * modules/imaxdiv: New file.
62883
62884 2006-08-26  Bruno Haible  <bruno@clisp.org>
62885
62886         * m4/inttypes.m4: New file.
62887         * m4/_inttypes_h.m4: Remove file.
62888         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
62889         PRI_MACROS_BROKEN.
62890         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
62891
62892         * m4/imaxabs.m4: New file.
62893
62894         * m4/imaxdiv.m4: New file.
62895
62896 2006-08-26  Bruno Haible  <bruno@clisp.org>
62897
62898         * lib/inttypes_.h: New file.
62899         * lib/inttypes.h: Remove file.
62900         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
62901
62902         * lib/imaxabs.c: New file.
62903
62904         * lib/imaxdiv.c: New file.
62905
62906 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62907
62908         New config-h module, so that "make" output needn't be cluttered
62909         by -DHAVE_CONFIG_H.
62910         * MODULES.html.sh (Support for building libraries and executables):
62911         Add config-h.
62912         * modules/config-h: New file.
62913         * gnulib-tool (nl, sed_transform_lib_file): New vars.
62914         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
62915         the config-h module is used.
62916
62917         New configmake module, so that "make" output needn't be cluttered
62918         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
62919         * MODULES.html.sh (Support for building libraries and executables):
62920         Add configmake.
62921         * modules/configmake: New file.
62922
62923 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62924
62925         * m4/config-h.m4: New file.
62926
62927 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62928
62929         * config/srclist.txt: Add elisp-comp.
62930
62931 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62932
62933         * MODULES.html.sh (Support for building libraries and executables):
62934         Add elisp-comp.
62935         * build-aux/elisp-comp: New file.
62936         * modules/elisp-comp: New file.
62937
62938 2006-08-24  Bruno Haible  <bruno@clisp.org>
62939
62940         * gnulib-tool (func_create_testdir): Use non-default values of
62941         sourcebase and m4base.
62942
62943 2006-08-24  Bruno Haible  <bruno@clisp.org>
62944
62945         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
62946         HTML structure.
62947
62948 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
62949
62950         * modules/openat (Depends-on): Add lchown.
62951
62952 2006-08-23  Bruno Haible  <bruno@clisp.org>
62953
62954         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
62955         of gl_LOCK_EARLY instead of gl_LOCK.
62956
62957 2006-08-23  Bruno Haible  <bruno@clisp.org>
62958
62959         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
62960         on OSF/1 to no.
62961         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
62962
62963 2006-08-23  Bruno Haible  <bruno@clisp.org>
62964
62965         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
62966         as unusable.
62967
62968         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
62969         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
62970         (gl_LOCK): New macro.
62971
62972 2006-08-22  Simon Josefsson  <jas@extundo.com>
62973
62974         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
62975         to md5 module.
62976
62977 2006-08-22  Simon Josefsson  <jas@extundo.com>
62978
62979         * MODULES.html.sh: Add "Support for maintaining and release
62980         projects".
62981
62982         * build-aux/gnupload: New file, from coreutils.
62983
62984 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
62985
62986         Avoid the need for AC_LIBSOURCES in m4 macros.
62987         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
62988         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
62989         * modules/check-version (EXTRA_DIST): Add check-version.h.
62990         * modules/crc (EXTRA_DIST): Add crc.h.
62991         * modules/des (EXTRA_DIST): Add des.h.
62992         * modules/gc (EXTRA_DIST): Add gc.h.
62993         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
62994         * modules/getline (EXTRA_DIST): Add getline.h.
62995         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
62996         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
62997         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
62998         * modules/md2 (EXTRA_DIST): Add md2.h.
62999         * modules/md4 (EXTRA_DIST): Add md4.h.
63000         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
63001         * modules/read-file (EXTRA_DIST): Add read-file.h.
63002         * modules/readline (EXTRA_DIST): Add readline.h.
63003         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
63004         rijndael-api-fst.h.
63005
63006 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63007
63008         * m4/rijndael.m4 (gl_ARCFOUR):
63009         * m4/arctwo.m4 (gl_ARCTWO):
63010         * m4/check-version.m4 (gl_CHECK_VERSION):
63011         * m4/crc.m4 (gl_CRC):
63012         * m4/des.m4 (gl_DES):
63013         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
63014         * m4/gc.m4 (gl_GC):
63015         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
63016         * m4/getline.m4 (gl_FUNC_GETLINE):
63017         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
63018         * m4/hmac-md5.m4 (gl_HMAC_MD5):
63019         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
63020         * m4/md2.m4 (gl_MD2):
63021         * m4/md4.m4 (gl_MD4):
63022         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
63023         * m4/read-file.m4 (gl_FUNC_READ_FILE):
63024         * m4/readline.m4 (gl_FUNC_READLINE):
63025         * m4/rijndael.m4 (gl_RIJNDAEL):
63026         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63027         to get the necessary .h files and whatnot.
63028
63029 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63030
63031         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
63032         gnulib rather than the other way around.
63033         * config/srclistvars.sh (COREUTILS): Remove.
63034
63035 2006-08-22  Jim Meyering  <jim@meyering.net>
63036
63037         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
63038
63039         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
63040
63041 2006-08-22  Eric Blake  <ebb9@byu.net>
63042
63043         * modules/regexprops-generic: New file.
63044         * MODULES.html.sh (Support for building documentation): List it.
63045
63046 2006-08-22  Eric Blake  <ebb9@byu.net>
63047
63048         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
63049         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
63050         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
63051         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
63052
63053 2006-08-22  Bruno Haible  <bruno@clisp.org>
63054
63055         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
63056         and lib_LTLIBRARIES like the other lib_* variables.
63057
63058 2006-08-22  Bruno Haible  <bruno@clisp.org>
63059
63060         * build-aux/x-to-1.in: New file, from GNU gettext.
63061
63062 2006-08-22  Bruno Haible  <bruno@clisp.org>
63063
63064         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
63065         <utmpx.h> exists.
63066
63067 2006-08-22  Bruno Haible  <bruno@clisp.org>
63068
63069         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
63070         <utmpx.h> exists.
63071
63072 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63073
63074         BeOS portability.
63075         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
63076         exist.
63077         Problem reported by Bruno Haible.
63078
63079 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63080
63081         Avoid the need for AC_LIBSOURCES in m4 macros.
63082         * modules/acl (EXTRA_DIST): Add acl.h.
63083         * modules/argmatch (Files): Add m4/argmatch.m4.
63084         (configure.ac): Add gl_ARGMATCH.
63085         (EXTRA_DIST): Renamed from lib_SOURCES, for
63086         consistency with the other modules.  Remove argmatch.c.
63087         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
63088         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
63089         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
63090         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
63091         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
63092         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
63093         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
63094         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
63095         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
63096         * modules/closeout (EXTRA_DIST): Add closeout.h.
63097         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
63098         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
63099         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
63100         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
63101         dirname.h; remove basename.c and stripslash.c.
63102         * modules/exclude (EXTRA_DIST): Add exclude.h.
63103         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
63104         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
63105         * modules/file-type (EXTRA_DIST): Add file-type.h.
63106         * modules/filemode (EXTRA_DIST): Add filemode.h.
63107         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
63108         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63109         * modules/fpending (EXTRA_DIST): Add __fpending.h.
63110         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
63111         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
63112         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
63113         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
63114         * modules/getdate (EXTRA_DIST): Add getdate.c.
63115         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
63116         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
63117         * modules/getpass (EXTRA_DIST): Add getpass.h.
63118         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
63119         * modules/group-member (EXTRA_DIST): Add group-member.h.
63120         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
63121         * modules/hash (EXTRA_DIST): Add hash.h.
63122         * modules/human (EXTRA_DIST): Add human.h.
63123         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
63124         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
63125         * modules/lchown (EXTRA_DIST): Add lchown.h.
63126         * modules/long-options (EXTRA_DIST): Add long-options.h.
63127         * modules/lstat (EXTRA_DIST): Add lstat.h.
63128         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
63129         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
63130         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
63131         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
63132         * modules/memxor (EXTRA_DIST): Add memxor.h.
63133         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
63134         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
63135         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
63136         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
63137         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
63138         * modules/physmem (EXTRA_DIST): Add physmem.h.
63139         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
63140         * modules/posixver (EXTRA_DIST): Add posixver.h.
63141         * modules/quote (EXTRA_DIST): Add quote.h.
63142         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
63143         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
63144         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
63145         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
63146         regex_internal.h regexec.c.
63147         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
63148         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
63149         * modules/same (EXTRA_DIST): Add same.h.
63150         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
63151         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
63152         * modules/savedir (EXTRA_DIST): Add savedir.h.
63153         * modules/sha1 (EXTRA_DIST): Add sha1.h.
63154         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
63155         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
63156         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
63157         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
63158         * modules/strdup (EXTRA_DIST): Add strdup.h.
63159         * modules/strftime (EXTRA_DIST): Add strftime.h.
63160         * modules/strndup (EXTRA_DIST): Add strndup.h.
63161         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
63162         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
63163         * modules/time_r (EXTRA_DIST): Add time_r.h.
63164         * modules/timespec (EXTRA_DIST): Add timespec.h.
63165         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63166         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
63167         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
63168         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
63169         * modules/userspec (EXTRA_DIST): Add userspec.h.
63170         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
63171         * modules/utimens (EXTRA_DIST): Add utimens.h.
63172         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
63173         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
63174         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
63175         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
63176         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
63177         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
63178         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
63179         * modules/yesno (EXTRA_DIST): Add yesno.h.
63180
63181 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63182
63183         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
63184
63185         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
63186         * m4/dev-ino.m4, same-inode.m4: Remove.
63187
63188         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
63189         * m4/acl.m4 (AC_FUNC_ACL):
63190         * m4/backupfile.m4 (gl_BACKUPFILE):
63191         * m4/c-strtod.m4 (gl_C99_STRTOLD):
63192         * m4/canon-host.m4 (gl_CANON_HOST):
63193         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63194         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
63195         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
63196         * m4/cloexec.m4 (gl_CLOEXEC):
63197         * m4/close-stream.m4 (gl_CLOSE_STREAM):
63198         * m4/closeout.m4 (gl_CLOSEOUT):
63199         * m4/dirfd.m4 (gl_FUNC_DIRFD):
63200         * m4/dirname.m4 (gl_DIRNAME):
63201         * m4/exclude.m4 (gl_EXCLUDE):
63202         * m4/exitfail.m4 (gl_EXITFAIL):
63203         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
63204         * m4/file-type.m4 (gl_FILE_TYPE):
63205         * m4/filemode.m4 (gl_FILEMODE):
63206         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
63207         * m4/fpending.m4 (gl_FUNC_FPENDING):
63208         * m4/fprintftime.m4 (gl_FPRINTFTIME):
63209         * m4/fts.m4 (gl_FUNC_FTS):
63210         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
63211         * m4/getdate.m4 (gl_GETDATE):
63212         * m4/gethrxtime.m4 (gl_GETHRXTIME):
63213         * m4/getpagesize.m4 (gl_GETPAGESIZE):
63214         * m4/getpass.m4 (gl_FUNC_GETPASS):
63215         * m4/gettime.m4 (gl_GETTIME):
63216         * m4/getugroups.m4 (gl_GETUGROUPS):
63217         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
63218         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
63219         * m4/hard-locale.m4 (gl_HARD_LOCALE):
63220         * m4/hash.m4 (gl_HASH):
63221         * m4/idcache.m4 (gl_IDCACHE):
63222         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
63223         * m4/lchown.m4 (gl_FUNC_LCHOWN):
63224         * m4/long-options.m4 (gl_LONG_OPTIONS):
63225         * m4/lstat.m4 (gl_FUNC_LSTAT):
63226         * m4/md5.m4 (gl_MD5):
63227         * m4/memcasecmp.m4 (gl_MEMCASECMP):
63228         * m4/memcoll.m4 (gl_MEMCOLL):
63229         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
63230         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
63231         * m4/memxor.m4 (gl_MEMXOR):
63232         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
63233         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
63234         * m4/modechange.m4 (gl_MODECHANGE):
63235         * m4/mountlist.m4 (gl_MOUNTLIST):
63236         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63237         * m4/openat.m4 (gl_FUNC_OPENAT):
63238         * m4/pathmax.m4 (gl_PATHMAX):
63239         * m4/physmem.m4 (gl_PHYSMEM):
63240         * m4/posixtm.m4 (gl_POSIXTM):
63241         * m4/posixver.m4 (gl_POSIXVER):
63242         * m4/quote.m4 (gl_QUOTE):
63243         * m4/quotearg.m4 (gl_QUOTEARG):
63244         * m4/readtokens.m4 (gl_READTOKENS):
63245         * m4/readutmp.m4 (gl_READUTMP):
63246         * m4/regex.m4 (gl_REGEX):
63247         * m4/safe-read.m4 (gl_SAFE_READ):
63248         * m4/safe-write.m4 (gl_SAFE_WRITE):
63249         * m4/same.m4 (gl_SAME):
63250         * m4/save-cwd.m4 (gl_SAVE_CWD):
63251         * m4/savedir.m4 (gl_SAVEDIR):
63252         * m4/settime.m4 (gl_SETTIME):
63253         * m4/sha1.m4 (gl_SHA1):
63254         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
63255         * m4/stat-macros.m4 (gl_STAT_MACROS):
63256         * m4/stat-time.m4 (gl_STAT_TIME):
63257         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
63258         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
63259         * m4/strdup.m4 (gl_FUNC_STRDUP):
63260         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
63261         * m4/strndup.m4 (gl_FUNC_STRNDUP):
63262         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
63263         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
63264         * m4/time_r.m4 (gl_TIME_R):
63265         * m4/timespec.m4 (gl_TIMESPEC):
63266         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
63267         * m4/unlinkdir.m4 (gl_UNLINKDIR):
63268         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
63269         * m4/userspec.m4 (gl_USERSPEC):
63270         * m4/utimecmp.m4 (gl_UTIMECMP):
63271         * m4/utimens.m4 (gl_UTIMENS):
63272         * m4/xalloc.m4 (gl_XALLOC):
63273         * m4/xgetcwd.m4 (gl_XGETCWD):
63274         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
63275         * m4/xreadlink.m4 (gl_XREADLINK):
63276         * m4/xstrtod.m4 (gl_XSTRTOD):
63277         * m4/yesno.m4 (gl_YESNO):
63278         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63279         to get the necessary .h files and whatnot.
63280
63281 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
63282             Bruno Haible  <bruno@clisp.org>
63283
63284         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
63285         /bin/sh understanding of '!' conditional negation.
63286
63287 2006-08-21  Jim Meyering  <jim@meyering.net>
63288
63289         * modules/openat (Depends-on): Really alphabetize.
63290
63291         * modules/acl (Depends-on): Add error and quote.
63292
63293         * check-module (find_included_lib_files): Add at-func.c to the
63294         ok-to-include-more-than-once white list.
63295
63296         * modules/openat (Depends-on): Add lstat.  Alphabetize.
63297
63298 2006-08-21  Bruno Haible  <bruno@clisp.org>
63299
63300         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63301         Emit a pkgdata_DATA variable only if some snippets add contents to it.
63302         Reported by Martin Lambers <marlam@marlam.de>.
63303
63304 2006-08-21  Bruno Haible  <bruno@clisp.org>
63305
63306         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
63307         specify an installation location, don't emit a noinst_LIBRARIES or
63308         noinst_LTLIBRARIES assignment.
63309
63310 2006-08-21  Bruno Haible  <bruno@clisp.org>
63311
63312         BeOS portability.
63313         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
63314         BeOS has mbrtowc() but no <wctype.h>.
63315
63316 2006-08-21  Bruno Haible  <bruno@clisp.org>
63317
63318         BeOS portability.
63319         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
63320         exist.
63321
63322 2006-08-21  Bruno Haible  <bruno@clisp.org>
63323
63324         BeOS portability.
63325         * lib/mbchar.h: Include <wctype.h> only if it exists.
63326
63327 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63328
63329         Remove files that are no longer needed by their respective modules.
63330         * m4/obstack.m4: Remove.
63331         * m4/strerror_r.m4: Remove.
63332         * m4/uint32_t.m4: Remove.
63333         * m4/uintptr_t.m4: Remove.
63334         * m4/ullong_max.m4: Remove.
63335         * m4/xstrtoimax.m4: Remove.
63336         * m4/xstrtoumax.m4: Remove.
63337
63338         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
63339         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
63340         dependencies now capture this.
63341
63342         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
63343         Do not use AC_LIBSOURCES, since gnulib modules now do this.
63344         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
63345         * m4/human.m4 (gl_HUMAN): Likewise.
63346         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
63347         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
63348
63349         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
63350
63351         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
63352         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
63353         stdint.
63354         * m4/human.m4 (gl_HUMAN): Likewise.
63355         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
63356         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
63357         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63358         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63359         * m4/xstrtol (gl_XSTRTOL): Likewise.
63360
63361         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
63362         AC_TYPE_LONG_LONG_INT.
63363         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63364         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
63365         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
63366         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63367
63368         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
63369         on stdbool.
63370
63371         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
63372         (gl_PREREQ_XSTRTOUL): Remove.
63373
63374         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
63375
63376         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
63377         mode.
63378
63379 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63380
63381         Add and change modules to make it easier for coreutils to use
63382         gnulib-tool.
63383         * modules/backupfile (Files): Remove m4/d-ino.m4.
63384         (Depends-on): Add d-ino.
63385         * modules/cycle-check (Depends-on): Add stdint.
63386         (lib_SOURCES): Add cycle-check.h.
63387         * modules/d-ino: New module.
63388         * modules/d-type: New module.
63389         * modules/error (Files): Remove m4/strerror_r.m4.
63390         * modules/filemode (Files): Add m4/st_dm_mode.m4.
63391         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
63392         m4/inttypes_h.m4, m4/uintmax_t.m4.
63393         (Depends-on): Add stdint.
63394         (lib_SOURCES): Add fsusage.h.
63395         * modules/getcwd (Files): Remove d-ino.m4.
63396         (Depends-on): Add d-ino.
63397         * modules/getndelim2 (Depends-on): Add stdint.
63398         * modules/glob (Files): Remove m4/d-type.m4.
63399         (Depends-on): Add d-type.
63400         * modules/host-os: New module.
63401         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
63402         m4/inttypes_h.m4, m4/uintmax_t.m4.
63403         * Depends-on: Add stdint.
63404         (lib_SOURCES): Add human.h.
63405         * modules/inttostr (Files): Remove m4/intmax_t.m4,
63406         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
63407         m4/uintmax_t.m4, m4/ulonglong.m4.
63408         (Depends-on): Add stdint.
63409         (EXTRA_DIST): Add inttostr.h.
63410         * modules/lchmod: New module.
63411         * modules/link-follow: New module.
63412         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
63413         (Depends-on): Add lchmod.
63414         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
63415         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
63416         (Depends-on): Add stdint.
63417         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
63418         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
63419         (Depends-on): Add stdint.
63420         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
63421         * modules/perl: New module.
63422         * modules/regex (Depends-on): Add stdint.
63423         * modules/rmdir-errno: New module.
63424         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
63425         m4/intmax_t.m4.
63426         (Depends-on): Add stdint.
63427         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
63428         m4/uintmax_t.m4.
63429         (Depends-on): Add stdint.
63430         * modules/unlink-busy: New module.
63431         * modules/utimecmp (Depends-on): Add stdint.
63432         * modules/uptime: New module.
63433         * modules/winsz-ioctl: New module.
63434         * modules/winsz-termios: New module.
63435         * modules/xnanosleep (Depends-on): Add nanosleep.
63436         * modules/ullong_max: Remove.
63437         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
63438         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
63439         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
63440         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
63441         (Depends-on): Add inttypes.
63442         (lib_SOURCES): Add xstrtol.h.
63443         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
63444         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
63445         * MODULES.html.sh: Move 'assert' into the assert section.
63446         Move 'dummy' into the linking section.
63447         Remove ullong_max.
63448         Add section for compatibility checks for POSIX:2001 functions,
63449         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
63450         winsz-ioctl, and winsz-termios into it.
63451         Add lchmod.
63452         Add top-level Misc section and put host-os, perl, and uptime
63453         into it.
63454
63455 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63456
63457         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
63458         now assume the stdint module.  Do not include inttypes.h.
63459         * lib/fsusage.h: Likewise.
63460         * lib/getndelim2.c: Likewise.
63461         * lib/human.h: Likewise.
63462         * lib/inttostr.h: Likewise.
63463         * lib/obstack.c: Likewise.
63464         * lib/regex_internal.h: Likewise.
63465         * lib/tempname.c: Likewise.
63466         * lib/utimecmp.c: Likewise.
63467         * lib/xstrtol.h: Likewise.
63468
63469         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
63470
63471         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
63472         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
63473         * lib/xtime.h: Likewise.
63474
63475 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63476
63477         * modules/openat (Files): Add lib/fchmodat.c.
63478         Fixes problem reported by Jay Youngman.
63479
63480 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63481
63482         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
63483         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
63484
63485 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
63486             Bruno Haible  <bruno@clisp.org>
63487
63488         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
63489         and is a script that invokes bison. Tighten the code. Add comments.
63490
63491 2006-08-18  Jim Meyering  <jim@meyering.net>
63492
63493         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
63494         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
63495         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
63496         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
63497
63498 2006-08-18  Bruno Haible  <bruno@clisp.org>
63499
63500         * modules/bison-i18n: New file.
63501         * MODULES.html.sh (Internationalization functions): Add it.
63502
63503 2006-08-18  Bruno Haible  <bruno@clisp.org>
63504
63505         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
63506         sys/statvfs.h. When getmntinfo was found, check its declaration and
63507         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
63508
63509 2006-08-18  Bruno Haible  <bruno@clisp.org>
63510
63511         * m4/bison-i18n.m4: New file, from bison.
63512
63513 2006-08-18  Bruno Haible  <bruno@clisp.org>
63514
63515         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
63516         (ME_DUMMY): Treat "kernfs" as a dummy.
63517         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
63518
63519 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63520
63521         Update from coreutils.
63522
63523         2006-08-15  Jim Meyering  <jim@meyering.net>
63524
63525         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
63526
63527         2006-01-17  Jim Meyering  <jim@meyering.net>
63528
63529         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
63530
63531         2006-01-11  Jim Meyering  <jim@meyering.net>
63532
63533         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
63534         Check for the lchmod function.
63535
63536 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63537
63538         Update from coreutils.
63539
63540         * lib/__fpending.h: Add copyright notice.
63541         * lib/fprintftime.h: Likewise.
63542         * lib/savedir.c: Use (C) in copyright notice.
63543         * lib/savedir.h: Likewise.
63544
63545         2006-08-15  Jim Meyering  <jim@meyering.net>
63546
63547         * lib/at-func.c: New file, with the logic of all emulated at-functions.
63548         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
63549         in support of the EXPECTED_ERRNO macro.
63550         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
63551         definitions.  Instead, define the appropriate symbols and include
63552         "at-func.c".
63553         * lib/mkdirat.c (mkdirat): Likewise.
63554         * lib/fchmodat.c (fchmodat): Likewise.
63555         (ENOSYS): Remove definition.
63556         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
63557         it.  Don't include "unistd--.h" -- it wasn't ever used.
63558
63559         2006-01-17  Jim Meyering  <jim@meyering.net>
63560
63561         Rewrite fts.c not to change the current working directory,
63562         by using openat, fstatat, fdopendir, etc..
63563
63564         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
63565         (HAVE_OPENAT_SUPPORT): Define.
63566         [_LIBC] (fchdir): Don't undef or define; no longer used.
63567         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
63568         Now, this `function' always succeeds, and consumes its file descriptor
63569         parameter -- so callers must not close such FDs.  Update callers.
63570         (diropen_fd, opendirat, cwd_advance_fd): New functions.
63571         (diropen): Add parameter, SP.  Adjust all callers.
63572         Implement using diropen_fd, rather than open.
63573         (fts_open): Initialize new member, fts_cwd_fd.
63574         Remove fts_rft-setting code.
63575         (fts_close): Close fts_cwd_fd, if necessary.
63576         (__opendir2): Define in terms of opendir or opendirat,
63577         depending on whether the FST_NOCHDIR flag is set.
63578         (fts_build): Since fts_safe_changedir consumes its FD, and since
63579         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
63580         and close the dup'd file descriptor upon failure.
63581         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
63582         (fts_safe_changedir): Tweak semantics to reflect that this function
63583         now calls cwd_advance_fd and hence consumes its FD argument.
63584         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
63585         [struct FTS] (fts_rft): Remove now-unused member.
63586         [struct FTS] (fts_cycle.state): Improve comment.
63587
63588         * lib/openat.c (openat_needs_fchdir): New function.
63589         * lib/openat.h (openat_needs_fchdir): Declare it.
63590
63591 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
63592
63593         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
63594         Problem and fix reported by Pádraig Brady in
63595         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
63596
63597 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63598
63599         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
63600
63601 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63602
63603         * lib/memcoll.c (memcoll): Optimize for the common case where the
63604         arguments are bytewise equal.
63605
63606 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63607
63608         * doc/regexprops-generic.texi: Add a copyright notice.
63609
63610 2006-08-15  Bruno Haible  <bruno@clisp.org>
63611
63612         * modules/tmpdir (License): Change to LGPL.
63613
63614 2006-08-15  Bruno Haible  <bruno@clisp.org>
63615
63616         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
63617         module.
63618
63619 2006-08-14  Simon Josefsson  <jas@extundo.com>
63620
63621         * config/srclist.txt: Add gnupload.
63622
63623 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63624
63625         Change copyright notice from LGPL 2 to GPL 2, since that's the
63626         standard form used in the gnulib repository.
63627         * tests/test-lock.c: Likewise.
63628         * tests/test-stdint.c: Likewise.
63629         * tests/test-tls.c: Likewise.
63630
63631         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
63632         prelude-manager.  User shorter URLs for GNU projects, without '?'.
63633         Add copyright notice.
63634
63635         * check-module: Add copyright notice.  Output a copyright
63636         notice if "--version" is specified.
63637         * modules/COPYING: New file.
63638         * tests/test-getaddrinfo.c: Add copyright notice.
63639         * tests/test-verify.c: Likewise.
63640
63641 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63642
63643         Change copyright notice from LGPL 2 to GPL 2, since that's the
63644         standard form used in the gnulib repository.
63645         * lib/lock.c: LGPL -> GPL.
63646         * lib/lock.h: Likewise.
63647         * lib/strnlen1.c: Likewise.
63648         * lib/strnlen1.h: Likewise.
63649         * lib/tls.c: Likewise.
63650         * lib/tls.h: Likewise.
63651         * lib/tmpdir.c: Likewise.
63652
63653         * lib/TODO: Remove; this belongs only in coreutils.
63654
63655 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63656
63657         Add copyright notices to long-enough files that lack them, since
63658         otherwise the files aren't clearly free.  Use the same notice that
63659         getdate.texi already uses.
63660         * doc/alloca-opt.texi: Add copyright notice.
63661         * doc/alloca.texi: Likewise.
63662         * doc/ctime.texi: Likewise.
63663         * doc/functions.texi: Likewise.
63664         * doc/gcd.texi: Likewise.
63665         * doc/gnulib-tool.texi: Likewise.
63666         * doc/inet_ntoa.texi: Likewise.
63667         * doc/visibility.texi: Likewise.
63668
63669         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
63670         * doc/quote.texi: Add copyright notice.
63671
63672         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
63673         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
63674         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
63675         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
63676         is now obsolete, and give a pointer to the Sun list.
63677         Add copyright notice.
63678
63679 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63680
63681         * config/srclistvars.sh: Add copyright notice.
63682
63683 2006-08-14  Eric Blake  <ebb9@byu.net>
63684
63685         Import the following change from libc:
63686
63687         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
63688
63689         Upstream bug 2997.
63690         * lib/misc/error.c: Add space between program name and message if file
63691         name is missing.
63692
63693 2006-08-12  Karl Berry  <karl@gnu.org>
63694
63695         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
63696         remove, these originate in gnulib now.
63697
63698 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63699
63700         * doc/Makefile (standards.info standards.html standards.dvi):
63701         Also depend on make-stds.texi.
63702
63703 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
63704
63705         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
63706         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
63707
63708         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
63709         in wchar_t.  Problem reported by Eric Blake.
63710
63711         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
63712         LEN is smaller than SIZE.  Suggested by Bruno Haible.
63713         Also, help the compiler to keep LEN in a register.
63714
63715 2006-08-11  Eric Blake  <ebb9@byu.net>
63716
63717         * users.txt: Sort.  Add tar.
63718
63719 2006-08-11  Bruno Haible  <bruno@clisp.org>
63720
63721         * users.txt: New file.
63722
63723 2006-08-11  Bruno Haible  <bruno@clisp.org>
63724
63725         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
63726         before <wchar.h>. Needed for OSF/1 and BSD/OS.
63727
63728 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63729
63730         * modules/snprintf (Depends-on): Remove minmax.
63731         (Maintainer): Add self and Bruno.
63732
63733 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63734
63735         * lib/.cppi-disable: Add snprintf.h, socket_.h.
63736         * lib/snprintf.c: Include <errno.h> and <limits.h>.
63737         (EOVERFLOW): Define if the system does not.
63738         Do not include "minmax.h"; it wasn't used.
63739         (snprintf): Don't assume size_t promotes to an unsigned type.
63740         Fix bug when generated string was too long for the buffer: the
63741         buffer's contents are supposed to be the initial prefix of the
63742         output.  Don't assume vasnprintf returns EOVERFLOW if the size
63743         exceeds INT_MAX; do the check ourselves.
63744
63745         Import the following changes from libc:
63746
63747         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
63748
63749         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
63750         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
63751         set wc to the byte which couldn't be converted.
63752         (re_string_reconstruct): Don't clear valid_raw_len before calling
63753         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
63754         tip_context using re_string_context_at.
63755
63756         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
63757
63758         * lib/posix/regex.h: g++ still cannot handled [restrict].
63759
63760         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
63761
63762         * lib/posix/regex.h: Remove special handling for VMS.
63763
63764 2006-08-10  Jim Meyering  <jim@meyering.net>
63765
63766         * modules/same-inode: New module.
63767         * modules/dev-ino: New module.
63768         * modules/cycle-check: Depend on these modules, rather than simply
63769         including their .h files.
63770         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
63771         required via m4/cycle-check.m4.
63772         * modules/same: Depend on new same-inode module, rather than
63773         including same-inode.h.
63774         * modules/chdir-safer: New file.
63775
63776         * modules/chown (Depends-on): Add stat-macros.
63777
63778 2006-08-10  Jim Meyering  <jim@meyering.net>
63779
63780         * m4/cycle-check.m4: New file.
63781         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
63782         * m4/dev-ino.m4, m4/same-inode.m4: New files.
63783
63784 2006-08-10  Eric Blake  <ebb9@byu.net>
63785
63786         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
63787         in from original proposal.
63788
63789 2006-08-10  Eric Blake  <ebb9@byu.net>
63790         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
63791
63792         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
63793         namespace.
63794
63795 2006-08-10  Bruno Haible  <bruno@clisp.org>
63796
63797         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
63798         as well.
63799
63800 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63801
63802         Sync from coreutils.
63803
63804         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
63805
63806         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
63807         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
63808
63809 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63810
63811         * modules/restrict: Remove; no longer needed now that we assume
63812         Autoconf 2.59 or later.
63813         * MODULES.html.sh: Remove 'restrict'.
63814         * modules/argp (Depends-on): Remove 'restrict'.
63815         * modules/base64 (Depends-on): Likewise.
63816         * modules/gc (Depends-on): Likewise.
63817         * modules/getaddrinfo (Depends-on): Likewise.
63818         * modules/glob (Depends-on): Likewise.
63819         * modules/inet_ntop (Depends-on): Likewise.
63820         * modules/inet_pton (Depends-on): Likewise.
63821         * modules/memxor (Depends-on): Likewise.
63822         * modules/regex (Depends-on): Likewise.
63823         * modules/strtok_r (Depends-on): Likewise.
63824         * modules/time_r (Depends-on): Likewise.
63825
63826 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63827
63828         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
63829         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
63830         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63831         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
63832         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
63833         * m4/memxor.m4 (gl_MEMXOR): Likewise.
63834         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
63835         gl_C_RESTRICT replaced by AC_C_RESTRICT.
63836
63837         Merge from coreutils.
63838         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
63839         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
63840         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
63841         * m4/time_r.m4 (gl_TIME_R): Likewise.
63842
63843 2006-08-09  Karl Berry  <karl@gnu.org>
63844
63845         * config/srclist.txt: no more gettext-tools, per Bruno.
63846
63847 2006-08-08  Eric Blake  <ebb9@byu.net>
63848
63849         * modules/verror: New module.
63850         * MODULES.html.sh: Document it.
63851
63852 2006-08-08  Eric Blake  <ebb9@byu.net>
63853
63854         * lib/verror.h, lib/verror.c: New files.
63855
63856 2006-08-08  Eric Blake  <ebb9@byu.net>
63857
63858         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
63859         verror_at_line output complies with GNU Coding Standards even when
63860         file is NULL.
63861
63862 2006-08-07  Bruno Haible  <bruno@clisp.org>
63863
63864         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
63865         versions of AIX.
63866         Reported by Ralf Wildenhues.
63867
63868 2006-08-07  Bruno Haible  <bruno@clisp.org>
63869
63870         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
63871         in an AC_DEFUN. Needed so that the autoconf snippets can use
63872         AC_REQUIRE.
63873
63874 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63875
63876         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63877         Initialize pkgdata_DATA.
63878         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
63879         overriding it.
63880
63881 2006-08-06  Eric Blake  <ebb9@byu.net>
63882
63883         * lib/error.h: Fold in some upstream changes from glibc.
63884         * lib/error.c: Likewise.
63885
63886 2006-08-04  Bruno Haible  <bruno@clisp.org>
63887
63888         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63889         Make the mostlyclean-local rule depend on mostlyclean-generic.
63890         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
63891
63892 2006-07-31  Bruno Haible  <bruno@clisp.org>
63893
63894         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
63895         <stdlib.h>, <string.h>.
63896
63897 2006-07-30  Bruno Haible  <bruno@clisp.org>
63898
63899         * modules/readlink (License): Change to LGPL.
63900
63901 2006-07-30  Bruno Haible  <bruno@clisp.org>
63902
63903         * modules/javaversion (Makefile.am): Distribute javaversion.java and
63904         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
63905         set PKGDATADIR to point to it.
63906
63907 2006-07-30  Bruno Haible  <bruno@clisp.org>
63908
63909         * modules/csharpexec (configure.ac): Comment out macro invocation.
63910         * modules/javaexec (configure.ac): Likewise.
63911         * modules/javacomp-script (configure.ac): Likewise.
63912
63913         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
63914
63915 2006-07-30  Bruno Haible  <bruno@clisp.org>
63916
63917         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
63918         linked-list.
63919
63920 2006-07-30  Bruno Haible  <bruno@clisp.org>
63921
63922         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
63923
63924 2006-07-30  Bruno Haible  <bruno@clisp.org>
63925
63926         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63927         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
63928         get removed.
63929
63930 2006-07-29  Bruno Haible  <bruno@clisp.org>
63931
63932         Make it possible for gnulib-tool to work with locally modified or
63933         augmented gnulib repositories.
63934         * gnulib-tool (func_usage): Document --local-dir option.
63935         (local_gnulib_dir): New variable.
63936         Handle --local-dir option.
63937         (func_lookup_file): New function.
63938         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
63939         (func_get_description, func_get_filelist, func_get_description,
63940         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
63941         func_get_automake_snippet, func_get_include_directive,
63942         func_get_license, func_get_maintainer): Use func_lookup_file.
63943         (func_import, func_create_testdir): Use func_lookup_file.
63944
63945 2006-07-29  Bruno Haible  <bruno@clisp.org>
63946
63947         * modules/setenv (Depends-on): Add unistd.
63948
63949 2006-07-29  Bruno Haible  <bruno@clisp.org>
63950
63951         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
63952
63953 2006-07-29  Bruno Haible  <bruno@clisp.org>
63954
63955         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
63956
63957 2006-07-29  Bruno Haible  <bruno@clisp.org>
63958
63959         * gnulib-tool (import, update): If there is no Makefile.am, look at
63960         aclocal.m4, instead of bailing out.
63961
63962 2006-07-29  Bruno Haible  <bruno@clisp.org>
63963
63964         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
63965         Categorize the options by when they are useful.
63966
63967 2006-07-29  Bruno Haible  <bruno@clisp.org>
63968
63969         * gnulib-tool (func_usage): Document option --no-libtool.
63970         Handle option --no-libtool.
63971         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
63972         for changed semantics of $libtool variable.
63973         (func_import): Likewise. If libtool is not used, show this through
63974         an option --no-libtool.
63975         (func_create_testdir): Update.
63976
63977 2006-07-29  Bruno Haible  <bruno@clisp.org>
63978
63979         * gnulib-tool (func_import): Extend error message about missing
63980         --doc-base.
63981
63982 2006-07-29  Bruno Haible  <bruno@clisp.org>
63983
63984         * gnulib-tool (func_import): Don't create the $docbase directory if
63985         there is no file to store there.
63986
63987 2006-07-29  Bruno Haible  <bruno@clisp.org>
63988
63989         * gnulib-tool (autoconf_minversion): If a --dir option is given and
63990         relevant, look for configure.ac there, not in the current directory.
63991         Also use a simple search for AC_PREREQ, not "autoconf --trace".
63992
63993 2006-07-29  Bruno Haible  <bruno@clisp.org>
63994
63995         * gnulib-tool (SORT): New variable.
63996         (func_usage): Undocument --assume-autoconf option.
63997         Remove --assume-autoconf option handling.
63998         (autoconf_minversion): Determine from the contents of configure.ac.
63999         (func_import): Remove autoconf_minversion handling.
64000         Suggested by Eric Blake.
64001
64002 2006-07-29  Bruno Haible  <bruno@clisp.org>
64003
64004         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
64005
64006 2006-07-29  Bruno Haible  <bruno@clisp.org>
64007
64008         * config/srclist.txt (*setenv.[ch]): Remove rules.
64009
64010 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64011
64012         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
64013
64014 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64015
64016         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
64017         arpa/inet.h.
64018
64019 2006-07-28  Simon Josefsson  <jas@extundo.com>
64020
64021         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
64022         * modules/inet_pton (Depends-on): Likewise.
64023
64024 2006-07-28  Simon Josefsson  <jas@extundo.com>
64025
64026         * m4/netinet_in_h.m4: New file.
64027
64028 2006-07-28  Simon Josefsson  <jas@extundo.com>
64029
64030         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
64031         #include's.
64032
64033 2006-07-28  Simon Josefsson  <jas@extundo.com>
64034
64035         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
64036         #include's.
64037
64038 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
64039
64040         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
64041         setgid on directories only if they set these bits.
64042         * lib/modechange.h: Remove obsolete comment about masks.
64043
64044 2006-07-28  Eric Blake  <ebb9@byu.net>
64045
64046         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
64047         macro expansion.
64048
64049 2006-07-28  Bruno Haible  <bruno@clisp.org>
64050
64051         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
64052
64053 2006-07-28  Bruno Haible  <bruno@clisp.org>
64054
64055         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
64056
64057 2006-07-28  Bruno Haible  <bruno@clisp.org>
64058
64059         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
64060         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
64061         Define fallbacks.
64062         Avoids link error on FreeBSD 4.x.
64063         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64064
64065         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
64066         encoding.
64067         * lib/mbswidth.c (iswcntrl): Likewise.
64068
64069 2006-07-27  Bruno Haible  <bruno@clisp.org>
64070
64071         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
64072         test.
64073
64074 2006-07-27  Bruno Haible  <bruno@clisp.org>
64075
64076         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
64077         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
64078         defined.
64079
64080 2006-07-26  Eric Blake  <ebb9@byu.net>
64081
64082         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
64083
64084 2006-07-26  Eric Blake  <ebb9@byu.net>
64085
64086         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
64087         like mingw that lack mkstemp.
64088         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
64089         avoid compilation warning on mingw.
64090
64091 2006-07-26  Bruno Haible  <bruno@clisp.org>
64092
64093         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
64094         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
64095         INT_FAST*_MIN, INTPTR_MIN.
64096
64097 2006-07-25  Bruno Haible  <bruno@clisp.org>
64098
64099         * modules/version-etc (Depends-on): Add stdarg.
64100
64101 2006-07-25  Bruno Haible  <bruno@clisp.org>
64102
64103         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
64104         complex commands.
64105
64106 2006-07-25  Bruno Haible  <bruno@clisp.org>
64107
64108         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
64109         defined in <stdarg.h> or config.h.
64110
64111 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64112
64113         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
64114         (gl_STDIO_SAFER): Remove.
64115
64116 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64117
64118         * MODULES.html.sh (File stream based Input/Output):
64119         Add fopen-safer, tmpfile-safer; remove stdio-safer.
64120         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
64121         * modules/fopen-safer, modules/tmpfile-safer: New files.
64122         * modules/stdio-safer: Remove.
64123
64124 2006-07-24  Bruno Haible  <bruno@clisp.org>
64125
64126         * modules/tmpdir: New file.
64127         * MODULES.html.sh (File system functions): Add it.
64128
64129 2006-07-24  Bruno Haible  <bruno@clisp.org>
64130
64131         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
64132         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
64133
64134 2006-07-24  Bruno Haible  <bruno@clisp.org>
64135
64136         * modules/clean-temp: New file.
64137
64138 2006-07-24  Bruno Haible  <bruno@clisp.org>
64139
64140         * m4/tmpdir.m4: New file, from GNU gettext.
64141
64142 2006-07-24  Bruno Haible  <bruno@clisp.org>
64143
64144         * lib/tmpdir.h: New file, from GNU gettext.
64145         * lib/tmpdir.c: New file, from GNU gettext.
64146
64147 2006-07-24  Bruno Haible  <bruno@clisp.org>
64148
64149         * lib/clean-temp.h: New file, from GNU gettext.
64150         * lib/clean-temp.c: New file, from GNU gettext.
64151
64152 2006-07-23  Eric Blake  <ebb9@byu.net>
64153
64154         * modules/stdio-safer (Files): Add tmpfile-safer.c.
64155         (Depends-on): Add binary-io.
64156
64157 2006-07-23  Eric Blake  <ebb9@byu.net>
64158
64159         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
64160
64161 2006-07-23  Eric Blake  <ebb9@byu.net>
64162
64163         * lib/tmpfile-safer.c: New file.
64164         * lib/stdio-safer.h (fopen_safer): Add prototype.
64165         * lib/stdio--.h (tmpfile): Make safer.
64166
64167 2006-07-23  Bruno Haible  <bruno@clisp.org>
64168
64169         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
64170         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
64171         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
64172         gl_linked_remove_at): Use it.
64173
64174 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64175         and Simon Josefsson <jas@extundo.com>
64176
64177         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
64178
64179         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
64180
64181 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64182
64183         * modules/close-stream: New file.
64184         * modules/closeout (Description): Make it clear that it exits
64185         with a diagnostic on error.
64186         (Depends-on): Add close-stream.  Remove fpending, stdbool.
64187         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
64188
64189 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64190
64191         * m4/close-stream.m4: New file.
64192
64193 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64194
64195         * lib/close-stream.c, lib/close-stream.h: New files.
64196
64197 2006-07-22  Bruno Haible  <bruno@clisp.org>
64198
64199         Merge from GNU gettext 0.15.
64200
64201         2006-05-01  Bruno Haible  <bruno@clisp.org>
64202
64203                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
64204
64205         2006-07-22  Bruno Haible  <bruno@clisp.org>
64206
64207                 * modules/javaversion: New file.
64208                 * MODULES.html.sh (Java): Add javaversion.
64209
64210         2006-03-12  Bruno Haible  <bruno@clisp.org>
64211
64212                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
64213
64214         2005-12-04  Bruno Haible  <bruno@clisp.org>
64215
64216                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
64217                 (untested).
64218
64219         2006-06-21  Bruno Haible  <bruno@clisp.org>
64220
64221                 Avoid warnings from recent versions of mcs.
64222                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
64223                 -o, -L, -r any more. Use options documented since mcs-1.0
64224                 instead. Similarly for -g.
64225
64226         2005-12-04  Bruno Haible  <bruno@clisp.org>
64227
64228                 * build-aux/csharpcomp.sh.in: Suffix for resources is
64229                 .resources, not .resource.
64230
64231         2005-07-09  Bruno Haible  <bruno@clisp.org>
64232
64233                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
64234                 add a .dll suffix.
64235                 Reported by Mark Junker <mjscod@gmx.de>.
64236
64237         2006-07-22  Bruno Haible  <bruno@clisp.org>
64238
64239                 * modules/gettext: Upgrade to gettext-0.15.
64240                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
64241                 m4/visibility.m4.
64242                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
64243
64244 2006-07-22  Bruno Haible  <bruno@clisp.org>
64245
64246         Merge from GNU gettext 0.15.
64247
64248         2006-03-25  Bruno Haible  <bruno@clisp.org>
64249
64250                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
64251
64252         2006-07-21  Bruno Haible  <bruno@clisp.org>
64253
64254                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
64255                 "1.1".
64256
64257         2006-05-09  Bruno Haible  <bruno@clisp.org>
64258
64259                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
64260                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
64261                 for the conftestver execution.
64262
64263         2006-05-01  Bruno Haible  <bruno@clisp.org>
64264
64265                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
64266                 optional target-version argument. Verify that the compiler
64267                 groks source of the specified source-version, or add -source
64268                 option as necessary. Verify that the compiler produces
64269                 bytecode in the specified target-version, or add -target and
64270                 -source options as necessary. Make the result of the test
64271                 available as variable CONF_JAVAC. Also log error output in
64272                 config.log.
64273
64274         2006-03-11  Bruno Haible  <bruno@clisp.org>
64275
64276                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
64277
64278         2006-05-09  Bruno Haible  <bruno@clisp.org>
64279
64280                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
64281                 CLASSPATH_SEPARATOR to a semicolon.
64282
64283         2006-03-12  Bruno Haible  <bruno@clisp.org>
64284
64285                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
64286                 available as variable CONF_JAVA, for subsequent autoconf
64287                 tests. Also log error output in config.log.
64288
64289         2006-07-19  Bruno Haible  <bruno@clisp.org>
64290
64291                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
64292                 that getline works on glibc2 systems. Needed to avoid trouble
64293                 in relocatable.c.
64294                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
64295
64296         2005-12-04  Bruno Haible  <bruno@clisp.org>
64297
64298                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
64299                 launcher (untested).
64300
64301         2005-12-04  Bruno Haible  <bruno@clisp.org>
64302
64303                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
64304
64305         2006-07-22  Bruno Haible  <bruno@clisp.org>
64306
64307                 * gettext.m4: Update from GNU gettext-0.15.
64308                 * nls.m4: Likewise.
64309                 * po.m4: Likewise.
64310                 * inttypes-pri.m4: Likewise.
64311                 * inttypes-h.m4: Renamed from inttypes.m4.
64312                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
64313
64314 2006-07-22  Bruno Haible  <bruno@clisp.org>
64315
64316         Merge from GNU gettext 0.15.
64317
64318         2005-07-05  Bruno Haible  <bruno@clisp.org>
64319
64320                 * printf-args.c (printf_fetchargs): Work around broken
64321                 definition of wint_t on mingw.
64322
64323         2005-02-12  Bruno Haible  <bruno@clisp.org>
64324
64325                 * xallocsa.h: Add extern "C" for C++.
64326
64327         2006-05-17  Bruno Haible  <bruno@clisp.org>
64328
64329                 Cygwin portability.
64330                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
64331
64332         2006-04-30  Bruno Haible  <bruno@clisp.org>
64333
64334                 * progreloc.c: Include <mach-o/dyld.h> if available.
64335                 (find_executable): Use _NSGetExecutablePath when possible.
64336
64337         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
64338
64339                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
64340                 function.
64341
64342         2005-12-29  Bruno Haible  <bruno@clisp.org>
64343
64344                 * progreloc.c (set_program_name_and_installdir): Fix
64345                 compilation error.
64346
64347         2005-12-04  Bruno Haible  <bruno@clisp.org>
64348
64349                 Cygwin portability.
64350                 * progreloc.c: Include <windows.h> also on Cygwin.
64351                 (find_executable): Add support for Cygwin.
64352                 (set_program_name_and_installdir): Handle also platforms with
64353                 nonempty EXEEXT.
64354
64355         2006-07-11  Bruno Haible  <bruno@clisp.org>
64356
64357                 * javacomp.c: Fix a comment.
64358                 Reported by Jim Meyering.
64359
64360         2006-04-30  Bruno Haible  <bruno@clisp.org>
64361
64362                 * javacomp.h (compile_java_class): Add source_version,
64363                 target_version arguments.
64364                 * javacomp.c: Rewritten to choose only a compiler that
64365                 respects the specified source_version and target_version.
64366
64367         2006-06-27  Bruno Haible  <bruno@clisp.org>
64368
64369                 Assume correct S_ISDIR macro.
64370                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
64371
64372         2006-07-22  Bruno Haible  <bruno@clisp.org>
64373
64374                 * javaversion.h: New file, from GNU gettext.
64375                 * javaversion.c: New file, from GNU gettext.
64376                 * javaversion.java: New file, from GNU gettext.
64377                 * javaversion.class: New file, from GNU gettext.
64378
64379         2006-05-17  Bruno Haible  <bruno@clisp.org>
64380
64381                 Cygwin portability.
64382                 * javaexec.c (execute_java_class): Test for jview program
64383                 also on Cygwin.
64384
64385         2006-04-09  Bruno Haible  <bruno@clisp.org>
64386
64387                 * fatal-signal.c: Don't include string.h.
64388                 (at_fatal_signal): Use a copying loop instead of memcpy.
64389
64390         2005-12-04  Bruno Haible  <bruno@clisp.org>
64391
64392                 * csharpexec.c: Add support for 'clix' launcher (untested).
64393                 (execute_csharp_using_sscli): New function.
64394                 (execute_csharp_program): Call it.
64395
64396         2006-06-21  Bruno Haible  <bruno@clisp.org>
64397
64398                 Avoid warnings from recent versions of mcs.
64399                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
64400                 -o, -L, -r any more. Use options documented since mcs-1.0
64401                 instead. Similarly for -g.
64402
64403         2005-07-09  Bruno Haible  <bruno@clisp.org>
64404
64405                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
64406                 add a .dll suffix.
64407                 Reported by Mark Junker <mjscod@gmx.de>.
64408
64409         2006-06-17  Bruno Haible  <bruno@clisp.org>
64410
64411                 * config.charset: Update for NetBSD 3.0.
64412
64413         2006-05-17  Bruno Haible  <bruno@clisp.org>
64414
64415                 Cygwin portability.
64416                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
64417
64418         2006-05-16  Bruno Haible  <bruno@clisp.org>
64419
64420                 * localcharset.c [CYGWIN]: Include <windows.h>.
64421                 (get_charset_aliases): For Cygwin, return the same CPxxx
64422                 aliases list as under WIN32.
64423                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
64424                 the environment variables. Fall back to GetACP().
64425
64426         2006-04-05  Bruno Haible  <bruno@clisp.org>
64427
64428                 * config.charset: Update Juan Manuel Guerrero's address.
64429
64430         2005-02-12  Bruno Haible  <bruno@clisp.org>
64431
64432                 * allocsa.h: Add extern "C" for C++.
64433
64434         2005-02-10  Bruno Haible  <bruno@clisp.org>
64435
64436                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
64437                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
64438
64439         2006-07-22  Bruno Haible  <bruno@clisp.org>
64440
64441                 * gettext.h: Update to GNU gettext-0.15.
64442
64443 2006-07-22  Bruno Haible  <bruno@clisp.org>
64444
64445         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
64446         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
64447         lib-prefix.m4, longdouble.m4, ssize_t.m4.
64448
64449 2006-07-21  Eric Blake  <ebb9@byu.net>
64450
64451         * modules/stdlib-safer: New file.
64452         * MODULES.html.sh (File stream based Input/Output): Add
64453         stdlib-safer.
64454
64455 2006-07-21  Eric Blake  <ebb9@byu.net>
64456
64457         * lib/stdlib-safer.h: New file from coreutils, required by
64458         stdlib--.h.
64459
64460 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
64461
64462         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
64463
64464 2006-07-20  Bruno Haible  <bruno@clisp.org>
64465
64466         * gnulib-tool: Recognize new option --assume-autoconf.
64467         (autoconf_minversion): New variable.
64468         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
64469
64470 2006-07-20  Bruno Haible  <bruno@clisp.org>
64471
64472         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
64473
64474 2006-07-19  Derek R. Price  <derek@ximbiot.com>
64475
64476         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
64477         Reindent and repaginate.
64478
64479 2006-07-19  Derek Price  <derek@ximbiot.com>
64480
64481         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
64482         Correct grammar.
64483
64484 2006-07-17  Bruno Haible  <bruno@clisp.org>
64485
64486         * modules/list: New file.
64487         * modules/array-list: New file.
64488         * modules/carray-list, modules/carray-list-tests: New files.
64489         * modules/linked-list, modules/linked-list-tests: New files.
64490         * modules/avltree-list, modules/avltree-list-tests: New files.
64491         * modules/rbtree-list, modules/rbtree-list-tests: New files.
64492         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
64493         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
64494         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
64495         * modules/oset: New file.
64496         * modules/array-oset: New file.
64497         * modules/avltree-oset, modules/avltree-oset-tests: New files.
64498         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
64499         * tests/test-carray_list.c: New file.
64500         * tests/test-linked_list.c: New file.
64501         * tests/test-avltree_list.c: New file.
64502         * tests/test-rbtree_list.c: New file.
64503         * tests/test-linkedhash_list.c: New file.
64504         * tests/test-avltreehash_list.c: New file.
64505         * tests/test-rbtreehash_list.c: New file.
64506         * tests/test-avltree_oset.c: New file.
64507         * tests/test-rbtree_oset.c: New file.
64508         * MODULES.html.sh (Container data structures): New section.
64509
64510 2006-07-17  Bruno Haible  <bruno@clisp.org>
64511
64512         * m4/gl_list.m4: New file.
64513
64514 2006-07-17  Bruno Haible  <bruno@clisp.org>
64515
64516         * lib/gl_list.h: New file.
64517         * lib/gl_list.c: New file.
64518         * lib/gl_array_list.h: New file.
64519         * lib/gl_array_list.c: New file.
64520         * lib/gl_carray_list.h: New file.
64521         * lib/gl_carray_list.c: New file.
64522         * lib/gl_linked_list.h: New file.
64523         * lib/gl_linked_list.c: New file.
64524         * lib/gl_anylinked_list1.h: New file.
64525         * lib/gl_anylinked_list2.h: New file.
64526         * lib/gl_avltree_list.h: New file.
64527         * lib/gl_avltree_list.c: New file.
64528         * lib/gl_anyavltree_list1.h: New file.
64529         * lib/gl_anyavltree_list2.h: New file.
64530         * lib/gl_rbtree_list.h: New file.
64531         * lib/gl_rbtree_list.c: New file.
64532         * lib/gl_anyrbtree_list1.h: New file.
64533         * lib/gl_anyrbtree_list2.h: New file.
64534         * lib/gl_anytree_list1.h: New file.
64535         * lib/gl_anytree_list2.h: New file.
64536         * lib/gl_linkedhash_list.h: New file.
64537         * lib/gl_linkedhash_list.c: New file.
64538         * lib/gl_anyhash_list1.h: New file.
64539         * lib/gl_anyhash_list2.h: New file.
64540         * lib/gl_avltreehash_list.h: New file.
64541         * lib/gl_avltreehash_list.c: New file.
64542         * lib/gl_rbtreehash_list.h: New file.
64543         * lib/gl_rbtreehash_list.c: New file.
64544         * lib/gl_anytreehash_list1.h: New file.
64545         * lib/gl_anytreehash_list2.h: New file.
64546
64547         * lib/gl_oset.h: New file.
64548         * lib/gl_oset.c: New file.
64549         * lib/gl_array_oset.h: New file.
64550         * lib/gl_array_oset.c: New file.
64551         * lib/gl_avltree_oset.h: New file.
64552         * lib/gl_avltree_oset.c: New file.
64553         * lib/gl_rbtree_oset.h: New file.
64554         * lib/gl_rbtree_oset.c: New file.
64555         * lib/gl_anytree_oset.h: New file.
64556
64557 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64558
64559         * m4/mkancesdirs.m4: New file.
64560         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
64561         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
64562         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
64563         it.
64564
64565 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64566
64567         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
64568         * lib/mkancesdirs.h: New files.
64569         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
64570         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
64571         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
64572         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
64573         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
64574         callers changed.  Revamp internals significantly, by not
64575         attempting to create directories that are temporarily more
64576         permissive than the final results.  Do not attempt to use
64577         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
64578         This removes some race conditions, fixes some bugs, and simplifies
64579         things.  Use new dirchownmod function to do owner and mode changes.
64580         * lib/mkdir-p.h: Likewise.
64581         * lib/modechange.c (octal_to_mode): New function.
64582         (struct mode_change): New member mentioned.
64583         (make_node_op_equals): New arg mentioned.  All callers changed.
64584         (mode_compile): Keep track of which mode bits the user has explicitly
64585         mentioned.
64586         (mode_adjust): New arg DIR, so that we implement the X op correctly.
64587         New arg PMODE_BITS, to keep track of which mode bits the user
64588         mentioned; it treats S_ISUID and S_ISGID speciall.
64589         All callers changed.
64590         * lib/modechange.h: Likewise.
64591
64592 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64593
64594         * MODULES.html.sh: Add mkancestors.
64595         * modules/mkancesdirs: New module.
64596         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
64597         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
64598         The chdir-safer and afs files are now orphans; I'll remove them
64599         unless someone speaks up.
64600         Add lib/dirchownmod.c, lib/dirchownmod.h.
64601         (Depends-on): Remove alloca, chown, save-cwd, dirname.
64602         Add lchown, mkancesdirs.
64603         (Maintainer): Add self.
64604
64605 2006-07-15  Karl Berry  <karl@gnu.org>
64606
64607         * gnulib-tool: help message wording/arrangement.
64608
64609 2006-07-14  Simon Josefsson  <jas@extundo.com>
64610
64611         * doc/gnulib.texi (Libtool and Windows): New section.
64612
64613 2006-07-12  Simon Josefsson  <jas@extundo.com>
64614
64615         * modules/gendocs (License): Fix license, approved by Karl.
64616
64617 2006-07-12  Eric Blake  <ebb9@byu.net>
64618
64619         * MODULES.html.sh: Add gendocs.
64620
64621 2006-07-11  Eric Blake  <ebb9@byu.net>
64622
64623         * modules/fdl: New module, to install doc/fdl.texi.
64624         * MODULES.html.sh: Add new section for documentation modules.
64625         * gnulib-tool: Avoid space-tab.
64626         (--doc-base): New option, to manage files from doc.
64627
64628 2006-07-11  Eric Blake  <ebb9@byu.net>
64629
64630         * m4/absolute-header.m4: Fix comments to match recent change.
64631
64632 2006-07-11  Eric Blake  <ebb9@byu.net>
64633
64634         * gnulib-tool: List --doc-base before --tests-base.
64635
64636 2006-07-11  Derek R. Price  <derek@ximbiot.com>
64637
64638         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
64639
64640 2006-07-11  Bruno Haible  <bruno@clisp.org>
64641
64642         * README: Mention where to put documentation.
64643
64644 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64645
64646         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
64647
64648 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
64649
64650         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
64651         to stdint.m4.
64652
64653 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
64654
64655         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
64656         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
64657         "no/such/file/stdint.h" when there is no such file, so that
64658         the resulting C code can be parsed by dodgy compilers.
64659         Problems reported by Bob Proulx.
64660
64661 2006-07-10  Derek R. Price  <derek@ximbiot.com>
64662
64663         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
64664         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
64665         macros into the GNU _D_EXACT_NAMLEN.
64666         * lib/savedir.c:  Likewise.
64667         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
64668
64669 2006-07-10  Derek R. Price  <derek@ximbiot.com>
64670         and Paul Eggert  <eggert@cs.ucla.edu>
64671
64672         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
64673         * m4/savedir.m4:
64674         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
64675         macros into the GNU _D_EXACT_NAMLEN.
64676
64677 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64678
64679         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
64680         around the absolute name, to work around a problem with the HP-UX
64681         11.23 native C compiler, reported by Bob Proulx.
64682
64683 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64684
64685         * doc/maintain.texi, make-stds.texi: Sync from
64686         <http://savannah.gnu.org/projects/gnustandards>.
64687
64688 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64689
64690         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
64691
64692 2006-07-09  Jim Meyering  <jim@meyering.net>
64693
64694         * m4/glob.m4: Remove a doubled word in a comment.
64695
64696 2006-07-09  Jim Meyering  <jim@meyering.net>
64697
64698         * lib/argp-pv.c: Remove a doubled word in a comment.
64699         * lib/check-version.c (check_version): Likewise.
64700         * lib/javacomp.c (compile_java_class): Likewise.
64701
64702 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
64703
64704         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
64705         for the benefit of people using Autoconf 2.60.  If you want to
64706         support older Autoconf versions you can copy m4/onceonly_2_57.m4
64707         (or m4/onceonly.m4, if pre-2.57) manually.
64708
64709 2006-07-08  Jim Meyering  <jim@meyering.net>
64710
64711         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
64712         comment.
64713         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
64714         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
64715         comment.
64716
64717 2006-07-08  Jim Meyering  <jim@meyering.net>
64718
64719         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
64720
64721 2006-07-07  Simon Josefsson  <jas@extundo.com>
64722
64723         * tests/test-crc.c: Change expected crc value, the test vector
64724         were probably computed using the old broken crc.c?
64725
64726 2006-07-06  Simon Josefsson  <jas@extundo.com>
64727
64728         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
64729         now the canonical place for the M4 file).
64730
64731         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
64732         from the sys_socket dependency now.
64733
64734         * modules/inet_pton (Files): Ditto.
64735
64736         * modules/inet_ntop (Files): Ditto.
64737
64738 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64739
64740         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
64741         not gl_PREREQ_GETUSERSHELL.
64742
64743 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64744
64745         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
64746         with only one argument, for Autoconf 2.60.
64747         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
64748         expand to nothing, so add a shell command to avoid syntax error.
64749         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
64750
64751 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64752
64753         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
64754
64755 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64756
64757         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
64758         no longer needed.  Check for isblank decl.
64759         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
64760         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
64761         of existence.
64762
64763 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64764
64765         * lib/getloadavg.c: Use __VMS, not VMS.
64766         * lib/getopt.c: Likewise.
64767         * lib/getpagesize.h: Likewise.
64768         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
64769         and probably does not work.
64770
64771 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64772
64773         * lib/.cppi-disable: Add wcwidth.
64774         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
64775         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
64776         (ISGRAPH): Remove.  All uses changed to isgraph.
64777         (FOLD) [!defined _LIBC]: Remove special case.
64778         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
64779         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
64780         HAVE_ISBLANK.
64781         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
64782         case.
64783
64784 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
64785
64786         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
64787         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
64788         brackets.  Other minor changes to suppress some compiler
64789         warnings.
64790
64791 2006-07-06  Derek R. Price  <derek@ximbiot.com>
64792         and Paul Eggert  <eggert@cs.ucla.edu>
64793
64794         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
64795         of invoking obsolescent AC_HEADER_DIRENT macro.
64796         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
64797         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
64798         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
64799         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
64800         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
64801         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64802         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
64803         * m4/readdir.m4: Remove; no longer needed.
64804
64805 2006-07-06  Derek R. Price  <derek@ximbiot.com>
64806         and Paul Eggert  <eggert@cs.ucla.edu>
64807
64808         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
64809         Don't worry about this obsolete case any more.
64810         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
64811         directories.
64812         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
64813         worry about this obsolete case any more.
64814         * lib/fts.c: Likewise.
64815         * lib/getcwd.c: Likewise.
64816         * lib/glob.h: Likewise.
64817         * lib/savedir.c: Likewise.
64818
64819 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
64820
64821         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
64822         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
64823         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
64824         needed.
64825         All uses removed.
64826         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
64827         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
64828         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
64829         needed.
64830         * m4/getdate.m4 (gl_GETDATE): Likewise.
64831         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
64832         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
64833         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
64834         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
64835         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
64836         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64837         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
64838         needed.
64839
64840 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
64841
64842         * lib/memcasecmp.c: Include <limits.h>.
64843         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
64844         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
64845         Don't assume isdigit succeeds only on '0' through '9'.
64846
64847 2006-07-05  Eric Blake  <ebb9@byu.net>
64848
64849         * modules/getaddrinfo (Depends-on): Add snprintf.
64850
64851 2006-07-05  Eric Blake  <ebb9@byu.net>
64852
64853         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
64854         to avoid 'header present but could not be compiled' on cygwin.
64855
64856 2006-07-05  Eric Blake  <ebb9@byu.net>
64857
64858         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
64859         missing from netdb.h.
64860         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
64861
64862 2006-07-05  Derek R. Price  <derek@ximbiot.com>
64863
64864         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
64865         no longer needed.
64866         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
64867         * m4/getdate.m4 (gl_GETDATE): Likewise.
64868         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
64869         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
64870         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
64871         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
64872         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64873
64874 2006-07-05  Derek R. Price  <derek@ximbiot.com>
64875
64876         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
64877         All uses of is_space replaced by isspace.
64878         * lib/exit.h: Don't talk about STDC_HEADERS.
64879         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
64880         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
64881         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
64882         replaced by isprint etc.
64883         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
64884         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
64885         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
64886         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
64887         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
64888         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
64889
64890 2006-07-05  Bruno Haible  <bruno@clisp.org>
64891
64892         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
64893         the function exists, before testing against AIX.
64894         Reported by Martin Lambers <marlam@marlam.de>.
64895
64896 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
64897
64898         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
64899         From Mark D. Baushke.
64900
64901 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
64902
64903         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
64904         to the absolute name, not just one, to bypass Sun C 5.8's
64905         "warning: #include of /usr/include/... may be non-portable".
64906
64907 2006-07-04  Eric Blake  <ebb9@byu.net>
64908
64909         * modules/dirname-tests: New test module.
64910         * tests/test-dirname.c: New file, replacing dirname.c
64911         TEST_DIRNAME section that was recently deleted.
64912
64913 2006-07-04  Bruno Haible  <bruno@clisp.org>
64914
64915         Assume ANSI C header files and <ctype.h> functions.
64916         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
64917         (mbsnwidth): Use isprint, iscntrl instead.
64918
64919 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64920
64921         Merge from coreutils.
64922         * MODULES.html.sh: Add xstrtold.
64923         * modules/xstrtold: New file.
64924         * modules/cycle-check (Files): Add lib/same-inode.h.
64925         * modules/dirname (Files): Add m4/double-slash-root.m4.
64926         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
64927         * modules/mkdir-p (Files): Add lib/same-inode.h.
64928         * modules/same (Files): Add lib/same-inode.h.
64929
64930 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64931
64932         * m4/absolute-header.m4: Renamed from full-header-path.m4.
64933         This is to keep the terminology clean; POSIX talks about
64934         "absolute pathnames", not "full pathnames", but the GNU
64935         Coding Standards say to use "path" for something else;
64936         so use "absolute" to keep both sides happy.
64937         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
64938         Set gl_absolute_header, not gl_full_header_path.
64939         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
64940         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
64941         All uses changed.
64942
64943         Merge from coreutils.
64944
64945         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
64946
64947         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
64948         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
64949         want to require the building of c-strtod.o.
64950         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
64951         needs -lm directly.
64952         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
64953
64954         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
64955
64956         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
64957         --as-needed option if available.  Problem reported by Albert Chin in
64958         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
64959         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
64960         cc merely issues a bunch of annoying warnings for --as-needed
64961         (this problem was reported by Bob Proulx).  Also, try linking with
64962         -lm to detect a bug in binutils 2.16 (this problem was reported
64963         by Ralf Wildenhues).
64964
64965         2006-06-18  Jim Meyering  <jim@meyering.net>
64966
64967         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
64968         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
64969         macro.
64970         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
64971         also check for glibc-2.4's abort-inducing bug.
64972
64973         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
64974         Low-probability clean-up should be to use rmdir to get rid of
64975         the just-created directory, not unlink.
64976
64977         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
64978         configure fail, and request a bug report to inform us about it.
64979         Add a comment that, barring reports to the contrary, in 2007 we'll
64980         assume ftruncate is universally available.
64981
64982         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
64983
64984         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
64985
64986         2006-03-12  Jim Meyering  <jim@meyering.net>
64987
64988         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
64989         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
64990         * m4/same.m4 (gl_SAME): Likewise.
64991         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
64992
64993         2006-03-11  Eric Blake  <ebb9@byu.net>
64994
64995         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
64996         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
64997         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
64998         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
64999
65000 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65001
65002         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
65003         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
65004         reported by Mark D. Baushke, one in
65005         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
65006
65007         Merge from coreutils.
65008
65009         * lib/.cppi-disable: Add stdint_.h.
65010         * lib/.cvsignore: Add stdint.h.
65011
65012         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65013
65014         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
65015         both double and long double versions.
65016         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
65017         * lib/xstrtold.c: New file.
65018         * lib/xstrtod.h (xstrtold): New decl.
65019
65020         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65021
65022         * lib/filemode.c (setst): Remove.
65023         (strmode): Rewrite to avoid setst.  This makes the code shorter,
65024         (arguably) clearer, and the generated code is a bit smaller on my
65025         Debian GNU/Linux stable x86 host.
65026
65027         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65028
65029         * lib/filemode.c: Include "filemode.h" first, to test the interface.
65030         Assume that filemode.h includes sys/types.h and sys/stat.h.
65031         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
65032         (ftypelet): Reorder to put common cases first, for efficiency.
65033         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
65034         to do 'M'.
65035         (strmode): Renamed from mode_string, and now stores 12 bytes instead
65036         of 10, for compatibility with FreeBSD.  All callers changed.
65037         (filemodestring): Now stores 12 bytes instead of 10, and sets file
65038         types that can't be deduced solely from st_mode.  First arg is now a
65039         const pointer.
65040         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
65041         (strmode): Renamed from mode_string.
65042         (filemodestring): New decl.
65043         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
65044         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
65045         needed.
65046         (S_ISPORT, S_ISWHT): New macros, if not already defined.
65047
65048         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
65049
65050         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
65051         fsusage.h now does that.  Include fsusage.h first, to test interface.
65052         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
65053         at most one method (the old code could have generated decls that
65054         didn't conform to C89, not that this was ever exercised).
65055         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
65056
65057         2006-03-19  Jim Meyering  <jim@meyering.net>
65058
65059         Work even in a chroot where d_ino values for entries in "/"
65060         don't match the stat.st_ino values for the same names.
65061         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
65062         number, iterate through all entries again, using lstat instead.
65063         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
65064         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
65065
65066         * lib/getcwd.c (__getcwd): Clarify a comment.
65067         Use memcpy in place of a call to strcpy.
65068
65069         2006-03-12  Jim Meyering  <jim@meyering.net>
65070
65071         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
65072         matches that of the current directory (which we're about to chdir ".."
65073         out of), then save the dev-ino of the parent, instead.
65074
65075         * lib/same-inode.h (SAME_INODE): New file/macro.
65076         * lib/chdir-safer.c (SAME_INODE): Remove definition.
65077         Include "same-inode.h", instead.
65078         * lib/same.c: Likewise.
65079         * lib/cycle-check.h: Include "same-inode.h".
65080         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
65081         * lib/cycle-check.c (SAME_INODE): Remove definition.
65082         * lib/root-dev-ino.h: Include "same-inode.h".
65083
65084         2006-03-11  Eric Blake  <ebb9@byu.net>
65085
65086         * lib/same.c (same_name): s/base_name/last_component/
65087         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
65088         * lib/filenamecat.c (file_name_concat): Likewise.
65089
65090         2006-03-11  Eric Blake  <ebb9@byu.net>,
65091                     Paul Eggert  <eggert@cs.ucla.edu>
65092
65093         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
65094         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
65095         drive prefix.
65096         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
65097         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
65098         (last_component): New method.
65099         * lib/dirname.c (dir_len): Determine when drive letters need a
65100         subsequent slash.  Preserve // when it is special.
65101         (dir_name): Don't append dot when drive letter is absolute.
65102         [TEST_DIRNAME]: Move into a full-blown gnulib test.
65103         * lib/basename.c (base_name): New semantics - malloc the result.
65104         Preserve // when it is special.  Preserve relative files that look
65105         like drive letters.
65106         (base_len): Preserve // when it is special.
65107         (last_component): New method, similar to old base_name semantics.
65108         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
65109         base_name.  Strip redundant slashes from ///.
65110
65111 2006-07-03  Jim Meyering  <jim@meyering.net>
65112
65113         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
65114         macro is used before the first cycle_check call.
65115
65116 2006-07-03  Eric Blake  <ebb9@byu.net>
65117
65118         * modules/dirname (Depends-on): Add xstrndup.
65119
65120 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65121
65122         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
65123         test cases, so that config.log is a bit easier to follow.
65124
65125 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65126
65127         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
65128         both are 64 bits, since this seems to be the tradition, and this
65129         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
65130         we ever run into a host that prefers long long to long in this
65131         case, we'll need another configure-time test.  Problem reported by
65132         Jim Meyering.
65133
65134 2006-07-02  Eric Blake  <ebb9@byu.net>
65135
65136         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
65137
65138 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65139
65140         * modules/inttypes (Depends-on): No longer depends on stdint.
65141         * modules/stdint (Description): Say more about assumptions.
65142         Say that the fast types might differ.  Say macros are used.
65143         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
65144         (Makefile.am): Revise list of substituted symbols to match
65145         new stdint.m4.
65146         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
65147         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
65148         * tests/test-stdint.c (verify_same_types)
65149         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
65150         the code conforms to C99/C89.
65151         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
65152         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
65153
65154 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65155
65156         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
65157         but fix a bug, by requiring at least 64 bits.
65158         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65159         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
65160         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
65161         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
65162
65163         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
65164         changes.  Make 2.59 a prerequisite.  Check and substitute for
65165         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
65166         inttypes.h.  Do not use special include files; just use the
65167         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
65168         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
65169         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
65170         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
65171         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
65172         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
65173         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
65174         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
65175         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
65176         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
65177         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
65178         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
65179         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
65180         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
65181         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
65182         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
65183         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
65184         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
65185         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
65186         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
65187         WINT_MAX.  Check for C99 conformance more strictly, by detecting
65188         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
65189         not check for things that C99 does not require, e.g., int8_t.  If
65190         a test isn't needed unless <stdint.h> isn't working, and is
65191         unlikely to be needed for any other reason, then don't do it
65192         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
65193         size_t, since we assume C89 freestanding at least.  Do not check
65194         for sig_atomic_t, wchar_t, or wint_t, since the code now does
65195         the right thing even if the types are not defined.  Instead use:
65196         (gl_STDINT_TYPE_PROPERTIES): New macro.
65197         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
65198         testing whether <sys/types.h> clashes, as Autoconf does this for
65199         us now.  All uses removed.
65200         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
65201         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
65202         (gl_CHECK_TYPE_SAME):
65203         Remove; no longer needed.
65204         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
65205         exists, since we'll return 0 anyway in that case.
65206         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
65207
65208 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65209
65210         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
65211         possible collision with system files.
65212         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
65213         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
65214         WCHAR_MIN and WCHAR_MAX in this case.
65215         (<stddef.h>): Do not include; no longer needed.
65216         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
65217         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
65218         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
65219         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
65220         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
65221         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
65222         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
65223         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
65224         !defined(__c99))]: Include in this case too, since it's harmless
65225         now.
65226         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
65227         dangerous to do so.
65228         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
65229         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
65230         (_STDINT_MIN, _STDINT_MAX): New macros.
65231         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
65232         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
65233         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
65234         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
65235         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
65236         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
65237         macros, not typedefs; this simplifies things quite a bit.
65238         Use long int for all types narrower than int64_t.
65239         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
65240         Define in terms of long long int or int64_t or long int,
65241         not int64_t or int32_t.  This saves some compile-time testing.
65242         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
65243         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
65244         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
65245         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
65246         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
65247         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
65248         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
65249         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
65250         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
65251         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
65252         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65253         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65254         undef any previous version and define our own version, for
65255         simplicity and consistency with the new macros for types.
65256         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65257         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65258         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
65259         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
65260         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
65261         @WINT_T_SUFFIX@ to keep things simple here.
65262         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
65263         Simplify by assuming typical 8/16/32/64 host, since we're
65264         already doing that elsewhere anyway.
65265         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
65266         and assume long long int is 64 bits if available.  This
65267         speeds up 'configure'.
65268
65269 2006-07-01  Eric Blake  <ebb9@byu.net>
65270
65271         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
65272         Reported by Andreas Buening.
65273
65274 2006-07-01  Eric Blake  <ebb9@byu.net>
65275
65276         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
65277
65278 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65279
65280         * lib/getaddrinfo.c: fixed typo
65281
65282 2006-06-29  Jim Meyering  <jim@meyering.net>
65283
65284         * modules/strftime (Maintainer): Add my name, since with the
65285         FPRINTFTIME changes strftime.c has forked from glibc.
65286
65287 2006-06-29  Eric Blake  <ebb9@byu.net>
65288
65289         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
65290
65291 2006-06-29  Eric Blake  <ebb9@byu.net>
65292
65293         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
65294
65295 2006-06-29  Eric Blake  <ebb9@byu.net>
65296
65297         * lib/stat_.h: New file.
65298
65299 2006-06-29  Eric Blake  <ebb9@byu.net>
65300
65301         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
65302         unused static function.
65303
65304 2006-06-29  Eric Blake  <ebb9@byu.net>
65305
65306         * doc/functions.texi (Function Portability): Document missing lstat
65307         on mingw.
65308
65309 2006-06-29  Eric Blake  <ebb9@byu.net>
65310
65311         * MODULES.html.sh: Add sys_stat.
65312         * modules/sys_stat: New module.
65313         * modules/mkstemp (Depends-on): Add sys_stat.
65314
65315 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65316
65317         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
65318
65319 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65320
65321         * m4/c-bs-a.m4: Removed.
65322
65323 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65324
65325         * lib/strftime.c: Assume strftime() exists.
65326
65327 2006-06-29  Derek Price  <derek@ximbiot.com>
65328
65329         * modules/c-bs-a: Removed - \a is C89.
65330         * MODULES.html.sh: Remove c-bs-a.
65331
65332 2006-06-29  Bruno Haible  <bruno@clisp.org>
65333
65334         * modules/wcwidth (License): Change to LGPL.
65335
65336 2006-06-28  Simon Josefsson  <jas@extundo.com>
65337
65338         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
65339         on _WIN32.
65340
65341         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
65342         getnameinfo.
65343
65344 2006-06-28  Simon Josefsson  <jas@extundo.com>
65345
65346         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
65347
65348 2006-06-28  Simon Josefsson  <jas@extundo.com>
65349
65350         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
65351         functions there.  It will succeed on Windows XP, but on Windows
65352         2000 and (presumably) earlier, it will fail, and use the internal
65353         re-implementation.
65354         (use_win32_p): New function.
65355         (getaddrinfo): Use strtoul on servname, to support numeric ports.
65356         Support AI_NUMERICSERV to disable getservbyname.
65357         (getnameinfo): New function, only supports
65358         NI_NUMERICHOST|NI_NUMERICSERV for now.
65359
65360         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
65361         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
65362         getnameinfo.
65363
65364 2006-06-28  Eric Blake  <ebb9@byu.net>
65365
65366         * modules/wcwidth: New file.
65367         * modules/mbchar (Depends-on): Add wcwidth.
65368         * modules/mbswidth (Depends-on): Add wcwidth.
65369         * MODULES.html.sh: Add wcwidth.
65370
65371 2006-06-28  Eric Blake  <ebb9@byu.net>
65372
65373         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
65374         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
65375
65376 2006-06-28  Eric Blake  <ebb9@byu.net>
65377
65378         * lib/xvasprintf.h: Fix comments.
65379
65380 2006-06-28  Eric Blake  <ebb9@byu.net>
65381
65382         * lib/mbchar.h (wcwidth): Include wcwidth.h.
65383         * lib/mbswidth.c (wcwidth): Move from here...
65384         * lib/wcwidth.h: ...to this new file.
65385
65386 2006-06-28  Derek R. Price  <derek@ximbiot.com>
65387
65388         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
65389
65390         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
65391         it's obsolete.
65392         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
65393
65394 2006-06-28  Derek R. Price  <derek@ximbiot.com>
65395
65396         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
65397         Autoconf 2.60 says this stuff was obsolete.
65398
65399 2006-06-28  Bruno Haible  <bruno@clisp.org>
65400
65401         * modules/wcwidth (Files): Add m4/wchar_t.m4.
65402
65403 2006-06-28  Bruno Haible  <bruno@clisp.org>
65404
65405         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
65406         gt_TYPE_WCHAR_T.
65407
65408 2006-06-28  Bruno Haible  <bruno@clisp.org>
65409
65410         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
65411         declaration for wcwidth.
65412         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
65413
65414 2006-06-28  Bruno Haible  <bruno@clisp.org>
65415
65416         * lib/mkdtemp.c [MINGW]: Include <io.h>.
65417         (mkdir): Define using _mkdir.
65418
65419 2006-06-28  Bruno Haible  <bruno@clisp.org>
65420
65421         * lib/getaddrinfo.h: Fix POSIX URL.
65422         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
65423         _WIN32.
65424         (use_win32_p): Make static.
65425         (getaddrinfo): Reject service name if it is empty or does not consist
65426         solely of decimal digits, or if its value is > 65535.
65427         (getnameinfo): Remove useless casts.
65428
65429 2006-06-27  Simon Josefsson  <jas@extundo.com>
65430
65431         * modules/sys_select: New file, suggested by Bruno Haible, Paul
65432         Eggert and Martin Lambers.
65433
65434 2006-06-27  Simon Josefsson  <jas@extundo.com>
65435
65436         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
65437         Eggert and Martin Lambers.
65438
65439 2006-06-27  Bruno Haible  <bruno@clisp.org>
65440
65441         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
65442         result to 0, not to empty.
65443         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
65444
65445 2006-06-27  Bruno Haible  <bruno@clisp.org>
65446
65447         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
65448
65449 2006-06-26  Simon Josefsson  <jas@extundo.com>
65450
65451         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
65452         present.
65453
65454 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
65455
65456         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
65457         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
65458         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
65459
65460 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
65461
65462         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
65463
65464 2006-06-26  Bruno Haible  <bruno@clisp.org>
65465
65466         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
65467
65468 2006-06-26  Bruno Haible  <bruno@clisp.org>
65469
65470         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
65471
65472 2006-06-26  Bruno Haible  <bruno@clisp.org>
65473
65474         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
65475         SGI C compiler in pre-C99 mode.
65476         Suggested by Mark D. Baushke and Larry Jones.
65477
65478 2006-06-26  Bruno Haible  <bruno@clisp.org>
65479
65480         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
65481         WCHAR_MAX.
65482         Reported by Mark D. Baushke and Larry Jones.
65483
65484 2006-06-26  Bruno Haible  <bruno@clisp.org>
65485
65486         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
65487         in pre-C99 mode.
65488         Suggested by Mark D. Baushke and Larry Jones.
65489
65490 2006-06-23  Simon Josefsson  <jas@extundo.com>
65491             Bruno Haible  <bruno@clisp.org>
65492
65493         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
65494         Emit mostlyclean-local rule.
65495         (func_emit_tests_Makefile_am): Likewise.
65496         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
65497
65498 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
65499
65500         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
65501
65502 2006-06-23  Bruno Haible  <bruno@clisp.org>
65503
65504         * tests/test-stdint.c: Update to match ISO C 99 Technical
65505         Corrigendum 1.
65506
65507 2006-06-23  Bruno Haible  <bruno@clisp.org>
65508
65509         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
65510
65511 2006-06-23  Bruno Haible  <bruno@clisp.org>
65512
65513         * lib/stdint_.h: Treat IRIX like OpenBSD.
65514
65515 2006-06-23  Bruno Haible  <bruno@clisp.org>
65516
65517         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
65518         ISO C 99 Technical Corrigendum 1.
65519
65520 2006-06-22  Simon Josefsson  <jas@extundo.com>
65521
65522         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
65523         MinGW.
65524
65525 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65526
65527         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
65528         needed.  Some compiler complained about some of them.  Problem reported
65529         by Larry Jones in
65530         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
65531
65532 2006-06-21  Simon Josefsson  <jas@extundo.com>
65533
65534         * tests/test-getaddrinfo.c: New file.
65535
65536         * modules/getaddrinfo-tests: New file.
65537
65538         * MODULES.html.sh: Add inet_pton.
65539
65540         * modules/inet_pton: New file.
65541
65542 2006-06-21  Simon Josefsson  <jas@extundo.com>
65543
65544         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
65545         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
65546         of using the (limited) gnulib implementation on Windows XP.
65547
65548         * m4/inet_pton.m4: New file.
65549
65550 2006-06-21  Simon Josefsson  <jas@extundo.com>
65551
65552         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
65553         variable.
65554
65555         * lib/socket_.h: Don't define WINVER.
65556
65557         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
65558         slightly modified to work in gnulib.
65559
65560 2006-06-21  Simon Josefsson  <jas@extundo.com>
65561
65562         * doc/gnulib.texi (Windows sockets): Add.
65563
65564 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
65565
65566         * lib/read-file.c (fread_file): Start with buffer allocation of
65567         0 bytes rather than 1 byte; this simplifies the code.
65568         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
65569         code to free buffer and save/restore errno.
65570         (internal_read_file): Remove unused local.
65571
65572 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
65573
65574         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
65575         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
65576         Problem reported by Denis Excoffier in
65577         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
65578
65579 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65580
65581         * modules/sys_socket, modules/socklen: Include sys/types since
65582         FreeBSD 4.x's sys/socket.h needs it.
65583
65584 2006-06-19  Simon Josefsson  <jas@extundo.com>
65585
65586         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
65587
65588 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
65589
65590         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
65591
65592 2006-06-19  Bruno Haible  <bruno@clisp.org>
65593
65594         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
65595         and FULL_PATH_INTTYPES_H in angle brackets.
65596         Reported by Mark D. Baushke <mdb@gnu.org>.
65597
65598 2006-06-17  Eric Blake  <ebb9@byu.net>
65599
65600         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
65601         errno.
65602
65603 2006-06-17  Bruno Haible  <bruno@clisp.org>
65604
65605         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
65606         <sys/inttypes.h>.
65607
65608 2006-06-17  Bruno Haible  <bruno@clisp.org>
65609
65610         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
65611         whether errno is declared. Assume <errno.h> declares errno.
65612
65613 2006-06-17  Bruno Haible  <bruno@clisp.org>
65614
65615         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
65616
65617 2006-06-17  Bruno Haible  <bruno@clisp.org>
65618
65619         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
65620         problem on Solaris 2.5.1.
65621
65622 2006-06-16  Eric Blake  <ebb9@byu.net>
65623
65624         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
65625         * lib/unicodeio.c [!defined errno]: Likewise.
65626         * lib/strtol.c [!defined errno]: Likewise.
65627         * lib/strtod.c [!defined errno]: Likewise.
65628
65629 2006-06-15  Eric Blake  <ebb9@byu.net>
65630
65631         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
65632
65633 2006-06-15  Eric Blake  <ebb9@byu.net>
65634
65635         * config/srclist.txt (ssize_t.m4): Lose sync.
65636
65637 2006-06-15  Bruno Haible  <bruno@clisp.org>
65638
65639         * modules/stdint (Files): Include m4/full-header-path.m4,
65640         m4/size_max.m4, m4/wchar_t.m4.
65641         (Makefile.am): Many more substitutions.
65642         * modules/stdint-tests: New file.
65643         * tests/test-stdint.c: New file.
65644
65645 2006-06-15  Bruno Haible  <bruno@clisp.org>
65646
65647         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
65648         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
65649         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
65650         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
65651         gl_CHECK_TYPE_SAME): New macros.
65652
65653 2006-06-15  Bruno Haible  <bruno@clisp.org>
65654
65655         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
65656
65657 2006-06-15  Bruno Haible  <bruno@clisp.org>
65658
65659         * lib/stdint_.h: Rewritten to be fully auto-configured.
65660         Fixes bug on HP-UX/IA64.
65661
65662 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
65663
65664         * lib/getdate.y (__attribute__): Don't define if already defined.
65665         Problem reported by Larry Jones.
65666         * lib/utimens.c (__attribute__): Likewise.
65667
65668 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
65669
65670         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
65671         reported by Andreas Schwab.
65672
65673 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65674             Bruno Haible  <bruno@clisp.org>
65675
65676         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
65677         check for the declaration of strnlen and a run test that exposes the
65678         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
65679         rpl_strndup.
65680
65681 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65682             Bruno Haible  <bruno@clisp.org>
65683
65684         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
65685
65686 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65687
65688         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
65689         compile test, for Tru64 4.0D.
65690
65691 2006-05-28  Karl Berry  <karl@gnu.org>
65692
65693         * config/srclist.txt (printf-args.c): lose sync.
65694
65695 2006-05-26  Martin Lambers  <marlam@marlam.de>
65696
65697         * lib/getpass.c: Updates the test for the native W32 API, and adds
65698         missing includes, thus fixing compilation warnings.
65699
65700 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65701
65702         * lib/exclude.c (exclude_fnmatch): New function.
65703         (excluded_file_name): Call exclude_fnmatch.
65704         * lib/exclude.h (excluded_file_name): New prototype
65705
65706 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
65707
65708         * lib/tempname.c (small_open, large_open): New macros.
65709         (__open, __open64) [!_LIBC]: Remove.
65710         (__gen_tempname): Use small_open and large_open instead of __open
65711         and __open64.  This fixes a portability bug on HP-UX 11.11i
65712         reported by Simon Wing-Tang in
65713         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
65714
65715 2006-05-24  Bruno Haible  <bruno@clisp.org>
65716
65717         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
65718         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
65719         Reported by Thorsten Maerz <torte@netztorte.de> via
65720         Aaron Stone <aaron@serendipity.cx>.
65721
65722 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
65723
65724         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
65725         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
65726         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
65727         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
65728         not really conditional on the cache.
65729         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
65730
65731 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
65732
65733         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
65734         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
65735         (my_usleep): Don't mishandle maximum value.
65736
65737 2006-05-19  Jim Meyering  <jim@meyering.net>
65738
65739         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
65740
65741 2006-05-17  Bruno Haible  <bruno@clisp.org>
65742
65743         Cygwin portability.
65744         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
65745
65746 2006-05-17  Bruno Haible  <bruno@clisp.org>
65747
65748         * lib/stdint_.h: Fix recognition of Cygwin.
65749
65750 2006-05-15  Bruno Haible  <bruno@clisp.org>
65751
65752         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
65753         on libtool patch by Ralf Wildenhues.
65754
65755 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65756
65757         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
65758         test for C99 conformance; (bool) 0.5 is an integer constant
65759         expression, but (bool) -0.5 is not.  Problem reported by Fedor
65760         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
65761
65762 2006-05-11  Simon Josefsson  <jas@extundo.com>
65763
65764         * m4/xvasprintf.m4: Fix obvious typo.
65765
65766 2006-05-11  Jim Meyering  <jim@meyering.net>
65767
65768         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
65769         James Lemley.
65770
65771 2006-05-10  Simon Josefsson  <jas@extundo.com>
65772
65773         * lib/md4.c: Typo fix, update copyright years.
65774         (K1, K2): Don't use L because it turn computations into 64-bit on
65775         64-bit platforms.
65776
65777 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
65778
65779         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
65780         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
65781         unwanted sign propagation, e.g., on hosts with 64-bit int.
65782         There still are some problems with reeelly weird theoretical hosts
65783         (e.g., 33-bit int) but it's not worth worrying about now.
65784         * lib/sha1.c (rol): Likewise.
65785         (K1, K2, K3, K4): Remove unnecessary L suffix.
65786
65787 2006-05-10  Bruno Haible  <bruno@clisp.org>
65788
65789         * lib/des.c: Cast to avoid warnings.
65790
65791 2006-05-09  Bruno Haible  <bruno@clisp.org>
65792
65793         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
65794         (Depends-on): Depend also on xsize, stdarg.
65795         (configure.ac): Add gl_XVASPRINTF.
65796
65797 2006-05-09  Bruno Haible  <bruno@clisp.org>
65798
65799         * m4/xvasprintf.m4: New file.
65800
65801 2006-05-09  Bruno Haible  <bruno@clisp.org>
65802
65803         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
65804         (EOVERFLOW): Define fallback value.
65805         (xstrcat): New function.
65806         (xvasprintf): Recognize the special case of a string concatenation.
65807
65808 2006-05-08  Eric Blake  <ebb9@byu.net>
65809
65810         * gnulib-tool (func_version): Base copyright year on CVS date.
65811         (func_emit_copyright_notice): New function.
65812         (func_emit_lib_Makefile_am): Use it.
65813         (func_emit_tests_Makefile_am): Likewise.
65814         (func_import): Likewise.
65815
65816 2006-05-08  Bruno Haible  <bruno@clisp.org>
65817
65818         * modules/stdarg: New file.
65819         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
65820
65821 2006-05-08  Bruno Haible  <bruno@clisp.org>
65822
65823         * m4/stdarg.m4: New file, from GNU gettext.
65824
65825 2006-05-08  Bruno Haible  <bruno@clisp.org>
65826
65827         * config/srclist.txt (build-aux/config.rpath): different from latest
65828         release.
65829
65830 2006-05-08  Bruno Haible  <bruno@clisp.org>
65831
65832         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
65833
65834 2006-05-05  Jim Meyering  <jim@meyering.net>
65835
65836         * m4/warning.m4: New file, derived from bison's file by the same name.
65837
65838 2006-05-03  Bruno Haible  <bruno@clisp.org>
65839
65840         * lib/stdint_.h: Shorter URL.
65841         * lib/inttypes.h: Likewise.
65842
65843 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65844
65845         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
65846
65847 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65848
65849         * lib/verify.h: Document the internals better.  Most of this change
65850         was written by Bruno Haible.
65851
65852 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65853
65854         * doc/verify.texi: New file, partly based on a proposal by
65855         Bruno Haible.
65856
65857 2006-05-02  Bruno Haible  <bruno@clisp.org>
65858
65859         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
65860         test from here...
65861         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
65862
65863 2006-04-29  Bruno Haible  <bruno@clisp.org>
65864
65865         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
65866         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
65867
65868 2006-04-29  Bruno Haible  <bruno@clisp.org>
65869
65870         * gnulib-tool: Make --update option actually work.
65871
65872 2006-04-29  Bruno Haible  <bruno@clisp.org>
65873
65874         * doc/gcd.texi: New file.
65875         * doc/gnulib.texi: Include it.
65876
65877 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
65878
65879         * lib/getdate.y (get_date): When adding relative date, start with the
65880         initial time, not with the result of the first mktime call.
65881
65882 2006-04-25  Bruno Haible  <bruno@clisp.org>
65883
65884         * gnulib-tool (func_import): Output the include directives in three
65885         blocks, sorted separately.
65886         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65887
65888 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
65889
65890         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
65891         to define main with arguments, for C++.  Reported by Eric Blake.
65892         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
65893         Prefer 'int main ()' to 'int main (void)', for C++.
65894         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
65895         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
65896         for 'main', for C99 and C++.
65897
65898 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
65899
65900         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
65901         Don't assume that exit status -1 is valid.
65902         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65903         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
65904         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
65905         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
65906         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
65907         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
65908         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
65909         functions can be used without declaring them, or that you can
65910         exit with status -1.
65911         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
65912
65913 2006-04-24  Karl Berry  <karl@gnu.org>
65914
65915         * config/srclist.txt (longdouble.m4): sync lost.
65916
65917 2006-04-24  Eric Blake  <ebb9@byu.net>
65918
65919         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
65920
65921 2006-04-24  Bruno Haible  <bruno@clisp.org>
65922
65923         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
65924         poll() implementation in AIX.
65925         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65926
65927 2006-04-24  Bruno Haible  <bruno@clisp.org>
65928
65929         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
65930         assigned exactly once.
65931
65932 2006-04-23  Claudio Fontana  <claudio@gnu.org>
65933             Bruno Haible  <bruno@clisp.org>
65934
65935         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
65936         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
65937         for AM_CPPFLAGS.
65938
65939 2006-04-23  Bruno Haible  <bruno@clisp.org>
65940
65941         * modules/copy-file: Depend on unistd.
65942         * modules/execute: Likewise.
65943         * modules/fatal-signal: Likewise.
65944         * modules/findprog: Likewise.
65945         * modules/mkdtemp : Likewise.
65946         * modules/pipe: Likewise.
65947         * modules/wait-process: Likewise.
65948
65949 2006-04-23  Bruno Haible  <bruno@clisp.org>
65950
65951         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
65952         condition was already detected.
65953         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65954
65955 2006-04-23  Bruno Haible  <bruno@clisp.org>
65956
65957         * lib/copy-file.c: Include <unistd.h> unconditionally.
65958         * lib/execute.c: Likewise.
65959         * lib/fatal-signal.c: Likewise.
65960         * lib/findprog.c: Likewise.
65961         * lib/mkdtemp.c: Likewise.
65962         * lib/pipe.h: Likewise.
65963         * lib/pipe.c: Likewise.
65964         * lib/wait-process.h: Likewise.
65965
65966 2006-04-23  Bruno Haible  <bruno@clisp.org>
65967
65968         * gnulib-tool (func_usage): Fix --import description. Document
65969         --update.
65970         (func_import): Create temporary file in a temporary directory, if
65971         --dry-run is specified. Silence errors from 'grep' when there are no
65972         m4 files in $m4dir.
65973         (func_create_testdir): Silence errors from 'grep' when there are no
65974         m4 files in $m4dir.
65975         Reported by Karl Berry <karl@freefriends.org>.
65976
65977 2006-04-20  Bruno Haible  <bruno@clisp.org>
65978
65979         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
65980         one argument, so that the code will be portable to Autoconf 2.60.
65981         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
65982         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
65983         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
65984
65985 2006-04-19  Derek Price  <derek@ximbiot.com>
65986             Eric Blake  <ebb9@byu.net>
65987
65988         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
65989         rather than "/full/path.h".  Update comment to match.  Shorten &
65990         generalize m4_translit call via AS_TR_CPP.
65991
65992 2006-04-19  Derek Price  <derek@ximbiot.com>
65993             Eric Blake  <ebb9@byu.net>
65994
65995         * lib/inttypes.h: Correct grammar in comment.
65996
65997 2006-04-18  Derek Price  <derek@ximbiot.com>
65998             Paul Eggert  <eggert@cs.ucla.edu>
65999
66000         * modules/inttypes: New file.
66001         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
66002
66003 2006-04-18  Derek Price  <derek@ximbiot.com>
66004             Paul Eggert  <eggert@cs.ucla.edu>
66005
66006         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
66007         New files.
66008
66009 2006-04-18  Derek Price  <derek@ximbiot.com>
66010             Paul Eggert  <eggert@cs.ucla.edu>
66011
66012         * lib/inttypes.h: New file.
66013         * lib/strtoimax.c: Assume <inttypes.h>.
66014
66015 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
66016
66017         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
66018         isn't mounted.  Problem reported by Kir Kolyshkin.
66019
66020 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66021
66022         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
66023         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
66024         Derek R. Price.
66025         * lib/regex.h (RE_DUP_MAX): Update comment to match current
66026         implementation.
66027
66028 2006-04-12  Eric Blake  <ebb9@byu.net>
66029
66030         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
66031         is now done automatically by the corresponding Autoconf macro.
66032
66033 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
66034
66035         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
66036         time_r.h.
66037
66038 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66039
66040         Merge regex changes from libc, removing some of our
66041         POSIX-conformance changes that were rejected and redoing them in a
66042         less-intrusive way.
66043
66044         * lib/regcomp.c (re_compile_internal, init_dfa):
66045         Length arg is now size_t, not Idx.  All uses changed.
66046         (peek_token): Forward decl now says internal_function.
66047         (__re_error_msgid, __re_error_msgid_idx):
66048         Now static rather than extern with attribute_hidden.
66049         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
66050         For some reason libc prefers K&R style defns for external functions.
66051         (regerror) [!defined _LIBC]: Likewise.
66052         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
66053         (seek_collating_symbol_entry, lookup_collation_sequence_value):
66054         (build_range_exp, build_collating_symbol):
66055         Use K&R-style defn.
66056         (re_compile_fastmap): Use '\0' to memset, not 0.
66057         (utf8_sb_map): Make the calculations more obvious.
66058         (init_dfa, parse_bracket_exp, build_charclass_op):
66059         Call calloc and cast result, as glibc does.
66060         (init_word_char, fetch_token, peek_token, peek_token_bracket):
66061         (build_range_exp, build_collating_symbol):
66062         Now internal functions.
66063
66064         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
66065
66066         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
66067         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
66068         Don't depend on VMS; depend on __VMS instead, for POSIX
66069         namespace cleanness.
66070         (regoff_t): Define to ssize_t, not long int.
66071
66072         Remove the REG_ macros named below.  Instead, make the old names
66073         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
66074         __USE_GNU_REGEX.
66075         (REG_BACKSLASH_ESCAPE_IN_LISTS):
66076         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
66077         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
66078         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
66079         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
66080         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
66081         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
66082         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
66083         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
66084         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
66085         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
66086         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
66087         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
66088         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
66089         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
66090         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
66091         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
66092         (REG_NREGS):
66093         Remove.  All uses replaced by the old RE_* names.
66094         (RE_BACKSLASH_ESCAPE_IN_LISTS):
66095         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
66096         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
66097         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
66098         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
66099         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
66100         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
66101         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
66102         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
66103         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
66104         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
66105         Don't bother having these macros be independent of each others'
66106         values, since they no longer exist in the POSIX name space.
66107
66108         Rename the following member names back to their old names,
66109         unless !__USE_GNU_REGEX.  All uses changed back.
66110         (buffer): Renamed from re_buffer.
66111         (allocated): Renamed from re_allocated.
66112         (used): Renamed from re_used.
66113         (syntax): Renamed from re_syntax.
66114         (fastmap): Renamed from re_fastmap.
66115         (translate): Renamed from re_translate.
66116         (can_be_null): Renamed from re_can_be_null.
66117         (regs_allocated): Renamed from re_regs_allocated.
66118         (fastmap_accurate): Renamed from re_fastmap_accurate.
66119         (no_sub): Renamed from re_no_sub.
66120         (not_bol): Renamed from re_not_bol.
66121         (not_eol): Renamed from re_not_eol.
66122         (newline_anchor): Renamed from re_newline_anchor.
66123         (num_regs): Renamed from rm_num_regs.
66124         (start): Renamed from rm_start.
66125         (end): Renamed from rm_end.
66126
66127         (free_state): Move up a bit.
66128
66129         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
66130         #define to be empty.
66131         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
66132         when that is what is intended.
66133         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
66134         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
66135         (MAX): New macro.
66136         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
66137         All uses changed back to re_malloc, etc.  It's now the caller's
66138         responsibility to check for overflow; all callers changed.
66139         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
66140         (re_x2nrealloc): Remove.
66141         (free_state): Remove decl.
66142
66143         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
66144         (re_set_registers, re_exec):
66145         Use K&R-style defn.
66146
66147         2006-01-31  Roland McGrath  <roland@redhat.com>
66148
66149         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
66150         Reported by Mike Frysinger <vapier@gentoo.org>.
66151
66152         2006-01-15  Andreas Jaeger  <aj@suse.de>
66153
66154         [BZ #1950]
66155         * lib/regex_internal.c (re_string_reconstruct): Adjust for
66156         build_wcs_upper_buffer change.
66157         (build_wcs_upper_buffer): Change return type.
66158
66159         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
66160
66161         * lib/regex_internal.h: Include <stdint.h> if available.
66162
66163         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
66164
66165         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
66166
66167         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66168
66169         * lib/regcomp.c: Adjust for changed secondary hash function.
66170
66171         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
66172
66173         * lib/regex.h: Pretty printing.
66174         Clean up namespace a bit.
66175
66176         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
66177
66178         * lib/regexec.c (update_cur_sifted_state, check_arrival,
66179         check_arrival_add_next_nodes): Avoid using uninitialized variable.
66180
66181         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66182                     Ulrich Drepper  <drepper@redhat.com>
66183
66184         [BZ #1302]
66185         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
66186         changed.
66187         (bitset_word_t): Renamed from bitset_word.  All uses changed.
66188
66189         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
66190
66191         [BZ #281]
66192         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
66193         * lib/regcomp.c: Remove unnecessary uses of
66194         unsigned RE_TRANSLATE_TYPE.
66195         * lib/regex_internal.h: Likewise.
66196         * lib/regex_internal.c: Likewise.
66197         * lib/regexec.c: Likewise.
66198         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
66199
66200         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
66201
66202         * lib/regexec.c (find_recover_state): Remove unnecessary
66203         initialization.
66204         (transit_state_bkref): Make DFA a const pointer.
66205         (get_subexp): Likewise.
66206         (check_arrival): Likewise.
66207         (update_cur_sifted_state): Likewise.
66208         (re_search_internal): Likewise.
66209         (prune_impossible_nodes): Likewise.
66210         (acquire_init_state_context): Likewise.
66211         (proceed_next_node): Likewise.
66212         (set_regs): Likewise.
66213         (free_fail_stack_return): Likewise.
66214         (check_arrival_expand_ecl): Mark DFA parameter as const.
66215         (check_arrival_expand_ecl_sub): Likewise.
66216         (check_subexp_limits): Likewise.
66217         (sub_epsilon_src_nodes):  Likewise.
66218         (add_epsilon_src_nodes):  Likewise.
66219         (merge_state_array): Likewise.
66220         (update_regs): Likewise.
66221         (build_trtable): Likewise.
66222         (sift_states_backward): Mark MCTX parameter as const.
66223         (build_sifted_states): Likewise.
66224         (update_cur_sifted_state): Likewise.
66225         (sift_states_mkref): Likewise.
66226         (check_arrival_expand_ecl): Mark eclosure as const.
66227         (check_dst_limits_calc_pos_1): Likewise.
66228         * lib/regex_internal.h (re_match_context_t): Make dfa a const
66229         pointer.
66230
66231         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
66232
66233         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
66234         (transit_state_sb): Likewise.
66235         (transit_state_mb): Likewise.
66236         (sift_states_iter_mb): Likewise.
66237         (check_arrival_add_next_nodes): Likewise.
66238         (check_node_accept_bytes): Change first parameter to pointer-to-const.
66239         [_LIBC] (re_search_2_stub): Use mempcpy.
66240
66241         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
66242         mbrtowc for very simple UTF-8 case.
66243
66244         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
66245         a pointer-to-const.
66246         (re_acquire_state_context): Likewise.
66247         * lib/regex_internal.h: Adjust prototypes.
66248
66249         * lib/regex.c: Prevent using C++ compilers.
66250
66251         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
66252         (re_acquire_state_context): Likewise.
66253
66254 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66255
66256         * modules/regex (Depends-on): Add ssize_t.
66257
66258 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66259
66260         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
66261         translation table.
66262
66263 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66264
66265         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
66266
66267 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
66268             Bruno Haible  <bruno@clisp.org>
66269
66270         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
66271         <sys/types.h> and <inttypes.h>.
66272
66273 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66274
66275         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
66276         `__error_t_defined', so argp.h will not typedef the former.
66277
66278 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
66279
66280         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
66281         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
66282         glibc names.  Even if glibc is changed to conform to POSIX, the
66283         traditional names will be available anyway, since regex depends on
66284         the extensions module.  Also, fix a longstanding typo in the
66285         implementation of Spencer ERE test #75 from grep 2.3.  Problems
66286         reported by Emanuele Giaquinta.  Also, change sense of cached
66287         variable, so that the message makes sense.
66288
66289 2006-03-24  Simon Josefsson  <jas@extundo.com>
66290
66291         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
66292         including some doc fixes.
66293         (base64_encode_alloc): Fix +1 bug on allocation failures.
66294
66295 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66296
66297         * lib/base64.c (base64_encode): Do not read past end of array with
66298         unsanitized input on systems with CHAR_BIT > 8.
66299
66300 2006-03-24  Eric Blake  <ebb9@byu.net>
66301
66302         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
66303
66304 2006-03-22  Karl Berry  <karl@gnu.org>
66305
66306         * config/srclist.txt (*setenv.[ch]): get from coreutils.
66307         * config/srclistvars.sh (COREUTILS): new var.
66308
66309 2006-03-17  Jim Meyering  <jim@meyering.net>
66310
66311         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
66312         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
66313
66314 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66315
66316         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
66317         no longer needs it.  Instead, check that regoff_t is as least
66318         as wide as ptrdiff_t.
66319
66320         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
66321         so that our regex.h stays compatible with the installed regex.
66322         This is helpful for installers who configure --without-included-regex.
66323         Problem reported by Emanuele Giaquinta.
66324
66325 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66326
66327         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
66328         Typedef to long int, not to off_, as POSIX will likely change
66329         in that direction.
66330
66331 2006-03-15  Eric Blake  <ebb9@byu.net>
66332
66333         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
66334
66335 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
66336
66337         * lib/argp-help.c (validate_uparams): Fix typo
66338         * lib/argp-parse.c (argp_default_options): Consistently begin help
66339         messages with a lowercase letter.
66340
66341 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
66342
66343         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
66344         overrun buffers and shouldn't be used (much as gets shouldn't be
66345         used).
66346         * lib/time_r.c (asctime_r, ctime_r): Likewise.
66347
66348 2006-03-08  Simon Josefsson  <jas@extundo.com>
66349
66350         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
66351         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66352
66353 2006-03-08  Simon Josefsson  <jas@extundo.com>
66354
66355         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
66356         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66357
66358 2006-03-08  Simon Josefsson  <jas@extundo.com>
66359
66360         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
66361         signal that configure disabled the device.
66362
66363 2006-03-08  Simon Josefsson  <jas@extundo.com>
66364
66365         * build-aux/maint.mk: Fix refresh-po, to handle no translated
66366         languages.
66367
66368 2006-03-07  Simon Josefsson  <jas@extundo.com>
66369
66370         * modules/getopt (Depends-on): Add unistd.
66371
66372         * modules/unistd: New file.
66373
66374 2006-03-07  Simon Josefsson  <jas@extundo.com>
66375
66376         * modules/gc-random: New file.
66377
66378 2006-03-07  Simon Josefsson  <jas@extundo.com>
66379
66380         * m4/unistd_h.m4: New file.
66381
66382 2006-03-07  Simon Josefsson  <jas@extundo.com>
66383
66384         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
66385         test to be side-effect free by storing the result in the cache
66386         variable gl_cv_lib_readline, and moving the assignment of
66387         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
66388         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66389
66390 2006-03-07  Simon Josefsson  <jas@extundo.com>
66391
66392         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
66393         error on missing devices (the functions will return an error).
66394
66395         * m4/gc.m4: Move random stuff to gc-random.m4
66396
66397 2006-03-07  Simon Josefsson  <jas@extundo.com>
66398
66399         * lib/unistd_.h: New file.
66400
66401 2006-03-07  Simon Josefsson  <jas@extundo.com>
66402
66403         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
66404
66405 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66406
66407         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
66408         Problem reported by Juan Manuel Guerrero.
66409
66410 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66411
66412         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
66413         the unistd module.
66414         * lib/getlogin_r.c: Likewise.
66415         * lib/getlogin_r.h: Likewise.
66416         * lib/glob.c: Likewise.
66417         * lib/pagealign_alloc.c: Likewise.
66418         * lib/unistd_.h: Remove; no longer needed.
66419
66420 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66421
66422         * MODULES.html.sh (Support for systems lacking POSIX:2001):
66423         Add unistd.
66424         * modules/c-stack (Depends-on): Add unistd.
66425         * modules/getlogin_r: Likewise.
66426         * modules/glob: Likewise.
66427         * modules/pagealign_alloc: Likewise.
66428         * modules/unistd (Files): Remove lib/unistd_.h.
66429         (EXTRA_DIST): Remove.
66430         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
66431         need unistd_.h.
66432         (MOSTLYCLEANFILES): Remove unistd.h-t.
66433
66434 2006-03-03  Simon Josefsson  <jas@extundo.com>
66435
66436         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
66437
66438 2006-03-03  Simon Josefsson  <jas@extundo.com>
66439
66440         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
66441         libidn and bison.
66442
66443 2006-03-03  Simon Josefsson  <jas@extundo.com>
66444
66445         * build-aux/maint.mk: Add indent target.
66446
66447 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
66448
66449         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
66450         our replacement poll.h in any case, to avoid a differing
66451         declaration from a system header.  Seen on AIX.
66452
66453 2006-03-01  Simon Josefsson  <jas@extundo.com>
66454
66455         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
66456         <kasal@ucw.cz>.
66457
66458 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66459
66460         * modules/gettime (Depends-on): Add extensions module.
66461         * modules/nanosleep (Depends-on): Likewise.
66462         * modules/settime (Depends-on): Likewise.
66463
66464 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66465
66466         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
66467         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
66468         pedantically.
66469         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66470         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
66471
66472         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
66473         not "==".  Reported by Ralf Wildenhues.
66474
66475 2006-03-01  Karl Berry  <karl@gnu.org>
66476
66477         * doc/Copyright/request-*: new files, synced from gnuorg.
66478
66479 2006-03-01  Karl Berry  <karl@gnu.org>
66480
66481         * config/srclist.txt (Copyright/*): new entries.
66482
66483 2006-02-28  Simon Josefsson  <jas@extundo.com>
66484
66485         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
66486
66487 2006-02-27  Simon Josefsson  <jas@extundo.com>
66488
66489         * lib/base64.h: Indent #define's.  From Jim Meyering
66490         <jim@meyering.net>.
66491
66492 2006-02-27  Jim Meyering  <jim@meyering.net>
66493
66494         Revert the change of 2006-02-24, so these files can continue
66495         to be sync'd from gettext.
66496         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
66497         of `config.h'.
66498
66499 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
66500
66501         * modules/intprops: New file.
66502         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66503         Add intprops.
66504         * modules/getloadavg (Files): Remove lib/intprops.h.
66505         (Depends-on): Add intprops.
66506         * modules/human: Likewise.
66507         * modules/inttostr: Likewise.
66508         * modules/openat: Likewise.
66509         * modules/sig2str: Likewise.
66510         * modules/userspec: Likewise.
66511         * modules/utimecmp: Likewise.
66512         * modules/xnanosleep: Likewise.
66513         * modules/xstrtol: Likewise.
66514
66515 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
66516
66517         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
66518         * modules/lock-tests (TESTS): Use $(EXEEXT).
66519         * modules/tls-tests: Likewise.
66520         * modules/argp-tests: Likewise.
66521         (check_PROGRAMS): New var, replacing...
66522         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
66523
66524 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66525
66526         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
66527         `config.h'.
66528
66529 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
66530
66531         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
66532
66533 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66534
66535         Sync from coreutils.
66536         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
66537         gl_CHDIR_SAFER.
66538
66539 2006-02-22  Jim Meyering  <jim@meyering.net>
66540
66541         Sync from coreutils.
66542         * m4/chdir-safer.m4: New file.
66543
66544 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
66545
66546         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
66547         AT_FDCWD exceeds INT_MAX.
66548         * lib/openat.h (AT_FDCWD): Likewise.
66549
66550 2006-02-17  Eric Blake  <address@hidden>
66551
66552         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
66553
66554 2006-02-16  Simon Josefsson  <jas@extundo.com>
66555
66556         * modules/getaddrinfo (Depends-on): Add sys_socket.
66557
66558 2006-02-15  Simon Josefsson  <jas@extundo.com>
66559
66560         * build-aux/maint.mk: Add dsyntax-check rule.
66561
66562 2006-02-15  Eric Blake  <ebb9@byu.net>
66563
66564         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
66565         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
66566         'present but cannot compile' warnings on cygwin.
66567         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
66568         use ws2tcpip.h if sys/socket.h works.
66569         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
66570         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
66571
66572 2006-02-14  Simon Josefsson  <jas@extundo.com>
66573
66574         * modules/maintainer-makefile (Files): Rename.
66575
66576         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
66577         and (the local) Makefile.cfg to maint-cfg.mk.
66578
66579         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
66580         to the latter.
66581
66582         * modules/maintainer-makefile: New module.
66583
66584         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
66585         severaly stripped to make it possible to build it up from scratch
66586         with reliable tests.
66587
66588         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
66589         fixes to permit overriding the default actions when configure and
66590         makefile are not available.
66591
66592 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
66593
66594         Sync from coreutils.
66595         * modules/lstat (Depends-on): Don't depend on xalloc.
66596         (License): Change from GPL to LGPL, since this is now simply a
66597         replacement for a libc function.
66598
66599 2006-02-14  Jim Meyering  <jim@meyering.net>
66600
66601         Sync from coreutils.
66602
66603         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
66604         failure on deficient systems, and simplify gnulib lgpl dependencies.
66605         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
66606         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
66607
66608         * lib/xalloc-die.c: Remove unused definition of N_.
66609
66610 2006-02-14  Jim Meyering  <jim@meyering.net>
66611
66612         Sync from coreutils.
66613         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
66614         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
66615         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
66616         double-quote uses of that variable, to accommodate the rare case in
66617         which getmntent is available in none of the libraries checked.  This
66618         happens at least on FreeBSD 5.0.
66619
66620 2006-02-13  Simon Josefsson  <jas@extundo.com>
66621
66622         * gnulib-tool (Usage): Fix --import, from
66623         karl@freefriends.org (Karl Berry).
66624
66625 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
66626
66627         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
66628
66629 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
66630
66631         * lib/argp-namefrob.h: Restore changes accidentally lost during the
66632         "autoupdate" on 2005-12-12.
66633
66634 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
66635
66636         * modules/closeout (Depends-on): Remove atexit.
66637
66638 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
66639
66640         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
66641         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
66642
66643 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
66644
66645         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
66646         __EXTENSIONS__ if this causes compilation to fail.  Problem
66647         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
66648         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
66649
66650 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
66651
66652         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
66653         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
66654         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
66655         All uses changed.
66656
66657 2006-01-26  Simon Josefsson  <jas@extundo.com>
66658
66659         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
66660         prototype is visible on mingw32.
66661
66662         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
66663         for mingw32.
66664
66665         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
66666         mingw32).
66667
66668 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
66669
66670         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
66671         attempt to open for write; this always fails, at least on POSIX
66672         hosts.  This reinstates the 2006-01-09 change, which was
66673         inadvertently removed.
66674
66675 2006-01-26  Bruno Haible  <bruno@clisp.org>
66676
66677         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
66678         Reported by Paul Eggert.
66679
66680 2006-01-26  Bruno Haible  <bruno@clisp.org>
66681             Paul Eggert  <eggert@cs.ucla.edu>
66682
66683         * lib/stdbool_.h (_Bool)
66684         [(! (defined __cplusplus || defined __BEOS__)
66685           && !defined __GNUC__
66686           && !(defined __HP_cc || defined __xlc__
66687                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
66688                || defined __sgi))]:
66689         #define to signed char in these cases too; this simplifies
66690         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
66691         etc., separately) and makes it more conservative.
66692
66693 2006-01-25  Simon Josefsson  <jas@extundo.com>
66694
66695         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
66696         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
66697         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
66698
66699 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66700
66701         * lib/argp-namefrob.h: Bugfix. Remove stray #
66702
66703 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
66704
66705         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
66706         so that we test the test.
66707         Check for yet another HP-UX cc bug involving *bool |= bool.
66708
66709 2006-01-25  Karl Berry  <karl@gnu.org>
66710
66711         * config/srclist.txt (vasnprintf.c): sync lost.
66712
66713 2006-01-25  Jim Meyering  <jim@meyering.net>
66714
66715         Sync from the stable (b5) branch of coreutils:
66716
66717         * lib/fts.c (fts_children): Don't let close() clobber errno from
66718         failed fchdir().
66719
66720         * lib/fts.c (fts_stat): When following a symlink-to-directory,
66721         don't necessarily interpret stat-fails+lstat-succeeds as indicating
66722         a dangling symlink.  That can also happen at least for ELOOP.
66723         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
66724         FYI, this bug predates the inclusion of fts.c in coreutils.
66725
66726         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
66727         in their own block, so pre-c99 compilers don't object.
66728
66729         Avoid the double-free (first in fts_read, second in fts_close) that
66730         would occur when an `active' directory is made inaccessible (e.g.,
66731         via chmod a-x) during a traversal.
66732         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
66733         before returning.  Reproduce this failure by
66734         mkdir -p a/b; cd a; chmod a-x . b
66735         Reported by Stavros Passas.
66736
66737 2006-01-25  Jim Meyering  <jim@meyering.net>
66738
66739         * lib/fileblocks.c: Remove more useless parentheses.
66740         * lib/readutmp.h: Likewise.
66741
66742 2006-01-25  Bruno Haible  <bruno@clisp.org>
66743
66744         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
66745         warnings.
66746         Reported by Paul Eggert.
66747
66748 2006-01-25  Bruno Haible  <bruno@clisp.org>
66749
66750         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
66751         rid of a trap command. For Solaris sh.
66752         Reported by Mark D. Baushke <mdb@gnu.org>.
66753
66754 2006-01-24  Simon Josefsson  <jas@extundo.com>
66755
66756         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
66757         Bruno.
66758
66759 2006-01-24  Karl Berry  <karl@gnu.org>
66760
66761         * config/srclist.txt (argp-namefrob.h): sync lost.
66762
66763 2006-01-24  Jim Meyering  <jim@meyering.net>
66764
66765         * modules/openat (Files): Add lib/intprops.h.
66766         From Mark D. Baushke.
66767
66768 2006-01-24  Jim Meyering  <jim@meyering.net>
66769
66770         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
66771         Reported by Mark D. Baushke.
66772
66773 2006-01-24  Jim Meyering  <jim@meyering.net>
66774
66775         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
66776
66777 2006-01-24  Bruno Haible  <bruno@clisp.org>
66778
66779         * modules/strnlen (Maintainer): Change from glibc to all.
66780
66781 2006-01-24  Bruno Haible  <bruno@clisp.org>
66782
66783         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
66784         Patch by Paul Eggert.
66785
66786 2006-01-24  Bruno Haible  <bruno@clisp.org>
66787
66788         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
66789         already has it.
66790         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
66791         2005-11-26.
66792
66793         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
66794         'signed char' to avoid problems with the built-in _Bool type.
66795         Reported by Paul Eggert on 2005-11-26.
66796
66797 2006-01-24  Bruno Haible  <bruno@clisp.org>
66798
66799         * gnulib-tool (func_import): Avoid constructing complicated sed
66800         expressions inside backquote.
66801         Report and solution by Mark D. Baushke <mdb@gnu.org>.
66802
66803 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
66804
66805         These changes imported from libc.
66806         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
66807         test and two separate function calls.
66808         * lib/strndup.c (__strndup): Add libc_hidden_def.
66809
66810 2006-01-23  Simon Josefsson  <jas@extundo.com>
66811
66812         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
66813         Remove the test_*_SOURCES variable: automake infers it by default.
66814         * modules/tls-tests: Likewise.
66815
66816 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66817
66818         Work around porting bugs reported by Dieter in
66819         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
66820         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
66821         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
66822         Include "getopt.h" first, to check interface.
66823         (getenv): Declare only if defined HAVE_DECL_GETENV &&
66824         !HAVE_DECL_GETENV.
66825         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
66826         (__strndup): Revert to K&R-style function dfns, the glibc style.
66827         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
66828         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
66829         Include strnlen.h first, to get prototype properly.
66830         (strnlen): Renamed from __strnlen.
66831         Remove weak alias.
66832
66833 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66834
66835         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
66836
66837 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66838
66839         * config/srclist.txt: Adjust to reflect glibc reorganization.
66840         This affects only comments.
66841
66842 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66843
66844          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
66845          Reported by Bruce Korb <bkorb@gnu.org>.
66846
66847 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
66848
66849         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
66850         to pacify gcc -Wswitch-default.
66851
66852 2006-01-22  Bruno Haible  <bruno@clisp.org>
66853
66854         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
66855         temporary buffer for sprintf, take into account the precision also
66856         for 'd', 'i', 'u', 'o', 'x', 'X'.
66857
66858 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
66859
66860         * modules/argp-tests: New module
66861         * tests/test-argp.c: New file
66862         * tests/test-argp-2.sh: New file
66863
66864 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
66865
66866         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
66867         (__argp_base_name): Removed
66868         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
66869         typo.
66870         (__argp_base_name): Provide macro definition or extern declaration
66871         depending on the configuration
66872
66873 2006-01-20  Simon Josefsson  <jas@extundo.com>
66874
66875         * modules/inet_ntop (Depends-on): Depend on sys_socket.
66876
66877 2006-01-20  Simon Josefsson  <jas@extundo.com>
66878
66879         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
66880
66881 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66882
66883         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
66884         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
66885         Suggested by Bruno Haible.
66886
66887 2006-01-20  Karl Berry  <karl@gnu.org>
66888
66889         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
66890         until changes propagate, I guess.
66891
66892 2006-01-19  Simon Josefsson  <jas@extundo.com>
66893
66894         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
66895
66896 2006-01-19  Simon Josefsson  <jas@extundo.com>
66897
66898         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
66899
66900 2006-01-19  Simon Josefsson  <jas@extundo.com>
66901
66902         * gnulib-tool: Set check_PROGRAMS.
66903
66904         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
66905         modules/des-tests, modules/gc-arcfour-tests,
66906         modules/gc-arctwo-tests, modules/gc-des-tests,
66907         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
66908         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
66909         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
66910         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
66911         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
66912         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
66913         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
66914         test_*_SOURCES.
66915
66916 2006-01-18  Simon Josefsson  <jas@extundo.com>
66917
66918         * modules/socklen (Depends-on): Depend on sys_socket.
66919
66920 2006-01-18  Simon Josefsson  <jas@extundo.com>
66921
66922         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
66923         modules/des-tests, modules/gc-arcfour-tests,
66924         modules/gc-arctwo-tests, modules/gc-des-tests,
66925         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
66926         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
66927         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
66928         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
66929         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
66930         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
66931         $(EXEEXT) to automake TESTS variable, for mingw32.
66932
66933 2006-01-17  Simon Josefsson  <jas@extundo.com>
66934
66935         * modules/socklen (Include): Need sys/socket.h.
66936
66937 2006-01-17  Bruno Haible  <bruno@clisp.org>
66938
66939         * modules/ssize_t (Include): Add <sys/types.h>.
66940
66941 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
66942
66943         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
66944         it's not portable and it doesn't work with cross-compiles.
66945         Problem reported by Bruno Haible.  Fix missing-$ typo in
66946         'test "gl_cv_ignore_unused_libraries" ...' that prevented
66947         -zignore from being used with Sun's C compiler.
66948
66949 2006-01-12  Simon Josefsson  <jas@extundo.com>
66950
66951         * lib/base64.c: Fix warning, reported by Bruno Haible
66952         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
66953
66954 2006-01-12  Bruno Haible  <bruno@clisp.org>
66955
66956         * modules/ldd: New file.
66957         * build-aux/ldd.sh.in: New file.
66958         * MODULES.html.sh (Support for building libraries and executables): Add
66959         ldd.
66960
66961 2006-01-12  Bruno Haible  <bruno@clisp.org>
66962
66963         * m4/ldd.m4: New file.
66964
66965 2006-01-12  Bruno Haible  <bruno@clisp.org>
66966
66967         * gnulib-tool (func_import, func_create_testdir): Don't go into an
66968         endless loop while replacing $auxdir with build-aux.
66969
66970 2006-01-11  Simon Josefsson  <jas@extundo.com>
66971
66972         * lib/stdint_.h (SIZE_MAX): Add missing (.
66973
66974 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
66975
66976         Sync from coreutils.
66977         * lib/md5.c: Fix commentary typos.
66978         (alignof, UNALIGNED_P): No need for a GCC-specific version.
66979         * lib/md5.h (__attribute__): Remove; unused.
66980         * lib/sha1.c: Fix commentary to match md5 better.
66981         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
66982         so that we don't need to worry about alignment.  All uses changed.
66983         This merges the 2005-10-28 md5 change into sha1.
66984
66985 2006-01-11  Jim Meyering  <jim@meyering.net>
66986
66987         Sync from coreutils.
66988         * lib/md5.c (OP): Fix spacing.
66989
66990 2006-01-11  Bruno Haible  <bruno@clisp.org>
66991
66992         Ensure automatic ordering between gl_LOCK and gl_ARGP.
66993         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
66994         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
66995
66996 2006-01-11  Bruno Haible  <bruno@clisp.org>
66997
66998         Ensure automatic ordering between gl_LOCK and gl_ARGP.
66999         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
67000         the "early" section as well.
67001
67002 2006-01-11  Bruno Haible  <bruno@clisp.org>
67003
67004         Avoid "ar: no archive members specified" error on MacOS X.
67005         * gnulib-tool (func_modules_add_dummy): New function.
67006         (func_import, func_create_testdir): Invoke it.
67007
67008 2006-01-11  Bruno Haible  <bruno@clisp.org>
67009
67010         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
67011         with $auxdir in AC_CONFIG_FILES statements.
67012
67013 2006-01-11  Bruno Haible  <bruno@clisp.org>
67014
67015         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67016         Initialize also noinst_HEADERS to empty.
67017
67018 2006-01-11  Bruno Haible  <bruno@clisp.org>
67019
67020         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
67021         variables.
67022         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
67023         autoreconf.
67024
67025 2006-01-11  Bruno Haible  <bruno@clisp.org>
67026
67027         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
67028         overridable by the user.
67029         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67030
67031 2006-01-10  Simon Josefsson  <jas@extundo.com>
67032
67033         * modules/sys_socket: New file.
67034
67035 2006-01-10  Simon Josefsson  <jas@extundo.com>
67036
67037         * m4/sys_socket_h.m4: New file.
67038
67039 2006-01-10  Simon Josefsson  <jas@extundo.com>
67040
67041         * lib/socket_.h: New file.
67042
67043 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67044
67045         * modules/readutmp (Maintainer): Add myself.
67046
67047 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67048
67049         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
67050         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
67051         People who are still concerned with buggy memcmp implementations
67052         can invoke gl_FUNC_MEMCMP themselves.
67053
67054 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67055
67056         * lib/regex_internal.h (BITSET_WORD_BITS):
67057         Work around a bug in 64-bit PGC (before version 6.1-2), where the
67058         preprocessor mishandles large unsigned values as if they were signed.
67059         Problem reported by Claudio Fontana in
67060         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
67061
67062 2006-01-10  Jim Meyering  <jim@meyering.net>
67063
67064         Avoid the double-free (first in fts_read, second in fts_close) that
67065         would occur when an `active' directory is made inaccessible (e.g.,
67066         via chmod a-x) during a traversal.
67067         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67068         before returning.  Reproduce this failure by
67069         mkdir -p a/b; cd a; chmod a-x . b
67070         Reported by Stavros Passas.
67071
67072         Sync from coreutils.
67073         * lib/sha1.c: Tweak grammar in a comment.
67074
67075 2006-01-10  Jim Meyering  <jim@meyering.net>
67076
67077         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
67078         Patch by Joerg Sonnenberger.
67079
67080 2006-01-10  Bruno Haible  <bruno@clisp.org>
67081
67082         * modules/readutmp: Depend on module free.
67083         * modules/strtok_r: Depend on module restrict.
67084
67085 2006-01-10  Bruno Haible  <bruno@clisp.org>
67086
67087         * modules/gettext (configure.ac): Add an invocation of
67088         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
67089
67090 2006-01-10  Bruno Haible  <bruno@clisp.org>
67091
67092         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
67093         Reported by Werner Lemberg <wl@gnu.org>.
67094
67095 2006-01-10  Bruno Haible  <bruno@clisp.org>
67096
67097         * lib/localcharset.c: Update from GNU gettext.
67098
67099 2006-01-10  Bruno Haible  <bruno@clisp.org>
67100
67101         * lib/argp.h (__const): Remove macro. Use const instead.
67102         * lib/argp-fmtstream.h (__const): Likewise.
67103         * lib/glob_.h (__const): Remove macro.
67104         * lib/glob-libc.h: Use const instead of __const.
67105
67106 2006-01-10  Bruno Haible  <bruno@clisp.org>
67107
67108         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
67109         variable.
67110         Needed to avoid an automake error regarding the 'gettext' module.
67111
67112 2006-01-09  Simon Josefsson  <jas@extundo.com>
67113
67114         * modules/inet_ntop (Depends-on): Add restrict.
67115
67116 2006-01-09  Simon Josefsson  <jas@extundo.com>
67117
67118         * modules/gc-rijndael-tests (License): Put under LGPL.
67119
67120         * modules/gc-des-tests (License): Likewise.
67121
67122         * modules/gc-arcfour-tests (License): Likewise.
67123
67124         * modules/gc-arctwo-tests (License): Likewise.
67125
67126         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
67127
67128         * modules/gc-hmac-sha1-tests (Files): Likewise.
67129
67130         * modules/gc-hmac-md5-tests (License): Likewise.
67131
67132         * modules/gc-sha1-tests (License): Likewise.
67133
67134         * modules/gc-md5-tests (License): Likewise.
67135
67136         * modules/gc-md4-tests (License): Likewise.
67137
67138         * modules/gc-md2-tests (License): Likewise.
67139
67140         * modules/gc-tests (License): Likewise.
67141
67142         * modules/des-tests (License): Likewise.
67143
67144         * modules/md4-tests (License): Likewise.
67145
67146         * modules/md2-tests (License): Likewise.
67147
67148 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67149
67150         Sync from coreutils:
67151
67152         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
67153         * modules/lib-ignore: New file.
67154         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
67155         chdir-safer.m4, lchmod.m4.
67156         * modules/openat: Add mkdirat.c, openat-priv.h.
67157
67158 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67159
67160         Sync from coreutils.
67161         * m4/lib-ignore.m4: New file.
67162         * m4/lchmod.m4: New file.
67163
67164 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67165
67166         Sync from coreutils.
67167         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
67168         for write access: POSIX says that must fail.
67169         * lib/fts.c (diropen): Likewise.
67170         * lib/save-cwd.c (save_cwd): Likewise.
67171         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
67172         well, for minor improvements on hosts that lack O_DIRECTORY.
67173         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
67174         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
67175         Fall back on chown if open failed with EACCES.
67176
67177         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
67178         Report an error at compile-time if only a 1-second nominal clock
67179         resolution is found.
67180
67181         * lib/lchmod.h: New file.
67182         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
67183         (make_dir_parents): Use lchown rather than chown, and
67184         lchmod rather than chmod.
67185
67186         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
67187         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
67188         "proc" reported by n0dalus.
67189
67190         * lib/mountlist.c: Include <limits.h>.
67191         (dev_from_mount_options)
67192         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
67193         New function.  It no longer assumes "dev=" has the System V meaning
67194         on Linux (since it doesn't).  It also parses "dev=" more carefully.
67195         (read_file_system_list)
67196         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
67197         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
67198         dev= in that case.
67199
67200         * lib/posixtm.h (PDS_PRE_2000): New macro.
67201         * lib/posixtm.c (year): Arg is now syntax_bits rather than
67202         allow_century.  All usages changed.  Reject dates outside the range
67203         1969-1999 if PDS_PRE_2000 is used.
67204
67205 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67206
67207         Sync from coreutils.
67208         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
67209         (Time of day items): Mention the possibility of leap seconds.
67210         Problem reported by Dr. David Alan Gilbert.
67211
67212 2006-01-09  Jim Meyering  <jim@meyering.net>
67213
67214         Sync from coreutils.
67215
67216         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
67217
67218         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
67219
67220         * lib/modechange.c (mode_compile): Reject an invalid mode string
67221         that starts with an octal digit.  From Andreas Gruenbacher.
67222
67223         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
67224         and dup to open_safer and dup_safer, respectively.
67225         (openat_permissive): Fix typo in comment.
67226
67227         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
67228         "gettext.h"; either no longer needed or are guaranteed by openat.h.
67229         (_): Remove; no longer needed.
67230         (openat): Renamed from rpl_openat; no need for rpl_openat
67231         since openat.h renames openat for us.
67232         Replace most of the body with a call to openat_permissive,
67233         to avoid duplicate code.
67234         Port to (probably hypothetical) environments were mode_t is
67235         wider than int.
67236         (openat_permissive): Require mode arg, so that we can check
67237         types better.  Put it just after flags.  Change cwd failure
67238         indicator from pointer-to-bool to pointer-to-errno-value.
67239         All callers changed.
67240         Invoke openat_save_fail and/or openat_restore_fail if
67241         cwd_errno is null, so that openat can call us.
67242         (openat_permissive, fdopendir, fstatat, unlinkat):
67243         Simplify errno handling to avoid some duplicate code,
67244         as it's OK to set errno on success.
67245         * lib/openat.h: Revamp code so that function macros depend on
67246         __OPENAT_PREFIX only, not also on AT_FDCWD.
67247         (openat_ro): Remove.  Caller changed to use openat_permissive.
67248         (openat_permissive): Now a macro, if not a function.
67249         (openat_restore_fail, openat_save_fail): Now always functions,
67250         since mkdirat needs them even if __OPENAT_PREFIX is defined.
67251
67252         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
67253         and openat.c.
67254         * lib/mkdirat.c: Include openat-priv.h.
67255         Remove definitions of macros defined therein.
67256         * lib/openat.c: Likewise.
67257
67258         * lib/mkdirat.c (mkdirat): New file and function.
67259         * lib/openat.h (mkdirat): Declare.
67260
67261         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
67262
67263         * lib/openat.h (openat_permissive): Declare.
67264         (openat_ro): Define.
67265
67266         * lib/openat.c (EXPECTED_ERRNO): New macro.
67267         (openat_permissive): New function -- used in remove.c rewrite.
67268         (all functions): Set errno just before returning, only if there
67269         was an actual failure.
67270         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
67271
67272         Emulate openat-family functions using Linux's procfs, if possible.
67273         Idea and some code based on Ulrich Drepper's glibc changes.
67274
67275         * lib/openat.c: (BUILD_PROC_NAME): New macro.
67276         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
67277         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
67278         before falling back on save_cwd and restore_cwd.
67279         (fdopendir, fstatat, unlinkat): Likewise.
67280
67281         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
67282         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
67283
67284         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
67285         as second argument to va_arg.  Otherwise, some versions of gcc
67286         warn that `if this code is reached, the program will abort'.
67287
67288 2006-01-09  Jim Meyering  <jim@meyering.net>
67289
67290         Sync from coreutils.
67291         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
67292         Require openat-priv.h.
67293
67294 2006-01-09  Bruno Haible  <bruno@clisp.org>
67295
67296         * modules/strnlen (Include): Use strnlen.h.
67297
67298 2006-01-09  Bruno Haible  <bruno@clisp.org>
67299
67300         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
67301
67302 2006-01-09  Bruno Haible  <bruno@clisp.org>
67303
67304         * lib/sysexit_.h (EX_OK): New macro.
67305         Suggested by Martin Lambers <marlam@marlam.de>.
67306
67307 2006-01-09  Bruno Haible  <bruno@clisp.org>
67308
67309         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
67310         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
67311
67312 2006-01-09  Bruno Haible  <bruno@clisp.org>
67313
67314         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
67315         numbers.
67316
67317 2006-01-09  Bruno Haible  <bruno@clisp.org>
67318
67319         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
67320         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
67321         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
67322         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
67323
67324 2006-01-09  Bruno Haible  <bruno@clisp.org>
67325
67326         * build-aux/javacomp.sh.in: New file, moved from lib/.
67327         * modules/javacomp-script (Files): Update.
67328         (configure.ac): Add AC_CONFIG_FILES invocation.
67329         (EXTRA_DIST): Remove variable.
67330
67331         * build-aux/javaexec.sh.in: New file, moved from lib/.
67332         * modules/javaexec (Files): Update.
67333         (configure.ac): Add AC_CONFIG_FILES invocation.
67334         (EXTRA_DIST): Remove javaexec.sh.in.
67335
67336         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
67337         * modules/csharpcomp-script (Files): Update.
67338         (configure.ac): Add AC_CONFIG_FILES invocation.
67339         (EXTRA_DIST): Remove variable.
67340
67341         * build-aux/csharpexec.sh.in: New file, moved from lib/.
67342         * modules/csharpexec (Files): Update.
67343         (configure.ac): Add AC_CONFIG_FILES invocation.
67344         (EXTRA_DIST): Remove csharpexec.sh.in.
67345
67346 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67347
67348         Sync from coreutils.
67349
67350         Add POSIX ACL support
67351         * lib/acl.h (copy_acl, set_acl): Add declarations.
67352         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
67353         systems other than Linux.
67354         (chmod_or_fchmod): New function: use fchmod when possible,
67355         and chmod otherwise.
67356         (file_has_acl): Add a POSIX ACL implementation, with a
67357         Linux-specific subcase.
67358         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
67359         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
67360         acls are unsupported.
67361         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
67362         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
67363         are unsupported.
67364
67365 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67366
67367         Sync from coreutils.
67368         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
67369
67370 2006-01-07  Bruno Haible  <bruno@clisp.org>
67371
67372         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
67373         gl_EARLY.
67374
67375 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67376
67377         * lib/strftime.c (tzname): Don't declare if it is already #defined.
67378         Problem reported for Mingw by Mark Junker.
67379
67380 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67381
67382         * README: Gnulib normally doesn't generate a tarball.
67383
67384 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
67385
67386         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
67387         long int, not int, for nanosecond counts, so that people who are
67388         used to POSIX struct timespec won't be surprised.  Reported by Jim
67389         Meyering.
67390
67391 2005-12-28  Bruno Haible  <bruno@clisp.org>
67392
67393         * build-aux/config.rpath: Update from GNU gettext.
67394
67395 2005-12-16  Jim Meyering  <jim@meyering.net>
67396
67397         * modules/fprintftime: New module.
67398         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
67399
67400 2005-12-16  Jim Meyering  <jim@meyering.net>
67401
67402         * m4/fprintftime.m4: New file.
67403
67404 2005-12-16  Jim Meyering  <jim@meyering.net>
67405
67406         * lib/fprintftime.c, lib/fprintftime.h: New files.
67407
67408 2005-12-15  Simon Josefsson  <jas@extundo.com>
67409
67410         * modules/socklen (configure.ac): Fix M4 macro name, to align with
67411         new m4/socklen.m4.
67412
67413 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67414
67415         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
67416         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
67417
67418 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67419
67420         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
67421         * lib/argp-help.c (fill_in_uparams): Check if the constructed
67422         struct uparams is valid. Fall back to the default values if it is
67423         not.
67424
67425 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67426
67427         * modules/argp (Files): Add argp-pin.c
67428         (Depends-on): dirname
67429         (lib_SOURCES): Add argp-pin.c
67430
67431 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67432
67433         * m4/argp.m4:  Check if program_invocation_name and
67434         program_invocation_short_name are declared and define appropriate
67435         macros if they are not.
67436
67437 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67438
67439         * lib/argp-help.c (__argp_base_name): New function
67440         (__argp_short_program_name): Rewrite using __argp_base_name
67441         * lib/argp-namefrob.h: Define program_invocation_name and
67442         program_invocation_short_name if requested
67443         (__argp_base_name): Add prototype
67444         * lib/argp-parse.c (argp_def): Use gettext wrappers
67445         (argp_default_parser): Use __argp_base_name
67446         * lib/argp-pin.c: New file. Defines program_invocation_name and
67447         program_invocation_short_name on systems that lack them.
67448
67449 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67450
67451         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
67452         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
67453         porting problem reported by Georg Schwarz in
67454         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
67455
67456 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67457
67458         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
67459         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
67460         porting problem reported by Georg Schwarz in
67461         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
67462
67463 2005-12-05  Bruno Haible  <bruno@clisp.org>
67464
67465         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
67466         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
67467         Reported by Mark Junker <mjscod@gmx.de>.
67468
67469 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
67470
67471         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
67472         Use implementation from Albert Chin, with some
67473         comments/corrections by Stepan Kasal and myself.
67474
67475 2005-12-02  Bruno Haible  <bruno@clisp.org>
67476
67477         * gnulib-tool (func_import): Accept GPLed build tool modules when
67478         --lgpl is given.
67479         * modules/csharpcomp-script: New file.
67480         * modules/csharpcomp: Depend on it.
67481         * modules/javacomp-script: New file.
67482         * modules/javacomp: Depend on it.
67483         Suggested by Simon Josefsson.
67484
67485 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
67486
67487         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
67488         statement, to work around an HP-UX 10.20 compiler bug reported by
67489         Peter O'Gorman.
67490
67491 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
67492
67493         * modules/savedir (Depends-on): Add openat.
67494
67495 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
67496
67497         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
67498         (uintmax_t) [defined uintmax_t]: Do not declare.
67499         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
67500         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
67501         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
67502         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
67503         sake of portability to weird hosts that C allows (though we don't
67504         know of any practical examples).
67505
67506         * lib/savedir.h (fdsavedir): New decl.
67507         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
67508         contains most of the former guts of savedir.
67509         (savedir): Use savedirstream.
67510         Include "openat.h".
67511
67512 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67513
67514         * modules/obstack (Files): Add m4/ulonglong.m4.
67515         Problem reported by Davide Angelocola.
67516
67517 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
67518
67519         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
67520         coreutils no longer futzes with rounding modes.
67521
67522 2005-11-14  Jim Meyering  <jim@meyering.net>
67523
67524         * lib/mkstemp-safer.c: Include <config.h>, required for possible
67525         replacement of mkstemp.
67526
67527 2005-11-10  Simon Josefsson  <jas@extundo.com>
67528
67529         * lib/readline.c: Remove EOL.
67530
67531 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67532
67533         * modules/gethrxtime (Depends-on): Add gettime.
67534
67535 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67536
67537         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
67538         or gettimeofday; no longer needed.
67539
67540 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67541
67542         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
67543         time business.
67544         (gethrxtime) [! (HAVE_NANOUPTIME
67545         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
67546         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
67547         our own approximation.
67548
67549 2005-11-08  Eric Blake  <ebb9@byu.net>
67550
67551         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
67552
67553 2005-11-08  Eric Blake  <ebb9@byu.net>
67554
67555         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
67556
67557 2005-11-04  Bruno Haible  <bruno@clisp.org>
67558
67559         * gnulib-tool: Implement --update mode.
67560
67561 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
67562
67563         Fix porting problem reported by Theodoros V. Kalamatianos.
67564         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
67565         Don't assume that futimes failing means we must fail.
67566
67567 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
67568
67569         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
67570         variables to suggest the intended function of the PATH_MAX check.
67571
67572 2005-10-30  Kean Johnston  <jkj@sco.com>
67573
67574         Trivial changes to support SCO systems.
67575         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
67576         as PATH_MAX.
67577         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
67578         where __ptr is null when no I/O is pending.
67579
67580 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67581
67582         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
67583         leave errno alone.  Problem reported by Dmitry V. Levin.
67584
67585 2005-10-28  Simon Josefsson  <jas@extundo.com>
67586
67587         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
67588         Test more.
67589
67590         * tests/test-gc-md2.c, tests/test-md2.c: New files.
67591
67592         * modules/md2, modules/md2-tests: New files.
67593
67594 2005-10-28  Simon Josefsson  <jas@extundo.com>
67595
67596         * m4/inet_ntop.m4: More tests.
67597
67598         * m4/gc-md2.m4, md2.m4: New file.
67599
67600 2005-10-28  Simon Josefsson  <jas@extundo.com>
67601
67602         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
67603         "restrict" keywords, as per POSIX.  Protect the function
67604         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
67605         Don't use K&R prototypes.  Check the sprintf return values.
67606         Re-define EAFNOSUPPORT if not present.  Indent.
67607
67608         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
67609         suggested by Bruno Haible <bruno@clisp.org>.
67610
67611         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
67612
67613         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
67614
67615         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
67616         libgcrypt).
67617
67618         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
67619
67620         * lib/md2.h, lib/md2.c: New files.
67621
67622 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
67623
67624         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
67625         errno alone.  Problem reported by Frederic Jolliton.
67626
67627 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
67628
67629         * modules/verify (License): Change from GPL to LGPL.  This is a
67630         tiny module and there are apparently near-equivalents that are
67631         under the BSD license.
67632
67633 2005-10-24  Simon Josefsson  <jas@extundo.com>
67634
67635         * modules/sha1: Relicense to LGPL.
67636
67637 2005-10-24  Simon Josefsson  <jas@extundo.com>
67638
67639         * lib/md4.h: Shrink buffer size, now that we changed the type.
67640
67641 2005-10-23  Simon Josefsson  <jas@extundo.com>
67642
67643         * gnulib-tool (func_import): Fix --tests-base.
67644
67645 2005-10-22  Simon Josefsson  <jas@extundo.com>
67646
67647         * modules/arcfour (Depends-on): Need stdint.
67648
67649 2005-10-22  Simon Josefsson  <jas@extundo.com>
67650
67651         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
67652         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
67653
67654 2005-10-22  Simon Josefsson  <jas@extundo.com>
67655
67656         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
67657         suggested by Bruno Haible <bruno@clisp.org>.
67658
67659 2005-10-22  Simon Josefsson  <jas@extundo.com>
67660
67661         * lib/crc.h: Include stddef.h, for size_t.
67662
67663 2005-10-22  Simon Josefsson  <jas@extundo.com>
67664
67665         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
67666         arcfour_context struct (simplify test vector testing in GNU
67667         Shishi).
67668
67669 2005-10-21  Simon Josefsson  <jas@extundo.com>
67670
67671         * modules/des, modules/des-tests: New files.
67672
67673         * modules/gc-des, modules/gc-des-tests: New files.
67674
67675         * tests/test-des.c, tests/test-gc-des.c: New file.
67676
67677 2005-10-21  Simon Josefsson  <jas@extundo.com>
67678
67679         * modules/arctwo, modules/arctwo-tests: New files.
67680
67681         * tests/test-arctwo.c: New file.
67682
67683         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
67684
67685         * tests/test-gc-arctwo.c: New file.
67686
67687 2005-10-21  Simon Josefsson  <jas@extundo.com>
67688
67689         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
67690         Bruno Haible <bruno@clisp.org>.
67691
67692         * m4/gc-des.m4: New file.
67693
67694 2005-10-21  Simon Josefsson  <jas@extundo.com>
67695
67696         * m4/arctwo.m4: New file.
67697
67698         * m4/gc-arctwo.m4: New file.
67699
67700 2005-10-21  Simon Josefsson  <jas@extundo.com>
67701
67702         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
67703         block.
67704
67705 2005-10-21  Simon Josefsson  <jas@extundo.com>
67706
67707         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
67708         <bruno@clisp.org>.
67709
67710         * lib/hmac-sha1.c (hmac_sha1): Likewise.
67711
67712         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
67713         Bruno Haible <bruno@clisp.org>.
67714
67715         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
67716         <bruno@clisp.org>.
67717
67718 2005-10-21  Simon Josefsson  <jas@extundo.com>
67719
67720         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
67721
67722 2005-10-21  Simon Josefsson  <jas@extundo.com>
67723
67724         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
67725
67726 2005-10-21  Simon Josefsson  <jas@extundo.com>
67727
67728         * lib/des.h, lib/des.c: New files.
67729
67730         * lib/gc-gnulib.c: Support DES.c
67731
67732 2005-10-21  Simon Josefsson  <jas@extundo.com>
67733
67734         * lib/arctwo.h, lib/arctwo.c: New files.
67735
67736         * lib/gc-gnulib.c: Support ARCTWO.
67737
67738 2005-10-21  Simon Josefsson  <jas@extundo.com>
67739
67740         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
67741         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67742
67743 2005-10-21  Simon Josefsson  <jas@extundo.com>
67744
67745         * gnulib-tool (func_import, func_create_testdir): Define automake
67746         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
67747         Makefile.am snippet),
67748         suggested by Bruno Haible <bruno@clisp.org>.
67749
67750         * modules/gc (Makefile.am): Use it.
67751
67752 2005-10-21  Bruno Haible  <bruno@clisp.org>
67753
67754         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
67755         patch.
67756
67757 2005-10-19  Simon Josefsson  <jas@extundo.com>
67758
67759         * tests/test-gc-rijndael.c: New file.
67760
67761         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
67762
67763 2005-10-19  Simon Josefsson  <jas@extundo.com>
67764
67765         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
67766         interface too.
67767
67768 2005-10-19  Simon Josefsson  <jas@extundo.com>
67769
67770         * tests/test-gc-arcfour.c: New file.
67771
67772         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
67773
67774 2005-10-19  Simon Josefsson  <jas@extundo.com>
67775
67776         * modules/gc-md4, modules/gc-md4-tests: New file.
67777
67778         * tests/test-gc-md4.c: New file.
67779
67780 2005-10-19  Simon Josefsson  <jas@extundo.com>
67781
67782         * m4/gc-md4.m4: New file.
67783
67784 2005-10-19  Simon Josefsson  <jas@extundo.com>
67785
67786         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
67787         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
67788         <kasal@ucw.cz>.
67789
67790 2005-10-19  Simon Josefsson  <jas@extundo.com>
67791
67792         * m4/gc-arcfour.m4: New file.
67793
67794         * m4/gc-rijndael.m4: New file.
67795
67796 2005-10-19  Simon Josefsson  <jas@extundo.com>
67797
67798         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
67799
67800 2005-10-19  Simon Josefsson  <jas@extundo.com>
67801
67802         * lib/gc-gnulib.c: Support ARCFOUR.
67803
67804 2005-10-19  Simon Josefsson  <jas@extundo.com>
67805
67806         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
67807         support.
67808
67809         * lib/gc.h: Add ECB enum type.
67810
67811         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
67812
67813 2005-10-18  Simon Josefsson  <jas@extundo.com>
67814
67815         * tests/test-md5.c: New file.
67816
67817         * modules/md5-tests: New file.
67818
67819 2005-10-18  Simon Josefsson  <jas@extundo.com>
67820
67821         * tests/test-md4.c: New file.
67822
67823         * modules/md4, modules/md4-tests: New files.
67824
67825 2005-10-18  Simon Josefsson  <jas@extundo.com>
67826
67827         * m4/md4.m4: New file.
67828
67829 2005-10-18  Simon Josefsson  <jas@extundo.com>
67830
67831         * lib/md4.h, lib/md4.c: New files, based on md5.?.
67832
67833 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
67834
67835         * gnulib-tool (func_create_testdir): Omit the second check whether
67836         BUILT_SOURCES in nonempty.
67837
67838 2005-10-17  Simon Josefsson  <jas@extundo.com>
67839
67840         * tests/test-rijndael.c: New file.
67841
67842 2005-10-17  Simon Josefsson  <jas@extundo.com>
67843
67844         * modules/sha1: Depend on stdint instead of md5.
67845
67846         * modules/md5: Depend on stdint, remove uint32_t.
67847
67848 2005-10-17  Simon Josefsson  <jas@extundo.com>
67849
67850         * modules/gc-sha1-tests: New file.
67851
67852         * tests/test-gc-sha1.c: New file.
67853
67854 2005-10-17  Simon Josefsson  <jas@extundo.com>
67855
67856         * m4/md5.m4: Remove call to uint32_t.m4.
67857
67858 2005-10-17  Simon Josefsson  <jas@extundo.com>
67859
67860         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
67861
67862         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
67863         md5.h.
67864
67865         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
67866
67867         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
67868
67869 2005-10-17  Simon Josefsson  <jas@extundo.com>
67870
67871         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
67872
67873 2005-10-17  Simon Josefsson  <jas@extundo.com>
67874
67875         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
67876
67877 2005-10-17  Simon Josefsson  <jas@extundo.com>
67878
67879         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
67880
67881         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
67882
67883 2005-10-17  Bruno Haible  <bruno@clisp.org>
67884
67885         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
67886         that it can also be used in a test.
67887
67888 2005-10-16  Bruno Haible  <bruno@clisp.org>
67889
67890         * gnulib-tool (func_emit_tests_Makefile_am): Also define
67891         TESTS_ENVIRONMENT, so that individual tests can augment it.
67892
67893         * gnulib-tool (func_create_testdir): Use an intermediate target for
67894         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
67895         macros, like $(ALLOCA_H), which cannot be passed through the command
67896         line.
67897
67898 2005-10-15  Simon Josefsson  <jas@extundo.com>
67899
67900         * modules/rijndael-tests: New file.
67901
67902         * modules/rijndael: New file.
67903
67904 2005-10-15  Simon Josefsson  <jas@extundo.com>
67905
67906         * m4/rijndael.m4: New file.
67907
67908 2005-10-15  Simon Josefsson  <jas@extundo.com>
67909
67910         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
67911
67912         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
67913
67914 2005-10-14  Simon Josefsson  <jas@extundo.com>
67915
67916         * tests/test-arcfour.c: New file.
67917
67918         * modules/arcfour, modules/arcfour-tests: New files.
67919
67920 2005-10-14  Simon Josefsson  <jas@extundo.com>
67921
67922         * m4/arcfour.m4: New file.
67923
67924 2005-10-14  Simon Josefsson  <jas@extundo.com>
67925
67926         * lib/arcfour.h, lib/arcfour.c: New files.
67927
67928 2005-10-14  Roland McGrath  <roland@redhat.com>
67929
67930         Import from libc.  [BZ #1331]
67931         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
67932         macro argument.
67933         Reported by Matej Vela <vela@debian.org>.
67934
67935 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67936
67937         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
67938         include <wchar.h>; no longer needed.
67939
67940 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67941
67942         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
67943
67944 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
67945         and  Ulrich Drepper  <drepper@redhat.com>
67946
67947         Import from libc.
67948         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
67949         instead of inline stream orientation test and two separate
67950         function calls.  Pay no attention to USE_IN_LIBIO.
67951
67952 2005-10-13  Simon Josefsson  <jas@extundo.com>
67953
67954         * modules/gc-hmac-md5-tests: New file.
67955
67956         * tests/test-gc-hmac-sha1.c: New file.
67957
67958         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
67959
67960         * modules/gc-hmac-md5-tests: New file.
67961
67962         * tests/test-gc-md5.c: New file.
67963
67964         * modules/gc-md5-tests: New file.
67965
67966 2005-10-13  Simon Josefsson  <jas@extundo.com>
67967
67968         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
67969         Move memory allocation outside of loop.
67970
67971 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
67972
67973         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
67974         intermediate directory is in a read-only file system.  Problem
67975         reported by Eric Blake.
67976
67977 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
67978
67979         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
67980
67981 2005-10-12  Simon Josefsson  <jas@extundo.com>
67982
67983         * tests/test-hmac-sha1.c: New file.
67984
67985         * modules/hmac-sha1-tests: New file.
67986
67987         * modules/hmac-sha1: New file.
67988
67989 2005-10-12  Simon Josefsson  <jas@extundo.com>
67990
67991         * modules/gc-sha1: New file.
67992
67993 2005-10-12  Simon Josefsson  <jas@extundo.com>
67994
67995         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
67996
67997         * tests/test-gc-pbkdf2-sha1.c: New file.
67998
67999 2005-10-12  Simon Josefsson  <jas@extundo.com>
68000
68001         * modules/gc-md5, modules/gc-hmac-md5: New files.
68002
68003         * modules/gc (Files): Remove md5, memxor and hmac files.
68004
68005 2005-10-12  Simon Josefsson  <jas@extundo.com>
68006
68007         * m4/gc-pbkdf2-sha1.m4: New file.
68008
68009         * m4/gc-hmac-sha1.m4: New file.
68010
68011         * m4/gc-sha1: New file.
68012
68013         * m4/hmac-sha1.m4: New file.
68014
68015 2005-10-12  Simon Josefsson  <jas@extundo.com>
68016
68017         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
68018
68019         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
68020
68021 2005-10-12  Simon Josefsson  <jas@extundo.com>
68022
68023         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
68024         suggested by Bruno Haible <bruno@clisp.org>.
68025
68026 2005-10-12  Simon Josefsson  <jas@extundo.com>
68027
68028         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
68029
68030 2005-10-12  Simon Josefsson  <jas@extundo.com>
68031
68032         * lib/gc-pbkdf2-sha1.c: New file.
68033
68034         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
68035
68036 2005-10-12  Simon Josefsson  <jas@extundo.com>
68037
68038         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
68039
68040         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
68041
68042 2005-10-12  Simon Josefsson  <jas@extundo.com>
68043
68044         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
68045         GC_USE_HMAC_MD5, respectively.
68046
68047         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
68048         (gc_md5): Fix typo.
68049
68050         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
68051
68052         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
68053
68054         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
68055
68056 2005-10-12  Bruno Haible  <bruno@clisp.org>
68057
68058         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
68059         Reported by Stepan Kasal <kasal@ucw.cz>.
68060
68061 2005-10-11  Simon Josefsson  <jas@extundo.com>
68062
68063         * tests/test-crc.c: New file.
68064
68065         * modules/crc, modules/crc-tests: New files.
68066
68067 2005-10-11  Simon Josefsson  <jas@extundo.com>
68068
68069         * m4/crc.m4: New file.
68070
68071 2005-10-11  Simon Josefsson  <jas@extundo.com>
68072
68073         * lib/gc.h: Add gc_hash and gc_hash_buffer.
68074
68075         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
68076
68077         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
68078
68079 2005-10-11  Simon Josefsson  <jas@extundo.com>
68080
68081         * lib/crc.h, lib/crc.c: New files.
68082
68083         * lib/gc.h (gc_hash_buffer): Add doc.
68084
68085 2005-10-11  Bruno Haible  <bruno@clisp.org>
68086
68087         * modules/c-strcasestr: New file.
68088         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
68089
68090 2005-10-11  Bruno Haible  <bruno@clisp.org>
68091
68092         * modules/c-strcase: New file.
68093         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
68094
68095 2005-10-11  Bruno Haible  <bruno@clisp.org>
68096
68097         * lib/strcasecmp.c: Include limits.h.
68098         (strcasecmp): Avoid integer overflow on exotic platforms.
68099         * lib/strncasecmp.c: Include limits.h.
68100         (strncasecmp): Avoid integer overflow on exotic platforms.
68101         Reported by Paul Eggert.
68102
68103 2005-10-11  Bruno Haible  <bruno@clisp.org>
68104
68105         * lib/c-strcasestr.h: New file, from GNU gettext.
68106         * lib/c-strcasestr.c: New file, from GNU gettext.
68107
68108 2005-10-11  Bruno Haible  <bruno@clisp.org>
68109
68110         * lib/c-strcase.h: New file, from GNU gettext.
68111         * lib/c-strcasecmp.c: New file, from GNU gettext.
68112         * lib/c-strncasecmp.c: New file, from GNU gettext.
68113
68114 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68115
68116         * modules/mempcpy (License): GPL -> LGPL.
68117         * modules/strchrnul (License): Likewise.
68118         * modules/sysexits (License): Likewise.
68119
68120 2005-10-08  Simon Josefsson  <jas@extundo.com>
68121
68122         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
68123
68124 2005-10-07  Simon Josefsson  <jas@extundo.com>
68125
68126         * m4/memxor.m4: Remove gl_C_RESTRICT call.
68127
68128 2005-10-06  Simon Josefsson  <jas@extundo.com>
68129
68130         * tests/test-hmac-md5.c: New file.
68131
68132         * modules/hmac-md5-tests: New file.
68133
68134         * modules/hmac-md5: New file.
68135
68136 2005-10-06  Simon Josefsson  <jas@extundo.com>
68137
68138         * m4/hmac-md5.m4: New file.
68139
68140         * m4/memxor.m4: Require gl_C_RESTRICT.
68141
68142 2005-10-06  Simon Josefsson  <jas@extundo.com>
68143
68144         * lib/memxor.c (memxor): Avoid casts and warnings.
68145
68146 2005-10-06  Simon Josefsson  <jas@extundo.com>
68147
68148         * lib/hmac-md5.c: New file.
68149
68150         * lib/hmac.h: New file.
68151
68152 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68153
68154         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
68155         promotes to int, not unsigned int, to catch the AIX 5.3
68156         compiler bug.
68157
68158 2005-10-05  Simon Josefsson  <jas@extundo.com>
68159
68160         * modules/memxor: New file.
68161
68162         * modules/iconv (Files): Move config.rpath to havelib, it is used
68163         there.
68164
68165         * modules/havelib (Files): Add config.rpath.
68166
68167 2005-10-05  Simon Josefsson  <jas@extundo.com>
68168
68169         * m4/memxor.m4: New file.
68170
68171 2005-10-05  Simon Josefsson  <jas@extundo.com>
68172
68173         * lib/memxor.c (memxor): Fix compiler error.
68174
68175         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
68176         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
68177
68178         * lib/memxor.h, lib/memxor.c: New files.
68179
68180         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
68181         we assume all systems have it, suggested by Jim Meyering
68182         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
68183         any systems lack sys/socket.h; mingw32 is known to lack it, but we
68184         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
68185         same reasons.
68186
68187 2005-10-05  Simon Josefsson  <jas@extundo.com>
68188
68189         * config/srclist.txt: Add glibc bug 1423 for md5.h.
68190
68191 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68192
68193         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
68194         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
68195         needed, since the source code now assumes these .h files.
68196
68197 2005-10-05  Derek Price  <derek@ximbiot.com>
68198
68199         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
68200
68201 2005-10-05  Bruno Haible  <bruno@clisp.org>
68202
68203         * modules/stdint (License): Change to LGPL.
68204
68205 2005-10-04  Simon Josefsson  <jas@extundo.com>
68206
68207         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
68208         D. Baushke" <mdb@gnu.org>.
68209
68210 2005-10-04  Bruno Haible  <bruno@clisp.org>
68211
68212         * lib/verify.h (verify_true): Provide alternative definition for C++.
68213
68214 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
68215
68216         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
68217         (SSIZE_MAX): New macro, if not already defined.
68218         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
68219         than 2 GiB.
68220
68221 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68222
68223         Sync from coreutils.
68224         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
68225         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
68226         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
68227         ULLONG_MAX doesn't work with 2.7.2.1.
68228
68229 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68230
68231         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
68232         From Ben Pfaff.
68233
68234         * modules/exclude (Depends-on): Depend on verify.
68235         * modules/strtoimax (Depends-on): Likewise.
68236         * modules/utimecmp (Depends-on): Likewise.
68237
68238 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68239
68240         * lib/exclude.c: Include verify.h.
68241         (verify): Remove.  All callers changed to use verify.h's version.
68242         * lib/strtoimax.c: Likewise.
68243         * lib/utimecmp.c: Likewis.e
68244
68245         Sync from coreutils.
68246         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
68247         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
68248         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
68249         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
68250         bother returning ENOSYS if settimeofday or stime fails; just let
68251         them return whatever errno they want to return.
68252         * lib/utimens.c: Include unistd.h, for dup2.
68253         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
68254         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
68255
68256 2005-10-02  Jim Meyering  <jim@meyering.net>
68257
68258         Sync from coreutils.
68259         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
68260         from glibc-2.2.5 that fails for read-only files.
68261
68262 2005-10-02  Jim Meyering  <jim@meyering.net>
68263
68264         Sync from coreutils.
68265         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
68266         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
68267         `#if HAVE_CONFIG_H'.
68268         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
68269         Remove AT_FDCWD test.
68270         Do not consume the fd unless successful.
68271         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
68272         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
68273         block, so that we don't even try to compile it if settimeofday is
68274         available.  This works around a compilation failure on OSF1 V5.1,
68275         due to stime requiring a `long int*' while tv_sec is `int'.
68276
68277 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
68278
68279         Sync from coreutils.
68280         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
68281         against `yes', rather than just testing for nonempty.
68282
68283 2005-10-01  Simon Josefsson  <jas@extundo.com>
68284
68285         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
68286         and Darwin.
68287
68288         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
68289         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
68290         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
68291         freeaddrinfo and gai_strerror are declared by the POSIX headers.
68292         Check if struct addrinfo is declared.
68293
68294 2005-10-01  Simon Josefsson  <jas@extundo.com>
68295
68296         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
68297         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
68298         AI_* and EAI_* definitions.  Protect function declarations.
68299
68300 2005-10-01  Jim Meyering  <jim@meyering.net>
68301
68302         Sync from coreutils.
68303
68304         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
68305         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
68306         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
68307         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68308         in the inet and nsl libraries.  Required on Solaris 5.7.
68309
68310 2005-10-01  Jim Meyering  <jim@meyering.net>
68311
68312         Sync from coreutils.
68313         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68314         in the inet and nsl libraries.  Required on Solaris 5.7.
68315
68316 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
68317
68318         * lib/getdelim.c (getdelim): Remove unused variables.
68319
68320 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68321
68322         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
68323         so that the code works even with ancient cpp.  Portability problem
68324         with GCC 2.7.2.1 reported by Thomas M.Ott.
68325
68326 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68327
68328         * modules/regex (Depends-on): Add strcase.
68329
68330         * modules/gethostname (Licence): Change from GPL to LGPL, since
68331         gethostname.c is a trivial implementation of a standard library
68332         function.
68333         * modules/poll (License): Change from GPL to LGPL, since it's
68334         derived from LGPL code.
68335
68336 2005-09-27  Jim Meyering  <jim@meyering.net>
68337
68338         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
68339         HAVE_CONFIG_H.
68340
68341         * lib/intprops.h (signed_type_or_expr__): Define.
68342         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
68343         for unsigned types.
68344
68345 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68346
68347         * lib/verify.h (verify_expr): Remove, replacing with:
68348         (verify_true): New macro that returns true instead of void.
68349         (verify_type__): Remove.
68350         (verify): Use verify_true rather than verify_type__.
68351
68352 2005-09-26  Bruno Haible  <bruno@clisp.org>
68353
68354         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
68355         is necessary.
68356         (lib_SOURCES): Remove mbchar.c.
68357         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
68358         (Files): Add m4/mbrtowc.m4.
68359         * modules/mbiter: Likewise.
68360         * modules/mbuiter: Likewise.
68361
68362 2005-09-26  Bruno Haible  <bruno@clisp.org>
68363
68364         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
68365         compile mbchar.c if they are not both present.
68366         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
68367         * m4/mbiter.m4 (gl_MBITER): Likewise.
68368         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
68369         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
68370         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
68371
68372 2005-09-25  Jim Meyering  <jim@meyering.net>
68373
68374         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
68375         also uses socklen_t.
68376
68377 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
68378
68379         * lib/utimens.c (ENOSYS): Define if not already defined.
68380         (futimens): Support having a null PATH if the file descriptor
68381         is nonnegative.
68382
68383         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
68384         Remove.
68385         (__attribute): Define to empty unless GCC 3.1 or later.
68386         This works around a core dump on OpenBSD 3.4, which has GCC
68387         2.95.3, which dumps core when given __attribute__(()).  It also
68388         simplifies other tests, since we really don't want to bother with
68389         worrying about which ancient version of GCC supported what.
68390         Original problem reported by Yoann Vandoorselaere, with part of
68391         the fix suggested by Derek Price.
68392
68393 2005-09-24  Jim Meyering  <jim@meyering.net>
68394
68395         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
68396         so we can once again use a positive bitfield width of 1 -- now we
68397         don't have to explain why we were using a bitfield width of 2.
68398
68399 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
68400
68401         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
68402         and similarly for the other external symbols.  Problem reported
68403         by James Gallager.
68404
68405         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
68406         bug reported by Jim Meyering.
68407
68408         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
68409         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
68410         not needed, since socklen is a prerequisite module.
68411
68412 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
68413
68414         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
68415         Problem reported by Eric Blake.
68416         (getaddrinfo): Initialize se so that it's not garbage.
68417         Redo internal storage allocation so that it doesn't make unportable
68418         assumptions about alignment.
68419         Fix a memory leak.
68420
68421         * lib/utimens.c (futimens): Use futimesat if available.
68422         Prefer it to futimes since it doesn't have the futimes bug.
68423
68424         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
68425         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
68426         Instead, declare a function that returns a pointer to an array,
68427         and use verify_type__ to declare the size of the array.
68428         Problem and germ of a solution reported by Bruno Haible.
68429         (verify_type__): Use 2, not 1, for bitfield size, to avoid
68430         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
68431
68432 2005-09-23  Jim Meyering  <jim@meyering.net>
68433
68434         Sync from coreutils.
68435         Correct build failure (socklen_t not defined) on at least
68436         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
68437         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
68438
68439 2005-09-23  Jim Meyering  <jim@meyering.net>
68440
68441         * modules/getaddrinfo (Depends-on): Add socklen.
68442
68443 2005-09-23  Bruno Haible  <bruno@clisp.org>
68444
68445         * tests/test-verify.c: New file.
68446
68447 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68448
68449         Sync from coreutils.
68450
68451         * modules/argmatch (Depends-on): Add verify.
68452         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
68453         unistd-safer.
68454         * modules/save-cwd (Depends-on): Likewise.
68455
68456         * modules/openat (Files): Add lib/openat-die.c.
68457         (Depends-on): Remove error, exitfail.
68458         Add dirname.
68459
68460         * modules/verify: New file.
68461         * MODULES.html.sh (Diagnostics <assert.h>): New section,
68462         with "verify" module.
68463
68464 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68465
68466         Sync from coreutils.
68467
68468         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
68469         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
68470         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
68471         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
68472         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
68473         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
68474         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
68475         Don't bother checking for string.h, stdlib.h, unistd.h.
68476         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
68477         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
68478         module's job.
68479         * m4/jm-macros.m4 (gl_MACROS): Likewise.
68480         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
68481
68482         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
68483         (gl_GETDATE): Use it.
68484
68485         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
68486
68487 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68488
68489         Sync from coreutils.
68490
68491         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
68492         stat-time.h.
68493         * lib/argmatch.h: Include verify.h
68494         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
68495         (ARGMATCH_ASSERT): Remove; unused.
68496         * lib/canonicalize.c: Assume STDC_HEADERS.
68497         * lib/exclude.c: Include "strcase.h".
68498         * lib/regex_internal.h [!defined _LIBC]: Likewise.
68499         * lib/getusershell.c: Include stdio--.h rather than stdio.h
68500         and stdio-safer.h.
68501         (getusershell): Call fopen, not fopen_safer.
68502         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
68503         Do not include unistd-safer.h.
68504         (save_cwd): Don't call fd_safer; no longer needed
68505         now that we include fcntl--.h.
68506
68507         * lib/getdate.y (relative_time): New type.
68508         (RELATIVE_TIME_0): New constant.
68509         (parser_control): Use relative_time instead of doing it ourselves.
68510         (%union): Add new relative_time rel member.
68511         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
68512         Now typeless.
68513         (relunit, relunit_snumber): Now of type rel.
68514         (zone, rel, relunit, get_date): Adjust to above changes.
68515
68516         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
68517         Do not include unistd-safer.h.
68518         (getloadavg): Don't call fd_safer; no longer needed
68519         now that we include fcntl--.h.
68520
68521         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
68522         (make_dir_parents): Treat ENOSYS like EEXIST.
68523
68524         Improve quality of diagnostics on restore_cwd failure.
68525         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
68526         (make_dir_parents): Last arg is now int * (for errno), not bool *.
68527         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
68528         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
68529         each time through the loop.  Do not diagnose restore_cwd failure;
68530         that is the caller's job (and perhaps the caller does not care).
68531
68532         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
68533         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
68534         If the file already exists but is not a directory, don't bother
68535         to try to make its parents.
68536         Close potential file descriptor leak if we can't chdir("/") (!).
68537         Don't always return true if chdir($PWD) fails; return true only
68538         if the requested action was done successfully (except for the
68539         chdir($PWD)).
68540         Don't log final directory unless we actually made it.
68541         Refactor to avoid duplicate code to fix up permissions.
68542         Don't attempt to fix up parent permissions if chdir($PWD) fails.
68543
68544         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
68545         to make it a bit faster and (I hope) clearer.
68546         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
68547         Fix bug in formats like %2N.
68548
68549         * lib/verify.h: New file.
68550
68551 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68552
68553         Sync from coreutils.
68554         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
68555
68556 2005-09-22  Jim Meyering  <jim@meyering.net>
68557
68558         Sync from coreutils.
68559
68560         * m4/lstat.m4 (gl_FUNC_LSTAT):
68561         Use AC_LIBSOURCES to require lstat.c and lstat.h.
68562         Remove obsolete comment.
68563         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
68564         * m4/xstrtod.m4: Likewise.
68565
68566         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
68567
68568 2005-09-22  Jim Meyering  <jim@meyering.net>
68569
68570         Sync from coreutils.
68571
68572         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
68573
68574         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
68575         the .tm_year member, since otherwise gcc-4.0 would now warn about
68576         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
68577
68578         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
68579         order to avoid an unsuppressible warning from gcc on 64-bit systems.
68580
68581         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
68582         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
68583         when run in a time zone for which daylight savings time is in effect
68584         for the starting date.
68585
68586         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
68587         stop us from restricting permissions of just-created absolute-named
68588         directories.
68589         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
68590         to restore initial working directory.
68591         * lib/mkdir-p.c (make_dir_parents): New parameter:
68592         different_working_dir, to tell caller if/when we change the working
68593         directory and are unable to return to the initial one.
68594         * lib/mkdir-p.h (make_dir_parents): Update prototype.
68595         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
68596         `return false'.  This fixes a bug introduced on 2004-07-30.
68597
68598         * lib/openat.c (fdopendir): Be sure to close the supplied
68599         file descriptor before returning.  This makes our replacement
68600         implementation a little closer to Solaris's, where fdopendir
68601         ties the file descriptor to the returned DIR* pointer.
68602         * lib/openat.c (unlinkat): New function.
68603         * lib/openat.h (unlinkat): Add prototype.
68604         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
68605         (openat_restore_fail): Rename from openat_restore_die.
68606         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
68607
68608         Provide an alternative to exiting immediately upon save_cwd or
68609         restore_cwd failure.  Now, an application can arrange e.g.,
68610         to perform a longjump in that case.
68611         * lib/openat.c: Include dirname.h.
68612         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
68613         (rpl_openat, fdopendir, fstatat): Call openat_save_die
68614         and openat_restore_die rather than calling error directly.
68615         Don't include "error.h" or "exitfail.h"; they're no longer needed.
68616
68617         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
68618         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
68619         define.
68620
68621         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
68622         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
68623                             int utc, int nanoseconds);
68624         Background:
68625         date should not have to allocate a megabyte of virtual memory to
68626         handle a format argument like +%1048575T.  When implemented with
68627         strftime, it must allocate such a buffer, use strftime to fill it
68628         in, print it, then free it.
68629         With fprintftime, it simply prints everything and exits.
68630         With no need for memory allocation, that's one fewer way to fail.
68631         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
68632         optional field width, not before, so we accept %9:z, not %:9z.
68633         (my_strftime): Be sure to use L_('x') for literals.
68634
68635         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
68636         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
68637         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
68638         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
68639         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
68640         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
68641         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
68642         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
68643         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
68644         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
68645         * lib/xgethostname.c, lib/xreadlink.c:
68646         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
68647
68648         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
68649         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
68650         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
68651         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
68652         and don't include <sys/file.h>).
68653
68654 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
68655
68656         Sync from coreutils.
68657
68658         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
68659         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
68660         [!LDAV_DONE]: Avoid unused variable warning.
68661
68662 2005-09-21  Bruno Haible  <bruno@clisp.org>
68663
68664         * lib/unicodeio.h (unicode_to_mb): New declaration.
68665
68666 2005-09-20  Derek Price  <derek@ximbiot.com>
68667
68668         * lib/getaddrinfo.c: Don't include <netdb.h> included from
68669         getaddrinfo.h.
68670
68671 2005-09-20  Bruno Haible  <bruno@clisp.org>
68672
68673         * gnulib-tool: Remove trailing slashes from the values specified for
68674         --source-base, --m4-base, --tests-base, --aux-dir.
68675         Suggested by Simon Josefsson <jas@extundo.com>.
68676
68677 2005-09-20  Bruno Haible  <bruno@clisp.org>
68678
68679         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
68680         func_modules_to_filelist, func_import, func_create_testdir): Make all
68681         sorting results locale-independent, so that gnulib-cache.m4 doesn't
68682         change when gnulib-tool is invoked in a different locale.
68683
68684 2005-09-19  Simon Josefsson  <jas@extundo.com>
68685
68686         * m4/socklen.m4: Fix typo.
68687
68688 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68689
68690         Use a consistent style for including <config.h>.
68691         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
68692         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
68693         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
68694         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
68695         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
68696         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
68697         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
68698         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
68699         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
68700         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
68701         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
68702         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
68703         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
68704         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
68705         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
68706         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
68707         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
68708         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
68709         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
68710         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
68711         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
68712         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
68713         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
68714         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
68715         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
68716         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
68717         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
68718         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
68719         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
68720         lib/xstrtoumax.c, lib/yesno.c:
68721         Standardize inclusion of config.h.
68722         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
68723         lib/inttostr.h:  Removed inclusion of config.h from header files.
68724         * lib/inttostr.c:  Adjusted in-tree users.
68725         * lib/timespec.h: Remove superfluous warning to include config.h.
68726         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
68727         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
68728         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
68729         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
68730         config.h with HAVE_CONFIG_H.
68731
68732 2005-09-19  Jim Meyering  <jim@meyering.net>
68733
68734         * modules/pathmax (License): Change to LGPL.
68735
68736 2005-09-19  Derek Price  <derek@ximbiot.com>
68737
68738         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
68739
68740 2005-09-19  Bruno Haible  <bruno@clisp.org>
68741
68742         * gnulib-tool (import): Provide default for --tests-base.
68743
68744 2005-09-19  Bruno Haible  <bruno@clisp.org>
68745
68746         * doc/quote.texi: New file, extracted from gnulib.texi.
68747         * doc/ctime.texi: New file, extracted from gnulib.texi.
68748         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
68749         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
68750         * doc/gnulib.texi: Include them.
68751
68752 2005-09-18  Bruno Haible  <bruno@clisp.org>
68753
68754         Portability fix.
68755         * gnulib-tool (func_readlink): New function.
68756         (func_ln_if_changed): Use it.
68757
68758 2005-09-18  Bruno Haible  <bruno@clisp.org>
68759
68760         * gnulib-tool: Support --with-tests also with --import.
68761         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
68762         (func_import): Use variables $testsbase and $inctests. Emit a
68763         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
68764         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
68765         SUBDIRS += $testsdir.
68766         (func_create_testdir): Update.
68767
68768 2005-09-18  Bruno Haible  <bruno@clisp.org>
68769
68770         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
68771         instead of $dry_run.
68772         (func_cp_if_changed, func_mv_if_changed): Remove functions.
68773         (func_ln_if_changed): Don't handle dry-run here.
68774         (func_import): In dry-run mode, detect more precisely which actions
68775         would be performed, and don't use "...ing" verbs.
68776
68777 2005-09-18  Bruno Haible  <bruno@clisp.org>
68778
68779         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
68780         (func_import): Use join on two temporary files instead of three nested
68781         loops, in order to determine which files are new or old.
68782
68783 2005-09-18  Bruno Haible  <bruno@clisp.org>
68784
68785         * gnulib-tool (func_import): Comment out code that spits out the
68786         new files with --dry-run.
68787
68788 2005-09-18  Bruno Haible  <bruno@clisp.org>
68789
68790         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
68791
68792 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
68793
68794         * lib/stat-time.h: New file.
68795         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
68796         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
68797         in a different way.
68798         (timespec_cmp): New function.
68799         * lib/utimecmp.c: Include stat-time.h.
68800         (SYSCALL_RESOLUTION): Depend on whether various struct stat
68801         members exist, not on the obsolescent ST_MTIM_NSEC.
68802         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
68803
68804 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
68805
68806         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
68807
68808 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
68809
68810         * MODULES.html.sh (File system functions): Add stat-time.
68811         * modules/stat-time: New file.
68812         * modules/timespec (Files): Remove m4/st_mtim.m4; this
68813         is now done in a different way, by the stat-time module.
68814         * modules/utimecmp (Depends-on): Add stat-time.
68815
68816 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68817
68818         * m4/st_mtim.m4: Remove.  Superseded by...
68819         * m4/stat-time.m4: New file.
68820         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
68821         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
68822
68823 2005-09-15  Derek Price  <derek@ximbiot.com>
68824
68825         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
68826
68827 2005-09-15  Derek Price  <derek@ximbiot.com>
68828
68829         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
68830         * lib/regex_internal.c: Ditto, using this...
68831         (__GNUC_PREREQ): ...new macro.
68832         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
68833         using...
68834         (__GNUC_PREREQ): ...this new macro.
68835
68836         * lib/strstr.h: Include string.h. Define strstr as a macro here.
68837
68838 2005-09-15  Derek Price  <derek@ximbiot.com>
68839             Paul Eggert  <eggert@cs.ucla.edu>
68840
68841         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
68842         changes, consolidating in...
68843         * lib/regex_internal.h: ...this file.
68844
68845 2005-09-13  Jim Meyering  <jim@meyering.net>
68846
68847         * lib/canon-host.c: Filter through gnu indent and reword comments
68848         slightly.
68849         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
68850
68851 2005-09-13  Derek Price  <derek@ximbiot.com>
68852
68853         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
68854         failure.
68855         Reported by Jim Meyering  <jim@meyering.net>.
68856
68857 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68858
68859         * lib/base64.c: Typo.
68860         (base64_encode): Put b64str in initialized data section.
68861
68862 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
68863
68864         Merge glibc and coreutils changes into gnulib, plus a few
68865         extra fixes.
68866         * lib/md5.c: Use #error rather than a string.
68867         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
68868         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
68869         (__attribute__): Define to empty for non recent-GCC.
68870         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
68871         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
68872         Renamed from their non-__ counterparts, with new macros replacing
68873         them if not _LIBC.  Add __THROW attribute.
68874         (rol): Remove.
68875         (struct md5_ctx): Align buffer if using GCC.
68876         * lib/sha1.h (struct sha1_ctx): Likewise.
68877         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
68878         The old name was backwards.
68879         (NOTSWAP): Remove; not used.
68880         (rol): New macro, moved here from md5.h.
68881         (sha1_process_block): Remove a FIXME that doesn't make sense.
68882
68883 2005-09-12  Derek Price  <derek@ximbiot.com>
68884
68885         Return usable errors from canon-host.
68886         * lib/canon-host.h: New file.
68887         * lib/canon-host.c (canon_host): Wrap...
68888         (canon_host_r): ...this new function, which now relies exclusively on
68889         getaddrinfo.
68890         (ch_strerror): New function.
68891         (last_cherror): New global.
68892         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
68893         interface.
68894         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
68895         void *.
68896         (freeaddrinfo): Free ai->ai_canonname when set.
68897
68898 2005-09-12  Derek Price  <derek@ximbiot.com>
68899
68900         Make canon-host require getaddrinfo.
68901         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
68902         AC_LIBSOURCE canon-host.h.  Call...
68903         (gl_PREREQ_CANON_HOST): ...this new function, which requires
68904         gl_GETADDRINFO.
68905         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
68906
68907 2005-09-12  Derek Price  <derek@ximbiot.com>
68908
68909         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
68910         LGPL.
68911         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
68912
68913 2005-09-12  Derek Price  <derek@ximbiot.com>
68914
68915         * lib/gai_strerror.c: Include config.h when available.  Include
68916         getaddrinfo.h before other headers to test interface.
68917         Reported by Larry Jones <lawrence.jones@ugs.com>.
68918
68919 2005-09-12  Derek Price  <derek@ximbiot.com>
68920             Paul Eggert  <eggert@cs.ucla.edu>
68921
68922         * modules/glob (Files): Add glob-libc.h.
68923
68924 2005-09-12  Derek Price  <derek@ximbiot.com>
68925             Paul Eggert  <eggert@cs.ucla.edu>
68926
68927         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
68928         glob_.h, glob-libc.h.
68929         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
68930
68931 2005-09-12  Derek Price  <derek@ximbiot.com>
68932             Paul Eggert  <eggert@cs.ucla.edu>
68933
68934         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
68935         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
68936         protecting things that should be done only in gnulib contexts.
68937         * lib/glob_.h: New file, containing only the glob things needed for
68938         gnulib.
68939         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
68940         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
68941         (glob, globfree, glob_pattern_p): Now defined simply in terms of
68942         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
68943         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
68944         and to respect the namespace rules better.
68945
68946 2005-09-08  Simon Josefsson  <jas@extundo.com>
68947
68948         * modules/socklen: New file.
68949
68950 2005-09-08  Simon Josefsson  <jas@extundo.com>
68951
68952         * m4/socklen.m4: New file.
68953
68954 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68955
68956         * modules/utimens (Files): Add m4/utimbuf.m4, since
68957         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
68958         Reported by Sergey Poznyakoff.
68959
68960 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68961
68962         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
68963         definitions, since that's the preferred style in glibc.
68964         Fix a minor spacing issue, and update copyright notice to match
68965         glibc's.
68966
68967 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68968
68969         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
68970
68971 2005-09-06  Simon Josefsson  <jas@extundo.com>
68972
68973         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
68974         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
68975
68976 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68977
68978         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
68979         warning.
68980
68981 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68982
68983         * config/srclist.txt: Add glibc bug 1302.
68984
68985 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
68986
68987         Change bitset word type from unsigned int to unsigned long int,
68988         as this has better performance on typical 64-bit hosts.
68989         Port bitset code to hosts with unusual word sizes.
68990         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
68991         (build_collating_symbol):
68992         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
68993         argument is a bitset.  This is merely a style issue, but it makes
68994         it clearer that an entire array is expected.
68995         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
68996         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
68997         Port to the case where bitset_word is not the same as unsigned int.
68998         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
68999         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
69000         Likewise.
69001         * lib/regexec.c (check_dst_limits_calc_pos_1,
69002         check_subexp_matching_top):
69003         (build_trtable, group_nodes_into_DFAstates):
69004         Likewise.
69005         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
69006         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
69007         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
69008         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
69009         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
69010         * lib/regcomp.c (optimize_subexps, lower_subexp):
69011         Work even if bitset_word has holes in its bitwise representation.
69012         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
69013         * lib/regexec.c (check_dst_limits_calc_pos_1,
69014         check_subexp_matching_top):
69015         Likewise.
69016         * lib/regex_internal.c (re_string_reconstruct):
69017         Don't assume UCHAR_MAX == 255.
69018         * lib/regex_internal.h (bitset_set_all): Likewise.
69019         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
69020         All uses changed.
69021         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
69022         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
69023         All uses changed.
69024         (BITSET_WORD_MAX): New macro.
69025         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
69026         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
69027         (bitset_empty, bitset_copy):
69028         Prefer sizeof (bitset) to multiplying it out ourselves.
69029         (bitset_not_merge): Remove; unused.
69030         (bitset_contain): Return bool, not unsigned int with one bit on.
69031         All callers changed.
69032         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
69033         alignment than re_node_set; do this by defining a new internal
69034         type struct dests_alloc and using it to allocate memory.
69035
69036 2005-09-05  Bruno Haible  <bruno@clisp.org>
69037
69038         * gnulib-tool (func_import): Fix comparison in handling of symbolic
69039         links.
69040
69041 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
69042
69043         * modules/size_max (Makefile.am): Add size_max.h
69044
69045 2005-09-04  Derek Price  <derek@ximbiot.com>
69046
69047         * gnulib-tool (func_import): Fix reversed $symbolic logic.
69048
69049 2005-09-03  Simon Josefsson  <jas@extundo.com>
69050
69051         * gnulib-tool: Fix typo.
69052
69053 2005-09-03  Simon Josefsson  <jas@extundo.com>
69054
69055         * config/srclist.txt: Add glibc bug 1293.
69056
69057 2005-09-03  Derek Price  <derek@ximbiot.com>
69058
69059         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
69060         From Larry Jones <lawrence.jones@ugs.com>.
69061
69062 2005-09-02  Simon Josefsson  <jas@extundo.com>
69063
69064         * modules/socklen: New file.
69065
69066 2005-09-02  Simon Josefsson  <jas@extundo.com>
69067
69068         * modules/havelib: New module.
69069
69070         * modules/gettext, modules/iconv, modules/lock, modules/readline:
69071         Use havelib.
69072
69073 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69074
69075         Check for arithmetic overflow when calculating sizes, to prevent
69076         some buffer-overflow issues.  These patches are conservative, in the
69077         sense that when I couldn't determine whether an overflow was possible,
69078         I inserted a run-time check.
69079         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
69080         macros.
69081         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
69082         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
69083         (re_xnrealloc, re_x2nrealloc): New inline functions.
69084         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
69085         parse_bracket_exp):
69086         (build_equiv_class, build_charclass): Check for arithmetic overflow
69087         in size expression calculations.
69088         * lib/regex_internal.c (re_string_realloc_buffers):
69089         (build_wcs_upper_buffer, re_node_set_add_intersect):
69090         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
69091         (re_dfa_add_node, register_state): Likewise.
69092         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
69093         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
69094         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
69095         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
69096
69097 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69098
69099         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
69100         m4/ulonglong.m4.  Problem reported by Martin Lambers.
69101
69102 2005-09-02  Bruno Haible  <bruno@clisp.org>
69103
69104         Support for lib vs. lib64 distinction on biarch platforms.
69105         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
69106         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
69107         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
69108
69109 2005-09-02  Bruno Haible  <bruno@clisp.org>
69110
69111         * gnulib-tool (import): In the other first-use case, provide defaults
69112         as well.
69113
69114 2005-09-02  Bruno Haible  <bruno@clisp.org>
69115
69116         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
69117         patches not yet found in the latest gettext release.
69118
69119 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69120
69121         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
69122         to avoid a collision with bits/local_lim.h in glibc.
69123         All uses changed.  Problem reported by Dmitry V. Levin in
69124         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
69125
69126         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
69127         bugs in int versus size_t comparisons.
69128         (re_string_context_at): Fix bug where the code assumed that
69129         Idx is signed.
69130
69131         Use bool where appropriate.
69132         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
69133         All callers changed.
69134         (calc_eclosure_iter): Likewise, for ROOT arg.
69135         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
69136         (build_charclass_op): Likewise, for NON_MATCH arg.
69137         * lib/regex_internal.c (re_string_allocate, re_string_construct):
69138         (re_string_construct_common): Likewise, for ICASE arg.
69139         * lib/regexec.c (re_search_2_stub, re_search_stub):
69140         Likewise, for RET_LEN arg.
69141         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
69142         (set_regs): Likewise, for FL_BACKTRACK arg.
69143         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
69144         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
69145         (calc_eclosure_iter, parse_bracket_exp):
69146         Use bool for internal variables that are booleans.
69147         * lib/regexec.c (re_search_internal, check_matching,
69148         proceed_next_node):
69149         (set_regs, build_sifted_states, sift_states_bkref):
69150         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
69151         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
69152         (find_collation_sequence_value):
69153         Likewise.
69154         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
69155         (re_node_set_compare):
69156         Return bool, not int. All callers changed.
69157         * lib/regexec.c (check_halt_node_context, check_dst_limits):
69158         (build_trtable, check_node_accept): Likewise.
69159         * lib/regex_internal.h: Include stdbool.h.
69160
69161         Fix bugs uncovered when converting to bool.
69162         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
69163         failure instead of charging ahead blindly.
69164         * lib/regex_internal.c (register_state): Likewise.
69165         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
69166         for freeing internal storage.
69167         (group_nodes_into_DFA_states): Use unsigned int, not int, for
69168         bitset pieces used as boolean, to avoid undefined behavior
69169         on hosts that do int overflow checking.
69170
69171 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69172
69173         * config/srclist.txt: Add glibc bugs 1285-1287.
69174
69175 2005-09-01  Jim Meyering  <jim@meyering.net>
69176
69177         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
69178         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
69179         Require gl_STAT_MACROS, too.
69180
69181 2005-09-01  Bruno Haible  <bruno@clisp.org>
69182
69183         * gnulib-tool (import): In the first-use case, provide defaults.
69184
69185 2005-09-01  Bruno Haible  <bruno@clisp.org>
69186
69187         * gnulib-tool (func_import): Remove the .tmp files.
69188
69189 2005-09-01  Bruno Haible  <bruno@clisp.org>
69190
69191         * gnulib-tool (func_import): Fix handling of symbolic links.
69192
69193 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69194
69195         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
69196         old glibc regex code mishandles strings longer than 2**31 bytes.
69197         This patch fixes this when the regex code is used in gnulib
69198         (i.e., outside glibc).
69199
69200         This patch should not affect the use of the regex code inside
69201         glibc.  No doubt this problem also needs to be handled for glibc
69202         as well, but the result will be an incompatible change to the
69203         glibc ABI, and the old ABI will have to be supported too.  That
69204         can be the the subject for another patch.
69205
69206         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
69207         governing whether the rest of this patch is active.  By default,
69208         the macro is disabled and the patch has no effect.
69209         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
69210         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
69211         (struct re_pattern_buffer, re_search, re_search_2, re_match):
69212         (re_match_2, re_set_registers): Use the new types.
69213         * lib/regex_internal.h (Idx, re_hashval_t): New types.
69214         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
69215         New macros.
69216         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
69217         (re_string_context_at, bin_tree_t, re_dfastate_t):
69218         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
69219         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
69220         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
69221         (re_string_char_size_at, re_string_wchar_at):
69222         (re_string_elem_size_at):
69223         Use the new types and macros to port to 64-bit hosts.
69224         Use unsigned types for internal values, so that the code
69225         mostly works even for arrays larger than SSIZE_MAX.
69226         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
69227         (search_duplicated_node, calc_eclosure_iter, fetch_number):
69228         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
69229         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
69230         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
69231         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
69232         (calc_inveclosure, parse_dup_op, build_range_exp):
69233         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
69234         (fetch_number, create_token_tree, mark_opt_subexp):
69235         Likewise.
69236         * lib/regex_internal.c (re_string_construct_common,
69237         create_ci_newstate):
69238         (create_cd_newstate, re_string_allocate, re_string_construct):
69239         (re_string_realloc_buffers, build_wcs_upper_buffer):
69240         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
69241         (re_string_reconstruct, re_string_peek_byte_case):
69242         (re_string_fetch_byte_case, re_string_context_at):
69243         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
69244         (re_node_set_init_copy, re_node_set_add_intersect):
69245         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69246         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69247         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
69248         (re_acquire_state, re_acquire_state_context, register_state):
69249         Likewise.
69250         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
69251         search_cur_bkref_entry):
69252         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
69253         (re_search_internal, re_search_2_stub, re_search_stub)
69254         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
69255         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
69256         (update_cur_sifted_state, check_dst_limits):
69257         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69258         (check_subexp_limits, sift_states_bkref, merge_state_array):
69259         (check_subexp_matching_top, get_subexp, get_subexp_sub):
69260         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
69261         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
69262         (expand_bkref_cache, check_node_accept_bytes):
69263         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
69264         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
69265         (acquire_init_state_context, check_halt_node_context):
69266         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
69267         (sift_states_backward, clean_state_log_if_needed):
69268         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
69269         (find_recover_state, transit_state_sb, transit_state_mb):
69270         (transit_state_bkref, build_trtable, match_ctx_clean):
69271         Likewise.
69272         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
69273         to work around an assumption that REG_MISSING is negative.
69274
69275         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
69276         (seek_collating_symbol_entry) [defined _LIBC]:
69277         (lookup_collation_sequence_value) [defined _LIBC]:
69278         (build_range_exp, build_collating_symbol) [defined _LIBC]:
69279         Use prototypes rather than old-style function definitions.
69280         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
69281         (transit_state_sb) [0]:
69282         (find_collation_sequence_value) [defined _LIBC]: Likewise.
69283
69284         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
69285         rm_eo.
69286
69287         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
69288         (optimize_subexps, lower_subexp):
69289         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
69290         since the signed shift might overflow.  Use 1u<<31 instead.
69291         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69292         Likewise.
69293         * lib/regexec.c (check_dst_limits_calc_pos_1,
69294         check_subexp_matching_top): Likewise.
69295
69296         * lib/regcomp.c (optimize_subexps, lower_subexp):
69297         Use CHAR_BIT rather than 8, for clarity.
69298         * lib/regexec.c (check_dst_limits_calc_pos_1):
69299         (check_subexp_matching_top): Likewise.
69300         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
69301         have to worry about portability issues when shifting it left.
69302         Remove no-longer-needed test for table_size > 0.
69303         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
69304         in a word, as the resulting behavior is undefined.
69305         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
69306         in one case, a <= should have been an <, and in another case the
69307         whole test was missing.
69308         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
69309         the standard name CHAR_BIT.
69310         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
69311         this is not true on one's complement and signed-magnitude hosts.
69312
69313         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
69314         next_last_offset.
69315         (struct re_dfa_t): Remove unused member states_alloc.
69316         * lib/regcomp.c (init_dfa): Don't initialize unused members.
69317
69318 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69319
69320         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
69321         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
69322         and large-file glibc and in 32-bit large-file Solaris.
69323
69324 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69325
69326         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
69327         lengths fit in regoff_t; this isn't true if regoff_t is the same
69328         width as size_t.
69329         * lib/regex.c (re_search_internal): 5th arg is LAST_START
69330         (= START + RANGE) instead of RANGE.  This avoids overflow
69331         problems when regoff_t is the same width as size_t.
69332         All callers changed.
69333         (re_search_2_stub): Check for overflow when adding the
69334         sizes of the two strings.
69335         (re_search_stub): Check for overflow when adding START
69336         to RANGE; if it occurs, substitute the extreme value.
69337
69338 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69339
69340         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
69341
69342 2005-08-31  Jim Meyering  <jim@meyering.net>
69343
69344         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
69345         a pointer-to-const.
69346         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
69347         (register_state): Likewise.
69348         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
69349         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69350         (group_nodes_into_DFAstates): Likewise.
69351
69352 2005-08-31  Jim Meyering  <jim@meyering.net>
69353
69354         * check-module: Add a FIXME comment.
69355
69356 2005-08-31  Eric Blake  <ebb9@byu.net>
69357
69358         * modules/unistd-safer (Files): Add unistd--.h.
69359         * modules/stdio-safer (Files): Add stdio--.h.
69360
69361 2005-08-31  Derek Price  <derek@ximbiot.com>
69362
69363         * lib/getdelim.c (getdelim): Return EOF on EOF.
69364         Reported by Larry Jones <lawrence.jones@ugs.com>.
69365
69366 2005-08-31  Bruno Haible  <bruno@clisp.org>
69367
69368         Avoid unnecessary diffs in the generated lib/Makefile.am.
69369         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
69370         the generated files.
69371         (func_import): Don't set cmd.
69372
69373 2005-08-31  Bruno Haible  <bruno@clisp.org>
69374
69375         * lib/strstr.c: Include <stddef.h>, for NULL.
69376         * lib/strcasestr.c: Likewise.
69377         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69378
69379 2005-08-31  Bruno Haible  <bruno@clisp.org>
69380
69381         * gnulib-tool: New option --macro-prefix.
69382         (func_import): Use macro_prefix.
69383         (import): Handle option --macro-prefix.
69384
69385 2005-08-31  Bruno Haible  <bruno@clisp.org>
69386
69387         * gnulib-tool (import): Rename most ac_* variables to cached_*.
69388         Also use new variables cached_lgpl, cached_libtool.
69389
69390 2005-08-31  Bruno Haible  <bruno@clisp.org>
69391
69392         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
69393         always instantiating them.
69394
69395 2005-08-31  Bruno Haible  <bruno@clisp.org>
69396
69397         * gnulib-tool (func_import): Read the previous cached settings
69398         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
69399         earlier added by gnulib but are now dropped. Warn when a gnulib file
69400         overwrites a non-gnulib file.
69401
69402 2005-08-31  Bruno Haible  <bruno@clisp.org>
69403
69404         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
69405         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
69406         projects that don't keep autogenerated files in CVS. Put into
69407         actioncmd only the specified modules, not the transitive closure.
69408
69409 2005-08-31  Bruno Haible  <bruno@clisp.org>
69410
69411         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
69412         Create directories that shall be filled.
69413         (import): Don't look for gl_* macros in configure.ac. Recurse across
69414         all directories containing a gnulib-cache.m4 files, if meaningful.
69415
69416 2005-08-31  Bruno Haible  <bruno@clisp.org>
69417
69418         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
69419         (import): Set seen_libtool when we see gl_LIBTOOL.
69420
69421 2005-08-31  Bruno Haible  <bruno@clisp.org>
69422
69423         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
69424         declaration macro definitions from generated gnulib.m4.
69425
69426 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
69427
69428         * lib/iconvme.h: Add prototype for iconv_alloc.
69429
69430 2005-08-29  Simon Josefsson  <jas@extundo.com>
69431
69432         * lib/iconvme.c: Fix errno.
69433
69434 2005-08-29  Bruno Haible  <bruno@clisp.org>
69435
69436         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
69437         that it works when the directory contains spaces.
69438
69439 2005-08-29  Bruno Haible  <bruno@clisp.org>
69440
69441         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
69442
69443 2005-08-29  Bruno Haible  <bruno@clisp.org>
69444
69445         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
69446         Emit more advice.
69447
69448 2005-08-29  Bruno Haible  <bruno@clisp.org>
69449         and Stepan Kasal  <kasal@ucw.cz>
69450
69451         * check-module: If more parameters are given, check each of them
69452         separately; add more exceptions, as noted by Jim Meyering.
69453         (check_module): New procedure.
69454         (%exempt_header): Now contains all exceptions.
69455
69456 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
69457
69458         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
69459
69460 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
69461
69462         * lib/iconvme.c: Split iconv_string into iconv_alloc.
69463
69464 2005-08-28  Bruno Haible  <bruno@clisp.org>
69465
69466         * m4/gnulib-tool.m4: New file.
69467
69468 2005-08-27  Jim Meyering  <jim@meyering.net>
69469
69470         * modules/unistd-safer (Files): Add pipe-safer.c.
69471         * modules/fcntl-safer (Files): Add creat-safer.c.
69472
69473 2005-08-27  Jim Meyering  <jim@meyering.net>
69474
69475         * m4/stdlib-safer.m4: New file.  From coreutils.
69476         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
69477         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
69478         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
69479         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
69480         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
69481
69482 2005-08-27  Jim Meyering  <jim@meyering.net>
69483
69484         * lib/fopen-safer.c: Merge minor changes from coreutils.
69485         * lib/dup-safer.c: Likewise.
69486         * lib/fd-safer.c: Likewise.
69487
69488         Merge from coreutils.
69489         * lib/stdio--.h: New file.
69490         * lib/stdlib--.h: New file.
69491         * lib/mkstemp-safer.c: New file.
69492
69493         GNU tar needs these.
69494         * lib/pipe-safer.c: New file.
69495         * lib/creat-safer.c: New file.
69496         * lib/fcntl--.h (creat): Define to creat_safer.
69497         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
69498         * lib/unistd--.h (pipe): Define to pipe_safer.
69499         * lib/unistd-safer.h: Declare pipe_safer.
69500
69501 2005-08-26  Simon Josefsson  <jas@extundo.com>
69502
69503         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
69504         Haible <bruno@clisp.org>.
69505
69506 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
69507
69508         * lib/regex_internal.h: Remove all references to
69509         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
69510         or better.
69511         (bitset_not, bitset_merge, bitset_not_merge):
69512         (bitset_mask, re_string_allocate, re_string_construct):
69513         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
69514         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
69515         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
69516         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
69517         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69518         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69519         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
69520         (re_acquire_state_context):
69521         Remove unnecessary forward decls.
69522         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
69523         Put __attribute at function definition,
69524         now that the function decl has been removed.
69525         * lib/regex_internal.c (re_string_peek_byte_case):
69526         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
69527         Likewise.
69528
69529 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
69530
69531         * m4/regex.m4: Add AC_PREREQ(2.50).
69532         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
69533
69534 2005-08-25  Simon Josefsson  <jas@extundo.com>
69535
69536         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
69537         __fsetlocking.
69538
69539 2005-08-25  Simon Josefsson  <jas@extundo.com>
69540
69541         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
69542         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
69543         GLIBC specific code.
69544
69545 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69546
69547         Make regex safe for g++.  This fixes one real bug (an "err"
69548         that should have been "*err").  g++ problem reported by
69549         Sam Steingold.
69550         * lib/regex_internal.h (re_calloc): New macro, consistent with
69551         re_malloc etc.  All callers of calloc changed to use re_calloc.
69552         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
69553         not int.  All callers changed.
69554         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
69555         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
69556         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
69557         (find_recover_state): Change "err" to "*err"; this fixes what
69558         appears to be a real bug.
69559         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
69560         versus int.
69561
69562 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69563
69564         * modules/regex (Depends-on): Add malloc, since the code
69565         assumes that !malloc(0) means failure.
69566
69567 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69568
69569         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
69570
69571         alloca modernization/simplification for regex.
69572         * lib/regex.c: Remove portability cruft for alloca.  This no longer
69573         needs to be at the start of the file, and can be moved into
69574         regex_internal.h and simplified.
69575         * lib/regex_internal.h: Include <alloca.h>.
69576         (__libc_use_alloca) [!defined _LIBC]: New macro.
69577         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
69578         now works outside glibc.
69579
69580 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69581
69582         * config/srclist.txt: Add glibc bugs 1241, 1245.
69583
69584 2005-08-25  Jim Meyering  <jim@meyering.net>
69585
69586         * lib/open-safer.c: Include <config.h>.
69587         Otherwise, we'd lose LARGEFILE support in any file using
69588         e.g. "fcntl--.h"
69589
69590 2005-08-25  Bruno Haible  <bruno@clisp.org>
69591
69592         * m4/minmax.m4: Require autoconf 2.52.
69593         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
69594         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
69595         alternatives of translit over the alphabet.
69596         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
69597
69598 2005-08-24  Simon Josefsson  <jas@extundo.com>
69599
69600         * tests/test-getpass.c: New file.
69601
69602 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69603
69604         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
69605         for GNU regex features.
69606
69607 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69608
69609         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
69610         * lib/regex.h (regerror): Likewise.
69611
69612         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
69613         requires this.  (The code never needed it.)
69614
69615         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
69616         All uses of recently-renamed identifiers changed to use the new,
69617         POSIX-compliant names.  The code will build and run just fine
69618         without these changes, but it's better to eat our own dog food
69619         and use the standard-conforming names.
69620
69621         * lib/regex.h: Fix a multitude of POSIX name space violations.
69622         These changes have an effect only for programs that define
69623         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
69624         do not change anything for programs compiled in the normal way.
69625         Also, there is no effect on the ABI.
69626
69627         (_REGEX_SOURCE): New macro.
69628         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
69629         defined and _GNU_SOURCE is not; this fixes a name space violation.
69630
69631         Rename the following macros to obey POSIX requirements.
69632         The old names are still visible as macros if _REGEX_SOURCE is defined.
69633         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
69634         RE_BACKSLASH_ESCAPE_IN_LISTS.
69635         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
69636         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
69637         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
69638         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
69639         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
69640         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
69641         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
69642         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
69643         (REG_INTERVALS): renamed from RE_INTERVALS.
69644         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
69645         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
69646         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
69647         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
69648         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
69649         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
69650         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
69651         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
69652         RE_UNMATCHED_RIGHT_PAREN_ORD.
69653         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
69654         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
69655         (REG_DEBUG): renamed from RE_DEBUG.
69656         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
69657         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
69658         unusual, since we can't clash with the POSIX REG_ICASE.
69659         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
69660         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
69661         (REG_NO_SUB): renamed from RE_NO_SUB.
69662         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
69663         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
69664         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
69665         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
69666         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
69667         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
69668         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
69669         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
69670         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
69671         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
69672         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
69673         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
69674         RE_SYNTAX_POSIX_MINIMAL_BASIC.
69675         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
69676         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
69677         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
69678         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
69679         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
69680         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
69681         (REG_FIXED): Renamed from REGS_FIXED.
69682         (REG_NREGS): Renamed from RE_NREGS.
69683
69684         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
69685         of other REG_* macros, since POSIX says the user is allowed to
69686         #undef these macros selectively.
69687
69688         (reg_errcode_t): Update comment stating what other tables need
69689         to be consistent.
69690
69691         Rename the following enum values to obey POSIX requirements.
69692         The old names are still visible as macros.
69693         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
69694         is not defined, since GNU is supposed to be a superset of POSIX as
69695         much as possible, and since we want reg_errcode_t to be a signed
69696         type for implementation consistency.
69697         (_REG_NOERROR): Renamed from REG_NOERROR.
69698         (_REG_NOMATCH): Renamed from REG_NOMATCH.
69699         (_REG_BADPAT): Renamed from REG_BADPAT.
69700         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
69701         (_REG_ECTYPE): Renamed from REG_ECTYPE.
69702         (_REG_EESCAPE): Renamed from REG_EESCAPE.
69703         (_REG_ESUBREG): Renamed from REG_ESUBREG.
69704         (_REG_EBRACK): Renamed from REG_EBRACK.
69705         (_REG_EPAREN): Renamed from REG_EPAREN.
69706         (_REG_EBRACE): Renamed from REG_EBRACE.
69707         (_REG_BADBR): Renamed from REG_BADBR.
69708         (_REG_ERANGE): Renamed from REG_ERANGE.
69709         (_REG_ESPACE): Renamed from REG_ESPACE.
69710         (_REG_BADRPT): Renamed from REG_BADRPT.
69711         (_REG_EEND): Renamed from REG_EEND.
69712         (_REG_ESIZE): Renamed from REG_ESIZE.
69713         (_REG_ERPAREN): Renamed from REG_ERPAREN.
69714         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
69715         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
69716         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
69717         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
69718
69719         (_REG_RE_NAME, _REG_RM_NAME): New macros.
69720         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
69721         changed.  But support the old name if the new one is not defined
69722         and if _REGEX_SOURCE.
69723
69724         Change the following member names in struct re_pattern_buffer.
69725         The old names are still supported if !_REGEX_SOURCE.
69726         The new names are always supported, regardless of _REGEX_SOURCE.
69727         (re_buffer): Renamed from buffer.
69728         (re_allocated): Renamed from allocated.
69729         (re_used): Renamed from used.
69730         (re_syntax): Renamed from syntax.
69731         (re_fastmap): Renamed from fastmap.
69732         (re_translate): Renamed from translate.
69733         (re_can_be_null): Renamed from can_be_null.
69734         (re_regs_allocated): Renamed from regs_allocated.
69735         (re_fastmap_accurate): Renamed from fastmap_accurate.
69736         (re_no_sub): Renamed from no_sub.
69737         (re_not_bol): Renamed from not_bol.
69738         (re_not_eol): Renamed from not_eol.
69739         (re_newline_anchor): Renamed from newline_anchor.
69740
69741         Change the following member names in struct re_registers.
69742         The old names are still supported if !_REGEX_SOURCE.
69743         The new names are always supported, regardless of _REGEX_SOURCE.
69744         (rm_num_regs): Renamed from num_regs.
69745         (rm_start): Renamed from start.
69746         (rm_end): Renamed from end.
69747
69748         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
69749         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
69750         Prepend __ to parameter names.
69751
69752         Undo yesterday's changes.
69753
69754 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69755
69756         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
69757         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
69758         lib/regex.c.
69759
69760 2005-08-24  Jim Meyering  <jim@meyering.net>
69761
69762         Sync from coreutils.
69763         * m4/fcntl-safer.m4: New file.
69764
69765         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
69766         and object files for this module.
69767
69768 2005-08-24  Jim Meyering  <jim@meyering.net>
69769
69770         Sync from coreutils.
69771         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
69772
69773 2005-08-24  Jim Meyering  <jim@meyering.net>
69774
69775         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
69776         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
69777
69778 2005-08-24  Jim Meyering  <jim@meyering.net>
69779
69780         * modules/fcntl-safer: New module.
69781         * modules/fts (Depends-on): Add fcntl-safer.
69782         * MODULES.html.sh (File descriptor based Input/Output):
69783         Add fcntl-safer.
69784
69785 2005-08-24  Bruno Haible  <bruno@clisp.org>
69786
69787         Support for unit test modules.
69788         * modules/README: Mention tests modules.
69789         * modules/TEMPLATE-TESTS: New file.
69790         * gnulib-tool: New options --extract-tests-module, --with-tests and
69791         --tests-base (unused for the moment).
69792         (testsbase, inctests): New variables.
69793         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
69794         (func_verify_module): Exclude TEMPLATE-TESTS.
69795         (func_verify_nontests_module, func_verify_tests_module): New functions.
69796         (func_get_dependencies): Add implicit dependency for tests modules.
69797         (func_get_tests_module): New function.
69798         (func_modules_transitive_closure): When --with-tests was specified,
69799         include the unit tests as well, unless explicitly avoided.
69800         (func_emit_lib_Makefile_am): Ignore the tests modules here.
69801         (func_emit_tests_Makefile_am): New function.
69802         (func_create_testdir): When --with-tests was specified, emit a
69803         tests/ directory.
69804         * MODULES.html.sh (Future developments): Update.
69805
69806 2005-08-24  Bruno Haible  <bruno@clisp.org>
69807
69808         * modules/tls-tests: New file.
69809         * tests/test-tls.c: New file, from GNU gettext.
69810
69811 2005-08-24  Bruno Haible  <bruno@clisp.org>
69812
69813         * modules/lock-tests: New file.
69814         * tests/test-lock.c: New file, from GNU gettext.
69815
69816 2005-08-24  Bruno Haible  <bruno@clisp.org>
69817
69818         * lib/lock.h: Add multiple inclusion guard.
69819         * lib/tls.h: Add multiple inclusion guard.
69820
69821 2005-08-24  Bruno Haible  <bruno@clisp.org>
69822
69823         * gnulib-tool: Add support for the --aux-dir option to
69824         --create-testdir, --create-megatestdir, --test, --megatest.
69825         (func_create_testdir, func_create_megatestdir): Optionally emit a
69826         AC_CONFIG_AUX_DIR directive.
69827         (create-testdir, create-megatestdir, test, megatest): Provide a
69828         default value for $auxdir.
69829
69830 2005-08-24  Bruno Haible  <bruno@clisp.org>
69831
69832         * gnulib-tool (import): Use compound statement instead of subshell
69833         where possible.
69834
69835 2005-08-24  Bruno Haible  <bruno@clisp.org>
69836
69837         * gnulib-tool (import): Change --aux-dir default to "build-aux".
69838
69839 2005-08-24  Bruno Haible  <bruno@clisp.org>
69840
69841         * gnulib-tool (func_version): Update.
69842
69843 2005-08-24  Bruno Haible  <bruno@clisp.org>
69844
69845         * gnulib-tool (func_import, func_create_testdir,
69846         func_create_megatestdir): Quote all autoconf macro arguments.
69847
69848 2005-08-24  Bruno Haible  <bruno@clisp.org>
69849
69850         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
69851         option --force, because --force causes the aclocal.m4 of each
69852         subdirectory to be newer than the corresponding config.h.in.
69853
69854 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69855
69856         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
69857         All contents moved to gl_REGEX.
69858         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
69859         assume that it does.
69860
69861 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69862
69863         * lib/regex.h (REG_NOSYS)
69864         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
69865         Define, since POSIX requires it as of 2001.
69866         (_REG_ENOSYS)
69867         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
69868         New private symbol, used to keep the enum signed in all cases.
69869         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
69870         Youngman in
69871         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
69872
69873         * lib/regex_internal.c (re_string_skip_chars, register_state):
69874         (calc_state_hash):
69875         Remove forward decls; no longer needed now that we use prototypes.
69876         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
69877         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
69878         (clean_state_log_if_needed): Likewise.
69879
69880 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69881
69882         * config/srclist.txt: Add glibc bugs 1231-1233.
69883
69884 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69885
69886         Fix problems reported by Sam Steingold in
69887         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
69888         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
69889         assumed that reg_errcode_t is a signed type, which is not
69890         necessarily true if _XOPEN_SOURCE is not defined.
69891         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
69892         since some compilers warn about it otherwise.
69893
69894 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69895
69896         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
69897         (init_word_char, create_initial_state, duplicate_node_closure):
69898         (fetch_token, peek_token_bracket, build_range_exp):
69899         (build_collating_symbol): Remove forward decls; no longer needed
69900         now that we use prototypes.
69901
69902         * lib/regcomp.c:
69903         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
69904         (re_compile_fastmap_iter, regcomp, regerror, regfree):
69905         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
69906         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
69907         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
69908         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
69909         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
69910         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
69911         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
69912         (build_range_exp, build_collating_symbol, parse_bracket_exp):
69913         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
69914         (build_charclass, build_charclass_op, fetch_number, create_tree):
69915         (create_token_tree, mark_opt_subexp, duplicate_tree):
69916         Use prototypes rather than old-style definitions.
69917
69918         * lib/regex_internal.c:
69919         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
69920         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
69921         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
69922         (re_string_reconstruct, re_string_peek_byte_case):
69923         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
69924         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
69925         (re_node_set_init_copy, re_node_set_add_intersect):
69926         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69927         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69928         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
69929         (re_acquire_state, re_acquire_state_context, register_state):
69930         (create_ci_newstate, create_cd_newstate, free_state):
69931         Likewise.
69932         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
69933         re_search_2):
69934         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
69935         (re_search_internal, prune_impossible_nodes):
69936         (acquire_init_state_context, check_matching, static):
69937         (check_halt_node_context, check_halt_state_context, proceed_next_node):
69938         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
69939         (update_regs, sift_states_backward, build_sifted_states):
69940         (clean_state_log_if_needed, merge_state_array):
69941         (update_cur_sifted_state, add_epsilon_src_nodes):
69942         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
69943         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
69944         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
69945         (find_recover_state, check_subexp_matching_top, transit_state_mb):
69946         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
69947         (check_arrival, check_arrival_add_next_nodes):
69948         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
69949         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
69950         (check_node_accept_bytes, check_node_accept, extend_buffers):
69951         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
69952         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
69953         (sift_ctx_init):
69954         Likewise.
69955
69956         * lib/regex_internal.h:
69957         (re_string_allocate, re_string_construct, re_string_reconstruct):
69958         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
69959         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
69960         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
69961         (re_string_context_at, re_string_peek_byte_case):
69962         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
69963         is defined, since we now use prototypes always.
69964
69965         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
69966         C89 or better.  All uses removed.
69967
69968 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69969
69970         * config/srclist.txt: Add glibc bugs 1220-1227.
69971
69972 2005-08-20  Jim Meyering  <jim@meyering.net>
69973
69974         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
69975         of unused local, dfa.
69976
69977 2005-08-20  Bruno Haible  <bruno@clisp.org>
69978
69979         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
69980
69981 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69982
69983         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
69984         (re_node_set_insert_last, re_dfa_add_node):
69985         Rename local variables to avoid GCC shadowing warnings.
69986
69987 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69988
69989         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
69990         [defined lint]: Suppress bogus uninitialized-variable warnings.
69991
69992         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
69993         and let the caller return REG_ESPACE if out of space.  This
69994         removes an uninitialied-variable warning with GCC 4.0.1, and also
69995         avoids taking the address of a local variable.  All callers
69996         changed.
69997
69998 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69999
70000         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
70001         $LIBCSRC/posix/regexec.c.
70002         Add glibc bug 1217 for regcomp.c.
70003
70004 2005-08-19  Jim Meyering  <jim@meyering.net>
70005
70006         * lib/regexec.c (proceed_next_node): Redo local variables to
70007         avoid GCC shadowing warnings.
70008
70009 2005-08-18  Bruno Haible  <bruno@clisp.org>
70010
70011         * lib/strstr.c (strstr): Fix return value in multibyte case.
70012         * lib/strcasestr.c (strcasestr): Likewise.
70013
70014 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70015
70016         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
70017
70018 2005-08-17  Jim Meyering  <jim@meyering.net>
70019
70020         Make the %s format (seconds since the epoch) work for a negative
70021         number and when used with a zero-padded field width, e.g. %015s.
70022
70023         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
70024         label so that it precedes the code to set `digits'.  Otherwise,
70025         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
70026         print `00-22'.  Now, it prints `-0022', as it should.
70027
70028 2005-08-17  Bruno Haible  <bruno@clisp.org>
70029
70030         * modules/strstr (Files): Add m4/mbrtowc.m4.
70031         (Depends-on): Add mbuiter.
70032
70033 2005-08-17  Bruno Haible  <bruno@clisp.org>
70034
70035         * modules/strcasestr: New file.
70036         * MODULES.html.sh (String handling, based on ANSI C 89): Add
70037         strcasestr.
70038
70039 2005-08-17  Bruno Haible  <bruno@clisp.org>
70040
70041         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
70042
70043 2005-08-17  Bruno Haible  <bruno@clisp.org>
70044
70045         * modules/mbuiter: New file.
70046         * MODULES.html.sh (Extended multibyte and wide character utilities):
70047         Add mbuiter.
70048
70049 2005-08-17  Bruno Haible  <bruno@clisp.org>
70050
70051         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
70052         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
70053
70054 2005-08-17  Bruno Haible  <bruno@clisp.org>
70055
70056         * m4/strcasestr.m4: New file.
70057
70058 2005-08-17  Bruno Haible  <bruno@clisp.org>
70059
70060         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
70061         * lib/strstr.c: Completely rewritten, with multibyte locale support.
70062
70063 2005-08-17  Bruno Haible  <bruno@clisp.org>
70064
70065         * lib/strcasestr.h: New file.
70066         * lib/strcasestr.c: New file.
70067
70068 2005-08-17  Bruno Haible  <bruno@clisp.org>
70069
70070         * lib/strcasecmp.c: Use mbuiter.h.
70071
70072 2005-08-17  Bruno Haible  <bruno@clisp.org>
70073
70074         * lib/mbuiter.h: New file.
70075
70076 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70077
70078         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
70079         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
70080         and gl_GETOPT are both invoked via different paths (as happens
70081         with GNU tar CVS because it uses both argp and getopt), the former
70082         wins.
70083
70084 2005-08-16  Bruno Haible  <bruno@clisp.org>
70085
70086         * modules/tls: New file.
70087         * MODULES.html.sh (Multithreading): Add tls.
70088
70089 2005-08-16  Bruno Haible  <bruno@clisp.org>
70090
70091         * modules/strnlen1: New file.
70092         * MODULES.html.sh (String handling): Add strnlen1.
70093
70094 2005-08-16  Bruno Haible  <bruno@clisp.org>
70095
70096         * modules/strcase (Files): Add m4/mbrtowc.m4.
70097         (Depends-on): Add strnlen1, mbchar.
70098
70099 2005-08-16  Bruno Haible  <bruno@clisp.org>
70100
70101         * modules/mbiter: New file.
70102         * MODULES.html.sh (Extended multibyte and wide character utilities):
70103         Add mbiter.
70104
70105 2005-08-16  Bruno Haible  <bruno@clisp.org>
70106
70107         * modules/mbfile: New file.
70108         * MODULES.html.sh (Extended multibyte and wide character utilities):
70109         Add mbfile.
70110
70111 2005-08-16  Bruno Haible  <bruno@clisp.org>
70112
70113         * modules/mbchar: New file.
70114         * MODULES.html.sh (Extended multibyte and wide character utilities):
70115         New section.
70116
70117 2005-08-16  Bruno Haible  <bruno@clisp.org>
70118
70119         * m4/tls.m4: New file, from GNU gettext.
70120
70121 2005-08-16  Bruno Haible  <bruno@clisp.org>
70122
70123         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
70124         always.
70125         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
70126
70127 2005-08-16  Bruno Haible  <bruno@clisp.org>
70128
70129         * m4/mbiter.m4: New file.
70130
70131 2005-08-16  Bruno Haible  <bruno@clisp.org>
70132
70133         * m4/mbfile.m4: New file.
70134
70135 2005-08-16  Bruno Haible  <bruno@clisp.org>
70136
70137         * m4/mbchar.m4: New file.
70138
70139 2005-08-16  Bruno Haible  <bruno@clisp.org>
70140
70141         * lib/tls.h: New file, from GNU gettext.
70142         * lib/tls.c: New file, from GNU gettext.
70143
70144 2005-08-16  Bruno Haible  <bruno@clisp.org>
70145
70146         * lib/strnlen1.h: New file.
70147         * lib/strnlen1.c: New file.
70148
70149 2005-08-16  Bruno Haible  <bruno@clisp.org>
70150
70151         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
70152         (mbi_init): Update.
70153         (mbi_avail, mbi_advance): Let the iteration end before the terminating
70154         NUL byte, not after it.
70155
70156 2005-08-16  Bruno Haible  <bruno@clisp.org>
70157
70158         * lib/strcase.h (strcasecmp): Add note in comments.
70159         * lib/strncasecmp.c: Use code from strcasecmp.c.
70160         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
70161         (strcasecmp): Work correctly in multibyte locales.
70162
70163 2005-08-16  Bruno Haible  <bruno@clisp.org>
70164
70165         * lib/mbiter.h: New file.
70166
70167 2005-08-16  Bruno Haible  <bruno@clisp.org>
70168
70169         * lib/mbfile.h: New file.
70170
70171 2005-08-16  Bruno Haible  <bruno@clisp.org>
70172
70173         * lib/mbchar.h: New file.
70174         * lib/mbchar.c: New file.
70175
70176 2005-08-16  Bruno Haible  <bruno@clisp.org>
70177
70178         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
70179         the valid ones. Makes the comparison operations transitive:
70180         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
70181         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
70182
70183 2005-08-15  Simon Josefsson  <jas@extundo.com>
70184
70185         * modules/ssize_t (License): Change to 'unlimited'.
70186
70187         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
70188
70189 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70190
70191         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
70192         Add comments for each pending glibc patch.
70193
70194 2005-08-15  Bruno Haible  <bruno@clisp.org>
70195
70196         * lib/regex.h (__restrict_arr): Don't define to __restrict if
70197         __cplusplus is defined.
70198
70199 2005-08-14  Jim Meyering  <jim@meyering.net>
70200
70201         Sync from coreutils.
70202
70203         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
70204         Use the hash-table-based cycle-detection code not just when
70205         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
70206         Reported by James Youngman in
70207         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
70208         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
70209         FTS_TIGHT_CYCLE_CHECK.
70210         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
70211         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
70212         once again.
70213         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
70214         * lib/fts.c (fd_safer): Remove decl.
70215         Include fcntl--.h rather than unistd-safer.h
70216         (fts_safe_changedir): Don't call fd_safer; no longer needed
70217         now that we include fcntl--.h.
70218
70219 2005-08-12  Simon Josefsson  <jas@extundo.com>
70220
70221         * modules/getndelim2: Use ssize_t module.
70222         * modules/getnline: Likewise.
70223         * modules/safe-read: Likewise.
70224         * modules/xreadlink: Likewise.
70225
70226         * modules/ssize_t: New file.
70227
70228 2005-08-12  Simon Josefsson  <jas@extundo.com>
70229
70230         * m4/readline.m4: Look for termcap, curses or ncurses if required.
70231
70232 2005-08-12  Simon Josefsson  <jas@extundo.com>
70233
70234         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70235         ssize_t.
70236
70237 2005-08-12  Simon Josefsson  <jas@extundo.com>
70238
70239         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
70240         readline, getdelim and check_version.
70241         (Support for systems lacking ISO C 99: Sizes of integer types):
70242         Add size_max.
70243
70244 2005-08-12  Bruno Haible  <bruno@clisp.org>
70245
70246         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
70247
70248 2005-08-11  Simon Josefsson  <jas@extundo.com>
70249
70250         * modules/readline: New file.
70251
70252         * modules/strnlen (Files): Add strnlen.h.
70253
70254 2005-08-11  Simon Josefsson  <jas@extundo.com>
70255
70256         * m4/readline.m4: New file.
70257
70258 2005-08-11  Simon Josefsson  <jas@extundo.com>
70259
70260         * lib/readline.h, readline.c: New file.
70261
70262 2005-08-11  Simon Josefsson  <jas@extundo.com>
70263
70264         * doc/gnulib.texi (Initial import, Finishing touches): Mention
70265         gl_AVOID.
70266
70267 2005-08-11  Bruno Haible  <bruno@clisp.org>
70268
70269         * lib/strnlen.h (strnlen): Change parameter name to match comment.
70270
70271 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
70272
70273         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
70274
70275 2005-08-10  Simon Josefsson  <jas@extundo.com>
70276
70277         * tests/test-iconvme.c: New file.
70278
70279 2005-08-10  Simon Josefsson  <jas@extundo.com>
70280
70281         * m4/strnlen.m4: New file.
70282
70283         * m4/strndup.m4: Don't check for strnlen declaration, done in
70284         strnlen.m4.
70285
70286 2005-08-10  Simon Josefsson  <jas@extundo.com>
70287
70288         * lib/strndup.c: Use strnlen.h.
70289
70290         * lib/strnlen.h: New file.
70291
70292 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70293
70294         * README: Typos.
70295
70296 2005-08-02  Simon Josefsson  <jas@extundo.com>
70297
70298         * modules/readline: New file.
70299
70300 2005-08-02  Simon Josefsson  <jas@extundo.com>
70301
70302         * modules/getdelim: New file.
70303
70304         * modules/getline: Rewrite, don't use getndelim2.
70305
70306 2005-08-02  Simon Josefsson  <jas@extundo.com>
70307
70308         * m4/getline.m4: Separate out getdelim stuff into separate module.
70309
70310         * m4/getdelim.m4: New file.
70311
70312 2005-08-02  Simon Josefsson  <jas@extundo.com>
70313
70314         * lib/getline.h, getline.c: Rewrite.
70315
70316         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
70317
70318 2005-07-31  Bruno Haible  <bruno@clisp.org>
70319
70320         * lib/lock.h (gl_lock_initializer): New macro.
70321         (gl_lock_define_initialized): Use it.
70322         (gl_rwlock_initializer): New macro.
70323         (gl_rwlock_define_initialized): Use it.
70324         (gl_recursive_lock_initializer): New macro.
70325         (gl_recursive_lock_define_initialized): Use it.
70326
70327 2005-07-30  Karl Berry  <karl@gnu.org>
70328
70329         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
70330         Report from Ben Pfaff, regarding getopt.
70331
70332 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
70333
70334         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
70335         normal way.
70336         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
70337         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
70338         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
70339         (gl_GETOPT): Use the new macros.  Most of the implementation
70340         is moved to the new macros.  This is for programs like Emacs
70341         that don't want all the functionality of gl_GETOPT.
70342
70343 2005-07-26  Bruno Haible  <bruno@clisp.org>
70344
70345         * m4/lock.m4: Update from GNU gettext.
70346
70347 2005-07-26  Bruno Haible  <bruno@clisp.org>
70348
70349         * lib/lock.h: Update from GNU gettext.
70350         * lib/lock.c: Update from GNU gettext.
70351
70352 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
70353
70354         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
70355         obsolescent AC_TRY_RUN.  Include the default includes files, for
70356         'exit'.
70357
70358 2005-07-24  Bruno Haible  <bruno@clisp.org>
70359
70360         * modules/visibility: New file.
70361         * MODULES.html.sh (Misc): Add visibility.
70362
70363 2005-07-24  Bruno Haible  <bruno@clisp.org>
70364
70365         * m4/visibility.m4: New file.
70366
70367 2005-07-24  Bruno Haible  <bruno@clisp.org>
70368
70369         * doc/visibility.texi: New file.
70370
70371 2005-07-22  Bruno Haible  <bruno@clisp.org>
70372
70373         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
70374         $(ALLOCA_H), redundant through BUILT_SOURCES.
70375         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
70376         redundant through BUILT_SOURCES.
70377         * modules/byteswap (Makefile.am): Remove explicit dependency on
70378         $(BYTESWAP_H), redundant through BUILT_SOURCES.
70379         * modules/fnmatch (Makefile.am): Remove explicit dependency on
70380         $(FNMATCH_H), redundant through BUILT_SOURCES.
70381         * modules/getopt (Makefile.am): Remove explicit dependency on
70382         $(GETOPT_H), redundant through BUILT_SOURCES.
70383         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
70384         redundant through BUILT_SOURCES.
70385         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
70386         redundant through BUILT_SOURCES.
70387         * modules/stdbool (Makefile.am): Remove explicit dependency on
70388         $(STDBOOL_H), redundant through BUILT_SOURCES.
70389         * modules/stdint (Makefile.am): Remove explicit dependency on
70390         $(STDINT_H), redundant through BUILT_SOURCES.
70391         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
70392         Remove explicit dependency on $(SYSEXITS_H).
70393         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
70394
70395 2005-07-18  Simon Josefsson  <jas@extundo.com>
70396
70397         * lib/check-version.c (check_version): Accept identical versions too.
70398
70399 2005-07-18  Bruno Haible  <bruno@clisp.org>
70400
70401         * modules/lock: New file.
70402         * MODULES.html.sh (Multithreading): New section.
70403
70404 2005-07-18  Bruno Haible  <bruno@clisp.org>
70405
70406         * m4/lock.m4: New file, from GNU gettext.
70407
70408 2005-07-18  Bruno Haible  <bruno@clisp.org>
70409
70410         * lib/lock.h: New file, from GNU gettext.
70411         * lib/lock.c: New file, from GNU gettext.
70412
70413 2005-07-18  Bruno Haible  <bruno@clisp.org>
70414
70415         * lib/lock.h (gl_once_t): New type.
70416         (gl_once_define, gl_once): New macros.
70417         * lib/lock.c (fresh_once): New variable.
70418         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
70419         functions.
70420
70421 2005-07-16  Simon Josefsson  <jas@extundo.com>
70422
70423         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
70424         workaround, suggested by Bruno.
70425
70426 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
70427
70428         * modules/xalloc (Depends-on): Add xalloc-die.
70429         * modules/xvasprintf (Depends-on): Add xalloc-die.
70430
70431 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
70432
70433         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
70434         with a minor change.
70435
70436 2005-07-15  Bruno Haible  <bruno@clisp.org>
70437
70438         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
70439         When using lib/poll.c, define poll as rpl_poll.
70440
70441 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
70442
70443         * modules/argp (Depends-on): Remove unlocked-io.
70444
70445 2005-07-14  Derek Price  <derek@ximbiot.com>
70446
70447         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
70448         for glob symlink bug.
70449
70450 2005-07-14  Bruno Haible  <bruno@clisp.org>
70451
70452         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
70453         Instead, test for *_unlocked function declarations directly.
70454
70455 2005-07-11  Simon Josefsson  <jas@extundo.com>
70456
70457         * modules/size_max: New file.
70458
70459         * modules/xsize: Depend on size_max module for size_max.m4.
70460
70461 2005-07-11  Simon Josefsson  <jas@extundo.com>
70462
70463         * lib/size_max.h: New file.
70464
70465 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
70466
70467         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
70468         copyright symbol and the year.
70469         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
70470         (version_etc_va): Use parameterized copyright notice.
70471         Reword to conform to the current GNU coding standards.
70472
70473 2005-07-11  Karl Berry  <karl@gnu.org>
70474
70475         * doc/gnulib.texi (Quoting): new node.
70476         (Initial import): more info, from Patrice.
70477
70478 2005-07-11  Bruno Haible  <bruno@clisp.org>
70479
70480         * gnulib-tool (func_usage): Document option --avoid.
70481         (Command line options): Handle --avoid.
70482         (func_acceptable): New function.
70483         (func_modules_transitive_closure): Use it.
70484
70485 2005-07-11  Bruno Haible  <bruno@clisp.org>
70486
70487         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
70488         Reported by Jim Meyering.
70489
70490 2005-07-10  Bruno Haible  <bruno@clisp.org>
70491
70492         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
70493         Needed when size_t is smaller than 'unsigned int'.
70494         Reported by Paul Eggert.
70495
70496 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70497
70498         * modules/argp (Depends-on): Add unlocked-io
70499
70500 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70501
70502         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
70503         block of defines.
70504
70505 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70506
70507         * config/srclist.txt: Comment out regcomp.c, since we have a porting
70508         fix now.
70509
70510 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
70511         and Paul Eggert  <eggert@cs.ucla.edu>
70512
70513         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
70514         in wint_t, not wchar_t.  Remove now-unnecessary cast.
70515
70516 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70517
70518         * modules/regex (Files): Add lib/regex_internal.c,
70519         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
70520         (Depends-on): Add extensions.
70521         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
70522
70523 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70524
70525         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
70526         pathconf.
70527         * m4/same.m4 (gl_SAME): Likewise.
70528         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
70529
70530         * m4/regex.m4: Adjust to new libc regex implementation.
70531         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
70532         all the .c and .h parts of (the new) regex.
70533         Quote the m4 stuff better.
70534         Check for RE_ICASE bug of old gnulib.
70535         Check for REG_STARTEND of recent libc.
70536         Rename local variables from jm_* to gl_*.
70537         Quote operand of "test -f".
70538         Say "recent enough" version of libc, not "version 2".
70539         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
70540         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
70541         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
70542         Remove check for btowc, isascii.
70543         Require AM_LANGINFO_CODESET.
70544
70545 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70546
70547         * lib/regex.c, regex.h: Sync from libc.
70548         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
70549         * lib/regexec.c:
70550         New files, synced from libc, except that regex_internal.h
70551         currently has a small porting fix.
70552
70553 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70554
70555         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
70556         regex_internal.c, regexec.c.
70557         Add regex_internal.h too, but as a comment, since the libc version
70558         is currently broken in gnulib mode.
70559
70560 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70561
70562         Support programs like Emacs that use gnulib but not gettext.
70563         * MODULES.html.sh (Internationalization functions): Add gettext-h.
70564         * modules/gettext-h: New file.
70565         * modules/gettext (Files): Remove lib/gettext.h.
70566         (Depends-on): Add gettext-h.
70567         (Makefile.am): Remove lib_SOURCES.
70568         * modules/argmatch, modules/c-stack, modules/closeout:
70569         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
70570         * modules/execute, modules/file-type, modules/getaddrinfo:
70571         * modules/getopt, modules/human, modules/javacomp:
70572         * modules/javaexec, modules/mkdir-p, modules/obstack:
70573         * modules/openat, modules/pagealign_alloc, modules/pipe:
70574         * modules/quotearg, modules/regex, modules/rpmatch:
70575         * modules/unicodeio, modules/userspec, modules/version-etc:
70576         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
70577         * modules/xsetenv:
70578         Depend on gettext-h, not gettext.
70579
70580 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70581
70582         * gnulib-tool (func_import): Add support for 'public domain' license.
70583         * modules/alloca, modules/atexit, modules/memmove:
70584         Now public domain, not GPL.
70585         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
70586         * modules/realloc, modules/strerror, modules/strtod:
70587         Now LGPL, not GPL.
70588
70589 2005-07-05  Bruno Haible  <bruno@clisp.org>
70590
70591         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
70592         autoconf CVS. Needed for mingw.
70593
70594 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70595
70596         Remove the dependency of the strftime module on the tzset module.
70597         * modules/strftime (Depends-on): Remove dependency on tzset.
70598
70599 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70600
70601         Remove the dependency of the strftime module on the tzset module.
70602         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
70603         gl_FUNC_TZSET_CLOBBER.
70604
70605 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70606
70607         Remove the dependency of the strftime module on the tzset module.
70608         * lib/strftime.c (my_strftime)
70609         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
70610         Copy the input structure, to work around some of the bug with
70611         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
70612         Solaris releases, you should also use the tzset module, but we won't
70613         require it as a dependency any more since we don't want LGPLed code
70614         to depend on GPLed code.
70615
70616 2005-07-02  Jim Meyering  <jim@meyering.net>
70617
70618         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
70619         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
70620         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
70621         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
70622
70623 2005-07-02  Jim Meyering  <jim@meyering.net>
70624
70625         * lib/backupfile.c (backup_args): Change a `0' to NULL.
70626
70627 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70628
70629         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
70630         declares only 'struct timespec;' (!).
70631
70632 2005-07-01  Jim Meyering  <jim@meyering.net>
70633
70634         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
70635         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
70636         * lib/save-cwd.c, tempname.c:
70637         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
70638         and don't include <sys/file.h>).
70639
70640 2005-06-29  Jim Meyering  <jim@meyering.net>
70641
70642         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
70643         type name.  Use the variable name instead.
70644         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
70645         Likewise.
70646
70647 2005-06-28  Simon Josefsson  <jas@extundo.com>
70648
70649         * modules/check-version (Files): Add check-version.m4.
70650
70651 2005-06-28  Simon Josefsson  <jas@extundo.com>
70652
70653         * m4/check-version.m4: New file, suggested by Jim Meyering
70654         <jim@meyering.net>.
70655
70656 2005-06-28  Simon Josefsson  <jas@extundo.com>
70657
70658         * lib/check-version.h, lib/check-version.c: New files.
70659
70660 2005-06-28  Simon Josefsson  <jas@extundo.com>
70661
70662         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
70663         collision with global variable.  Better indentation.  Don't
70664         increment buffer pointer beyond buffer end.  Based on comments
70665         from Paul Eggert <eggert@cs.ucla.edu>.
70666
70667         * lib/base64.h: Indent.
70668
70669 2005-06-28  Simon Josefsson  <jas@extundo.com>
70670
70671         * doc/gnulib.texi (Library version handling): New section.
70672
70673 2005-06-28  Jim Meyering  <jim@meyering.net>
70674
70675         * check-module (find_included_lib_files): Hard-code another
70676         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
70677         but modules/fts-lgpl (correctly) does not list those files.
70678
70679         * modules/canonicalize (Files): Add lib/pathmax.h.
70680
70681 2005-06-25  Simon Josefsson  <jas@extundo.com>
70682
70683         * modules/check-version: New file.
70684
70685 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
70686
70687         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
70688         initializer of struct addrinfo, as an indication that we don't
70689         care how many members the structure has.
70690
70691 2005-06-24  Derek Price  <derek@ximbiot.com>
70692         and Bruno Haible  <bruno@clisp.org>
70693
70694         Remove stat module & update lstat.
70695         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
70696         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70697         * m4/stat.m4: Remove this file.
70698
70699 2005-06-24  Derek Price  <derek@ximbiot.com>
70700         and Bruno Haible  <bruno@clisp.org>
70701
70702         Remove stat module & update lstat.
70703         * lib/stat.c: Remove this file...
70704         (slash_aware_lstat): ...moving this content and its support...
70705         * lib/lstat.c (rpl_lstat): ...into here.
70706         * lib/lstat.h: New file.
70707
70708 2005-06-24  Derek Price  <derek@ximbiot.com>
70709         and Bruno Haible  <bruno@clisp.org>
70710
70711         Remove stat module & update lstat.
70712         * config/srclist.txt (libc sources): Remove stat.
70713
70714 2005-06-24  Derek Price  <derek@ximbiot.com>
70715         and Bruno Haible  <bruno@clisp.org>
70716
70717         Remove stat module & update lstat.
70718         * MODULES.html.sh (stat): Remove.
70719         * MODULES.html: Regenerated.
70720         * modules/lstat (Description): Correct function name.
70721         (Files): Add "lstat.h".
70722         (Depends-on): Remove stat, add xalloc, stat-macros.
70723         * modules/stat: Remove this file.
70724         (Include): Add "lstat.h", remove <sys/stat.h>.
70725
70726 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
70727
70728         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
70729         (ranged_convert): Don't save conversion in a temporary struct.
70730         This causes a warning with GCC 4.0.0, and anyway in the typical
70731         case it's not worth the extra 100 bytes or so of code.
70732         (ranged_convert, __mktime_internal): When calling a function via a
70733         pointer P, use P () rather than (*P) (), as we now assume C89 or
70734         better.
70735
70736 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70737
70738         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
70739         "who -r" failed to give output.  Problem reported by Tim Waugh.
70740
70741         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
70742         (xcalloc): Use it to avoid needless tests.
70743         Problem reported by Jim Meyering.
70744
70745 2005-06-20  Derek Price  <derek@ximbiot.com>
70746
70747         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
70748         unnecessary for Autoconfs > 2.59c.
70749
70750 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70751
70752         * lib/argp.h (__option_is_short): Check upper limit of
70753         __key. Isprint() requires its argument to have the value
70754         of an unsigned char or EOF.
70755
70756 2005-06-16  Jim Meyering  <jim@meyering.net>
70757
70758         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
70759         when either N or S is zero.
70760
70761 2005-06-16  Derek Price  <derek@ximbiot.com>
70762
70763         * m4/bison.m4: Declare YACC & YFLAGS precious.
70764
70765 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
70766
70767         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
70768         multibyte string or pattern, fall back on unibyte matching.
70769         Problem reported by James Youngman.
70770
70771 2005-06-08  Bruno Haible  <bruno@clisp.org>
70772
70773         * modules/csharpcomp: New file.
70774         * MODULES.html.sh (C#): Add csharpcomp.
70775
70776 2005-06-08  Bruno Haible  <bruno@clisp.org>
70777
70778         * m4/csharpcomp.m4: New file, from GNU gettext.
70779
70780 2005-06-08  Bruno Haible  <bruno@clisp.org>
70781
70782         * lib/csharpcomp.h: New file, from GNU gettext.
70783         * lib/csharpcomp.c: New file, from GNU gettext.
70784         * lib/csharpcomp.sh.in: New file, from GNU gettext.
70785
70786 2005-06-08  Bruno Haible  <bruno@clisp.org>
70787
70788         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
70789         warning on mingw.
70790
70791 2005-06-07  Derek Price  <derek@ximbiot.com>
70792
70793         Sync from CVS.
70794         * lib/glob_.h: Indent nested #ifdef.
70795
70796 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
70797
70798         Sync from coreutils.
70799         Use "file name" when talking about file names, instead of "filename"
70800         or "path", as per the GNU coding standards.
70801         * lib/mkdir-p.c: Renamed from makepath.c.
70802         (make_dir_parents): Renamed from make_path.  All callers changed.
70803         * lib/mkdir-p.h: Likewise.  All includers changed.
70804         * lib/filenamecat.c: Renamed from path-concat.c.
70805         (file_name_concat): Renamed from path_concat.  All callers changed.
70806         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
70807         * lib/filenamecat.h: Likewise.  All includers changed.
70808         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
70809         in comments or local variable names.
70810         * lib/basename.c: Likewise.
70811         * lib/canonicalize.c, canonicalize.h: Likewise.
70812         * lib/dirname.c, dirname.h: Likewise.
70813         * lib/euidaccess.c: Likewise.
70814         * lib/exclude.c: Likewise
70815         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
70816         * lib/fsusage.c, fsuage.h: Likewise.
70817         * lib/fts.c, fts_.h: Likewise.
70818         * lib/getcwd.c: Likewise.
70819         * lib/getloadavg.c: Likewise.
70820         * lib/mkstemp.c: Likewise.
70821         * lib/mountlist.c, mountlist.h: Likewise.
70822         * lib/openat.c, openat.h: Likewise.
70823         * lib/readlink-stub.c: Likewise.
70824         * lib/readutmp.c, readutmp.h: Likewise.
70825         * lib/rename.c: Likewise.
70826         * lib/rmdir.c: Likewise.
70827         * lib/same.c: Likewise.
70828         * lib/savedir.c: Likewise.
70829         * lib/stripslash.c: Likewise.
70830         * lib/tempname.c: Likewise.
70831         * lib/xreadlink.c: Likewise.
70832         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
70833         All uses changed.
70834         * lib/exclude.h: Likewise.
70835
70836         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
70837         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
70838         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
70839         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
70840         * lib/pathmax.h: Include <limits.h> unconditionally, since other
70841         files have been getting away with it for years (MORE/BSD 4.3
70842         is extinct now).
70843         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
70844         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
70845
70846         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
70847         Define to 256, not 255, as per modern POSIX.
70848
70849 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
70850
70851         Sync from coreutils.
70852         Use "file name" when talking about file names, instead of "filename"
70853         or "path", as per the GNU coding standards.
70854         * MODULES.html.sh: mkdir-p renamed from makepath.
70855         filenamecat renamed from path-concat.
70856         * modules/filenamecat: Renamed from modules/path-concat.
70857         (Files): filenamecat.h and filenamecat.c renamed from
70858         path-concat.h and path-concat.c.
70859         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
70860         (Include): filenamecat.h, not path-concat.h.
70861         * modules/mkdir-p: Renamed from modules/makepath.
70862         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
70863         makepath.c.
70864         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
70865         (Include): mkdir-p.h, not makepath.h.
70866
70867 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
70868
70869         Sync from coreutils.
70870         * m4/mkdir-p.m4: Renamed from makepath.m4.
70871         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
70872         Rename files from makepath.c to mkdir-p.c, and from
70873         makepath.h to mkdir-p.h.
70874         * m4/filenamecat.m4: Renamed from path-concat.m4.
70875         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
70876         Rename files from path-concat.c to filenamecat.c,
70877         and from path-concat.h to filenamecat.h.
70878         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
70879         "file name" in local variables or comments.
70880         * m4/rename.m4: Likewise.
70881
70882 2005-06-01  Bruno Haible  <bruno@clisp.org>
70883
70884         * modules/csharpexec: New file.
70885         * MODULES.html.sh (C#): New section.
70886
70887 2005-06-01  Bruno Haible  <bruno@clisp.org>
70888
70889         * m4/csharp.m4: New file, from GNU gettext.
70890         * m4/csharpexec.m4: New file, from GNU gettext.
70891
70892 2005-06-01  Bruno Haible  <bruno@clisp.org>
70893
70894         * lib/csharpexec.h: New file, from GNU gettext.
70895         * lib/csharpexec.c: New file, from GNU gettext.
70896         * lib/csharpexec.sh.in: New file, from GNU gettext.
70897
70898 2005-05-31  Derek Price  <derek@ximbiot.com>
70899             Paul Eggert  <eggert@cs.ucla.edu>
70900
70901         Sync from cvs.
70902         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
70903
70904 2005-05-31  Derek Price  <derek@ximbiot.com>
70905             Paul Eggert  <eggert@cs.ucla.edu>
70906
70907         Sync from cvs.
70908         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
70909
70910 2005-05-29  Derek Price  <derek@ximbiot.com>
70911
70912         * config/srclist.txt (glob_.h, glob.c): Add these files.
70913
70914 2005-05-29  Derek Price  <derek@ximbiot.com>
70915
70916         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
70917         * modules/glob: New file.
70918         * modules/getlogin_r: Add link to POSIX spec in description.
70919
70920 2005-05-29  Derek Price  <derek@ximbiot.com>
70921             Paul Eggert  <eggert@cs.ucla.edu>
70922
70923         * m4/glob.m4: New file.
70924
70925 2005-05-29  Derek Price  <derek@ximbiot.com>
70926             Paul Eggert  <eggert@cs.ucla.edu>
70927
70928         * lib/glob_.h, lib/glob.c: New files.
70929
70930 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
70931
70932         * modules/fts (Files): Remove m4/inttypes-pri.m4.
70933         * modules/fts-lgpl (Depends-on): Remove gettext.
70934
70935 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
70936
70937         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
70938         and don't require gt_INTTYPES_PRI.
70939
70940 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
70941
70942         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
70943
70944         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
70945         the configuration hassle isn't worth it.
70946         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
70947         (LONGEST_MODIFIER, PRIuMAX): Remove.
70948
70949 2005-05-27  Bruno Haible  <bruno@clisp.org>
70950
70951         * lib/getlogin_r.h: Remove second include of <stddef.h>.
70952
70953 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
70954
70955         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
70956         _POSIX_PTHREAD_SEMANTICS for Solaris.
70957
70958 2005-05-25  Derek Price  <derek@ximbiot.com>
70959
70960         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
70961
70962 2005-05-25  Derek Price  <derek@ximbiot.com>
70963             Paul Eggert  <eggert@cs.ucla.edu>
70964
70965         * modules/getlogin_r, m4/getlogin_r.m4: New files.
70966         * lib/getlogin_r.c, getlogin_r.h: New files.
70967
70968 2005-05-25  Bruno Haible  <bruno@clisp.org>
70969             Derek Price  <derek@ximbiot.com>
70970
70971         * lib/getlogin_r.h: Simplify API documentation.
70972
70973 2005-05-23  Derek Price  <derek@ximbiot.com>
70974
70975         * modules/minmax (Files): Add m4/minmax.m4.
70976         (configure.ac): Add gl_MINMAX.
70977
70978 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
70979
70980         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
70981         so that unistd-safer.h (GPL'ed code) need not be included.
70982
70983 2005-05-22  Bruno Haible  <bruno@clisp.org>
70984
70985         * m4/minmax.m4: New file.
70986         Based on a patch by Derek Price <derek@ximbiot.com>.
70987
70988 2005-05-22  Bruno Haible  <bruno@clisp.org>
70989
70990         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
70991         (INT64_MIN): Fix definition.
70992         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
70993
70994         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
70995         NEED_SIGNED_INT_TYPES.
70996
70997         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
70998         HAVE_SYSTEM_INTTYPES.
70999
71000 2005-05-22  Bruno Haible  <bruno@clisp.org>
71001
71002         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
71003         Also include <sys/param.h> if it defines MIN, MAX.
71004         Based on a patch by Derek Price <derek@ximbiot.com>.
71005
71006 2005-05-21  Jim Meyering  <jim@meyering.net>
71007
71008         * modules/fts (Files): Add m4/inttypes-pri.m4.
71009         (Depends-on): Add lstat and remove gettext.  Alphabetize.
71010
71011 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71012
71013         New fts module.
71014         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
71015         (setup_dir, free_dir): New functions.
71016         (enter_dir, leave_dir): Define trivial
71017         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
71018         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
71019         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
71020         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
71021         Move to fts-cycle.c.
71022         (fts_open): Use setup_dir.
71023         (fts_close): Use free_dir.
71024         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
71025         This adds a label and some gotos, but the alternatives were messier.
71026         Check for memory allocation failure when entering a dir.
71027         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
71028         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
71029         (FTS): New member fts_cycle, that is a union that contains the
71030         old active_dir_ht and cycle_state.  All uses changed to mention
71031         fts_cycle.ht and fts_cycle.state.
71032         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
71033         fts.c, with the following changes:
71034         (setup_dir, free_dir): New functions.
71035         (enter_dir): Now returns bool.  Return true if successful, false
71036         if memory exhausted.  All callers changed.
71037         Do not bother partly cleaning up on
71038         memory allocation failure; that is free_dir's job.
71039         However, free ad if hash_insert fails, to avoid memory leak.
71040         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
71041         fts->fts_options to see which union member to use.
71042
71043 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71044
71045         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
71046         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
71047
71048 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71049
71050         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
71051
71052 2005-05-20  Jim Meyering  <jim@meyering.net>
71053
71054         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
71055         Now a macro, to pacify GCC.
71056
71057 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71058
71059         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
71060         of -1.
71061
71062 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71063
71064         * lib/chown.c (rpl_chown): Return -1 on failure.
71065
71066 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71067
71068         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
71069         Don't check for stddef.h.
71070         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
71071         don't use its results.
71072         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
71073         since we include them unconditionally.  Don't require
71074         AM_STDBOOL_H, since stdbool is a prerequisite.
71075         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
71076         since we assume C89 or better.
71077         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
71078         as we don't use their results.
71079         Don't check for fchdir, memmove, memset, strrchr, as we use
71080         them unconditionally.
71081         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
71082         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
71083
71084 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71085
71086         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
71087         Include <stddef.h> unconditionally, since we assume C89 now.
71088         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
71089         * lib/fts.c: Include fts_.h first, to check interface.
71090         Do not include intprops.h; no longer needed.
71091         Include cycle-check.h and hash.h, since fts_.h no longer does.
71092         Remove unnecessary casts of closedir to void.
71093         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
71094         decide whether to decrement nlinks.
71095         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
71096         (FTS): Use struct hash_table * instead of Hash_table, so that
71097         we no longer need to include hash.h here.
71098
71099 2005-05-18  Jim Meyering  <jim@meyering.net>
71100
71101         * modules/dirfd (License): Change to LGPL.  Most of the code
71102         is already in the public domain.
71103
71104 2005-05-18  Jim Meyering  <jim@meyering.net>
71105
71106         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
71107         Reported by Yoann Vandoorselaere.
71108
71109 2005-05-17  Jim Meyering  <jim@meyering.net>
71110
71111         * m4/fts.m4: New file, from coreutils.
71112
71113 2005-05-17  Jim Meyering  <jim@meyering.net>
71114
71115         * lib/fts.c, lib/fts_.h: New files, from coreutils.
71116
71117 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71118
71119         Sync from coreutils.
71120         * m4/unlinkdir.m4: New file.
71121
71122 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71123
71124         Sync from coreutils.
71125         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
71126         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
71127         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
71128         White space changes only.
71129         * lib/makepath.c (make_path): Port to hosts where leading "//" is
71130         special.
71131         * lib/yesno.c: Include getline.h, not ctype.h.
71132         (yesno): Don't remove leading white space; POSIX doesn't allow it.
71133         Use getline to remove arbitrary restriction on response length.
71134
71135 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71136
71137         * config/srclist-update: Spell out "Street" in FSF postal
71138         mail address; this is the style the FSF seems to prefer.
71139
71140         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
71141         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
71142         this updates FSF postal mail address.
71143
71144         Sync from coreutils.
71145         * modules/unlinkdir: New file.
71146         * modules/yesno (Depends-on): Add getline.
71147         * MODULES.html.sh (File system functions): Add unlinkdir.
71148
71149 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71150
71151         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
71152         lib/strsep.h:
71153         Change the initial comment to refer to GPL, not LGPL.
71154         gnulib-tool will change it to LGPL as needed.
71155
71156         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
71157         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
71158         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
71159         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
71160         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
71161         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
71162         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
71163         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
71164         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
71165         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
71166         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
71167         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
71168         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
71169         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
71170         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
71171         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
71172         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
71173         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
71174         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
71175         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
71176         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
71177         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
71178         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
71179         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
71180         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
71181         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
71182         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
71183         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
71184         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
71185         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
71186         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
71187         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
71188         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
71189         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
71190         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
71191         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
71192         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
71193         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
71194         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
71195         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
71196         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
71197         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
71198         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
71199         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
71200         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
71201         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
71202         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
71203         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
71204         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
71205         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
71206         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71207         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
71208         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
71209         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
71210         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
71211         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
71212         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
71213         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
71214         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
71215         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
71216         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
71217         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
71218         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
71219         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
71220         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
71221         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
71222         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
71223         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
71224         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
71225         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
71226         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
71227         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
71228         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
71229         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
71230         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
71231         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
71232         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
71233         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
71234         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
71235         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
71236         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
71237         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
71238         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
71239         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
71240         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
71241         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
71242         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
71243         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
71244         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
71245         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
71246         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
71247         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
71248         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
71249         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
71250         lib/yesno.c, lib/yesno.h:
71251         Update FSF postal mail address.
71252
71253 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71254
71255         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
71256         tests/test-memmem.c, tests/test-stpncpy.c:
71257         Update FSF postal mail address.
71258
71259 2005-05-13  Bruno Haible  <bruno@clisp.org>
71260
71261         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
71262         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
71263         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
71264         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
71265         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
71266         Add support for 64-bit integers in the MSVC compiler.
71267
71268 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71269
71270         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
71271
71272 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
71273
71274         * gnulib-tool (func_import): Sort and uniquify recommended includes.
71275
71276 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
71277
71278         * doc/getdate.texi (General date syntax): Don't say that date
71279         date --iso-8601=ns generates acceptable dates; it doesn't yet.
71280         Problem reported by Nic Ferrier.
71281
71282 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71283
71284         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
71285         specified in ai_socktype. Fix invalid ai_protocol
71286         check. ai_protocol is usually set to 0 or depending on
71287         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
71288         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
71289         ai_socktype / ai_protocol in the returned addrinfo structure.
71290
71291 2005-05-10  Simon Josefsson  <jas@extundo.com>
71292
71293         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
71294         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71295
71296 2005-05-10  Karl Berry  <karl@gnu.org>
71297
71298         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
71299         (from http://www.gnu.org/licenses).
71300         * doc/COPYING.LIB: also rename to COPYING.LESSER.
71301         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
71302         fdl.texi suffices.
71303
71304 2005-05-10  Karl Berry  <karl@gnu.org>
71305
71306         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
71307         (COPYING.DOC): remove.
71308
71309         * config/srclist-update: new FSF address.
71310
71311 2005-05-10  Derek Price  <derek@ximbiot.com>
71312
71313         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
71314         possible.
71315
71316 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71317             Bruno Haible  <bruno@clisp.org>
71318
71319         * modules/inet_ntop: New file.
71320         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71321         inet_ntop.
71322
71323 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71324             Bruno Haible  <bruno@clisp.org>
71325
71326         * m4/inet_ntop.m4: New file.
71327
71328 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71329             Bruno Haible  <bruno@clisp.org>
71330
71331         * lib/inet_ntop.h: New file.
71332         * lib/inet_ntop.c: New file, from glibc with modifications.
71333
71334 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
71335
71336         * modules/time_r (License): Change to LGPL.
71337         * modules/extensions (License): Change to LGPL.  Actually,
71338         the license is more permissive than that, but currently gnulib-tool
71339         doesn't know how to handle more-permissive licenses.
71340
71341         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
71342         Problem reported by Dave Love.
71343
71344 2005-05-08  Jim Meyering  <jim@meyering.net>
71345
71346         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
71347         blank.
71348
71349 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71350
71351         * modules/argmatch (Depends-on): Add stdbool.
71352         * modules/backupfile (Depends-on): Likewise.
71353         * modules/chdir-long (Depends-on): Likewise.
71354         * modules/closeout (Depends-on): Likewise.
71355         * modules/cycle-check (Depends-on): Likewise.
71356         * modules/dirname (Depends-on): Likewise.
71357         * modules/fnmatch (Depends-on): Likewise.
71358         * modules/fsusage (Depends-on): Likewise.
71359         * modules/fwriteerror (Depends-on): Likewise.
71360         * modules/getcwd (Depends-on): Likewise.
71361         * modules/getloadavg (Depends-on): Likewise.
71362         * modules/hard-locale (Depends-on): Likewise.
71363         * modules/makepath (Depends-on): Likewise.
71364         * modules/mountlist (Depends-on): Likewise.
71365         * modules/nanosleep (Depends-on): Likewise.
71366         * modules/posixtm (Depends-on): Likewise.
71367         * modules/quotearg (Depends-on): Likewise.
71368         * modules/readtokens (Depends-on): Likewise.
71369         * modules/readtokens0 (Depends-on): Likewise.
71370         * modules/readutmp (Depends-on): Likewise.
71371         * modules/save-cwd (Depends-on): Likewise.
71372         * modules/strftime (Depends-on): Likewise.
71373         * modules/userspec (Depends-on): Likewise.
71374         * modules/utimecmp (Depends-on): Likewise.
71375         * modules/xgetcwd (Depends-on): Likewise.
71376         * modules/xnanosleep (Depends-on): Likewise.
71377         * modules/xstrtod (Depends-on): Likewise.
71378         * modules/yesno (Depends-on): Likewise.
71379
71380 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
71381
71382         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
71383         needless checks.
71384
71385 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71386
71387         Merge from coreutils.  Among other things,
71388         add bulletproofing for cases where stdin, stdout, or stderr are closed.
71389         * lib/fd-safer.c: New file.
71390         * lib/fcntl-safer.h, open-safer.c: Remove.
71391         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
71392         * lib/dup-safer.c: Include unistd-safer.h first.
71393         Don't include errno.h.
71394         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
71395         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
71396         * lib/file-type.c: Rely on file-type.h change.
71397         * lib/getloadavg.c: Include unistd-safer.h.
71398         (getloadavg): Use safer open.
71399         * lib/getusershell.c: Include "stdio-safer.h".
71400         (getusershell): Use safer fopen.
71401         * lib/long-options.c (long_options): Use NULL rather than 0.
71402         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
71403         'free'.
71404         * lib/modechange.c: Likewise.
71405         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
71406         (MODE_DONE): New constant.
71407         (struct mode_change): Remove 'next' member.
71408         (make_node_op_equals): New function; like the old one of the
71409         same name, except it allocates an array.
71410         (mode_compile, mode_create_from_ref): Use it.
71411         (mode_compile): Allocate result as an array, not a linked list.
71412         Parse octal string ourself, so that we catch mistakes like "+0".
71413         (mode_adjust): Arg is an array, not a linked list.
71414         * lib/modechange.c: Include stat-macros.h, xalloc.h.
71415         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
71416         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
71417         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
71418         Remove.  This is now stat-macros.h's job.
71419         (talloc): Remove.  All callers replaced by xalloc, so that
71420         our invokers don't have to worry about reporting memory failures.
71421         (make_node_op_equals): Remove.
71422         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
71423         New constants.
71424         (struct mode_change): Moved here from modechange.h.
71425         (mode_append_entry): Remove.
71426         (mode_compile): Remove MASKED_OPS arg, since it encouraged
71427         apps to have incorrect behavior.  Use simpler algorithm for head
71428         and tail.  Don't futz with umask; that's now the job of mode_adjust.
71429         Detect more invalid usages rather than having somewhat-random behavior.
71430         Don't insert an "a=" action, as that leads to incorrect behavior.
71431         (mode_compile, mode_create_from_ref): Return NULL on error instead
71432         of an enum, since now there's only one way to have an error.  All
71433         callers changed.
71434         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
71435         at the correct time.  Simplify calculation of "+u" and its ilk.
71436         Don't mishandle "+X".
71437         (mode_free): Remove "register" and localize decls.
71438         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
71439         (struct mode_change): Move to modechange.c; callers don't
71440         need to see this stuff.
71441         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
71442         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
71443         (mode_change, mode_adjust): Reflect the new signatures noted above.
71444         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
71445         that might redefine system include files.
71446         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
71447         (my_usleep): Use NULL rather than (void *) 0.
71448         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
71449         Use siginterrupt to specify that system calls should be interrupted.
71450         (rpl_nanosleep): Move initialization of suspended closer to call of
71451         my_usleep.
71452         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
71453         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
71454         (desirable_utmp_entry): New function.
71455         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
71456         using x2nrealloc, to simplify logic.
71457         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
71458         size calculation.  Do not assume utmp file is a regular file.
71459         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
71460         (READ_UTMP_CHECK_PIDS): New constant.
71461         * lib/save-cwd.c: Include unistd-safer.h.
71462         (save_cwd): Use fd_safer.
71463         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
71464         [!_LIBC] Include "stat-macros.h" instead.
71465         * lib/unistd-safer.h (fd_safer): New decl.
71466
71467 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71468
71469         * modules/getloadavg (Depends-on): Add unistd-safer.
71470         * modules/getusershell (Depends-on): Add stdio-safer.
71471         * modules/lstat (Depends-on): Remove xalloc.
71472         * modules/mkstemp (Depends-on): Add stat-macros.
71473         * modules/modechange (Depends-on): Remove xstrtol.
71474         Add stat-macros, xalloc.
71475         * modules/save-cwd (Depends-on): Add unistd-safer.
71476         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
71477         * modules/unistd-safer (Files): Add lib/fd-safer.c
71478         (Makefile.am): Remove lib_SOURCES.
71479
71480         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
71481         Remove fcntl-safer; unistd-safer supersedes it.
71482
71483 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71484
71485         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
71486         AC_HEADER_STAT.
71487         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
71488         (gl_PREREQ_CHOWN): Remove.
71489         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
71490         it.  Don't require AC_HEADER_STAT.
71491         (gl_PREREQ_LSTAT): Remove.
71492         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
71493         Don't require AC_HEADER_STAT.
71494         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
71495         (gl_PREREQ_RMDIR): Remove.
71496         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
71497         mention stat-macros.h or AC_HEADER_STAT, since we'll make
71498         the stat-macros module a prerequisite.
71499         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
71500         * m4/filemode.m4 (gl_FILEMODE): Likewise.
71501         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
71502         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
71503         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
71504         variable names.
71505         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
71506         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
71507         variable prefixes.
71508         * m4/fcntl-safer.m4: Remove.
71509         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
71510         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
71511         Invoke gl_PREREQ_FD_SAFER.
71512         (gl_PREREQ_FD_SAFER): New macro.
71513         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
71514         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
71515         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
71516         Remove duplicate call to AC_LIBOBJ(readutmp).
71517         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
71518
71519         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
71520         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
71521
71522 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71523
71524         * MODULES.html.sh (Misc): Add byteswap.
71525
71526 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71527
71528         * modules/getcwd (Depends-on): Add extensions.
71529         * modules/openat (Depends-on): Likewise.
71530
71531 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71532
71533         * modules/byteswap: New file.
71534
71535 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71536
71537         * m4/byteswap.m4: New file.
71538
71539 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71540
71541         * lib/byteswap_.h: New file.
71542
71543 2005-04-25  Karl Berry  <karl@gnu.org>
71544
71545         * m4/gettext.m4: Update from GNU gettext 0.14.4.
71546
71547 2005-04-25  Albert Chin  <china@thewrittenword.com>
71548
71549         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
71550         Toolkit C bug.
71551
71552 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
71553
71554         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
71555         (func_ln_if_changed): Remove forcibly for no error message
71556         in case file does not exist.
71557
71558 2005-04-19  Simon Josefsson  <jas@extundo.com>
71559
71560         * gnulib-tool (Options): Make --symlink mean --symbolic.
71561
71562 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
71563
71564         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
71565
71566 2005-04-16  Simon Josefsson  <jas@extundo.com>
71567
71568         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
71569
71570 2005-04-15  Simon Josefsson  <jas@extundo.com>
71571
71572         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
71573
71574 2005-04-15  Simon Josefsson  <jas@extundo.com>
71575
71576         * gnulib-tool: Rename --symlink to --symbolic.
71577
71578 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
71579
71580         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
71581         symbolic links to files instead of copying/moving.  Add --aux-dir,
71582         specifying directory relative --dir where auxiliary build tools
71583         are placed.
71584
71585 2005-04-14  Bruno Haible  <bruno@clisp.org>
71586
71587         * modules/allocsa (License): Change to LGPL.
71588         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
71589
71590 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71591
71592         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
71593         that "UTC +1 second" continues to work.  Problem reported
71594         by Dmitry V. Levin.
71595         (relunit_snumber): New rule.
71596         (relunit): Use it.
71597
71598 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71599
71600         * lib/getdate.y (universal_time_zone_table): New constant.
71601         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
71602         universal_time_zone_table.
71603         (lookup_zone): Prefer universal_time_zone_table to
71604         local_time_zone_table, so that "GMT" time stamps are allowed in
71605         London during the summer.  Problem reported by Ian Abbott.
71606
71607 2005-04-12  Jim Meyering  <jim@meyering.net>
71608
71609         * lib/human.c (humblock): Set *options even when returning due to
71610         xstrtoumax conversion failure.  Thanks to a used-uninitialized
71611         warning from gcc-4.
71612
71613 2005-04-09  Jim Meyering  <jim@meyering.net>
71614
71615         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
71616         -Wuninitialized: initialize tm0.tm_year.
71617
71618 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
71619
71620         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
71621         count, since there's no maximum.  All uses changed.
71622         Add member dsts_seen.
71623         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
71624         not being INT_MAX.
71625         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
71626         Use pc_rels_seen to decide whther a date is absolute.
71627
71628         * lib/getdate.y (number): Don't overwrite year.
71629         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
71630         check.
71631
71632 2005-04-02  Simon Josefsson  <jas@extundo.com>
71633
71634         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
71635         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
71636
71637 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
71638
71639         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
71640         where no absolute path name can be longer than PATH_MAX.
71641
71642 2005-03-27  Jim Meyering  <jim@meyering.net>
71643
71644         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
71645
71646 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
71647
71648         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
71649         "one's complement" -> "ones' complement" in comment, as per Knuth.
71650         "value of type" -> "type or expression" in comment.
71651         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
71652
71653 2005-03-26  Jim Meyering  <jim@meyering.net>
71654
71655         Comment nits.
71656         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
71657         Correct typos: s/or/of/.
71658
71659 2005-03-26  Jim Meyering  <jim@meyering.net>
71660
71661         * modules/check-include-files: Move to ../ and rename to...
71662         * check-module: ...this.
71663
71664 2005-03-25  Jim Meyering  <jim@meyering.net>
71665
71666         * modules/xvasprintf (Files): Add xalloc.h.
71667
71668 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
71669
71670         * modules/gettext (Files): config/config.rpath ->
71671         build-aux/config.rpath
71672         * modules/iconv (Files): Likewise.
71673         Problem reported by Oskar Liljeblad.
71674
71675 2005-03-23  Jim Meyering  <jim@meyering.net>
71676
71677         * modules/check-include-files: New script to check for
71678         missing dependencies, multiple includes, etc.
71679
71680         * modules/c-strtold (Depends-on): Add xalloc.
71681         * modules/c-strtod (Depends-on): Add xalloc.
71682         * modules/hash (Depends-on): Add xalloc.
71683         (Files): Remove lib/xalloc.h.
71684
71685         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
71686         * modules/userspec (Files): Add lib/inttostr.h.
71687
71688 2005-03-23  Jim Meyering  <jim@meyering.net>
71689
71690         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
71691
71692 2005-03-22  Jim Meyering  <jim@meyering.net>
71693
71694         * modules/stat-macros: New module.
71695         * modules/canonicalize, modules/euidaccess, modules/file-type,
71696         * modules/filemode, modules/lchown, modules/makepath,
71697         * modules/rmdir, modules/stat: Depend on new stat-macros module
71698         rather than listing lib/stat-macros.h manually.
71699         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
71700
71701 2005-03-22  Jim Meyering  <jim@meyering.net>
71702
71703         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
71704
71705 2005-03-22  Bruno Haible  <bruno@clisp.org>
71706
71707         * config/srclist.txt: Replace target directory 'config' with
71708         'build-aux'.
71709         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
71710         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
71711         ../build-aux/.
71712
71713 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
71714
71715         * modules/chdir-long (Depends-on): Add mempcpy.
71716
71717         * modules/acl, modules/backupfile, modules/c-strtod,
71718         modules/c-strtold, modules/canon-host, modules/canonicalize,
71719         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
71720         modules/exclude, modules/exitfail, modules/file-type,
71721         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
71722         modules/getdate, modules/getline, modules/getpagesize,
71723         modules/getpass, modules/getugroups, modules/group-member,
71724         modules/hard-locale, modules/hash, modules/human, modules/idcache,
71725         modules/inttostr, modules/long-options, modules/makepath,
71726         modules/md5, modules/memcasecmp, modules/memcoll,
71727         modules/modechange, modules/mountlist, modules/path-concat,
71728         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
71729         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
71730         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
71731         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
71732         modules/strftime, modules/strndup, modules/strverscmp,
71733         modules/timespec, modules/unlocked-io, modules/userspec,
71734         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
71735         modules/yesno:
71736         Remove lib_SOURCES line from Makefile.am section, as this is now
71737         done automatically by the corresponding Autoconf macro.
71738
71739 2005-03-21  Jim Meyering  <jim@meyering.net>
71740
71741         Changes imported from coreutils.
71742
71743         * lib/cycle-check.c: Don't include xalloc.h.
71744
71745         * lib/path-concat.c: Don't include assert.h.
71746         (path_concat): Remove assertion that would have triggered
71747         for ABASE starting with more than one slash.
71748         Reported by Andreas Schwab.
71749
71750         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
71751         properly when ABASE is an absolute file name.
71752         Correct the description of this function.
71753         Include <assert.h>.
71754         Add an assertion and a test driver.
71755         This fixes a bug introduced on 2004-07-02.
71756         Andreas Schwab reported the resulting failure of cp --parents:
71757         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
71758
71759 2005-03-21  Jim Meyering  <jim@meyering.net>
71760
71761         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
71762         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
71763
71764 2005-03-21  Jim Meyering  <jim@meyering.net>
71765         and  Paul Eggert  <eggert@cs.ucla.edu>
71766
71767         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
71768         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
71769         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
71770         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
71771         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
71772         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
71773         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
71774         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
71775         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
71776         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
71777         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
71778         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
71779         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
71780         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
71781         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
71782         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
71783         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
71784         for these modules.
71785
71786 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
71787
71788         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
71789         (which shouldn't happen), generate nothing instead of returning 0
71790         immediately, so that nstrftime (NULL, ...) doesn't return 0.
71791
71792 2005-03-16  Bruno Haible  <bruno@clisp.org>
71793
71794         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
71795         HAVE_LONGLONG_64BIT.
71796
71797 2005-03-16  Bruno Haible  <bruno@clisp.org>
71798
71799         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
71800         HAVE_LONGLONG_64BIT.
71801
71802 2005-03-16  Bruno Haible  <bruno@clisp.org>
71803
71804         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
71805         HAVE_LONGLONG_64BIT.
71806
71807 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
71808
71809         * lib/strftime.c (my_strftime): Prepend space to format so that we can
71810         reliably distinguish strftime failure from empty output on POSIX
71811         hosts.
71812
71813 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
71814
71815         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
71816         (iconv_string): Don't guess a size-zero buffer, as that might cause
71817         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
71818         result would be 'too large', where 'too large' is (heuristically)
71819         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
71820         overflow concerns.  This will prevent some unwanted malloc failures
71821         when the inputs are very large.
71822
71823 2005-03-15  Karl Berry  <karl@gnu.org>
71824
71825         * config/srclist.txt (config.rpath): from gettext.
71826         * config/config.rpath: update.
71827
71828 2005-03-15  Bruno Haible  <bruno@clisp.org>
71829
71830         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
71831         to 'negate'.
71832
71833         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
71834         variable.
71835
71836         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
71837         results.
71838
71839 2005-03-14  Simon Josefsson  <jas@extundo.com>
71840
71841         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
71842         <fx@gnu.org>.
71843
71844 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
71845
71846         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
71847         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
71848         intprops.h.
71849         * lib/strtol.c: Likewise.
71850
71851 2005-03-14  Jim Meyering  <jim@meyering.net>
71852
71853         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
71854         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
71855         to be nonzero so that we (and caller) can detect the difference
71856         between a valid zero-length expansion and an error return, even
71857         when the underlying strftime fails before writing anything into
71858         that location.
71859
71860 2005-03-14  Bruno Haible  <bruno@clisp.org>
71861
71862         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
71863         Update from GNU gettext 0.14.3.
71864
71865 2005-03-10  Jim Meyering  <jim@meyering.net>
71866
71867         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
71868
71869 2005-03-10  Jim Meyering  <jim@meyering.net>
71870
71871         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
71872         so that this module works on systems without fchdir.
71873
71874 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
71875
71876         Factor int-properties macros into a single file, except for
71877         glibc-related files.
71878         * lib/intprops.h: New file.
71879         * lib/getloadavg.c: Include it instead of limits.h.
71880         (INT_STRLEN_BOUND): Remove.
71881         * lib/human.c: Include intprops.h.
71882         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
71883         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
71884         302/1000.
71885         * lib/inttostr.h: Include intprops.h instead of limits.h.
71886         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
71887         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
71888         for consistency with intprops.h.
71889         (time_t_is_integer, twos_complement_arithmetic): Use them.
71890         * lib/sig2str.h: Include <signal.h>, intprops.h.
71891         (INT_STRLEN_BOUND): Remove.
71892         * lib/strftime.c (TYPE_SIGNED): Remove.
71893         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
71894         * lib/strtol.c: Adjust comments to match intprops.h.
71895         * lib/userspec.c: Include intprops.h.
71896         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
71897         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
71898         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
71899         instead of rolling our own expressions.
71900         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
71901
71902         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
71903         instead of int.
71904         (my_strftime): Do not mishandle years close to INT_MAX, by doing
71905         the right thing even if adding 1900 would overflow.  Similarly
71906         for tm_mon + 1 and tm_yday + 1.
71907         Make %Y always equivalent to %C%y, and similarly for %G and %g.
71908         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
71909         (DO_SIGNED_NUMBER): New macro.
71910         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
71911
71912 2005-03-07  Bruno Haible  <bruno@clisp.org>
71913
71914         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
71915
71916 2005-03-07  Bruno Haible  <bruno@clisp.org>
71917
71918         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
71919
71920 2005-03-04  Derek R. Price  <derek@ximbiot.com>
71921
71922         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
71923         (func_import): Only replace files via --import when they have actually
71924         changed.
71925
71926 2005-03-03  Derek R. Price  <derek@ximbiot.com>
71927
71928         * m4/mmap-anon.m4: New file.
71929         * m4/pagealign_alloc.m4: New file.
71930
71931 2005-03-03  Derek R. Price  <derek@ximbiot.com>
71932             Bruno Haible  <bruno@clisp.org>
71933
71934         * modules/pagealign_alloc: New file.
71935         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
71936
71937 2005-03-03  Derek R. Price  <derek@ximbiot.com>
71938             Bruno Haible  <bruno@clisp.org>
71939
71940         * lib/pagealign_alloc.h: New file.
71941         * lib/pagealign_alloc.c: New file.
71942
71943 2005-03-03  Bruno Haible  <bruno@clisp.org>
71944
71945         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
71946         Use an all-permissive copyright notice, recommended by RMS.
71947
71948 2005-03-02  Bruno Haible  <bruno@clisp.org>
71949
71950         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
71951         of AIX, the replacement has to be done only after <string.h> is
71952         included, therefore not in config.h. stpncpy.h does the replacement,
71953         and stpncpy.c uses it.
71954
71955 2005-03-02  Bruno Haible  <bruno@clisp.org>
71956
71957         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
71958         stpncpy.c uses it.
71959
71960 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71961
71962         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
71963         The workaround isn't strictly needed for POSIX conformance, and
71964         it's too much of a pain to configure and maintain.  We'll ask
71965         people to fix their kernels instead.
71966         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
71967         (NANOSLEEP_BUG_WORKAROUND): Remove.
71968         (xnanosleep): Remove the workaround.
71969
71970 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71971
71972         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
71973         Reported by Derek Price.
71974         (Include): Add "timespec.h".
71975
71976         * modules/xnanosleep (Depends-on): Remove gethrxtime.
71977
71978 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71979
71980         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
71981         to detect nanosleep bug.
71982
71983 2005-03-01  Bruno Haible  <bruno@clisp.org>
71984
71985         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
71986
71987 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
71988
71989         * modules/gethrxtime: New file.
71990         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
71991         (Depends-on): Add gethrxtime.
71992         (configure.ac): Add gl_XNANOSLEEP.
71993         (Makefile.am): Remove lib_SOURCES line.
71994
71995 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71996
71997         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
71998         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
71999
72000 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72001
72002         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
72003         * lib/timespec.h (gettime): Return void, since it always
72004         succeeds now.  All uses changed.
72005         * lib/gettime.c (gettime): Likewise.
72006         [HAVE_NANOTIME]: Prefer nanotime.
72007         Assume gettimeofday succeeds, as POSIX requires.
72008         Assime time () succeeds, since other code already does.
72009         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
72010         (timespec_subtract): Remove.
72011         (NANOSLEEP_BUG_WORKAROUND): New constant.
72012         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
72013         things considerably.  Use it only on GNU/Linux hosts, since the
72014         workaround shouldn't be needed elsewhere.
72015
72016 2005-02-24  Bruno Haible  <bruno@clisp.org>
72017
72018         * modules/gettext (Files): Add m4/glibc2.m4.
72019
72020 2005-02-24  Bruno Haible  <bruno@clisp.org>
72021
72022         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
72023         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
72024         * m4/progtest.m4:
72025         Update from GNU gettext 0.14.2.
72026         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
72027
72028 2005-02-24  Bruno Haible  <bruno@clisp.org>
72029
72030         * lib/localcharset.c: Update from GNU gettext 0.14.2.
72031         * lib/config.charset: Update from GNU gettext 0.14.2.
72032
72033 2005-02-24  Bruno Haible  <bruno@clisp.org>
72034
72035         * lib/gettext.h: Update from GNU gettext 0.14.2.
72036
72037 2005-02-23  Simon Josefsson  <jas@extundo.com>
72038
72039         * m4/iconvme.m4: New file.
72040
72041 2005-02-23  Jim Meyering  <jim@meyering.net>
72042
72043         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
72044         change.
72045         Thanks to Bruno Haible for catching it.
72046
72047 2005-02-22  Simon Josefsson  <jas@extundo.com>
72048
72049         * modules/iconvme: New file.
72050
72051         * MODULES.html.sh: Add iconvme.
72052
72053 2005-02-22  Simon Josefsson  <jas@extundo.com>
72054
72055         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
72056
72057 2005-02-22  Simon Josefsson  <jas@extundo.com>
72058
72059         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
72060
72061 2005-02-22  Jim Meyering  <jim@meyering.net>
72062
72063         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
72064         s/ifndef/ifdef/.
72065
72066 2005-02-20  Neil Conway  <neilc@samurai.com>
72067
72068         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
72069         returned by OSX/Darwin if the specified buffer is not large
72070         enough for the hostname.
72071
72072 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72073
72074         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
72075         pass it to _help, otherwise the latter coredumps trying to
72076         dereference state.root_argp.
72077
72078 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72079
72080         * modules/chdir-long (Depends-on): Add memrchr.
72081         * modules/memrchr (Files): Add lib/memrchr.h.
72082         (Include): "memrchr.h".
72083
72084 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72085
72086         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
72087
72088 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72089
72090         * lib/memrchr.h: New file.
72091         * lib/chdir-long.c: Include it.
72092         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
72093         Don't bother including stddef.h.
72094
72095 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72096
72097         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
72098         inclusion.
72099         Include <sys/types.h>, for dev_t.
72100         (ME_DUMMY, ME_REMOTE): Move from here....
72101         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
72102         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
72103         Dmitry V. Levin.
72104         Include mountlist.h first, to test the interface.
72105
72106 2005-01-29  Bruno Haible  <bruno@clisp.org>
72107
72108         * lib/progname.c (program_name): Initialize.
72109         Needed when linking statically on MacOS X.
72110
72111 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72112
72113         Sync from coreutils.
72114         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
72115         (Depends-on): Add c-strtod.
72116         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
72117
72118 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72119
72120         Sync from coreutils.
72121         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
72122
72123         Remove files that are specific to coreutils.
72124         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
72125
72126 2005-01-28  Bruno Haible  <bruno@clisp.org>
72127
72128         * modules/javacomp: New file.
72129         * MODULES.html.sh (Java): Add javacomp.
72130
72131 2005-01-28  Bruno Haible  <bruno@clisp.org>
72132
72133         * m4/javacomp.m4: New file, from GNU gettext.
72134
72135 2005-01-28  Bruno Haible  <bruno@clisp.org>
72136
72137         * lib/javacomp.sh.in: New file, from GNU gettext.
72138         * lib/javacomp.h: New file, from GNU gettext.
72139         * lib/javacomp.c: New file, from GNU gettext.
72140
72141 2005-01-26  Simon Josefsson  <jas@extundo.com>
72142
72143         * lib/gai_strerror.c: Use GPL in header.
72144
72145 2005-01-26  Bruno Haible  <bruno@clisp.org>
72146
72147         * modules/javaexec: New file.
72148         * MODULES.html.sh (Java): Add javaexec.
72149
72150 2005-01-26  Bruno Haible  <bruno@clisp.org>
72151
72152         * m4/javaexec.m4: New file, from GNU gettext.
72153
72154 2005-01-26  Bruno Haible  <bruno@clisp.org>
72155
72156         * lib/javaexec.sh.in: New file, from GNU gettext.
72157         * lib/javaexec.h: New file, from GNU gettext.
72158         * lib/javaexec.c: New file, from GNU gettext.
72159
72160 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72161
72162         * modules/lchown (Depends-on): Remove lchown.h
72163
72164 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72165
72166         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
72167         must be defined if the header file was not found, in order
72168         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
72169
72170 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72171
72172         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
72173         initializers for struct pentry_state.
72174         (__argp_error): Check return value of __asprintf
72175         (__argp_failure): Translate error message
72176
72177         * lib/argp-parse.c: Removed braces around the expansion of N_()
72178
72179 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72180
72181         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
72182         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
72183         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
72184         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
72185         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
72186         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
72187         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
72188         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
72189         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
72190         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
72191         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
72192         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
72193         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
72194         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
72195         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
72196         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
72197         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
72198         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
72199         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
72200         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
72201         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
72202         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
72203         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
72204         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
72205         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
72206         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
72207         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
72208         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
72209         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
72210         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
72211         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
72212         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
72213         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
72214         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
72215         xstrtol.m4, xstrtoumax.m4, yesno.m4:
72216         Use an all-permissive copyright notice, recommended by RMS.
72217
72218 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
72219
72220         * modules/chdir-long (Depends-on): Remove mempcpy.
72221
72222 2005-01-21  Jim Meyering  <jim@meyering.net>
72223
72224         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
72225         same value as for Solaris 9.
72226
72227         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
72228         component length.  This included changing the parameter to be
72229         of type `char *' rather than `char const *'.
72230         * lib/chdir-long.h (chdir_long): Update prototype.
72231
72232         * lib/openat.c (fdopendir, fstatat): New functions.
72233         * lib/openat.h: Include headers required for use of DIR and struct
72234         stat.
72235         [AT_SYMLINK_NOFOLLOW]: Define.
72236         (fdopendir, fstatat): Add prototypes.
72237
72238 2005-01-21  Bruno Haible  <bruno@clisp.org>
72239
72240         * modules/classpath: New file.
72241         * MODULES.html.sh (Java): Add classpath.
72242
72243 2005-01-21  Bruno Haible  <bruno@clisp.org>
72244
72245         * lib/classpath.h: New file, from GNU gettext.
72246         * lib/classpath.c: New file, from GNU gettext.
72247
72248 2005-01-20  Simon Josefsson  <jas@extundo.com>
72249
72250         * modules/version-etc-fsf: New file.
72251
72252 2005-01-20  Simon Josefsson  <jas@extundo.com>
72253
72254         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
72255         * lib/version-etc.c: Remove version_etc_copyright.
72256         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
72257         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
72258
72259 2005-01-20  Simon Josefsson  <jas@extundo.com>
72260
72261         * lib/base64.h (isbase64): Add.
72262
72263         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
72264         using a unsigned prototype, don't inline.
72265         (base64_decode): Use it.
72266
72267 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72268
72269         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
72270         it.
72271
72272 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72273
72274         * lib/save-cwd.c (save_cwd): Remove code to support the case
72275         where fchdir is missing or flaky.
72276
72277 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72278
72279         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
72280
72281 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
72282
72283         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
72284         AC_LIBSOURCES now does this.
72285         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
72286         with new ullong_max module.
72287
72288 2005-01-19  Bruno Haible  <bruno@clisp.org>
72289
72290         * modules/sh-quote: New file.
72291         * MODULES.html.sh (Executing programs): Add sh-quote.
72292
72293 2005-01-19  Bruno Haible  <bruno@clisp.org>
72294
72295         * lib/sh-quote.h: New file, from GNU gettext.
72296         * lib/sh-quote.c: New file, from GNU gettext.
72297
72298 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72299
72300         Merge from coreutils.
72301         * m4/ullong_max.m4: New file.
72302         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
72303         (gl_MACROS): Assume localeconv exists.
72304
72305 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72306
72307         Merge changes from coreutils, as described below in several
72308         changelogs dated today.
72309
72310         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
72311         (O_DIRECTORY): Remove; not needed here, since "." must be
72312         a directory.  All uses removed.
72313         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
72314         universal on Suns, and we also need to test for IRIX.
72315         Revamp code to use 'if' rather than '#if'.
72316         Avoid unnecessary comparison of cwd->desc to 0.
72317
72318         * lib/utimens.c (futimens): Robustify the previous patch, by checking
72319         for known valid error numbers rather than observed invalid ones.
72320
72321 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72322
72323         * modules/ullong_max: New file.
72324
72325         * modules/chdir-long, modules/openat: New files.
72326         * modules/save-cwd (Depends-on): Depend on chdir-long.
72327         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
72328
72329 2005-01-18  Jim Meyering  <jim@meyering.net>
72330
72331         Merge from coreutils.
72332         * m4/chdir-long.m4, m4/openat.m4: New files.
72333         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
72334         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
72335         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
72336         is sane and DOES follow symlinks.  Besides, testing 20 different
72337         systems found no broken chown implementations.
72338         Prompted by a change in rsync's copy of this macro.
72339         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
72340
72341         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
72342
72343         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
72344         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
72345         NULL-means-set-to-current-time semantics.
72346         Remove temporary file immediately, rather than waiting
72347         for configure's at-exit trap code to do it.
72348
72349 2005-01-18  Jim Meyering  <jim@meyering.net>
72350
72351         * lib/version-etc.c (version_etc_copyright): Update copyright date.
72352
72353         * lib/utimens.c (futimens): Account for the fact that futimes
72354         can also fail with errno == ENOSYS or errno == ENOENT.
72355         Patch from Dmitry V. Levin.
72356
72357         Change the name of the robust chdir function from chdir to chdir_long.
72358         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
72359         (restore_cwd): Use chdir_long, not chdir.
72360         * lib/chdir-long.c: Renamed from chdir.c.
72361         * lib/chdir-long.h: Renamed from chdir.h.
72362         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
72363         Hurd.
72364
72365 2005-01-18  Bruno Haible  <bruno@clisp.org>
72366
72367         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
72368         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
72369         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
72370         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
72371         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
72372         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
72373         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
72374         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
72375         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
72376         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
72377         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
72378         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
72379         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
72380         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
72381         Use an all-permissive copyright notice, recommended by RMS.
72382
72383 2005-01-18  Bob Proulx  <bob@proulx.com>
72384
72385         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
72386         simplify offsetof() macro construct to avoid compile failure with
72387         native HP-UX 11.0 ANSI C compiler.
72388
72389 2005-01-17  Bruno Haible  <bruno@clisp.org>
72390
72391         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
72392         redundant because stpncpy.m4 takes care of it.
72393
72394 2005-01-17  Bruno Haible  <bruno@clisp.org>
72395
72396         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
72397
72398 2005-01-17  Bruno Haible  <bruno@clisp.org>
72399
72400         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
72401         used.
72402
72403 2005-01-17  Bruno Haible  <bruno@clisp.org>
72404
72405         * lib/fwriteerror.h (fwriteerror): Change specification to include
72406         fclose.
72407         * lib/fwriteerror.c: Include <stdbool.h>.
72408         (fwriteerror): At the end, close the file stream. Record whether
72409         stdout was already closed.
72410
72411 2005-01-17  Bruno Haible  <bruno@clisp.org>
72412
72413         * lib/execute.c (environ): Declare if needed.
72414         * lib/pipe.c (environ): Likewise.
72415         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
72416
72417 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72418
72419         * modules/argp: Depend on vsnprintf
72420
72421 2005-01-10  Jim Meyering  <jim@meyering.net>
72422
72423         * modules/closeout (Depends-on): Add atexit.
72424
72425 2005-01-06  Bruno Haible  <bruno@clisp.org>
72426
72427         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
72428
72429 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72430
72431         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
72432         definitions to be after all include files, to avoid collisions.
72433         Problem reported by Bob Proulx.
72434
72435 2005-01-04  Jim Meyering  <jim@meyering.net>
72436
72437         Changes imported from coreutils.
72438         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
72439         as the mkstemp template, use a temporary directory and an
72440         8.3-friendly template to avoid trouble on systems like DJGPP.
72441         Reported by Juan M. Guerrero via Stepan Kasal.
72442         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
72443         close. Remove the temporary directory right away, rather than waiting
72444         for configure's at-exit trap code to do it.
72445         Suggestion from Stepan Kasal.
72446
72447 2005-01-01  Simon Josefsson  <jas@extundo.com>
72448
72449         * gnulib-tool: Print #include directives when --import'ing.
72450
72451 2004-12-28  Simon Josefsson  <jas@extundo.com>
72452
72453         * tests/test-base64.c: Include required header files.  Remove
72454         unused variables.
72455
72456 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72457
72458         * modules/error (Depends-on): Remove gettext.
72459
72460 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72461
72462         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
72463         not needed.  This removes a dependency on the gettext module.
72464         [defined _LIBC]: Do not include <libintl.h>; not needed.
72465
72466 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
72467
72468         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
72469         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
72470
72471 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
72472
72473         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
72474         HAVE_DECL_STRTOLD.
72475
72476 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72477
72478         * modules/getdate (Depends-on): Remove alloca-opt.
72479
72480 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72481
72482         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
72483
72484 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72485
72486         * lib/argp-parse.c: Include <stddef.h>.
72487         (alignof, alignto): New macros.
72488         (parser_init): Don't assume that void * is aligned sufficiently
72489         for struct option.
72490
72491         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
72492         need to extend the stack.
72493         (YYINITDEPTH): New macro, so that the initial stack isn't overly
72494         large.
72495
72496 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72497
72498         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
72499
72500 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
72501
72502         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
72503         (2004-10-24) change.  Apparently this was a false alarm.
72504
72505         * modules/getdate: Depend on alloca-opt, not alloca.
72506
72507 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
72508
72509         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
72510         Remove now-obsolete comment about AIX.
72511         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
72512         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
72513         (YYMAXDEPTH): New macro.
72514
72515 2004-12-18  Simon Josefsson  <jas@extundo.com>
72516
72517         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
72518
72519 2004-12-18  Bruno Haible  <bruno@clisp.org>
72520
72521         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
72522
72523 2004-12-18  Bruno Haible  <bruno@clisp.org>
72524
72525         * lib/fatal-signal.c (fatal_signals): Make non-const.
72526         (init_fatal_signals): New function.
72527         (uninstall_handlers, install_handlers): Ignore signals that were set to
72528         SIG_IGN.
72529         (at_fatal_signal): Call init_fatal_signals.
72530         (init_fatal_signal_set): Likewise. Ignore signals that were set to
72531         SIG_IGN.
72532         Reported by Paul Eggert.
72533
72534 2004-12-18  Bruno Haible  <bruno@clisp.org>
72535
72536         * doc/alloca.texi: New file.
72537         * doc/alloca-opt.texi: New file.
72538
72539 2004-12-17  Jim Meyering  <jim@meyering.net>
72540
72541         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
72542         Otherwise, install-sh could exit with improper exit status when
72543         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
72544
72545 2004-12-16  Simon Josefsson  <jas@extundo.com>
72546
72547         * tests/test-base64.c: Add license.
72548
72549 2004-12-15  Stepan Kasal  <address@hidden>
72550
72551         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
72552
72553 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
72554
72555         * modules/getcwd (Files): Add m4/d-ino.m4.
72556         Suggested by Mark D. Baushke.
72557
72558 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
72559
72560         * lib/getdate.y (textint): New member "negative".
72561         (time_zone_hhmm): New function.
72562         Expect 14 shift-reduce conflicts, not 13.
72563         (o_colon_minutes): New rule.
72564         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
72565         (yylex): Set the "negative" member of signed numbers.
72566
72567 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
72568
72569         * doc/getdate.texi (Time of day items, Time zone items):
72570         Describe new formats +00:00, UTC+00:00.
72571
72572 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72573
72574         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
72575         spurious "-l"s.  Problem reported by Stepan Kasal.
72576
72577 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
72578
72579         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
72580         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
72581
72582 2004-12-04  Simon Josefsson  <jas@extundo.com>
72583
72584         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
72585         Vandoorselaere <yoann@prelude-ids.org>.
72586
72587 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72588
72589         Changes imported from coreutils.
72590         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
72591         exist.
72592         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
72593
72594 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72595
72596         Changes imported from coreutils.
72597         * lib/hard-locale.c: Assume <locale.h> exists.
72598         Include "strdup.h".
72599         (GLIBC_VERSION): New macro.
72600         (hard_locale): Assume setlocale exists.
72601         Rewrite to avoid #ifdef.
72602         Use strdup rather than malloc + strcpy.
72603         * lib/human.c: Assume <locale.h> exists.
72604         (human_readable): Assume localeconv exists.
72605
72606 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72607
72608         * modules/hard-locale (Depends-on): Add strdup.
72609
72610 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
72611
72612         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
72613         convert T2, not T.  (Imported from libc.)
72614
72615 2004-11-30  Simon Josefsson  <jas@extundo.com>
72616
72617         * modules/restrict (License): Change to LGPL.
72618
72619 2004-11-30  Simon Josefsson  <jas@extundo.com>
72620
72621         * m4/restrict.m4: Add copyright and copying conditions.
72622
72623 2004-11-30  Simon Josefsson  <jas@extundo.com>
72624
72625         * m4/base64.m4: New file.
72626
72627 2004-11-30  Simon Josefsson  <jas@extundo.com>
72628
72629         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
72630         base64.
72631
72632         * tests/test-base64.c: New file.
72633
72634         * modules/base64: New file.
72635
72636 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
72637
72638         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
72639         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
72640
72641         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
72642
72643 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
72644
72645         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
72646         (__getcwd.c): Don't restore errno; glibc doesn't.
72647         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
72648         first, falling back to our code only if its results look suspicious.
72649         Ensure that the resulting buffer is only as large as necessary.
72650
72651         * lib/readutmp.c: Include readutmp.h first.
72652         Include <errno.h>, since readutmp.h no longer does that.
72653         * lib/readutmp.h: Don't include <errno.h>,
72654         <sys/param.h>, <time.h>; not needed to establish interface.
72655         (errno): Remove decl.
72656         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
72657         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
72658         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
72659
72660 2004-11-28  Simon Josefsson  <jas@extundo.com>
72661
72662         * lib/base64.h, base64.c: New file.
72663
72664 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
72665
72666         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
72667
72668 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
72669
72670         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
72671         (Depends-on): Remove pathmax, same.  Add mempcpy.
72672         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
72673         (Makefile.am): Append getcwd.h to lib_SOURCES.
72674         (Include): Add getcwd.h.
72675         (Maintainer): Change from Jim Meyering to "all, glibc",
72676         since getdate now uses intended-for-glibc code.
72677         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
72678         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
72679
72680 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72681
72682         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
72683         HP's ANSI C compiler.
72684         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
72685         Declaring int functions causes warnings on some modern systems and
72686         shouldn't be needed to compile on ancient ones.
72687         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
72688         defined.
72689
72690         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
72691         with the following changes.
72692         (__set_errno): Parenthesize properly.
72693         Include <stdbool.h>.
72694         (MIN, MAX, MATCHING_INO): New macros.
72695         (__getcwd): Define with prototype, not K&R form.
72696         Use heuristics to allocate default buffer on stack if possible.
72697         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
72698         behavior, and to avoid the PATH_MAX limit when computing
72699         ../../../../...
72700         Use MATCHING_INO to compare inode number to file.
72701         Check for arithmetic overflow in size calculations.
72702         Fix bug in reallocation of dot array that caused getcwd to fail
72703         on directories nested deeper than 75.
72704         Be more careful about saving errno on error.
72705         Do not use realloc; use only free+malloc, as this is a bit
72706         more flexible and avoids a needless copy operation.
72707         Do not inspect st_dev and st_ino for symbolic links; POSIX
72708         doesn't specify the latter.
72709         Check for closedir errors.
72710         Avoid needless casts.
72711         Use "#ifdef weak_alias" around weak_alias, to be like other
72712         glibc code.
72713         The following changes to getcwd.c have effect only when used in
72714         gnulib; they have no effect inside glibc proper.
72715         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
72716         as alloca isn't used.
72717         (alloca, __alloca): Likewise.
72718         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
72719         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
72720         unconditionally, as gnulib assumes C89 or better.
72721         Do not include <sys/param.h>.
72722         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
72723         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
72724         better.
72725         (NULL) [!defined NULL]: Remove; we assume C89 or better.
72726         Include <dirent.h> in a way that is compatible with modern Autoconf.
72727         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
72728         New macros, if not already defined.
72729         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
72730         Use "_LIBC", not "defined _LIBC", for consistency.
72731         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
72732         a mempcpy module.
72733         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
72734         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
72735         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
72736         credit only to Jim Meyering and adjust the copyright dates.
72737         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
72738         <stdlib.h>, <unistd.h>, "pathmax.h".
72739         Instead, include "xgetcwd.h" (first) and "getcwd.h".
72740         (INITIAL_BUFFER_SIZE): Remove.
72741         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
72742
72743 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72744
72745         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
72746         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
72747         Use the _ONCE methods, for efficiency.
72748         Check for fcntl.h.  In test program, include <errno.h>
72749         and <fcntl.h> if available.  Remove old K&R cruft from
72750         test program.  Check for common errors in GNU/Linux,
72751         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
72752         don't do AC_LIBOBJ, as that's getcwd.m4's job.
72753         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
72754         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
72755         name accordingly.
72756         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
72757         accommodate new getcwd.c.
72758         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
72759         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
72760         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
72761         that's all we need now.
72762
72763 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72764
72765         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
72766         argp-parse.c depends on getopt internals, that means we should
72767         always use our getopt, to be on the safe side.
72768         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
72769         order not to spoil the result of an eventual previous invocation
72770         of gl_GETOPT_SUBSTITUTE.
72771
72772 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72773
72774         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
72775         redefinition warnings. To avoid them, include the defines
72776         in `#if !defined __need_getopt ... #endif'. The only place
72777         where __getopt_argv_const is used is in definitions
72778         of getopt_long and getopt_long_only below, which are as well
72779         protected by `#ifndef __need_getopt'.
72780         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
72781         __need_getopt after including <stdio.h> and <unistd.h> These
72782         headers might have defined it.
72783
72784 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
72785
72786         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
72787
72788 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
72789
72790         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
72791         (futimens): New function, which uses futimes if available.
72792         (futimens, utimens): Support timespec==NULL, with same semantics
72793         as utime and utimens.
72794         * lib/utimens.h (futimens): New decl.
72795
72796 2004-11-23  Jim Meyering  <jim@meyering.net>
72797
72798         * lib/getopt_.h: Remove trailing blanks.
72799
72800 2004-11-23  Jim Meyering  <jim@meyering.net>
72801
72802         * lib/__fpending.c: Add comment.
72803
72804 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
72805
72806         * modules/canonicalize (Depends-on): Add xreadlink.
72807         Problem reported by James Youngman.
72808
72809 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72810
72811         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
72812         New macros.
72813         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
72814         optopt): Use them instead of invoking ## directly; otherwise, the
72815         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
72816
72817 2004-11-19  Bruno Haible  <bruno@clisp.org>
72818
72819         * lib/strtok_r.c: Move comments from here...
72820         * lib/strtok_r.h: ... to here.
72821
72822 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72823
72824         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
72825         implementations that mishandle size_t overflow.
72826
72827 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72828
72829         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
72830         might fail.  Problem reported by Yoann Vandoorselaere.
72831         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
72832         implementations that mishandle size_t overflow.
72833
72834 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72835
72836         * modules/canon-host (Depends-on): Add strdup.
72837
72838 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72839
72840         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
72841
72842 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72843
72844         * lib/canon-host.c: Include "strdup.h".
72845         (canon_host): Use getaddrinfo if available, so that IPv6 works.
72846         Use strdup instead of malloc/strcpy to duplicate strings.
72847
72848         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
72849         (human_space_before_unit): New constant.
72850         * lib/human.c (human_readable): Support it.
72851
72852         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
72853         (xgetcwd): Set errno correctly when failing.
72854         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
72855         the failure is actually due to a PATH_MAX problem.
72856
72857         Further getopt changes to make it more likely that glibc will
72858         buy the changes back.
72859         * lib/getopt.c (POSIXLY_CORRECT): New constant.
72860         (getopt): Use it, so to preserve glibc semantic
72861         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
72862         when compiling for libc.
72863         * lib/getopt_.h (__getopt_argv_const): Bring it back.
72864         (getopt_long, getopt_long_only): Use it.
72865
72866         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
72867         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
72868         (getopt): Argv is now char * const *, as per standard.
72869         (_getopt_internal_r, _getopt_internal): Argv is now char **,
72870         not char *__getopt_argv_const *.
72871         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
72872         _getopt_long_only_r): Likewise.
72873         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
72874         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
72875         _getopt_long_r, _getopt_long_only_r): Likewise.
72876         * lib/getopt_.h (__getopt_argv_const): Remove.
72877         (getopt): Argv is now char * const *, as per standard.
72878
72879         * lib/getdate.y (tORDINAL): New token.
72880         (day, relunit): Allow it for relative times.
72881         (relative_time_table): Use tORDINAL for ordinals.
72882
72883 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72884
72885         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
72886         Document that "second" isn't allowed as an ordinal number.
72887
72888 2004-11-16  Jim Meyering  <jim@meyering.net>
72889
72890         * modules/closeout (Depends-on): Add fpending.
72891
72892 2004-11-15  Jim Meyering  <jim@meyering.net>
72893
72894         * lib/closeout.c: Include "__fpending.h" once again.
72895         Include <stdbool.h>.
72896         (close_stdout): Don't fail just because stdout was closed initially,
72897         since some programs don't write to stdout in the normal course of
72898         operation (other than --version and --help), and we don't want this
72899         function to make e.g. `touch file >&-' fail.
72900         But do fail if it was closed and someone has tried to write to it.
72901         E.g., `printf foo >&-' must fail.
72902
72903 2004-11-13  Jim Meyering  <jim@meyering.net>
72904
72905         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
72906
72907 2004-11-12  Simon Josefsson  <jas@extundo.com>
72908
72909         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
72910         small doc fix is still pending.
72911
72912 2004-11-11  Simon Josefsson  <jas@extundo.com>
72913
72914         * modules/strtok_r: New file.
72915
72916         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72917         strtok_r.
72918
72919 2004-11-11  Simon Josefsson  <jas@extundo.com>
72920
72921         * m4/strtok_r.m4: New file.
72922
72923         * m4/getopt.m4: Replace opterr.
72924
72925 2004-11-11  Simon Josefsson  <jas@extundo.com>
72926
72927         * lib/strtok_r.h, strtok_r.c: New file.
72928
72929 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
72930
72931         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
72932         of replacing opterr, getopt, etc.  This should handle the
72933         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
72934
72935 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
72936
72937         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
72938         we can stop lying to compilers about the constness of argv when we
72939         are compiled outside glibc.
72940         (getopt, getopt_long, getopt_long_only): Use it.
72941         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
72942         _getopt_internal, getopt): Likewise.
72943         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
72944         _getopt_long_only_r): Likewise.
72945         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
72946         _getopt_long_r, _getopt_long_only_r): Likewise.
72947
72948         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
72949         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
72950         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
72951         the other external symbols.
72952         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
72953         declaration, since the above renaming now works around collisions.
72954
72955 2004-11-11  Jim Meyering  <jim@meyering.net>
72956
72957         * lib/linebreak.c: Remove trailing blanks.
72958         * lib/alloca_.h: Likewise.
72959         * lib/acosl.c: Likewise.
72960         * lib/euidaccess.c: Likewise.
72961         * lib/allocsa.h: Likewise.
72962
72963 2004-11-10  Simon Josefsson  <jas@extundo.com>
72964
72965         * m4/getaddrinfo.m4: New file.
72966
72967 2004-11-10  Simon Josefsson  <jas@extundo.com>
72968
72969         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
72970
72971 2004-11-10  Simon Josefsson  <jas@extundo.com>
72972
72973         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72974         getaddrinfo.
72975
72976         * modules/getaddrinfo: New file.
72977
72978 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72979
72980         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
72981
72982 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72983
72984         * lib/mktime.c (SHR): New macro, which is a portable
72985         substitute for >> that should work even on Crays.
72986         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
72987         Problem reported by Mark D. Baushke in
72988         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
72989         * lib/getdate.y (SHR): Likewise.
72990         (tm_diff): Use it.
72991         * lib/strftime.c (SHR): Likewise.
72992         (tm_diff): Use it.
72993         * lib/quotearg.c (struct quoting_options): Use unsigned int for
72994         quote_these_too, so that right shifts are well defined.  All uses
72995         changed.
72996
72997 2004-11-10  Jim Meyering  <jim@meyering.net>
72998
72999         Ensure that no close failure goes unreported.
73000         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
73001         return early when it seems there's nothing to flush.
73002         Don't include __fpending.h.
73003
73004 2004-11-10  Jim Meyering  <jim@meyering.net>
73005
73006         * modules/closeout (Depends-on): Remove fpending.
73007
73008 2004-11-10  Jim Meyering  <jim@meyering.net>
73009
73010         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
73011
73012 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73013
73014         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
73015         gl_FUNC_STRFTIME.
73016         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
73017         and AC_REQUIRE when possible, to avoid duplicate checks.
73018         Check for <wchar.h>.
73019
73020 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73021
73022         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
73023
73024 2004-11-09  Bruno Haible  <bruno@clisp.org>
73025
73026         * m4/sockpfaf.m4: New file.
73027
73028 2004-11-05  Bruno Haible  <bruno@clisp.org>
73029
73030         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
73031         Reported by Mark D. Baushke <mdb@cvshome.org>.
73032
73033 2004-11-04  Bruno Haible  <bruno@clisp.org>
73034
73035         2004-09-11  Bruno Haible  <bruno@clisp.org>
73036                 * allocsa.valgrind: New file.
73037         2004-02-06  Bruno Haible  <bruno@clisp.org>
73038                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
73039                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
73040                 Reported by Christopher Seip <chris.seip@hp.com>.
73041
73042 2004-11-04  Bruno Haible  <bruno@clisp.org>
73043
73044         * modules/allocsa (Files): Add lib/allocsa.valgrind.
73045         (Makefile.am): Distribute it.
73046
73047 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73048
73049         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
73050         with errno == ERANGE if the buffer is too small.
73051         Problem reported by Mark D. Baushke.
73052
73053 2004-11-03  Albert Chin  <china@thewrittenword.com>
73054             Paul Eggert  <eggert@cs.ucla.edu>
73055
73056         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
73057         equivalent, substitute $ac_type for equivalent type rather than
73058         blindly using uint32_t *always* which won't work if uint32_t is not
73059         available.  Define _UINT32_T to work around typedef of uint32_t if
73060         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
73061         2.5.1.
73062
73063 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73064
73065         * m4/jm-macros.m4: Sync from coreutils.
73066         (gl_MACROS): Check for mbrlen, for pathchk.
73067         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
73068
73069 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73070
73071         * lib/xreadlink.c (MAXSIZE): New macro.
73072         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
73073         size does not exceed MAXSIZE.  Avoid cast.
73074         As suggested by Mark D. Baushke in
73075         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
73076         if readlink fails with buffer size just under MAXSIZE, try again
73077         with MAXSIZE.
73078
73079 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73080
73081         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
73082
73083 2004-11-02  Derek R. Price  <derek@ximbiot.com>
73084         and  Paul Eggert  <eggert@cs.ucla.edu>
73085
73086         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
73087         (get_date): Overparenthesize to avoid GCC warning.
73088
73089 2004-11-02  Bruno Haible  <bruno@clisp.org>
73090
73091         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
73092         returns void.
73093
73094 2004-11-02  Bruno Haible  <bruno@clisp.org>
73095
73096         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
73097         function returns void.
73098
73099 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73100
73101         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
73102         fflush_unlocked, flockfile, funlockfile, funlockfile,
73103         fputs_unlocked, putc_unlocked.
73104
73105 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73106
73107         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73108         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
73109         already declared.
73110
73111 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73112
73113         * modules/getdate (Files): Add doc/getdate.texi.
73114         (Depends-on): Add setenv, xalloc.
73115
73116 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73117
73118         * lib/getdate.y: Add support for TZ="foo" within a date string.
73119         Fix some bugs near time_t boundaries.  Reject dates with
73120         out-of-range components, e.g., "Sept 31".
73121         Include <stdlib.h>, "setenv.h", "xalloc.h".
73122         (ISDIGIT_LOCALE): Remove; unused.
73123         Note that the TZ and time functions used here are not reentrant.
73124         (mktime_ok, get_tz): New functions.
73125         (TZBUFSIZE): New constant.
73126         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
73127         This requires that we sometimes generate our own TZ="XXX..." setting.
73128
73129 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73130
73131         * doc/getdate.texi: New file, from coreutils with modifications for
73132         the new TZ parsing.
73133
73134 2004-10-27  Derek R. Price  <derek@ximbiot.com>
73135
73136         * lib/mktime.c (not_equal_tm): Remove redundant check.
73137
73138 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73139
73140         * modules/regex (lib_SOURCES): Add regex.c.
73141         Reported by James Youngman in
73142         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
73143
73144 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73145
73146         * lib/getdate.y: Use Bison 1.875 features, and some minor
73147         code cleanups.  This change does not affect semantics.
73148         Don't include <stdlib.h>; no longer needed.
73149         Don't include unlocked-io.h; only the "#if TEST" code uses
73150         stdio, and performance isn't crucial there.
73151         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
73152         Bison 1.875 features as described below.
73153         All uses of "PC." replaced by "pc->".
73154         (YYSTYPE): Add a forward declaration.
73155         (yylex, yyerror): Use full prototypes in forward decls.
73156         Use "%pure-parser" rather than obsolescent "%pure_parser".
73157         Use %parse-param and %lex-param instead of obsolescent
73158         YYPARSE_PARAM and YYLEX_PARAM.
73159         (meridian_table, month_and_day_table, time_units_table,
73160         relative_time_table, time_zone_table, military_table,
73161         lookup_zone, lookup_word, get_date):
73162         Use NULL instead of 0 where appropriate.
73163         (to_hour): Avoid abort (), to avoid a dependency on
73164         stdlib.h.
73165         (yyerror, yylex): Now accepts parser_control * arg.
73166         (main) [TEST]: Use '\0' rather than 0 for char.
73167
73168 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73169
73170         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
73171
73172 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73173
73174         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
73175         It's now the caller's responsibility to handle the case where
73176         !HAVE_GETPAGESIZE && !defined getpagesize.
73177
73178         * lib/mktime.c (leapyear): Arg is long int, not int.
73179
73180 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
73181
73182         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
73183
73184 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73185
73186         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
73187         missing.  Problem reported by James Youngman.
73188
73189 2004-10-16  Simon Josefsson  <jas@extundo.com>
73190
73191         * gnulib-tool: Fix comments.  Fix parse problem.
73192         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
73193
73194 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
73195
73196         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
73197         implementation of getopt_long.  Problem reported by Alexander Taler in:
73198         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
73199
73200 2004-10-15  Bruno Haible  <bruno@clisp.org>
73201
73202         * gnulib-tool: Untabify. Initialize supplied_libname.
73203         (func_usage): More homogenous output.
73204         (func_modules_transitive_closure, func_modules_to_filelist,
73205         func_emit_lib_Makefile_am): New functions.
73206         (func_import): New function, extracted from big case statement. Use
73207         func_get_license, func_modules_transitive_closure,
73208         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
73209         opt_lgpl. Don't use test -a, as it's not portable.
73210         (func_create_testdir): Use func_modules_transitive_closure,
73211         func_modules_to_filelist, func_emit_lib_Makefile_am.
73212
73213 2004-10-15  Bruno Haible  <bruno@clisp.org>
73214
73215         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
73216
73217 2004-10-15  Bruno Haible  <bruno@clisp.org>
73218
73219         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
73220         the portions belonging to each module.
73221         Suggested by Derek Robert Price <derek@ximbiot.com>.
73222
73223 2004-10-12  Simon Josefsson  <jas@extundo.com>
73224
73225         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73226         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
73227         to real functions.
73228
73229 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73230
73231         * modules/vsnprintf: New file.
73232
73233 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73234
73235         * m4/vsnprintf.m4: New file.
73236
73237 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73238
73239         * lib/vsnprintf.h: New file.
73240         * lib/vsnprintf.c: New file.
73241
73242 2004-10-11  Bruno Haible  <bruno@clisp.org>
73243
73244         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
73245         vsnprintf.
73246
73247 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73248
73249         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
73250
73251 2004-10-07  Bruno Haible  <bruno@clisp.org>
73252
73253         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
73254         fits into the provided buffer.
73255
73256 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73257
73258         * lib/diacrit.c, diacrit.h: Add GPL notice.
73259
73260         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
73261         notice.
73262         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
73263         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
73264         This avoids a potential constant-folding bug.
73265
73266 2004-10-05  Bruno Haible  <bruno@clisp.org>
73267
73268         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
73269         for the declaration of strsep.
73270
73271 2004-10-05  Bruno Haible  <bruno@clisp.org>
73272
73273         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
73274
73275 2004-10-04  Simon Josefsson  <jas@extundo.com>
73276
73277         * modules/memmem: New file.
73278         * tests/test-memmem.c: New file.
73279         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
73280
73281 2004-10-04  Simon Josefsson  <jas@extundo.com>
73282
73283         * m4/memmem.m4: New file.
73284
73285 2004-10-04  Simon Josefsson  <jas@extundo.com>
73286
73287         * lib/memmem.h: New file.
73288         * lib/memmem.c: New file, taken from glibc.
73289
73290 2004-10-04  Simon Josefsson  <jas@extundo.com>
73291
73292         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
73293         '#ifdef USE_UNLOCKED_IO'.
73294
73295 2004-10-04  Simon Josefsson  <jas@extundo.com>
73296
73297         * config/srclist.txt: Add memmem from glibc.
73298
73299 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73300
73301         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
73302
73303         * modules/argmatch, modules/argp, modules/closeout, modules/error,
73304         modules/exclude, modules/getdate, modules/getline,
73305         modules/getndelim2, modules/getpass, modules/getpass-gnu,
73306         modules/getusershell, modules/linebuffer, modules/md5,
73307         modules/mountlist, modules/posixtm, modules/readtokens,
73308         modules/readutmp, modules/regex, modules/sha1,
73309         modules/version-etc, modules/yesno:
73310         Remove dependency on unlocked-io.
73311
73312 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73313
73314         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
73315
73316         * m4/unlocked-io.m4: Add copyright notice.
73317         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
73318
73319 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73320
73321         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
73322         * lib/xmalloc.c (xmemdup): Likewise.
73323         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
73324         XFREE): Remove these long-obsolescent macros.
73325         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
73326         * lib/xstrdup.c: Remove.
73327
73328         * lib/regex.c (re_comp): Cast gettext return value to char *,
73329         Problem reported by Martin Neitzel via Mark D. Baushke.
73330
73331 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73332
73333         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
73334         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
73335         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
73336         regex.c, sha1.c, version-etc.c, yesno.c:
73337         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
73338         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
73339         the includer's responsibility.
73340
73341         Sync from coreutils.
73342
73343         * lib/modechange.c (mode_compile): Don't decrement a pointer that
73344         points to the start of a string, as the C Standard says the
73345         resulting behavior is undefined.
73346
73347         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
73348         simple -> simple_backups, numbered_existing ->
73349         numbered_existing_backups, numbered -> numbered_backups
73350         to avoid shadowing problems.  All uses changed.
73351         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
73352         * lib/backupfile.c (check_extension, numbered_backup):
73353         Rename locals to avoid shadowing 'basename'.
73354         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
73355         once.
73356
73357         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
73358         * lib/.cvsignore: Add getopt.h.
73359
73360 2004-10-04  Bruno Haible  <bruno@clisp.org>
73361
73362         * modules/README: New file.
73363         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
73364         not a module.
73365
73366 2004-10-02  Jim Meyering  <jim@meyering.net>
73367
73368         * lib/dirfd.h, getpagesize.h: Add copyright notice.
73369
73370 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73371
73372         * modules/strsep: New file.
73373
73374 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73375
73376         * m4/strsep.m4: New file.
73377
73378 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73379
73380         * lib/strsep.h: New file.
73381         * lib/strsep.c: New file.
73382
73383 2004-10-01  Simon Josefsson  <jas@extundo.com>
73384
73385         * lib/snprintf.c (snprintf): Handle size==0.
73386
73387 2004-10-01  Simon Josefsson  <jas@extundo.com>
73388             Bruno Haible  <bruno@clisp.org>
73389
73390         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
73391         (snprintf): Declare 'args'.
73392
73393 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
73394
73395         * lib/snprintf.c: Remove comments as to why each header is needed.
73396
73397 2004-10-01  Bruno Haible  <bruno@clisp.org>
73398
73399         * MODULES.html.sh: Add strsep.
73400
73401 2004-09-30  Simon Josefsson  <jas@extundo.com>
73402
73403         * modules/snprintf: New file.
73404
73405 2004-09-30  Simon Josefsson  <jas@extundo.com>
73406
73407         * m4/snprintf.m4: New file.
73408
73409 2004-09-30  Simon Josefsson  <jas@extundo.com>
73410
73411         * lib/snprintf.h, lib/snprintf.c: New files.
73412
73413 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73414
73415         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
73416         (hol_entry_help): Never translate an empty string.
73417         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
73418         * lib/argp.h (OPTION_NO_TRANS): New option.
73419
73420 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73421
73422         * modules/argp (Maintainer): Replace Simon Josefsson
73423         by Sergey Poznyakoff.
73424
73425 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73426
73427         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
73428         changes merged back into glibc.
73429
73430 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73431
73432         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
73433
73434 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
73435
73436         * lib/xvasprintf.c: Include xalloc.h.
73437         (xvasprintf): Use xalloc_die, not xmalloc_die.
73438
73439 2004-09-29  Bruno Haible  <bruno@clisp.org>
73440
73441         * modules/alloca-opt: New file, derived from modules/alloca.
73442         * modules/allocsa: Depend on alloca-opt instead of alloca.
73443         * modules/setenv: Likewise.
73444         * modules/vasnprintf: Likewise.
73445         * MODULES.html.sh: Add alloca-opt.
73446
73447 2004-09-28  Simon Josefsson  <jas@extundo.com>
73448
73449         * gnulib-tool: New parameter --lgpl, to asseert that modules are
73450         LGPL, and to replace license template from GPL to LGPL.
73451
73452 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
73453
73454         * modules/dummy: Change license to LGPL.
73455
73456 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
73457
73458         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
73459
73460 2004-09-24  Simon Josefsson  <jas@extundo.com>
73461
73462         * modules/minmax (License): Change from GPL to LGPL.
73463
73464 2004-09-23  Simon Josefsson  <jas@extundo.com>
73465
73466         * gnulib-tool (--import): Typo.
73467
73468 2004-09-23  Simon Josefsson  <jas@extundo.com>
73469
73470         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
73471
73472 2004-09-22  Bruno Haible  <bruno@clisp.org>
73473
73474         * modules/*: Add 'License' field.
73475         * gnulib-tool: Accept --extract-license option.
73476         (func_get_license): New function.
73477
73478 2004-09-21  Bruno Haible  <bruno@clisp.org>
73479
73480         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
73481         Reported by Simon Josefsson.
73482
73483 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73484
73485         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
73486         gl_AC_TYPE_LONG_LONG.
73487
73488 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73489
73490         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
73491
73492 2004-09-18  Simon Josefsson  <jas@extundo.com>
73493         and  Paul Eggert  <eggert@cs.ucla.edu>
73494
73495         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
73496         calls with autoreconf.  Define GL_LIB.
73497
73498 2004-09-14  Karl Berry  <karl@gnu.org>
73499
73500         * config/srclist.txt: unsync setenv.c, sigh.
73501
73502 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73503
73504         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
73505         Problem reported by Bruno Haible in:
73506         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
73507
73508 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73509
73510         * config/srclist.txt: Comment out argp-pvh.c.
73511
73512 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
73513
73514         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
73515         in case some system header has #define'd it.  Problem reported by
73516         Soeren D. Schulze in
73517         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
73518
73519 2004-09-09  Karl Berry  <karl@gnu.org>
73520
73521         * regex.[ch]: delete from the root.  These were supposed to be
73522                 synced with emacs cvs, but this has not happened for about
73523                 a year, and anyway nothing else uses emacs regex.[ch].
73524                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
73525                 lib/regex[.ch] is untouched.
73526
73527 2004-09-09  Bruno Haible  <bruno@clisp.org>
73528
73529         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
73530
73531 2004-09-09  Bruno Haible  <bruno@clisp.org>
73532
73533         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
73534         modifications.
73535         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
73536
73537 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
73538
73539         * modules/xvasprintf: New file.
73540         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
73541
73542 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
73543
73544         * lib/xvasprintf.h: New file.
73545         * lib/xvasprintf.c: New file.
73546         * lib/xasprintf.c: New file.
73547
73548 2004-09-08  Bruno Haible  <bruno@clisp.org>
73549
73550         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
73551
73552 2004-09-08  Bruno Haible  <bruno@clisp.org>
73553
73554         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
73555         length is > INT_MAX.
73556         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
73557         more.
73558
73559 2004-09-08  Bruno Haible  <bruno@clisp.org>
73560
73561         * lib/stdint_.h: New file, taken from GNU clisp.
73562
73563 2004-09-08  Bruno Haible  <bruno@clisp.org>
73564             Oskar Liljeblad  <oskar@osk.mine.nu>
73565
73566         * modules/stdint: New file.
73567         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
73568
73569 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73570
73571         Import from coreutils.
73572         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
73573         strings on unbounded length.  alloca's performance benefits aren't
73574         that important here.
73575         (V_STRDUP): Remove.
73576         (parse_with_separator): New function, with most of the internals
73577         of the old parse_user_spec.  Allow user to omit both user and group,
73578         for compatibility with FreeBSD.
73579         Clone only the user name, not the entire spec.
73580         Do not set *uid, *gid unless entirely successful.
73581         Avoid memory leak in some failing cases.
73582         Fix regression for USER.GROUP reported by Dmitry V. Levin in
73583         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
73584         (parse_user_spec): Rewrite to use parse_with_separator.
73585
73586 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73587
73588         * modules/userspec: Don't depend on alloca.
73589
73590 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73591
73592         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
73593
73594 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73595
73596         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
73597         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
73598         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
73599
73600 2004-08-16  Simon Josefsson  <jas@extundo.com>
73601
73602         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
73603         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
73604         Add --dry-run for --import.
73605         Let user provided command line parameters override configure.ac
73606         settings.
73607
73608 2004-08-12  Simon Josefsson  <jas@extundo.com>
73609
73610         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
73611         as discussed with Paul Eggert in threads rooted at
73612         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
73613         and
73614         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
73615         Before, the test was empty, and relied on ELIDE_CODE in source
73616         code.)
73617         (gl_PREREQ_GETOPT): New macro.
73618         (gl_GETOPT): Use them.
73619
73620 2004-08-12  Simon Josefsson  <jas@extundo.com>
73621
73622         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
73623         * lib/getopt_.h: Renamed from getopt.h.
73624
73625 2004-08-12  Simon Josefsson  <jas@extundo.com>
73626
73627         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
73628         Change default library name from libfoo to libgnu.
73629         Now, if you have a configure.ac that says:
73630                 gl_SOURCE_BASE(gl)
73631                 gl_M4_BASE(gl/m4)
73632                 gl_MODULES(error getopt etcetera)
73633                 gl_INIT
73634         you can import all you need by running:
73635                 ../gnulib/gnulib-tool --import
73636
73637         * modules/getopt (Files): Rename getopt.h to getopt_.h.
73638         (Makefile.am): Rewrite, use logic from argz.
73639         (Include): Use <getopt.h> instead of "getopt.h".
73640
73641 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73642
73643         * modules/argp (Files): Add m4/unlocked-io.m4.
73644         (Depends-on): Add extensions.
73645
73646 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73647
73648         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
73649         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
73650         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
73651         Check for program_invocation_name, program_invocation_short_name,
73652         flockfile, funlockfile, features.h, _getopt_long_only_r.
73653
73654 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73655
73656         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
73657         its complicated substitute.
73658         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
73659         and program_invocation_name.
73660         (__argp_basename) [!_LIBC]: Remove; the only use was
73661         replaced by its body.
73662         (__argp_short_program_name): Change condition from
73663         !defined __argp_short_program_name to
73664         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
73665         to match argp-namefrob.h.
73666         (__argp_failure): Don't assume strerror_r returns char *.
73667         * lib/argp-parse.c (N_): Define unconditionally.
73668         (argp_default_options): Fill out initializers with 0 to avoid
73669         gcc warnings.
73670
73671 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73672
73673         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
73674         getopt1.c.
73675
73676 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73677
73678         Merge from coreutils.
73679
73680         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
73681
73682         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
73683         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
73684
73685 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73686
73687         Merge from coreutils.
73688
73689         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
73690         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
73691         for Reliant Unix 5.43.
73692
73693         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
73694         (union fooround): Use uintmax_t, not long int.
73695         The rest is a merge from libc:
73696         [defined _LIBC]: Include <shlib-compat.h>.
73697         (_obstack) [defined _LIBC]: Remove after 2.3.4.
73698
73699         * lib/settime.c (settime): Recode to avoid warning with
73700         Sun Forte C 6U2.
73701
73702         * lib/strverscmp.c: Convert to UTF-8.
73703
73704 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73705
73706         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
73707         m4/uintmax_t.m4.
73708
73709 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73710
73711         * modules/xalloc-die: New file.
73712         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
73713
73714         * modules/md5 (Files): Add m4/uint32_t.m4.
73715         * modules/sha1: Renamed from modules/sha.
73716         (Files):
73717         Rename lib/sha.h to lib/sha1.h.
73718         Rename lib/sha.c to lib/sha1.c.
73719         Rename m4/sha.m4 to m4/sha1.m4.
73720         (lib_SOURCES): Likewise.
73721         (configure.ac): Rename gl_SHA to gl_SHA1.
73722         (Include): sha.h -> sha1.h.
73723
73724 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73725
73726         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
73727         * m4/sha1.m4: Renamed from sha.m4.
73728         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
73729
73730 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73731
73732         * lib/obstack.h (obstack_empty_p):
73733         Don't assume that chunk->contents is suitably aligned.
73734         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
73735         Likewise. Problem reported by Benno in
73736         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
73737
73738         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
73739         readable.  This could be improved further but it'd take some work.
73740
73741 2004-08-08  Simon Josefsson  <jas@extundo.com>
73742
73743         * modules/xgethostname (Depends-on): Remove exit and error (not
73744         used).
73745
73746         * modules/getpass-gnu: Add getpass.h.
73747         (Depends-on): Add stdbool.
73748         * modules/getpass: Add getpass.h.
73749
73750 2004-08-08  Simon Josefsson  <jas@extundo.com>
73751
73752         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
73753         Check getpass declaration.
73754
73755 2004-08-08  Simon Josefsson  <jas@extundo.com>
73756
73757         * lib/xgethostname.c: Don't include error.h (not used).
73758
73759         * lib/getpass.h: Add.
73760         * lib/getpass.c: Include getpass.h first.
73761
73762 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
73763
73764         * lib/xalloc-die.c: New file.
73765         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
73766         All uses removed.
73767         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
73768         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
73769         xalloc-die.c.
73770         (_, N_, xalloc_die): Move to xalloc-die.c.
73771         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
73772         so that we needn't mess with xalloc_msg_memory_exhausted.
73773
73774         * lib/sha1.h: Renamed from sha.h.
73775         (SHA1_H): Renamed from _SHA_H.
73776         (sha1_ctx): Renamed from sha_ctx.
73777         (sha1_init_ctx): Renamed from sha_init_ctx.
73778         (sha1_process_block): Renamed from sha_process_block.
73779         (sha1_process_bytes): Renamed from sha_process_bytes.
73780         (sha1_finish_ctx): Renamed from sha_finish_ctx.
73781         (sha1_read_ctx): Renamed from sha_read_ctx.
73782         (sha1_stream): Renamed from sha_stream.
73783         (sha1_buffer): Renamed from sha_buffer.
73784         * lib/sha1.c: Likewise; renamed from sha.c.
73785         Do not include <sys/types.h>.
73786         Include <stddef.h> rather than <stdlib.h>.
73787
73788 2004-08-08  Bruno Haible  <bruno@clisp.org>
73789
73790         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
73791         FILESYSTEM_PREFIX_LEN.
73792         * lib/progreloc.c: Likewise.
73793         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
73794
73795 2004-08-06  Simon Josefsson  <jas@extundo.com>
73796
73797         * modules/progname (Depends-on): Don't depend on stdbool.
73798
73799 2004-08-06  Simon Josefsson  <jas@extundo.com>
73800
73801         * modules/getsubopt: New file.
73802         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73803         getsubopt.
73804
73805 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
73806
73807         More merge from coreutils.
73808
73809         * m4/utimens.m4, m4/utimecmp.m4: New files.
73810         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
73811         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
73812         prereq.m4, sha.m4: Import changes from coreutils.
73813
73814 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
73815
73816         More merge from coreutils.
73817         * modules/raise, modules/readtokens0, modules/utimens:
73818         * modules/utimecmp, module/xnanosleep: New files.
73819         * modules/strftime: Add lib/strftime.h.
73820         Change include from <time.h> to "strftime.h".
73821         * modules/yesno: Add lib/yesno.h.
73822         * modules/backupfile: Remove lib/addext.c.
73823         * modules/euidaccess: Add stat-macros.h.
73824         * modules/canonicalize, modules/euidaccess,
73825         modules/filemode, modules/lchown, modules/makepath,
73826         modules/rmdir, modules/stat: Likewise.
73827
73828 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
73829
73830         Merge from tar.
73831         * lib/argp-help.c (make_hol, hol_append): Don't assume that
73832         SIZE_MAX is a valid preprocessor constant.
73833         (__argp_basename): Change from "#ifndef _LIBC"
73834         to "#ifndef __argp_short_program_name", so that
73835         we don't compile these functions for tar.
73836
73837         More merges from coreutils.
73838         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
73839         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
73840         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
73841         * lib/addext.c: Remove; no longer needed.
73842         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
73843         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
73844         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
73845         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
73846         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
73847         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
73848         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
73849         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
73850         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
73851         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73852         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
73853         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
73854         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
73855         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
73856         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
73857         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
73858         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
73859         Import changes from coreutils.
73860
73861 2004-08-05  Simon Josefsson  <jas@extundo.com>
73862
73863         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
73864
73865 2004-08-05  Simon Josefsson  <jas@extundo.com>
73866
73867         * m4/getsubopt.m4: New file.
73868
73869 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
73870
73871         Merge from coreutils.
73872
73873         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
73874         * m4/getcwd-path-max.m4: New files.
73875
73876         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
73877         FILESYSTEM_PREFIX_LEN ->
73878         FILE_SYSTEM_PREFIX_LEN.
73879         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
73880         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
73881         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
73882         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
73883
73884         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
73885         prerequisite modules now handle the DOS stuff.
73886         Don't check for unistd.h.
73887
73888 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
73889
73890         Merge from coreutils.
73891
73892         * lib/.gdb-history: Remove; this doesn't belong here.
73893
73894         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
73895         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
73896         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
73897         * lib/getcwd.c: New files.
73898
73899         * lib/dirname.h: Include <stdbool.h>.
73900         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
73901         for consistency with POSIX terminology.  All uses changed.
73902         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
73903         (strip_trailing_slashes): Use bool for booleans.
73904         * lib/stripslash.c (strip_trailing_slashes): Likewise.
73905
73906         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
73907         sometimes returns a positive errno value even when it succeeds.
73908         (print_errno_message) [!LIBC]: Fall back on strerror if
73909         __strerror_r fails.
73910
73911         * lib/path-concat.c (mempcpy): Don't define if a system header defines
73912         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
73913         (longest_relative_suffix): New function.
73914         (path_concat): Use it.  Assume first argument is not NULL.
73915         Port to DOS.  Omit redundant separators.
73916         Report an error instead of returning NULL.
73917         Use mempcpy instead of memcpy.
73918         (xpath_concat): Remove: not declared or used.
73919
73920         * lib/same.h: Include <stdbool.h>
73921         (same_name): Return bool, not int.
73922         * lib/same.c (same_name): Likewise.
73923         (errno): Don't declare; we assume C89 or better now.
73924
73925         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
73926         if not already defined.
73927
73928         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
73929         * lib/dup-safer.c (errno): Likewise.
73930
73931 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
73932
73933         Merge from coreutils.
73934         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
73935         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
73936         * modules/path-concat: Don't depend on strdup.
73937
73938 2004-08-03  Simon Josefsson  <jas@extundo.com>
73939
73940         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
73941         * lib/progname.h: Don't include stdbool.h.
73942
73943 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
73944
73945         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
73946         * MODULES.html.sh (func_all_modules): Remove fatal.
73947
73948 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
73949
73950         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
73951
73952 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
73953
73954         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
73955         working.
73956
73957 2004-08-02  Simon Josefsson  <jas@extundo.com>
73958
73959         * lib/getsubopt.h: New file, with comments from Bruno Haible.
73960         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
73961         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
73962
73963 2004-08-01  Simon Josefsson  <jas@extundo.com>
73964
73965         * lib/xgetdomainname.c: Include stdlib.h, for free().
73966
73967 2004-07-19  Bruno Haible  <bruno@clisp.org>
73968
73969         * MODULES.html.sh (func_all_modules): Add dummy.
73970
73971 2004-07-16  Simon Josefsson  <jas@extundo.com>
73972
73973         * modules/dummy: New file.
73974
73975 2004-07-16  Simon Josefsson  <jas@extundo.com>
73976
73977         * lib/dummy.c: New file.
73978
73979 2004-07-16  Bruno Haible  <bruno@clisp.org>
73980
73981         * lib/backupfile.h: Add extern "C" for C++.
73982         * lib/closeout.h: Likewise.
73983         * lib/copy-file.h: Likewise.
73984         * lib/findprog.h: Likewise.
73985         * lib/full-write.h: Likewise.
73986         * lib/pathname.h: Likewise.
73987         * lib/progname.h: Likewise.
73988         * lib/stpcpy.h: Likewise.
73989         * lib/stpncpy.h: Likewise.
73990         * lib/strcase.h: Likewise.
73991         * lib/strstr.h: Likewise.
73992         * lib/xalloc.h: Likewise.
73993
73994         * lib/mbswidth.h: Add extern "C" for C++.
73995         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
73996
73997 2004-07-13  Robert Millan  <robertmh@gnu.org>
73998
73999         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
74000
74001 2004-07-09  Simon Josefsson  <jas@extundo.com>
74002
74003         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
74004         failed without this.)
74005
74006 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74007
74008         * modules/chown (Files): Add lib/fchown-stub.c, since
74009         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
74010
74011 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74012
74013         * lib/fchown-stub.c: New file.
74014
74015 2004-06-24  Jim Meyering  <jim@meyering.net>
74016
74017         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
74018
74019 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74020
74021         * modules/argz: Omit "#include".
74022
74023         * MODULES.html.sh (func_all_modules): Add calloc, to match
74024         2004-06-01 addition of calloc module.
74025
74026 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74027
74028         * m4/argz.m4: New file, which is autoupdated from libtool.
74029
74030 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74031
74032         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
74033         libtool.
74034
74035 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74036
74037         * config/srclist-update: Don't insist on "USA." before the
74038         close-comment, as libtool omits the period and puts the */ on a
74039         separate line.
74040         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
74041         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
74042
74043 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
74044
74045         * modules/argz: New file.
74046         * MODULES.html.sh (func_all_modules): Add argz.
74047
74048 2004-06-12  Jim Meyering  <jim@meyering.net>
74049         and  Paul Eggert  <eggert@cs.ucla.edu>
74050
74051         * modules/hash (Files): Add lib/xalloc.h.
74052         * modules/pipe (Depends-on): Add wait-process.
74053         * modules/stat (Depends-on): Add xalloc.
74054         * modules/userspec (Files): Add lib/userspec.h.
74055         * modules/xstrto
74056
74057         Upgrade from gettext-0.13.
74058         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
74059         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
74060         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
74061
74062 2004-06-10  Jim Meyering  <jim@meyering.net>
74063
74064         * lib/calloc.c: New file.
74065
74066 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
74067
74068         * lib/getdate.y (yylex): Allow space between sign and number.
74069         Problem reported by Dan Jacobson.
74070
74071 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74072
74073         Merge from coreutils CVS.
74074
74075         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
74076         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
74077         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
74078         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
74079         xstrtol.m4: Fix copyright date and/or serial number.
74080
74081         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
74082         See if we need an fchown replacement.
74083         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
74084         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
74085         and use the replacement function if we detect either defect.
74086
74087         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
74088         gl_UTIMECMP.
74089
74090 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74091         and  Jim Meyering  <jim@meyering.net>
74092
74093         Merge from coreutils CVS.
74094
74095         * lib/stat-macros.h: New file, with contents from file-type.h
74096         and coreutils' system.h.
74097         * lib/file-type.c: Include "stat-macros.h".
74098         * lib/file-type.h (file_type): Move all macro definitions to new file,
74099         stat-macros.h.
74100
74101         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
74102         Wrap old code with this conditional.
74103         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
74104         function that does not dereference symlinks.
74105         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
74106
74107         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
74108         dependency problems.
74109         (xreadlink): Accept new arg SIZE, for efficiency.
74110         All decls and uses changed.
74111         * lib/xreadlink.h: Include <stddef.h>, for size_t.
74112
74113         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
74114         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
74115
74116         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
74117         sysexits.h.
74118
74119 2004-06-01  Jim Meyering  <jim@meyering.net>
74120
74121         * m4/calloc.m4: New file.
74122
74123 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
74124
74125         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
74126         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
74127         Also, fix a typo in a diagnostic.
74128
74129 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74130
74131         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
74132         or AC_FUNC_REALLOC.
74133
74134 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74135
74136         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
74137         macros to be defined.
74138         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
74139         the allocator returns NULL because the requested size is zero.
74140
74141 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74142
74143         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
74144         var.  Add comment explaining why libc still defines it.  This
74145         merges the following patch from glibc:
74146         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
74147
74148 2004-05-20  Andreas Schwab  <schwab@suse.de>
74149
74150         * m4/free.m4: Replace free if it not known to work, not the other
74151         way round.
74152
74153 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74154
74155         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
74156         present in glibc since revision 1.1 of this file.
74157         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
74158         obstack_alignment_mask, obstack_alloc, obstack_base,
74159         obstack_blank, obstack_blank_fast, obstack_chunk_size,
74160         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
74161         obstack_grow0, obstack_init, obstack_int_grow,
74162         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
74163         obstack_next_free, obstack_object_size, obstack_ptr_grow,
74164         obstack_ptr_grow_fast, obstack_room): Remove declarations of
74165         nonexistent functions.
74166
74167 2004-05-18  Karl Berry  <karl@gnu.org>
74168
74169         * config/srclist.txt: break link for vasnprintf.c.
74170
74171 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74172
74173         Port obstack to the AS/400, where pointers are 16 bytes wide and
74174         you cannot cast an integer to a valid pointer.  This patch is
74175         currently waiting to be integrated into glibc; see
74176         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
74177
74178         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
74179         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
74180         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
74181         (struct obstack): temp member is now a union of a pointer and
74182         an integer, instead of an integer.  All integer uses changed.
74183         This does not affect the physical layout of struct obstack,
74184         except on hosts (like the AS/400) where the size or alignment of
74185         void * is greater than that of ptrdiff_t.
74186         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
74187         __STDC__)]: Store temporary in pointer member of union, not
74188         integer member.
74189         * lib/obstack.c: Include <stddef.h>, for offsetof.
74190         (struct fooalign): Remove; it doesn't need a name.
74191         (union fooround): Change double to long double, and add void *.
74192         (DEFAULT_ALIGNMENT): Use offsetof to compute.
74193         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
74194         not a macro.  Hence the values are always int; so remove all
74195         casts-to-int in uses.
74196
74197 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74198
74199         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
74200         we can get this patch merged into glibc.
74201
74202 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74203             Paul Eggert  <eggert@cs.ucla.edu>
74204
74205         * m4/argp: Depend on alloca.
74206
74207 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74208             Paul Eggert  <eggert@cs.ucla.edu>
74209
74210         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
74211         freecoding.
74212
74213 2004-05-17  Bruno Haible  <bruno@clisp.org>
74214
74215         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
74216         precision that consists of a '.' followed by an empty digit string.
74217         Patch by Tor Lillqvist <tml@iki.fi>.
74218
74219 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74220
74221         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
74222         for backward compatibility with older code.  We need our own
74223         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
74224         it under some other name, and our alloca.h will define it.
74225
74226 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74227             Derek Price  <derek@ximbiot.com>
74228
74229         * lib/alloca.c: Include <alloca.h>, to get our interface.
74230         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
74231         include <alloca.h> first.  Use C89 prototype for alloca; this
74232         requires including <stddef.h> for size_t.  Use extern "C" if C++.
74233         Use #elif for simplicity, since we can assume C89 now.
74234         Don't try to source the system alloca.h since it will not be found
74235         and to prevent recursively including its replacement.
74236         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
74237         * lib/regex.c: Likewise.
74238
74239 2004-05-16  Derek Price  <derek@ximbiot.com>
74240             Paul Eggert  <eggert@cs.ucla.edu>
74241
74242         getline cleanup.  This changes the getndelim2 API: both order of
74243         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
74244         no delimiter).
74245
74246         * lib/getline.c: Don't include stddef.h or stdio.h, since our
74247         interface does that.
74248         (getline): Always use getdelim, so that we don't have two
74249         copies of this code.
74250         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
74251         if available.
74252         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
74253         (GETNDELIM2_MAXIMUM): New macro.
74254         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
74255         instead of the old practice of delim2==0.  All callers changed.
74256         Return -1 on overflow, instead of returning junk.
74257         Do not set *linesize unless allocation succeeds.
74258         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
74259         that we include sys/types.h.
74260         * lib/getnline.h: Likewise.
74261         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
74262         (getndelim2): Reorder arguments.
74263         * lib/getnline.c (getnline, getndelim):
74264         Don't discard the NMAX argument.
74265         (getnline): Invoke getndelim, to avoid code duplication.
74266         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
74267         of (size_t) -1 by callers of the getnline family.
74268
74269 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74270
74271         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
74272         Check for gettimeofday.
74273         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
74274         Check for settimeofday, stime.
74275
74276 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74277
74278         * lib/nanosleep.c (suspended): Change its type from int to
74279         sig_atomic_t volatile.
74280         (first_call): Make it private to rpl_nanosleep, and have it
74281         be zero initially as that's a bit faster.
74282         (my_usleep): Round up fractional times instead of truncating them,
74283         as this is the usual meaning for 'sleep'.
74284
74285         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
74286         doesn't work.
74287         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
74288         (ENOSYS): Define if not defined.
74289         (settime): Fall back on stime if it exists and settimeofday fails.
74290         But don't bother with fallbacks if a method fails with errno == EPERM.
74291
74292 2004-05-11  Jim Meyering  <jim@meyering.net>
74293
74294         Prior to this change, the save_cwd caller required read access to the
74295         current directory on most systems (ones with the fchdir function).
74296
74297         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
74298         fails, try write-only, and finally, resort to using xgetcwd.
74299
74300 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74301
74302         * lib/obstack.c, obstack.h: Import changes from libc.
74303
74304 2004-04-28  Bruno Haible  <bruno@clisp.org>
74305
74306         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
74307         also implicitly appends .exe to executables.
74308         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
74309         accepts Windows pathnames.
74310         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74311         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74312         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74313         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74314         Reported by Derek Robert Price <derek@ximbiot.com>.
74315
74316 2004-04-21  Karl Berry  <karl@gnu.org>
74317
74318         * config/srclist.txt (localcharset.c): break sync.
74319
74320 2004-04-20  Paul Eggert  <eggert@twinsun.com>
74321
74322         * m4/host-os.m4: Add a copyright notice.
74323
74324 2004-04-20  Jim Meyering  <jim@meyering.net>
74325
74326         Change UTILS_ to gl_ in AC_DEFINE'd names.
74327         Change utils_- and jm_-prefixed variables, too.
74328         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
74329         UTILS_FUNC_MKDIR_TRAILING_SLASH.
74330         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
74331
74332         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
74333         Don't emit trailing blanks.
74334         Also rename jm_-prefixed variables to have gl_ prefix.
74335
74336         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
74337         Also rename jm_-prefixed variables to have gl_ prefix.
74338
74339         * m4/jm-macros.m4: Reflect the renamings.
74340         * m4/prereq.m4: Likewise.
74341
74342 2004-04-20  Jim Meyering  <jim@meyering.net>
74343
74344         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
74345         memory.
74346
74347 2004-04-20  Jim Meyering  <jim@meyering.net>
74348             Bruno Haible  <bruno@clisp.org>
74349
74350         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
74351         memory when realloc fails.
74352
74353 2004-04-19  Jim Meyering  <jim@meyering.net>
74354
74355         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
74356         now that readutmp.c may call `free (0)'.
74357
74358 2004-04-19  Bruno Haible  <bruno@clisp.org>
74359
74360         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
74361         * m4/inttypes_h.m4: Likewise.
74362         * m4/stdint_h.m4: Likewise.
74363         * m4/intmax_t.m4: Likewise.
74364         * m4/uintmax_t.m4: Likewise.
74365
74366 2004-04-18  Jim Meyering  <jim@meyering.net>
74367
74368         * m4/prereq.m4: Don't forbid jm_ prefix.
74369
74370         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
74371         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
74372         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
74373         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
74374         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
74375         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
74376         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
74377         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
74378         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
74379         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
74380         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
74381         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
74382         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
74383         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
74384         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
74385         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
74386         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
74387         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
74388         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
74389
74390 2004-04-18  Jim Meyering  <jim@meyering.net>
74391
74392         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
74393         failure, don't leak memory and do call END_UTMP_ENT.
74394
74395 2004-04-16  Jim Meyering  <jim@meyering.net>
74396
74397         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
74398         coreutils' stat program.
74399         (gl_PREREQ): Don't require jm_PREREQ_STAT.
74400
74401 2004-04-11  Paul Eggert  <eggert@twinsun.com>
74402
74403         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
74404         C89.
74405         (CHAR_BIT): Remove, since we assume C89.
74406         Include <stdint.h> if available, as per current Autoconf CVS advice.
74407
74408 2004-03-31  Jim Meyering  <jim@meyering.net>
74409
74410         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
74411         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
74412         * m4/xalloc.m4: Likewise.
74413
74414 2004-03-30  Paul Eggert  <eggert@twinsun.com>
74415
74416         Merge from coreutils.
74417
74418         * m4/inttostr.m4: New file.
74419         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
74420         Require AM_STDBOOL_H and gl_TIMESPEC instead.
74421         Require gl_CLOCK_TIME.
74422         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
74423
74424 2004-03-30  Paul Eggert  <eggert@twinsun.com>
74425
74426         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
74427         not bool, to be more consistent with Unix conventions.
74428         Suggested by Bruno Haible.
74429
74430         Merge from coreutils.
74431
74432         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
74433         * lib/umaxtostr.c: New files.
74434
74435         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
74436         the usual <time.h> dance.
74437         (get_date): Change signature to support fractional time stamps.
74438         All callers changed.
74439         * lib/getdate.y: Include "getdate.h" first, as we can now
74440         assume C89 and don't need to worry about 'const'.
74441         Similarly, include "unlocked-io.h" near start, not in middle.
74442         Include <limits.h>.
74443         (textint.value): Use long int rather than int.
74444         (textint.digits): Use size_t rather than int.
74445         (BILLION, LOG10_BILLION): New constants.
74446         (parser_control): New member rel_ns.  Members day_ordinal,
74447         time_zone, month, day, hour, minutes, rel_year, rel_month,
74448         rel_day, rel_hour, rel_minutes, rel_seconds
74449         are now long int, not int.  Member seconds is now struct timespec,
74450         not int.  New member timespec_seen.  Members dates_seen, days_seen,
74451         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
74452         not int.
74453         (%union.intval): Now long int, not int.
74454         New member timespec.
74455         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
74456         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
74457         (spec): Now is a timespec or an item list.
74458         (timespec, items): New nonterminals.
74459         (time, rel, relunit, number, get_date):
74460         Add support for fractional seconds.
74461         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
74462         (gmtime, localtime, mktime): Remove decls; not needed with C89.
74463         (to_hour): First arg is now long int, not int.
74464         (to_year): Returns long int, not int.
74465         Don't treat year -70 like 70.
74466         (tm_diff): Returns long int, not int.
74467         (lookup_word): Use bool instead of int when appropriate.
74468         (yylex): Use size_t for count, not int.
74469         Detect overflow when parsing large integer constants.
74470         Add support for fractions.
74471         (get_date): Make pointers 'const' if possible.
74472         Use more-portable code to detect integer overflow.
74473         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
74474         Don't use ctime; it's not reliable if the year has >4 digits.
74475
74476         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
74477         This is for compatibility with BSD.
74478
74479         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
74480         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
74481         From coreutils' system.h.
74482
74483         * lib/userspec.c: Don't include "posixver.h".
74484         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
74485         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
74486         compatible extension.  Simplify code by removing a boolean int
74487         that was always nonzero if a string was nonnull.
74488
74489 2004-03-30  Jim Meyering  <jim@meyering.net>
74490
74491         Merge from coreutils.
74492
74493         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
74494         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
74495         on some systems one must include <grp.h> before it.
74496         Reported by Christian Krackowizer.
74497
74498 2004-03-30  Jim Meyering  <jim@meyering.net>
74499
74500         Merge from coreutils.
74501
74502         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
74503
74504         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
74505         an empty input stream.
74506
74507         * lib/readtokens.c: Include <stdbool.h>.
74508         (readtoken): Use `size_t' rather than int/long.
74509         All callers adjusted.
74510         Use `bool' rather than `int' where appropriate.
74511         Use memset rather than an explicit loop.
74512         Use x2nrealloc rather than xrealloc.
74513         Allow the use of `\0' as a delimiter.
74514         (readtokens): Likewise.
74515         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
74516
74517 2004-03-30  Jim Meyering  <jim@meyering.net>
74518
74519         * m4/realloc.m4: Remove file, since now it does no more than
74520         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
74521         the `configure.ac' section of module/realloc.
74522         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
74523
74524 2004-03-30  Bruno Haible  <bruno@clisp.org>
74525
74526         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
74527         nonnull.
74528
74529 2004-03-29  Paul Eggert  <eggert@twinsun.com>
74530
74531         Merge changes to getloadavg.c from coreutils and Emacs.
74532
74533         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
74534         Define to an expression, not to the empty string.
74535         Include cloexec.h and xalloc.h.
74536         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
74537         Use set_cloexec_flag rather than rolling our own.
74538         * lib/cloexec.c, lib/cloexec.h: New files.
74539
74540 2004-03-29  Paul Eggert  <eggert@twinsun.com>
74541
74542         * m4/cloexec.m4: New file.
74543
74544 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74545
74546         * lib/getopt.h: Sync with libc CVS.
74547
74548 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74549             Bruno Haible  <bruno@clisp.org>
74550
74551         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
74552         mbswidth.
74553
74554 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74555             Bruno Haible  <bruno@clisp.org>
74556
74557         * lib/mbswidth.h: Include <wchar.h> only if
74558         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
74559         <wchar.h>.
74560         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
74561
74562 2004-03-09  Paul Eggert  <eggert@twinsun.com>
74563
74564         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
74565         Sync with libc CVS.
74566         * lib/getopt_int.h: New file, also synced from libc.
74567
74568 2004-03-09  Paul Eggert  <eggert@twinsun.com>
74569
74570         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
74571         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
74572         Bring back getopt.c, getopt.h, getopt1.c.
74573
74574 2004-03-07  Paul Eggert  <eggert@twinsun.com>
74575
74576         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
74577         All uses changed.  Check for sa_sigaction member; this fixes
74578         a bug first reported by Jason Andrade in
74579         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
74580
74581 2004-03-07  Paul Eggert  <eggert@twinsun.com>
74582
74583         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
74584         '#if' expressions.  Unlike the code it replaces, it does not
74585         depend on (defined _SC_PAGESIZE).  However, it does depend on
74586         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
74587         first reported by Jason Andrade in
74588         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
74589
74590 2004-02-25  Simon Josefsson  <jas@extundo.com>
74591
74592         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
74593
74594 2004-02-25  Simon Josefsson  <jas@extundo.com>
74595
74596         * lib/strdup.h: New file.
74597         * lib/strdup.c: Include it.
74598         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
74599         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
74600
74601 2004-02-23  Karl Berry  <karl@gnu.org>
74602
74603         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
74604         (from fencepost.gnu.org:/gd/gnuorg).
74605
74606 2004-02-23  Karl Berry  <karl@gnu.org>
74607
74608         * config/srclistvars.sh (GNUORG) [karl]: redefine.
74609         * config/srclist.txt: add maintain/standards documents.
74610
74611 2004-02-18  Bruno Haible  <bruno@clisp.org>
74612
74613         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
74614         Reported by Derek Robert Price <derek@ximbiot.com>.
74615
74616 2004-02-16  Karl Berry  <karl@gnu.org>
74617
74618         * config/mkinstalldirs, install-sh: update from automake.
74619
74620 2004-02-06  Karl Berry  <karl@gnu.org>
74621
74622         * m4/po.m4: update from gettext 0.14.1.
74623
74624 2004-02-06  Karl Berry  <karl@gnu.org>
74625
74626         * lib/config.charset: update from gettext 0.14.1.
74627
74628 2004-02-05  Paul Eggert  <eggert@twinsun.com>
74629
74630         Add comments and code, prompted by suggestions from Bruno Haible
74631         for sh-quote.
74632         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
74633         describing the enum quoting_style values.
74634         * lib/quotearg.c (quotearg_alloc): New function.
74635         (quotearg_buffer_restyled): Treat lone { and } as special.
74636         Treat = as special.  Work around bug with older shells
74637         that "see" a '\' that is really the 2nd byte of a multibyte char.
74638         Quote empty string with shell_quoting_style.
74639
74640 2004-02-03  Bruno Haible  <bruno@clisp.org>
74641
74642         * m4/pipe.m4: New file, from GNU gettext.
74643
74644 2004-02-03  Bruno Haible  <bruno@clisp.org>
74645
74646         * lib/pipe.h: New file, from GNU gettext.
74647         * lib/pipe.c: New file, from GNU gettext.
74648
74649 2004-01-27  Bruno Haible  <bruno@clisp.org>
74650
74651         * m4/execute.m4: New file, from GNU gettext.
74652
74653 2004-01-27  Bruno Haible  <bruno@clisp.org>
74654
74655         * lib/execute.h: New file, from GNU gettext.
74656         * lib/execute.c: New file, from GNU gettext.
74657         * lib/w32spawn.h: New file, from GNU gettext.
74658
74659 2004-01-24  Paul Eggert  <eggert@twinsun.com>
74660
74661         Merge from diffutils.
74662
74663         * lib/file-type.c (file_type): Add typed memory objects.
74664         * lib/file-type.h (S_TYPEISTMO): New macro.
74665
74666         * lib/c-stack.h (c_stack_action): Remove argv argument.
74667         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
74668         (die): Don't calculate message unless segv_action returns.
74669         (get_stack_location, min_address_from_argv, max_address_from_argv,
74670         volatile stack_base, volatile_stack_size): Remove.
74671         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
74672         that every segmentation violation is a stack overflow.  (Ouch!)
74673         See Debian bug 136249 (still outstanding) for more info about why
74674         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
74675
74676 2004-01-24  Paul Eggert  <eggert@twinsun.com>
74677
74678         Exit-status fix from coreutils.
74679
74680         Use exit_failure consistently in place of EXIT_FAILURE,
74681         so that program exit statuses are consistent on failure.
74682
74683         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
74684         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
74685         * lib/argmatch.h: Comment fix to match the above.
74686         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
74687         Now a macro referring to exit_failure, instead of a separate
74688         variable.  Include "exitfail.h" to get it.
74689         * lib/xstrtol.h: Include "exitfail.h".
74690         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
74691
74692         * lib/long-options.c (parse_long_options): Use prototype
74693         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
74694         for clarity.
74695
74696 2004-01-21  Jim Meyering  <jim@meyering.net>
74697
74698         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
74699         so as not to conflict with a different-sized __mktime_internal
74700         function in GNU libc.
74701         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
74702         Problem building statically-linked `ls' reported by Michael Brunnbauer.
74703
74704 2004-01-20  Karl Berry  <karl@gnu.org>
74705
74706         * config/config.guess: update from config.
74707
74708         * config/srclistvars.sh: GNUWWWLICENSES for karl.
74709
74710 2004-01-20  Bruno Haible  <bruno@clisp.org>
74711
74712         Safer stack allocation.
74713         * lib/setenv.c: Include allocsa.h.
74714         (alloca): Remove fallback definition.
74715         (freea): Remove macro.
74716         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
74717         instead of freea.
74718
74719 2004-01-20  Bruno Haible  <bruno@clisp.org>
74720
74721         * m4/eealloc.m4: New file, from GNU gettext.
74722
74723 2004-01-20  Bruno Haible  <bruno@clisp.org>
74724
74725         * m4/allocsa.m4: New file, from GNU gettext.
74726
74727 2004-01-20  Bruno Haible  <bruno@clisp.org>
74728
74729         * lib/xallocsa.h: New file, from GNU gettext.
74730         * lib/xallocsa.c: New file, from GNU gettext.
74731
74732 2004-01-20  Bruno Haible  <bruno@clisp.org>
74733
74734         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
74735
74736 2004-01-20  Bruno Haible  <bruno@clisp.org>
74737
74738         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
74739         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
74740         specially.
74741
74742 2004-01-20  Bruno Haible  <bruno@clisp.org>
74743
74744         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
74745         patch.
74746
74747 2004-01-20  Bruno Haible  <bruno@clisp.org>
74748
74749         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
74750
74751 2004-01-20  Bruno Haible  <bruno@clisp.org>
74752
74753         * lib/eealloc.h: New file.
74754
74755 2004-01-20  Bruno Haible  <bruno@clisp.org>
74756
74757         * lib/binary-io.h: Avoid warnings on Cygwin.
74758
74759 2004-01-20  Bruno Haible  <bruno@clisp.org>
74760
74761         * lib/allocsa.h: New file, from GNU gettext.
74762         * lib/allocsa.c: New file, from GNU gettext.
74763
74764 2004-01-18  Karl Berry  <karl@gnu.org>
74765
74766         * doc/gpl.texi, doc/lgpl.texi: new files.
74767
74768 2004-01-18  Karl Berry  <karl@gnu.org>
74769
74770         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
74771         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
74772
74773 2004-01-15  Paul Eggert  <eggert@twinsun.com>
74774
74775         Merge from coreutils.
74776
74777         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
74778         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
74779         (gl_DEFAULT_POSIX2_VERSION): Move
74780         the documentation from 'configure' into 'config.hin',
74781         so that 'configure --help' isn't burdened by it and
74782         we don't have to worry about its formatting there.
74783         Reword the documentation so that it's more succinct
74784         and can be run together into a single paragraph.
74785         * m4/same.m4 (gl_SAME): Check for pathconf.
74786
74787 2004-01-15  Paul Eggert  <eggert@twinsun.com>
74788
74789         Merge from coreutils.
74790
74791         * lib/posixver.c: Include posixver.h.
74792
74793         * lib/same.c: Include <stdbool.h>, <limits.h>.
74794         (_POSIX_NAME_MAX): Define if not defined.
74795         (MIN): New macro.
74796         (same_name): If file names are silently truncated, report
74797         that the file names are the same if they are the same after
74798         the silent truncation.
74799
74800         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
74801         conversion function.
74802         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
74803         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
74804         longer needed.
74805
74806 2004-01-15  Jim Meyering  <jim@meyering.net>
74807
74808         Merge from coreutils.
74809
74810         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
74811         if no library is required.
74812         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
74813         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
74814         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
74815         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
74816         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
74817         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
74818         value, $ac_cv_search_crypt, if it's "none required".
74819         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
74820         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
74821         not gl_FUNC_GETLOADAVG.
74822         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
74823         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
74824
74825 2004-01-15  Jim Meyering  <jim@meyering.net>
74826
74827         Merge from coreutils.
74828
74829         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
74830         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
74831         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
74832
74833         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
74834         optional configure-time default.
74835
74836         * lib/version-etc.c (version_etc_copyright): Update copyright date.
74837
74838         * lib/xreadlink.c (xreadlink): Correct outdated comment.
74839
74840 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
74841
74842         Merge from coreutils.
74843
74844         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
74845         value, $ac_cv_search_nanosleep, if it's "none required".
74846
74847 2004-01-14  Paul Eggert  <eggert@twinsun.com>
74848
74849         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
74850         with like-named macro in fnmatch.c.
74851         (EXT): Use an internal constant instead.
74852
74853         Merge fnmatch patches from glibc.
74854         * lib/fnmatch.c (mbsinit): Remove define.
74855         Add libc_hidden_ver (__fnmatch, fnmatch).
74856         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
74857         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
74858
74859 2004-01-14  Karl Berry  <karl@gnu.org>
74860
74861         * config/install-sh: update from automake.
74862
74863 2004-01-13  Karl Berry  <karl@gnu.org>
74864
74865         * config/install-sh: update from automake.
74866
74867 2004-01-09  Karl Berry  <karl@gnu.org>
74868
74869         * config/install-sh: update from automake.
74870
74871 2004-01-05  Karl Berry  <karl@gnu.org>
74872
74873         * config/config.{sub,guess}: update from config.
74874
74875 2003-12-31  Karl Berry  <karl@gnu.org>
74876
74877         * config/depcomp: update from automake.
74878
74879 2003-12-14  Karl Berry  <karl@gnu.org>
74880
74881         * lib/config.charset: update from gettext-runtime.
74882
74883 2003-12-03  Paul Eggert  <eggert@twinsun.com>
74884
74885         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
74886         Bug reported by Alfred M. Szmidt.
74887
74888 2003-12-03  Bruno Haible  <bruno@clisp.org>
74889
74890         * m4/gettext.m4: Upgrade from gettext-0.13.
74891         * m4/po.m4: Upgrade from gettext-0.13.
74892         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
74893         * m4/intmax.m4: New file, from gettext-0.13.
74894         * m4/printf-posix.m4: New file, from gettext-0.13.
74895
74896 2003-11-29  Karl Berry  <karl@gnu.org>
74897
74898         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
74899
74900 2003-11-25  Paul Eggert  <eggert@twinsun.com>
74901             Bruno Haible  <bruno@clisp.org>
74902
74903         * lib/printf-parse.h: Don't include sys/types.h.
74904         (ARG_NONE): New macro.
74905         (char_directive): Change type of *arg_index fields to size_t.
74906         * lib/printf-parse.c: Don't include sys/types.h.
74907         (SSIZE_MAX): Remove macro.
74908         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
74909         Remove unnecessary overflow check.
74910         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
74911         fields.
74912
74913 2003-11-25  Bruno Haible  <bruno@clisp.org>
74914
74915         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
74916
74917 2003-11-25  Bruno Haible  <bruno@clisp.org>
74918
74919         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
74920         gt_TYPE_SSIZE_T.
74921
74922 2003-11-24  Paul Eggert  <eggert@twinsun.com>
74923
74924         * modules/alloca: Remove dependency on xalloc.
74925
74926 2003-11-24  Paul Eggert  <eggert@twinsun.com>
74927
74928         * lib/alloca.c: Remove dependency on xalloc module.
74929         (xalloc_die): Remove.
74930         (memory_full) [!defined emacs]: New macro.
74931         [!defined emacs]: Don't include xalloc.h.
74932         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
74933         address arithmetic overflows.  Change datatypes a bit to avoid
74934         unnecessary casts.
74935
74936 2003-11-22  Jim Meyering  <jim@meyering.net>
74937
74938         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
74939         s/size/size_t/.
74940
74941 2003-11-21  Karl Berry  <karl@gnu.org>
74942
74943         * config/config.{sub,guess}: update from config.
74944
74945 2003-11-18  Karl Berry  <karl@gnu.org>
74946
74947         * config/config.{sub,guess}: update from config.
74948
74949         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
74950
74951 2003-11-17  Paul Eggert  <eggert@twinsun.com>
74952
74953         * README: Mention that S+T cannot overflow if S is the size of
74954         an existing object and T is sufficiently small.
74955
74956 2003-11-17  Jim Meyering  <jim@meyering.net>
74957
74958         On systems without utime and without a utimes function capable of
74959         dealing with a NULL struct utimbuf* argument, this utime replacement
74960         could -- in unusual circumstances -- leak a file descriptor.
74961         * lib/utime.c: Include <unistd.h> and <errno.h>.
74962         (utime_null): Be sure to close `fd' and to preserve errno.
74963         Reported by Geoff Collyer via Arnold Robbins.
74964
74965 2003-11-17  Bruno Haible  <bruno@clisp.org>
74966
74967         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
74968         (Depends-on): Add xsize.
74969
74970 2003-11-17  Bruno Haible  <bruno@clisp.org>
74971
74972         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
74973
74974 2003-11-17  Bruno Haible  <bruno@clisp.org>
74975
74976         * lib/vasnprintf.c (alloca): Remove fallback definition.
74977         (freea): Remove definition.
74978         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
74979         Reported by Paul Eggert.
74980
74981 2003-11-16  Paul Eggert  <eggert@twinsun.com>
74982             Bruno Haible  <bruno@clisp.org>
74983
74984         Protect against address arithmetic overflow.
74985         * lib/printf-args.h: Include stddef.h.
74986         (arguments): Change type of field 'count' to size_t.
74987         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
74988         'unsigned int' where appropriate.
74989         * lib/printf-parse.h: Include sys/types.h.
74990         (char_directive): Change type of *arg_index fields to ssize_t.
74991         (char_directives): Change type of fields 'count', max_*_length to
74992         size_t.
74993         * lib/printf-parse.c: Include sys/types.h and xsize.h.
74994         (SSIZE_MAX): Define fallback value.
74995         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
74996         instead of 'int' where appropriate. Check a_allocated, d_allocated
74997         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
74998         * lib/vasnprintf.c: Include xsize.h.
74999         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
75000         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
75001         overflow. Avoid wraparound when converting a width or precision from
75002         decimal to binary.
75003
75004 2003-11-16  Bruno Haible  <bruno@clisp.org>
75005
75006         Update from GNU gettext.
75007         * lib/printf-parse.c: Generalize to it can be compiled for wide
75008         strings.
75009         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
75010         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
75011         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
75012         SNPRINTF): New macros.
75013         Don't include <alloca.h> if the file is used inside libintl.
75014         (local_wcslen): New function, for Solaris 2.5.1.
75015         (VASNPRINTF): Use it instead of wcslen.
75016
75017 2003-11-16  Bruno Haible  <bruno@clisp.org>
75018
75019         * lib/xsize.h (xmax): New function.
75020         (xsum, xsum3, xsum4): Declare as "pure" functions.
75021
75022 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75023
75024         * modules/xalloc (Files): Undo latest change, since xalloc.h
75025         no longer needs SIZE_MAX or PTRDIFF_MAX.
75026
75027 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75028
75029         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
75030         gl_PTRDIFF_MAX.
75031
75032 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75033
75034         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
75035         "return", to pacify some unknown compiler.  Problem reported
75036         by Joerg Schilling.
75037
75038 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75039
75040         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
75041         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
75042         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
75043         heuristic is just as accurate as far as we know, and it removes a
75044         dependency on size_max.m4 and ptrdiff_max.m4.
75045
75046 2003-11-11  Bruno Haible  <bruno@clisp.org>
75047
75048         * modules/xsize (Files): Add m4/size_max.m4.
75049         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
75050
75051 2003-11-11  Bruno Haible  <bruno@clisp.org>
75052
75053         * m4/size_max.m4: New file.
75054         * m4/ptrdiff_max.m4: New file.
75055         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
75056         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
75057         (gl_XALLOC): Invoke it.
75058
75059 2003-11-11  Bruno Haible  <bruno@clisp.org>
75060
75061         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
75062         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
75063         defined.
75064
75065 2003-11-10  Paul Eggert  <eggert@twinsun.com>
75066
75067         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
75068         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
75069         rejected some allocations of exactly SIZE_MAX - 2 bytes.
75070         From Bruno Haible.
75071         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
75072         not (size_t) -1, since it's defined here.
75073
75074 2003-11-09  Karl Berry  <karl@gnu.org>
75075
75076         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
75077
75078 2003-11-06  Paul Eggert  <eggert@twinsun.com>
75079
75080         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
75081         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
75082         Reject sizes of exactly SIZE_MAX bytes.
75083         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
75084         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
75085
75086 2003-11-05  Bruno Haible  <bruno@clisp.org>
75087
75088         * lib/xsize.h: Include limits.h, to avoid a possible collision with
75089         SIZE_MAX defined in <limits.h> on Solaris.
75090
75091 2003-11-04  Jim Meyering  <jim@meyering.net>
75092
75093         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
75094         variable names, rather than @VAR@.
75095         * modules/poll: Likewise.
75096
75097 2003-11-04  Bruno Haible  <bruno@clisp.org>
75098
75099         * modules/xsize: New file.
75100         * modules/linebreak: Depend on xsize.
75101         * MODULES.html.sh (func_all_modules): Add xsize.
75102
75103 2003-11-04  Bruno Haible  <bruno@clisp.org>
75104
75105         * m4/xsize.m4: New file.
75106
75107 2003-11-04  Bruno Haible  <bruno@clisp.org>
75108
75109         * lib/xsize.h: New file.
75110         * lib/linebreak.c: Include xsize.h.
75111         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
75112         argument for overflow.
75113         Suggested by Paul Eggert.
75114
75115 2003-11-03  Karl Berry  <karl@gnu.org>
75116
75117         * config/config.{guess,sub}: update from config.
75118
75119 2003-11-03  Jim Meyering  <jim@meyering.net>
75120
75121         * modules/userspec (lib_SOURCES): Add userspec.h.
75122         (Include): Add "userspec.h".
75123         Improve description.
75124
75125 2003-11-03  Jim Meyering  <jim@meyering.net>
75126
75127         * lib/userspec.c: Include "userspec.h".
75128         * lib/userspec.h: New file.
75129
75130 2003-11-03  Bruno Haible  <bruno@clisp.org>
75131
75132         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
75133
75134 2003-11-03  Bruno Haible  <bruno@clisp.org>
75135
75136         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
75137         available, to avoid (extremely rare) race condition.
75138         Suggested by Paul Eggert.
75139
75140 2003-11-02  Karl Berry  <karl@gnu.org>
75141
75142         * config/srclist.txt (vasprintf.c): sync broken, sigh.
75143
75144 2003-10-31  Paul Eggert  <eggert@twinsun.com>
75145
75146         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
75147         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
75148         (read_filesystem_list): Set and use me_type_malloced.
75149         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
75150         whatever the type happens to be), for brevity and consistency.
75151         Check for size calculation overflow on Alphas running OSF/1.
75152
75153 2003-10-31  Jim Meyering  <jim@meyering.net>
75154
75155         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
75156
75157         * lib/linebuffer.c: Include <string.h> for declaration of memset.
75158
75159 2003-10-30  Paul Eggert  <eggert@twinsun.com>
75160             Bruno Haible  <bruno@clisp.org>
75161
75162         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
75163         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
75164
75165 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75166
75167         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
75168         netbsd*-gnu*.  Suggested by Robert Millan.
75169
75170 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75171
75172         * modules/group-member: Depend on stdbool.
75173
75174 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75175
75176         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
75177
75178 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75179
75180         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
75181         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
75182         after the 'gnu' in these cases.  This fixes some bugs in the
75183         previous change, and is based on suggestions by Robert Millan.
75184
75185 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75186
75187         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
75188         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
75189         no longer needed.
75190         * lib/quotearg.c (quotearg_n_options): Use it.
75191         * lib/group-member.c: Include <stdbool.h>.
75192         (free_group_info): Arg is now const *; don't free arg.
75193         (get_group_info): Now returns bool and accepts struct group_info *,
75194         rather than returning a malloc'ed struct group_info *.
75195         All uses changed.  Check for overflow in internal size calculation.
75196
75197         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
75198         rather than xmalloc/xrealloc.
75199         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
75200         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
75201         conformance bug: the old code used a pointer after freeing the
75202         storage that it addressed.
75203         * lib/hash.c (hash_initialize): Simplify the code by using
75204         xalloc_oversized rather than doing it by hand.
75205         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
75206         the buffer preserved.  Use free and xmalloc instead.
75207         * lib/quotearg.c (quotearg_n_options): Likewise.
75208         Use a simpler test for size overflow.  Don't use xalloc_oversized
75209         because unsigned int might be wider than size_t (!); this suggests
75210         that we should switch from unsigned int to size_t for slot numbers.
75211
75212 2003-10-28  Paul Eggert  <eggert@twinsun.com>
75213
75214         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
75215         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
75216         NetBSD kernels.  Requested by Richard Stallman.
75217
75218 2003-10-27  Paul Eggert  <eggert@twinsun.com>
75219
75220         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
75221         to allocate the returned structure.  Do not allocate a subarray,
75222         as x2nrealloc will do that.
75223         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
75224         instead of xnrealloc.
75225         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
75226
75227 2003-10-27  Bruno Haible  <bruno@clisp.org>
75228
75229         * lib/stdbool_.h: Better support for BeOS.
75230
75231 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75232
75233         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
75234         now uses inline.
75235
75236 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75237
75238         * lib/xalloc.h (xalloc_oversized): New static inline function, for
75239         callers that want to do their own size-overflow checking.  Include
75240         <stdbool.h>, since xalloc_oversized returns bool.
75241         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
75242         to use xalloc_oversized.
75243
75244         Add two functions x2realloc, x2nrealloc, for programs that grow
75245         arrays dynamically by doubling their sizes.
75246         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
75247         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
75248         New functions.
75249
75250         Port to C99 semantics for 'inline' of external functions.
75251         Bug reported by Bruno Haible.
75252         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
75253         with the old contents of xnmalloc.
75254         (xnmalloc, xmalloc): Use it.
75255         (xnrealloc_inline): New static inline function,
75256         with the old contents of xnrealloc.
75257         (xnrealloc, xrealloc): Use it.
75258
75259         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
75260         that.
75261
75262 2003-10-26  Karl Berry  <karl@gnu.org>
75263
75264         * config/srclist.txt (COPYING.DOC): no longer available from
75265         /gd/gnuorg; don't know where the ultimate source is.
75266
75267 2003-10-25  Paul Eggert  <eggert@twinsun.com>
75268
75269         Fix several address-calculation bugs in the hash modules,
75270         plus some minor code cleanup.
75271
75272         * lib/hash.h: Include <stdbool.h>, for bool.
75273         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
75274         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
75275         hash_get_n_entries, hash_get_max_bucket_length,
75276         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
75277         hash_rehash): Use size_t rather than unsigned.
75278         * lib/hash.c (struct hash_table, hash_get_n_buckets,
75279         hash_get_n_buckets_used, hash_get_n_entries,
75280         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
75281         hash_get_entries, hash_do_for_each, hash_string, is_prime,
75282         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
75283         Likewise.
75284         (SIZE_MAX): Define if not defined.
75285         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
75286         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
75287         hash_print):
75288         Use const * when possible.
75289         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
75290         (check_tuning): Fix bug: if tuning parameters were very close to
75291         0 or 1, rounding errors could have caused subscript violations.
75292         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
75293         (hash_initialize): Add 'fail:' label
75294         to free table and return NULL, and use it to simplify code.
75295         Use calloc rather than clearing the storage ourself.
75296         (hash_initialize, hash_rehash): Check for arithmetic overflow in
75297         buffer size calculations.
75298         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
75299         Include <stddef.h>, for size_t.
75300         * lib/hash-pjw.c (hash_pjw): Likewise.
75301         Switch to method described by Bruno Haible.
75302         Include <limits.h>, for CHAR_BIT.
75303         (SIZE_BITS): New macro.
75304
75305 2003-10-23  Paul Eggert  <eggert@twinsun.com>
75306
75307         * m4/getline.m4 (AM_FUNC_GETLINE):
75308         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
75309         hosts.  Problem reported by Derek Robert Price in
75310         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
75311         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
75312         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
75313
75314 2003-10-21  Paul Eggert  <eggert@twinsun.com>
75315
75316         * lib/getndelim2.c (getndelim2): When size calculation overflows,
75317         ceiling the allocation at NMAX bytes rather than silently
75318         discarding input bytes before NMAX is reached.  This makes
75319         a difference only if NMAX exceeds SIZE_MAX / 2.
75320
75321         * lib/obstack.c: Merge from glibc.
75322         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
75323         Add libc_hidden_def (_obstack_newchunk).
75324         (_obstack_free) [! defined _LIBC]: Remove.
75325         [defined _LIBC]: Make a strong alias from obstack_free, rather than
75326         a clone of the function body.
75327         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
75328         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
75329
75330         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
75331         glibc.
75332         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
75333         arg to memcpy.
75334
75335         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
75336         (obstack_ptr_grow_fast, obstack_int_grow_fast):
75337         Don't use lvalue casts, as GCC plans to remove support for them
75338         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
75339         was also present in the non-GCC version, indicating that this
75340         code had always been buggy and had never been widely used.
75341         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
75342         Use the fast variant of each macro, rather than copying the
75343         definiens of the fast variant; that way, we'll be more likely to
75344         catch future bugs in the fast variants.
75345
75346 2003-10-20  Bruno Haible  <bruno@clisp.org>
75347
75348         * modules/wait-process: New file.
75349         * MODULES.html.sh (func_all_modules): Add wait-process.
75350
75351 2003-10-20  Bruno Haible  <bruno@clisp.org>
75352
75353         * m4/wait-process.m4: New file.
75354
75355 2003-10-20  Bruno Haible  <bruno@clisp.org>
75356
75357         * lib/wait-process.h: New file, from GNU gettext.
75358         * lib/wait-process.c: New file, from GNU gettext.
75359
75360 2003-10-19  Jim Meyering  <jim@meyering.net>
75361
75362         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
75363         HPUX 10.20.
75364
75365 2003-10-18  Karl Berry  <karl@gnu.org>
75366
75367         * config/config.guess: update from config.
75368
75369 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75370
75371         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
75372         (getgroups): First arg is int, not size_t.
75373         Don't let 'free' mangle errno.
75374
75375 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75376
75377         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
75378
75379 2003-10-16  Karl Berry  <karl@gnu.org>
75380
75381         * config/config.{guess,sub}: update from config.
75382
75383 2003-10-16  Jim Meyering  <jim@meyering.net>
75384
75385         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
75386         memcpy.
75387
75388 2003-10-15  Paul Eggert  <eggert@twinsun.com>
75389
75390         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
75391         (SIZE_MAX): Remove.
75392         (new_exclude, add_exclude_file): Initial size no longer needs to
75393         be a power of 2.
75394         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
75395         our own address arithmetic overflow checking.
75396
75397         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
75398         (fnmatch): Do not alloca more than 2000 wide characters;
75399         instead, use malloc for large buffers.
75400         Check for address arithmetic overflow, and return -1
75401         with errno set to ENOMEM in that case.
75402         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
75403         (NEW_PATTERN): Do not alloca more than 8000 bytes;
75404         instead, return -1.  Check for address arithmetic overflow.
75405
75406 2003-10-14  Paul Eggert  <eggert@twinsun.com>
75407
75408         Handle invalid suffixes and overflow independently, so that
75409         callers can treat them independently as needed.  Fix some bugs in
75410         suffix handling, e.g., "100k@" was not diagnosed as an invalid
75411         suffix for a human-readable blocksize.  The major caller-visible
75412         change is the addition of a new
75413         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
75414         that both overflow and suffix chars were found.
75415
75416         * lib/human.c (humblock): Don't check separately for invalid suffix
75417         char; that is xstrtoumax's job (now that its bug is fixed).
75418         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
75419         INTMAX_MAX]: New macros.
75420         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
75421         TYPE_MAXIMUM): New macros.
75422         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
75423         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
75424         if overflow occurs, as it's what __strtol does and it's more useful
75425         in practice.
75426         (__xstrtol): If __strtol reports some error other than ERANGE,
75427         reflect it to the caller as LONGINT_INVALID.  If it reports
75428         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
75429         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
75430         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
75431         value.
75432         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
75433         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
75434         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
75435         [defined UINTMAX_MAX]: New macros.
75436
75437 2003-10-14  Bruno Haible  <bruno@clisp.org>
75438
75439         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
75440
75441 2003-10-14  Bruno Haible  <bruno@clisp.org>
75442
75443         * m4/sig_atomic_t: New file, from GNU gettext.
75444         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
75445
75446 2003-10-14  Bruno Haible  <bruno@clisp.org>
75447
75448         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
75449         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
75450         Also use volatile where needed.
75451
75452 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75453
75454         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
75455         Change maintainer from Bruno Haible to 'all'.
75456
75457 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75458
75459         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
75460
75461 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75462
75463         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
75464         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
75465         and define in terms of the other primitives.
75466         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
75467         (SIZE_MAX): Define if not already defined.
75468         (array_size_overflow): New function.
75469         (xalloc_die): Abort instead of exiting if 'error' returns.
75470         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
75471         (xmalloc, xrealloc): Use them.
75472         (xcalloc): Check for address arithmetic overflow.
75473         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
75474         a bit faster than strcpy.
75475
75476 2003-10-10  Simon Josefsson  <jas@extundo.com>
75477
75478         * modules/argp (Depends-on): Add restrict and strcase.
75479
75480 2003-10-10  Simon Josefsson  <jas@extundo.com>
75481
75482         * m4/argp.m4: Add AC_C_INLINE.
75483
75484 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75485
75486         Merge getpass from libc, plus a few fixes.
75487
75488         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
75489         Include <stdbool.h>.
75490         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
75491         __fsetlocking to empty.
75492         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
75493         do include <bits/libc-lock.h>.
75494         Do not include <fcntl.h>; not needed.
75495         [_LIBC]: Include <wchar.h>.
75496         (NOTCANCEL_MODE): New macro.
75497         (flockfile, funlockfile) [_LIBC]: New macros.
75498         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
75499         [!_LIBC]: New macros.
75500         (call_fclose): New function.
75501         (getpass): Use it.  Save tty stream separately; this simplifies the
75502         code and makes it more reliable if stdin happens to equal stdout.
75503         Invoke __fsetlocking on tty.
75504         Handle thread cancellation if needed.
75505         Namespace cleanup (use __tcgetattr, __getline).
75506         Use bool for Booleans.
75507         [USE_IN_LIBIO]: Handle wide streams.
75508         [!_LIBC]: Unconditionally do the fseek, since we don't know what
75509         stream might go where.
75510
75511         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
75512         doesn't have to include <stdio.h> before us.
75513         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
75514         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
75515         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
75516         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
75517         if not declared, so that we can use getpass.c code from libc without
75518         rewriting it.
75519         (flockfile, ftrylockfile, funlockfile): New macros.
75520
75521 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75522
75523         * modules/getpass: Depend on stdbool.
75524
75525 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75526
75527         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
75528
75529 2003-10-07  Karl Berry  <karl@gnu.org>
75530
75531         * config/config.{guess,sub}: update from config.
75532
75533 2003-10-06  Jim Meyering  <jim@meyering.net>
75534             Bruno Haible  <bruno@clisp.org>
75535
75536         This lets translators provide better translations for the
75537         "Written by ..." part of --version output.
75538         * lib/version-etc.h: Include stdarg.h.
75539         (version_etc_copyright): Declare as readonly.
75540         (version_etc): Make this function variadic with a NULL-terminated list
75541         of author name strings.
75542         (version_etc_va): New declaration.
75543         * lib/version-etc.c: Include stdarg.h, stdlib.h.
75544         (version_etc_copyright): Declare as readonly.
75545         (version_etc_va): New function. Provide a different translatable string
75546         for each possible number of authors < 10. Abbreviate when there are 10
75547         authors or more.
75548         (version_etc): Make this function variadic. Call version_etc_va.
75549         Suggestion from Gary V. Vaughan.
75550
75551         * lib/long-options.h (parse_long_options): Change prototype: the
75552         authors string is moved to the end and becomes variadic.
75553         * lib/long-options.c: Include stdarg.h.
75554         (parse_long_options): Make this function variadic, too.
75555         Call version_etc_va, not version_etc.
75556
75557 2003-10-06  Bruno Haible  <bruno@clisp.org>
75558
75559         * modules/version-etc-2: Remove file.
75560         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
75561
75562 2003-10-06  Bruno Haible  <bruno@clisp.org>
75563
75564         * modules/fatal-signal: New file.
75565         * MODULES.html.sh (func_all_modules): Add fatal-signal.
75566
75567 2003-10-06  Bruno Haible  <bruno@clisp.org>
75568
75569         * m4/fatal-signal.m4: New file.
75570         * m4/signalblocking.m4: New file, from GNU gettext.
75571
75572 2003-10-06  Bruno Haible  <bruno@clisp.org>
75573
75574         * lib/version-etc-2.h: Remove file.
75575         * lib/version-etc-2.c: Remove file.
75576
75577 2003-10-06  Bruno Haible  <bruno@clisp.org>
75578
75579         * lib/fatal-signal.h: New file, from GNU gettext.
75580         * lib/fatal-signal.c: New file, from GNU gettext.
75581
75582 2003-10-05  Paul Eggert  <eggert@twinsun.com>
75583
75584         * README: Rework advice for preventing empty .o files.
75585         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
75586         not <sys/types.h>.
75587
75588 2003-10-04  Karl Berry  <karl@gnu.org>
75589
75590         * lib/argp*: update from libc.
75591
75592 2003-10-04  Karl Berry  <karl@gnu.org>
75593
75594         * config/config.{guess,sub}: update from config.
75595
75596 2003-10-02  Bruno Haible  <bruno@clisp.org>
75597
75598         * modules/lchown (Include): Add lchown.h.
75599         * modules/time_r (Include): Use "..." syntax.
75600         * modules/xgetdomainname (Include): Add xgetdomainname.h.
75601
75602 2003-10-01  Simon Josefsson  <jas@extundo.com>
75603
75604         * MODULES.html.sh (func_all_modules): Move gethostname from section
75605         'based on' to section 'lacking' POSIX:2001.
75606
75607 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
75608
75609         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
75610         to output mode on the same stream.
75611
75612 2003-09-29  Paul Eggert  <eggert@twinsun.com>
75613
75614         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
75615         Fix arg typo in previous patch.
75616
75617 2003-09-28  Jim Meyering  <jim@meyering.net>
75618
75619         * lib/error.c: Correct cpp indentation.
75620
75621 2003-09-27  Paul Eggert  <eggert@twinsun.com>
75622
75623         * modules/free: New file.
75624
75625 2003-09-27  Paul Eggert  <eggert@twinsun.com>
75626
75627         * m4/free.m4: New file.
75628
75629 2003-09-27  Paul Eggert  <eggert@twinsun.com>
75630
75631         * lib/minmax.h (MIN, MAX)
75632         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
75633         Omit the special code that used __typeof__, since we worry that
75634         it could be more trouble than it's worth.  See:
75635         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
75636         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
75637
75638         * lib/free.c: New file.
75639
75640 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
75641
75642         Trivial fixes to Makefile.am parts of module listings.
75643         * modules/strstr: Append strstr.h to lib_SOURCES.
75644         * modules/strcase: Likewise, for strcase.h.
75645
75646 2003-09-27  Karl Berry  <karl@gnu.org>
75647
75648         * config/mkinstalldirs: update from automake.
75649
75650 2003-09-26  Paul Eggert  <eggert@twinsun.com>
75651
75652         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
75653         (error_tail): Do not loop, reallocating temporary buffer, since
75654         the output cannot contain more wide characters than the input
75655         contains bytes, the size must be big enough already.  This avoids
75656         one potential size overflow calculation.  Check for size overflow
75657         when calculating temporary buffer size.  Free temporary buffer
75658         when done, if it was allocated with malloc; this plugs a memory
75659         leak.  Remove casts from void * to pointers, that are no longer
75660         needed now that we're assuming C89 or better.
75661
75662         Merge error changes from glibc.
75663
75664         * lib/error.c, error.h: Update copyright notice header to match glibc.
75665         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
75666         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
75667         Disable cancellation while printing error.
75668         * lib/error.h: Prepend __ to parameter names.
75669
75670 2003-09-26  Jim Meyering  <jim@meyering.net>
75671
75672         * lib/error.c (error_tail): Move some declarations
75673         into inner scope where the local variables are used.
75674
75675 2003-09-26  Bruno Haible  <bruno@clisp.org>
75676
75677         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
75678         stpncpy().
75679         Don't define stpncpy through config.h; it's now done through stpncpy.h.
75680
75681 2003-09-26  Bruno Haible  <bruno@clisp.org>
75682
75683         * lib/stpncpy.h (gnu_stpncpy): New declaration.
75684         (stpncpy): Define as alias for gnu_stpncpy.
75685         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
75686
75687 2003-09-25  Simon Josefsson  <jas@extundo.com>
75688
75689         * lib/xgetdomainname.h: New file.
75690         * lib/xgetdomainname.c: New file.
75691
75692 2003-09-25  Simon Josefsson  <jas@extundo.com>
75693             Bruno Haible  <bruno@clisp.org>
75694
75695         * modules/getdomainname: New file.
75696         * modules/xgetdomainname: New file.
75697         * MODULES.html.sh (func_all_modules): Add getdomainname,
75698         xgetdomainname.
75699
75700 2003-09-25  Simon Josefsson  <jas@extundo.com>
75701             Bruno Haible  <bruno@clisp.org>
75702
75703         * m4/getdomainname.m4: New file.
75704
75705 2003-09-25  Simon Josefsson  <jas@extundo.com>
75706             Bruno Haible  <bruno@clisp.org>
75707
75708         * lib/getdomainname.h: New file.
75709         * lib/getdomainname.c: New file.
75710
75711 2003-09-25  Karl Berry  <karl@gnu.org>
75712
75713         * lib/argp-fmtstream.c, argp-help.c: update from libc.
75714
75715 2003-09-25  Karl Berry  <karl@gnu.org>
75716
75717         * config/install-sh: update from automake.
75718
75719 2003-09-25  Bruno Haible  <bruno@clisp.org>
75720
75721         * modules/version-etc-2: New file, from modules/version-etc with
75722         modifications.
75723         * MODULES.html.sh (func_all_modules): Add version-etc-2.
75724
75725 2003-09-25  Bruno Haible  <bruno@clisp.org>
75726
75727         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
75728         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
75729
75730 2003-09-24  Simon Josefsson  <jas@extundo.com>
75731
75732         * modules/xgethostname: Add xgethostname.h.
75733
75734 2003-09-24  Paul Eggert  <eggert@twinsun.com>
75735
75736         * lib/linebuffer.c (freebuffer): Don't free the argument, just
75737         the buffer associated with the argument.  Bug reported by
75738         Simon Josefsson.
75739
75740 2003-09-24  Paul Eggert  <eggert@twinsun.com>
75741
75742         * README: Document assumptions that 'int' is at least 32 bits
75743         wide, that integer arithmetic is 2's complement without overflow,
75744         that there are no holes in integer values, that adding sizes of
75745         two nonoverlapping objects can't overflow, and that all-bits-zero
75746         yields scalar zero.  Fix spelling and capitalization typos.
75747
75748 2003-09-19  Karl Berry  <karl@gnu.org>
75749
75750         * lib/argp.h: update from libc.
75751
75752 2003-09-17  Paul Eggert  <eggert@twinsun.com>
75753
75754         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
75755         to avoid spurious warnings like "AC_RUN_IFELSE was called before
75756         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
75757
75758 2003-09-17  Paul Eggert  <eggert@twinsun.com>
75759
75760         * gnulib-tool: Use "test -h", not "test -L", for portability
75761         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
75762         (tags_regexp): Remove, since \| doesn't conform to POSIX.
75763         (sed_extract_prog): Issue s commands one-by-one, rather than
75764         using \| in one s command.
75765
75766 2003-09-16  Paul Eggert  <eggert@twinsun.com>
75767
75768         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
75769         input error, instead of returning NULL the next time we are called
75770         (and therefore losing track of errno).
75771
75772 2003-09-16  Bruno Haible  <bruno@clisp.org>
75773
75774         * gnulib-tool (func_create_testdir): Warn about duplicated
75775         dependencies.
75776
75777 2003-09-15  Paul Eggert  <eggert@twinsun.com>
75778
75779         * modules/argmatch, modules/fatal, modules/obstack,
75780         modules/xalloc, modules/xgethostname: Sort dependencies by
75781         importance, not alphabetically.
75782
75783 2003-09-15  Paul Eggert  <eggert@twinsun.com>
75784
75785         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
75786         fails, so that the caller gets the proper errno.
75787
75788         * lib/readutmp.c (read_utmp): Likewise.
75789         Check for fstat error.  Close stream and free storage
75790         when failing.
75791
75792 2003-09-14  Karl Berry  <karl@gnu.org>
75793
75794         * config/srclist.txt (strdup.c): disable for c89 changes.
75795
75796 2003-09-14  Jim Meyering  <jim@meyering.net>
75797
75798         * lib/getloadavg.c: Correct cpp indentation.
75799         * lib/strdup.c: Likewise.
75800         * lib/vasnprintf.c: Likewise.
75801
75802 2003-09-14  Bruno Haible  <bruno@clisp.org>
75803
75804         * modules/fwriteerror: New file.
75805         * MODULES.html.sh (func_all_modules): Add fwriteerror.
75806
75807 2003-09-14  Bruno Haible  <bruno@clisp.org>
75808
75809         * lib/fwriteerror.h: New file.
75810         * lib/fwriteerror.c: New file.
75811
75812 2003-09-12  Paul Eggert  <eggert@twinsun.com>
75813
75814         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
75815         modules/xgethostname, modules/xalloc: Depend on exit.
75816
75817 2003-09-12  Paul Eggert  <eggert@twinsun.com>
75818
75819         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
75820
75821         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
75822         and AC_MINIX, too, so that their extensions are available.
75823
75824         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
75825         This macro has been superseded by gl_BACKUPFILE.
75826
75827         More patches to assume C89 or better.
75828
75829         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
75830
75831         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
75832         unconditionally.
75833         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
75834         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
75835         Include <string.h>, <stdlib.h> unconditionally.
75836         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
75837         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
75838         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
75839         headers or for string.h.
75840         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
75841         or strtoul.
75842
75843         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
75844         headers.
75845         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
75846         * m4/userspec.m4 (gl_USERSPEC): Likewise.
75847         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
75848         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
75849         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75850         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
75851         memcpy, memset.
75852         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
75853         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
75854         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
75855         strtol.
75856         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
75857         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
75858         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
75859         strtoul.
75860
75861 2003-09-12  Paul Eggert  <eggert@twinsun.com>
75862
75863         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
75864         * lib/obstack.c [!defined _LIBC]: Likewise.
75865         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
75866         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
75867         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
75868
75869         More changes to assume C89 or better.
75870
75871         * lib/error.c (error_tail): Assume vprintf.
75872
75873         * lib/argmatch.c (getenv): Remove decl.
75874         * lib/progreloc.c (get_full_program_name): Define via prototype.
75875         * lib/setenv.c (clearenv): Likewise.
75876         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
75877         needed.
75878         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
75879         (malloc, memcpy): Remove decls.
75880         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
75881         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
75882         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
75883         (memcpy): Remove macro.
75884         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
75885         (__P): Remove.  All uses removed.
75886         (PTR): Remove.  All uses changed to void *.
75887         (CHAR_BIT, NULL): Remove.
75888         (spaces, zeros, memset_space, memset_zero)
75889         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
75890         Remove.
75891         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
75892         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
75893         Define with prototype.
75894         Remove now-unnecessary prototype decl.
75895         (extra_args_spec): Assume ANSI C.  All uses changed.
75896         (extra_args_spec_iso): Remove.
75897         (my_strftime, emacs_strftimeu): Define via prototype.
75898         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
75899         unconditionally.
75900         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
75901         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
75902         (strtoul, strtol): Remove decls.
75903         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
75904         LONG_MAX): Remove.
75905         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
75906         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
75907         (LOCALE_PARAM_PROTO): New macro.
75908         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
75909         (INTERNAL (strtol), strtol): Define with a prototype.
75910         (PARAMS): Remove.  All uses removed.
75911         * lib/tempname.c: Include <string.h> unconditionally.
75912         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
75913         * lib/xgethostname.c (main): Define with a prototype.
75914         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
75915         Include <stdlib.h> unconditionally.
75916         (calloc, malloc, realloc, free): Remove decls.
75917         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
75918         Include <stdlib.h> unconditionally.  Sort include file names.
75919         (strtod): Remove.
75920         (xstrtod): Define with a prototype.
75921         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
75922         (strtol, strtoul): Remove decls.
75923
75924 2003-09-11  Paul Eggert  <eggert@twinsun.com>
75925
75926         More patches to assume C89 or better.
75927         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
75928         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
75929         string.h, memchr, STDC_HEADERS.
75930
75931 2003-09-11  Paul Eggert  <eggert@twinsun.com>
75932
75933         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
75934         Include <stdlib.h>, <string.h> unconditionally.
75935         Remove now-unnecessary cast to char *.
75936         * lib/strnlen.c: Include <string.h> unconditionally.
75937         * lib/yesno.c (yesno): Define with a prototype.
75938
75939 2003-09-11  Bruno Haible  <bruno@clisp.org>
75940
75941         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
75942
75943 2003-09-10  Jim Meyering  <jim@meyering.net>
75944
75945         * lib/error.c: Correct indentation of cpp directives.
75946
75947 2003-09-10  Bruno Haible  <bruno@clisp.org>
75948
75949         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
75950         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
75951         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
75952         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
75953         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
75954         <stdlib.h> and <string.h> checks.
75955         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
75956         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
75957
75958 2003-09-10  Bruno Haible  <bruno@clisp.org>
75959
75960         * lib/strcspn.c: Include <string.h> unconditionally.
75961         * lib/strpbrk.c: Include <string.h> unconditionally.
75962         * lib/strstr.c: Include <string.h> unconditionally.
75963         * lib/unicodeio.c: Include <string.h> unconditionally.
75964         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
75965         * lib/unsetenv.c: Likewise.
75966         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
75967         * lib/yesno.c: Include <stdlib.h> unconditionally.
75968         (rpmatch): Add prototype.
75969
75970 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75971
75972         More patches to assume C89 or better.
75973         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
75974         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
75975         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
75976         or for string.h.
75977         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
75978         stdlib.h.
75979         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
75980         C headers.
75981         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
75982         string.h.
75983         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
75984         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
75985         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
75986         or for string.h.
75987         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
75988         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
75989         C headers.
75990         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
75991         memcpy.
75992         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
75993         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
75994         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
75995         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
75996         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
75997         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
75998         string.h, free.
75999         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
76000         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
76001         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
76002         C headers, or for string.h.
76003         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
76004         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
76005         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
76006         headers, memory.h, stdlib.h, string.h, strings.h.
76007         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
76008         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
76009         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
76010         strchr.
76011         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
76012         headers, memory.h, string.h.
76013         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
76014         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
76015         free.
76016         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
76017         headers.
76018         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
76019         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
76020         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
76021         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
76022         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
76023
76024 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76025
76026         More K&R removal.
76027
76028         * lib/acosl.c (main): Use a prototype.
76029         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
76030         tanl.c: Likewise.
76031
76032         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
76033
76034         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
76035         (getopt, etopt_long, getopt_long_only, _getopt_internal)
76036         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
76037         with a prototype.
76038         * lib/getopt.c (const): Remove macro.
76039         Include <string.h> unconditionally.
76040         (my_index): Remove; all uses changed to strchr.
76041         (strlen): Remove decl.
76042         (exchange): Remove forward decl; no longer needed.
76043         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
76044         Define with prototype.
76045         * lib/getopt1.c (const): Remove macro.
76046         (getopt_long, getopt_long_only, main): Define with prototype.
76047
76048         * lib/getugroups.c: Include <string.h> unconditionally.
76049
76050         * lib/getusershell.c: Include <stdlib.h> unconditionally.
76051         (getusershell, setusershell, endusershell, readname, main):
76052         Define with prototypes.
76053
76054         * lib/group-member.c: Include group-member.h first.
76055         Include <stdlib.h> unconditionally.
76056
76057         * lib/hard-locale.c: Include hard-locale.h first.
76058         Include <stdlib.h>, <string.h> unconditionally.
76059
76060         * lib/hash.c (free, malloc): Remove decls.
76061         Include <stdlib.h> unconditionally.
76062
76063         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
76064         (getenv): Do not declare.
76065
76066         * lib/idcache.c: Include <string.h> unconditionally.
76067
76068         * lib/long-options.c: Include long-options.h first, to test interface.
76069         Include <stdlib.h> unconditionally.
76070
76071         * lib/makepath.c: Include makepath.h first, to test interface.
76072         Include <stdlib.h> and <string.h> unconditionally.
76073
76074         * lib/linebuffer.c: Include <stdlib.h>.
76075         (free): Remove decl.
76076
76077         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
76078         stddef.h. rpl_malloc returns void *, not char *.
76079         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
76080         prototype.
76081
76082         * lib/md5.h: Include <limits.h> unconditionally.
76083         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
76084         (__P): Remove; all uses removed.
76085         * lib/md5.c: Include "md5.h" first.
76086         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
76087         md5_buffer, md5_process_bytes, md5_process_block):
76088         Define with prototypes.
76089         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
76090         * lib/sha.c: Include "sha.h" first.
76091         Include <stdlib.h>, <string.h> unconditionally.
76092
76093         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
76094         * lib/memcmp.c (__ptr_t): Likewise.
76095         * lib/memrchr.c (__ptr_t): Likewise.
76096         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
76097         Include <string.h> unconditionally.
76098         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
76099         * lib/memchr.c: Include <stdlib.h> unconditionally.
76100         * lib/memchr.c (LONG_MAX): Remove.
76101         * lib/memrchr.c (LONG_MAX): Likewise.
76102         * lib/memchr.c (__memchr): Define via a prototype.
76103         * lib/memrchr.c (__memrchr): Likewise.
76104         * lib/memcmp.c (__P): Remove, and remove all uses.
76105         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
76106         Remove forward decls; no longer needed.
76107         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
76108         Use types required by C89 in prototype.
76109
76110         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
76111         * lib/savedir.c: Likewise.
76112         * lib/mkdir.c (free): Remove decl.
76113         * lib/rmdir.c (rmdir): Define with a prototype.
76114         * lib/savedir.c: Include savedir.h first, to test interface.
76115
76116         * lib/mktime.c (STDC_HEADERS): Remove.
76117         Include <stdlib.h>, <string.h> unconditionally.
76118
76119         * lib/modechange.c: Include <stdlib.h> unconditionally.
76120         (malloc): Remove decl.
76121
76122         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
76123         (free): Remove decl.
76124
76125         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
76126         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
76127         (This type really should be intptr_t, but that's a C99ism.)
76128         (_obstack_memcpy): Remove: all uses changed to memcpy.
76129         Include <string.h> unconditionally.
76130         (struct obstack): Assume __STDC__ for types of members
76131         chunkfun, freefun, extra_arg.
76132         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
76133         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
76134         obstack_begin, obstack_specify_allocation,
76135         obstack_specify_allocation_with_arg, obstack_chunkfun,
76136         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
76137         Remove unprototyped decls and the macros that use them.
76138         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
76139         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
76140         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
76141         (defined __STDC__ && __STDC__)]:
76142         Remove nonprototyped code.
76143         Include <stdlib.h> unconditionally.
76144         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
76145         _obstack_allocated_p, _obstack_free, obstack_free,
76146         _obstack_memory_used, print_and_abort):
76147         Define using prototypes.
76148         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
76149         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
76150         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
76151         obstack_next_free, obstack_object_size, obstack_room) [0]:
76152         Remove unused, unprototyped code.
76153
76154         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
76155
76156         * lib/physmem.c (physmem_total, physmem_available, main): Define
76157         with prototypes.
76158
76159         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
76160         (main): Define with a prototype.
76161
76162         * lib/posixver.c (getenv): Remove decl.
76163
76164         * lib/putenv.c (malloc): Returns void *, not char *.
76165         Include <string.h> unconditionally.
76166         (strchr, memcpy, NULL): Do not define.
76167
76168         * lib/readtokens.c: Include readtokens.h first, to test interface.
76169         Include <stdlib.h>, <string.h> unconditionally.
76170         (init_tokenbuffer): Define with a prototype.
76171
76172         * lib/regex.c (PARAMS): Remove.  All uses removed.
76173         All uses of _RE_ARGS removed, too.
76174         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
76175         unconditionally.
76176         (bzero): Assume memset exists.
76177         (memcmp, memcpy, NULL): Remove.
76178         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
76179         char, or assignments to local vars of type signed char.
76180         (init_syntax_once, PREFIX(extract_number_and_incr),
76181         PREFIX(print_partial_compiled_pattern),
76182         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
76183         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
76184         PREFIX(regex_grow_registers), PREFIX(regex_compile),
76185         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
76186         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
76187         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
76188         wcs_compile_range, byte_compile_range, truncate_wchar,
76189         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
76190         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
76191         count_mbs_length, wcs_re_match_2_internal,
76192         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
76193         PREFIX(alt_match_null_string_p),
76194         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
76195         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
76196         regfree, PREFIX(extract_number)): Define with prototype.  Remove
76197         now-unnecessary declaration, if any.
76198         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
76199         regcomp, regexec):
76200         Remove now-unnecessary casts among pointer types.
76201         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
76202
76203         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
76204         (free): Remove decl.
76205
76206         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
76207
76208         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
76209         (free): Remove decl.
76210
76211         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
76212         * lib/xgetcwd.c: Likewise.
76213
76214         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
76215         (free): Remove decl.
76216
76217         * lib/strchrnul.c (strchrnul): Define with a prototype.
76218         Fix bug: c_in was not converted to char before searching.
76219
76220         The following changes are not K&R related:
76221
76222         * lib/group-member.h: Include <sys/types.h>, so that this file is
76223         self-contained.
76224         * lib/makepath.h: Likewise.
76225
76226         * lib/getusershell.c (readname, default_index, line_size, readname):
76227         Use size_t, not int, for sizes.
76228         (readname): If the size overflows, report an error instead of
76229         looping forever.
76230
76231 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76232
76233         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
76234         libc.
76235
76236 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76237
76238         * README: New section: portability guidelines.
76239
76240 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76241
76242         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
76243         C89 spec.
76244
76245 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76246
76247         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
76248
76249 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76250
76251         Assume C89 or better; remove K&R cruft.
76252         A few of these changes were first proposed by Derek Robert Price
76253         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
76254
76255         * lib/addext.c: Include <string.h> unconditionally.
76256         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
76257         Don't declare getenv or malloc.
76258
76259         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
76260         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
76261         (NULL): Remove.
76262         (find_stack_direction, alloca): Use prototypes.
76263
76264         * lib/atexit.c (atexit): Define using a prototype.
76265
76266         * lib/basename.c, dirname.c, stripslash.c:
76267         Include <string.h> unconditionally.
76268
76269         * lib/bcopy.c: Include <stddef.h>.
76270         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
76271
76272         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
76273
76274         * lib/error.h (error, error_at_line, error_print_progname)
76275         [! (defined (__STDC__) && __STDC__)]: Remove decls.
76276         * lib/error.c: Include error.h first, to check interface.
76277         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76278         (VA_START): Remove; all uses changeed to va_start.
76279         (exit, strerror): Remove decls.
76280         (error_print_progname): Prototype uncondionally.
76281         Don't include <errno.h>; no longer needed.
76282         (private_strerror): Remove.
76283         (error_tail): Always define.
76284         (error, error_at_line): Assume C89 or better; always use prototypes.
76285         * lib/fatal.c: Include "fatal.h" first, to test interface.
76286         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76287         (VA_START): Remove; all uses changed to va_start.
76288         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
76289         this case.
76290         (exit): Remove decl.
76291         (fatal): Prototype unconditionally.  Assume va_start works.
76292         Abort at end, to pacify gcc.
76293
76294         * lib/euidaccess.c (main): Define with a prototype.
76295
76296         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
76297
76298         * lib/exitfail.c: Include <stdlib.h> unconditionally.
76299
76300         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
76301         prototypes.
76302         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
76303         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
76304         (getenv): Remove decl.
76305         (fnmatch): Define using a prototype.
76306         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
76307         (FCT): Define using a prototype.
76308
76309         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
76310
76311         * lib/gethostname.c: Include <stddef.h>.
76312         (gethostname): Define with prototype.  Length is size_t, not int.
76313
76314 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76315
76316         Assume C89 or better; remove K&R cruft.
76317         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
76318         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
76319         string.h, getenv, malloc.
76320         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
76321         headers.
76322         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
76323         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
76324         do not check for strerror.
76325         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
76326         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
76327         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
76328         do not check for doprnt or vprintf.
76329         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
76330         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
76331
76332 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76333
76334         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
76335         getversion.c should have been removed then, but was accidentally
76336         preserved.
76337
76338         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
76339         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
76340
76341 2003-09-08  Karl Berry  <karl@gnu.org>
76342
76343         * config/config.sub, config.guess, srclistvars.sh: update from savannah
76344                 config, forget about prep.
76345
76346         * config/depcomp, missing: update from automake.
76347
76348 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76349
76350         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
76351         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76352
76353 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76354
76355         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
76356         copy_tm_result.  Bug reported by Simon Josefsson in
76357         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76358
76359 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76360
76361         * m4/time_r.m4: New file.
76362         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
76363         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
76364         is. Check for timegm declaration.
76365         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
76366         Do not check for gmtime_r.
76367         Replace mktime if __mktime_internal does not exist and if mktime
76368         hasn't been replaced already.
76369
76370 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76371
76372         * lib/time_r.c, lib/time_r.h: New files.
76373
76374         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
76375         __localtime_r.
76376         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
76377         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
76378
76379         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
76380         __gmtime_r.
76381         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
76382         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
76383         Include <time_r.h>.
76384
76385         * lib/timegm.c: Switch to glibc implementation, with the following
76386         changes:
76387         [defined HAVE_CONFIG_H]: Include <config.h>.
76388         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
76389         (__mktime_internal) [!defined _LIBC]: New decl.
76390         (__gmtime_r) [!defined _LIBC]: New macro and function.
76391         (timegm): Use a prototype, since gnulib assumes C89.
76392         Do not bother declaring tmp to be const, as it's not really usefu.
76393         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
76394         (timegm): Declare only if HAVE_DECL_TIMEGM.
76395
76396 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76397
76398         * MODULES.html.sh (func_all_modules): Add time_r.
76399         * modules/time_r: New file.
76400         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
76401         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
76402
76403 2003-09-03  Paul Eggert  <eggert@twinsun.com>
76404
76405         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
76406         Bug reported by Lute Kamstra in
76407         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
76408
76409         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
76410         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
76411         course with correspondingly smaller numbers for tomorrow and
76412         yesterday.  From Tadayoshi Funaba.  Originally installed into
76413         sh-utils on 1999-08-07, but the patch got lost (I guess during the
76414         coreutils merge?).
76415
76416 2003-08-31  Simon Josefsson  <jas@extundo.com>
76417
76418         * modules/timegm: New file.
76419         * MODULES.html.sh (func_all_modules): Add timegm.
76420
76421 2003-08-31  Simon Josefsson  <jas@extundo.com>
76422
76423         * m4/timegm.m4: New file.
76424
76425 2003-08-31  Simon Josefsson  <jas@extundo.com>
76426
76427         * lib/timegm.h: New file.
76428         * lib/timegm.c: New file.  Based on
76429         wget-1.8.2/src/http.c:mktime_from_utc.
76430
76431 2003-08-31  Karl Berry  <karl@gnu.org>
76432
76433         * lib/argp.h: update from libc.
76434
76435 2003-08-28  Bruno Haible  <bruno@clisp.org>
76436
76437         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
76438         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
76439         followed by '#define fnmatch fnmatch_posix' gives an error.
76440
76441 2003-08-28  Bruno Haible  <bruno@clisp.org>
76442
76443         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
76444         warning on QNX, which defines O_BINARY to 000000.
76445
76446 2003-08-27  Jim Meyering  <jim@meyering.net>
76447
76448         * m4/mkstemp.m4: Require that the system mkstemp be able to create
76449         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
76450         would fail after 32.  Reported by Danny Levinson.  Details here:
76451         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
76452
76453 2003-08-24  Bruno Haible  <bruno@clisp.org>
76454
76455         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
76456         MSVC7 <stdio.h> is included later.
76457
76458 2003-08-22  Simon Josefsson  <jas@extundo.com>
76459
76460         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
76461
76462 2003-08-20  Karl Berry  <karl@gnu.org>
76463
76464         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
76465
76466 2003-08-20  Bruno Haible  <bruno@clisp.org>
76467
76468         * modules/progname: New file.
76469         * MODULES.html.sh (func_all_modules): Add progname.
76470
76471 2003-08-20  Bruno Haible  <bruno@clisp.org>
76472
76473         * lib/progname.h: New file, from GNU gettext.
76474         * lib/progname.c: New file, from GNU gettext.
76475         * lib/progreloc.c: New file, from GNU gettext.
76476
76477 2003-08-19  Jim Meyering  <jim@meyering.net>
76478
76479         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
76480         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
76481
76482 2003-08-19  Bruno Haible  <bruno@clisp.org>
76483
76484         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
76485         more.
76486
76487 2003-08-19  Bruno Haible  <bruno@clisp.org>
76488
76489         * lib/xstrdup.c: Assume <string.h> exists.
76490
76491 2003-08-18  Paul Eggert  <eggert@twinsun.com>
76492
76493         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
76494         in makefile rules.
76495
76496 2003-08-18  Jim Meyering  <jim@meyering.net>
76497
76498         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
76499         * m4/lib-ld.m4: Likewise.
76500
76501 2003-08-18  Jim Meyering  <jim@meyering.net>
76502
76503         * lib/setenv.h: Indent nested cpp directive.
76504         * lib/vasnprintf.c: Remove trailing blanks.
76505
76506 2003-08-17  Simon Josefsson  <jas@extundo.com>
76507
76508         * modules/xstrndup: New file.
76509         * MODULES.html.sh (func_all_modules): Add xstrndup.
76510
76511 2003-08-17  Simon Josefsson  <jas@extundo.com>
76512
76513         * modules/argp: Fix autoconf macro name. Add more dependencies.
76514
76515 2003-08-17  Simon Josefsson  <jas@extundo.com>
76516
76517         * m4/xstrndup.m4: New file.
76518
76519 2003-08-17  Simon Josefsson  <jas@extundo.com>
76520
76521         * m4/argp.m4: New file.
76522
76523 2003-08-17  Simon Josefsson  <jas@extundo.com>
76524             Bruno Haible  <bruno@clisp.org>
76525
76526         * lib/xstrndup.h: New file.
76527         * lib/xstrndup.c: New file.
76528
76529 2003-08-17  Bruno Haible  <bruno@clisp.org>
76530
76531         * modules/strndup (Files, Include): Add lib/strndup.h.
76532
76533 2003-08-17  Bruno Haible  <bruno@clisp.org>
76534
76535         * modules/euidaccess (Files): Add lib/euidaccess.h.
76536
76537 2003-08-17  Bruno Haible  <bruno@clisp.org>
76538
76539         * lib/strndup.h: New file.
76540
76541 2003-08-17  Bruno Haible  <bruno@clisp.org>
76542
76543         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
76544         like AC_GNU_SOURCE.
76545         * modules/extensions (configure.ac): Comment out the invocation of
76546         gl_USE_SYSTEM_EXTENSIONS.
76547
76548 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76549
76550         Merges from coreutils, etc.
76551         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
76552         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
76553         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
76554         fixing a typo.
76555         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
76556         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
76557
76558 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76559
76560         Document merge from coreutils.
76561         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
76562         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
76563         * modules/utime: Add m4/utimes-null.m4.
76564
76565 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76566
76567         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
76568         space, undoing this 2003-08-12 change:
76569         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
76570
76571 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76572
76573         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
76574         strtoul.c from libc, undoing this 2003-08-12 change:
76575         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
76576
76577 2003-08-16  Jim Meyering  <jim@meyering.net>
76578
76579         Merges from coreutils.
76580         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
76581         prefix.  Adjust cache variables similarly.  Create 500 rather than
76582         just 300 files, to exercise bug on Darwin6.5, too.
76583         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
76584         $missing_dir.
76585         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
76586         AM_SYS_POSIX_TERMIOS.
76587         Reported by mkc@mathdogs.com.
76588         Also change use of $am_cv_sys_posix_termios
76589         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
76590         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
76591         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
76592         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
76593         in /proc/mounts until it finds one with matching device number.  This
76594         is unnecessary when the FILE argument *is* a mount point.  No stat call
76595         is necessary in that case.  So, disable the statvfs-testing code on
76596         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
76597         as RedHat bug# 84846.
76598         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
76599         to 1MB, so as not to render systems with no stack size limit (e.g.,
76600         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
76601         Include <unistd.h>.  On some systems,
76602         it is required for the definition of _SC_PAGESIZE.
76603
76604 2003-08-16  Jim Meyering  <jim@meyering.net>
76605
76606         Merge from coreutils.
76607         * lib/xstrtoimax.c: #else #if -> #elif.
76608         * lib/xstrtoumax.c: Likewise.
76609
76610 2003-08-16  Jim Meyering  <jim@meyering.net>
76611
76612         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
76613         * m4/utimes.m4: Removed.
76614         * m4/utimes-null.m4: Renamed from utimes.m4.
76615
76616         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
76617         to 1MB, so as not to render systems with no stack size limit (e.g.,
76618         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
76619         Include <unistd.h>.  On some systems,
76620         it is required for the definition of _SC_PAGESIZE.
76621
76622 2003-08-16  Jim Meyering  <jim@meyering.net>
76623         and Paul Eggert  <eggert@cs.ucla.edu>
76624
76625         Merges from coreutils, etc.
76626
76627         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
76628         using the latest version from cvs.  This avoids problems with #line
76629         directives using a vendor (Sun) compiler.
76630         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
76631         Don't set GETGROUPS_LIB here; now it's
76632         done via getgroups.m4's wrapper function.
76633         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
76634         rather than just in sh-util/configure.in, so that the
76635         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
76636         same.
76637         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
76638         AC_FUNC_GETLOADAVG where to find getloadavg.c.
76639         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
76640         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
76641         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
76642         Remove code that is now done by the newly-required macros.
76643         Append $(EXEEXT) to DF_PROG.
76644         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
76645         Do not invoke or require the following here,
76646         since prereq.m4 or some gnulib .m4 now does this for us:
76647         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
76648         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
76649         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
76650         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
76651         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
76652         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
76653         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
76654         AC_FUNC_OBSTACK.
76655         Do not replace the following functions, as this is now the job
76656         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
76657         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
76658         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
76659         atexit getpass, strdup, getpagesize.
76660         Replace 'raise'.
76661         Do not check for the following functions, as this is now the job
76662         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
76663         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
76664         setregid.
76665         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
76666         Check for sys/sysctl.h.
76667         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
76668         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
76669         of checking for ssize_t ourselves.
76670
76671         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
76672         Require every macro that gnulib/modules/* suggests for us.
76673         (jm_PREREQ_ADDEXT): New macro.
76674         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
76675         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
76676
76677         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
76678         (gl_PHYSMEM): Use it.
76679         Also check for `table' function.
76680         Check for new headers and functions.
76681         Add check for sys/sysmp.h.
76682         With suggestions from Kaveh Ghazi.
76683         Ignore headers that are present but cannot be compiled.  This
76684         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
76685         C 5.4.
76686
76687 2003-08-15  Paul Eggert  <eggert@twinsun.com>
76688
76689         Document merge from coreutils.
76690         * modules/userspec: Depend on posixver.
76691         * modules/strftime: Depend on tzset.
76692
76693 2003-08-15  Paul Eggert  <eggert@twinsun.com>
76694
76695         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
76696         rather than tab, after '#' in shell-script copyright notices.
76697         Suggested by Bruno Haible.
76698
76699 2003-08-15  Paul Eggert  <eggert@twinsun.com>
76700
76701         * config/srclist-update: Use three spaces, rather than tab, after '#'
76702         in shell-script copyright notices.  Suggested by Bruno Haible.
76703         Remove unnecessary parenthesization in regular expression.
76704
76705 2003-08-15  Jim Meyering  <jim@meyering.net>
76706
76707         Merge from coreutils.
76708         * lib/xgethostname.c: Include <stdlib.h>.
76709         (xghostname): Don't exit for anything other than memory-related
76710         failure; just return NULL.
76711         * lib/userspec.c: Include "posixver.h".
76712         (parse_user_spec): Accept `.' as a separator only
76713         in pre-POSIX-200112 mode.
76714         * lib/strtoimax.c: Use #elif rather than #else #if.
76715         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
76716         Remove function, now that we can rely on a working tzset function.
76717         [!_LIBC]: Ensure that the required autoconf test has been run.
76718         [!defined _NL_CURRENT && HAVE_STRFTIME]:
76719         Use underlying_strftime for %r.
76720         * lib/sha.c: Merge in some clean-up and optimization changes from
76721         glibc.
76722         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
76723         Ensure that it is a multiple of 64.
76724         Rearrange loop exit tests so as to avoid performing an
76725         additional fread after encountering an error or EOF.
76726         * lib/realloc.c: Update copyright date.
76727
76728 2003-08-15  Jim Meyering  <jim@meyering.net>
76729         and Paul Eggert  <eggert@twinsun.com>
76730
76731         Merge from coreutils.
76732         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
76733         member but strut utmpx does not.  Needed for AIX 4.3.3.
76734         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
76735
76736 2003-08-15  Jim Meyering  <jim@meyering.net>
76737         and Paul Eggert  <eggert@cs.ucla.edu>
76738
76739         Merges from coreutils, etc.
76740         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
76741         Require gl_FUNC_TZSET_CLOBBER.
76742         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
76743         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
76744         members.
76745
76746 2003-08-14  Paul Eggert  <eggert@twinsun.com>
76747
76748         Help the merge from coreutils.
76749         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
76750         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
76751         * m4/tzset.m4: Use it too.
76752
76753 2003-08-14  Paul Eggert  <eggert@twinsun.com>
76754
76755         * modules/tzset: New file.
76756
76757 2003-08-14  Jim Meyering  <jim@meyering.net>
76758
76759         Merges from coreutils.
76760         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
76761         variable names, rather than @FNMATCH_H@.
76762         * modules/alloca: Likewise for $(ALLOCA_H).
76763
76764         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
76765         the three copies of the literal target, `fnmatch.h'.
76766         * modules/alloca (alloca.h): Likewise.
76767
76768 2003-08-14  Jim Meyering  <jim@meyering.net>
76769
76770         Merge from coreutils.
76771         * m4/tzset.m4: New file.
76772         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
76773         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
76774         otherwise, AIX 5.1 systems would end up using the latter.
76775         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
76776         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
76777         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
76778         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
76779
76780 2003-08-14  Jim Meyering  <jim@meyering.net>
76781
76782         Merge from coreutils.
76783         * lib/obstack.h: Whitespace changes.
76784         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
76785         and xcalloc return values.
76786         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
76787         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
76788         hang on OSF/1 5.1 for DIR on both local and remote file systems.
76789         Reported by (and fix confirmed by) Nelson H. F. Beebe.
76790         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
76791         error from mntctl.
76792         Use mntctl's return value to drive the entry-processing loop, since
76793         we can't rely on the value of the vmt_length member in the last
76794         entry.  On some systems doing so could result in exhausting
76795         virtual memory.  Based in part on a patch from Mike Jetzer.
76796
76797 2003-08-14  Jim Meyering  <jim@meyering.net>
76798         and Paul Eggert  <eggert@twinsun.com>
76799
76800         Merges from coreutils, plus other fixes.
76801         * lib/physmem.c: Merge in portability changes from gcc/libiberty
76802         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
76803         for credits and details.  Thanks to Kaveh Ghazi for helping
76804         to keep these files in sync.
76805         (ARRAY_SIZE): Define it.
76806         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
76807         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
76808         (memcasecmp): Don't assume size_t fits in unsigned int.
76809         Remove casts and duplicate code.
76810         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
76811         (memcpy): Remove definition.
76812         Merge in some clean-up and optimization changes from glibc.
76813         [BLOCKSIZE]: Move definition to top of file.
76814         Ensure that it is a multiple of 64.
76815         Rearrange loop exit tests so as to avoid performing an
76816         additional fread after encountering an error or EOF.
76817         * lib/md5.h (md5_uintptr): Define.
76818         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
76819         return to the initial working directory.  Preserve errno
76820         for caller.
76821         * lib/idcache.c: Include "xalloc.h".
76822         (xmalloc, xrealloc): Remove decls.
76823         (getuser): Remove casts no longer required in C89.
76824         * lib/human.c: Include stdio.h, for sprintf.
76825         * lib/group-member.c: Include "xalloc.h".
76826         (xmalloc, xrealloc): Remove decls.
76827         (get_group_info): Remove casts no longer required in C89.
76828         * lib/getusershell.c (readname): Remove casts no longer required in
76829         C89.
76830         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
76831         * lib/getline.c: Whitespace fix, from coreutils.
76832
76833 2003-08-13  Paul Eggert  <eggert@twinsun.com>
76834
76835         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
76836         Check for isascii.
76837
76838         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
76839         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
76840         Undo previous (whitespace-only) change.
76841
76842 2003-08-13  Paul Eggert  <eggert@twinsun.com>
76843
76844         * lib/exclude.c: Include <ctype.h>
76845         (IN_CTYPE_DOMAIN): New macro.
76846         (is_space): New fn.
76847         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
76848         and empty lines.
76849
76850         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
76851         Undo previous (whitespace-only) change.
76852
76853 2003-08-13  Paul Eggert  <eggert@twinsun.com>
76854
76855         * config/srclist-update: Change update back to the old behavior,
76856         leaving whitespace alone.  Use one 'sed' command rather than a
76857         pipeline.
76858         (fixlicense): Now a variable, not a function.
76859         (remove_trailing_blanks): Remove.
76860         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
76861         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
76862         Undo previous (whitespace-only) change.
76863
76864 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76865
76866         Merge from coreutils.
76867         * modules/euidaccess: Add lib_SOURCES, include for new
76868         file euidaccess.h
76869
76870 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76871
76872         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
76873         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
76874         Normalize leading white space and remove trailing white space.
76875
76876         Merge from coreutils
76877         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
76878
76879         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
76880         0.12.1.  These files are now being upgraded automatically by
76881         ../config/srclist-update.
76882
76883 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76884
76885         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
76886         Normalize leading white space and remove trailing white space.
76887         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
76888         notice, as per ../config/srclist-update.
76889
76890         Merge from coreutils.
76891         * lib/euidaccess.h: New file.
76892         * lib/euidaccess.c: Include it.
76893         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
76894         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
76895         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
76896
76897 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76898
76899         * config/srclist-update: Add copyright notice.
76900         (remove_id_lines, remove_trailing_blanks): New constants.
76901         (fixfile): Use them to normalize spacing a bit in copied files.
76902         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
76903         Normalize leading white space and remove trailing white space.
76904
76905         * config/texinfo.tex: Sync with texinfo.
76906
76907         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
76908         strtoul.c from libc, to merge coreutils whitespace changes.
76909
76910         * config/srclist.txt: Get the following m4 files from gettext:
76911         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
76912         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
76913         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
76914         wint_t.m4.
76915
76916 2003-08-12  Karl Berry  <karl@gnu.org>
76917
76918         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
76919         been made.
76920
76921 2003-08-11  Paul Eggert  <eggert@twinsun.com>
76922
76923         * modules/gnu-source, m4/gnu-source.m4:
76924         Remove; we're assuming Autoconf 2.54 or later now.
76925         Suggested by Bruno Haible.
76926         * MODULES.html.sh (func_all_modules): Remove gnu-source.
76927
76928 2003-08-11  Bruno Haible  <bruno@clisp.org>
76929
76930         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
76931
76932 2003-08-11  Bruno Haible  <bruno@clisp.org>
76933
76934         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
76935         (vasnprintf): Use it instead of wcslen.
76936
76937 2003-08-11  Bruno Haible  <bruno@clisp.org>
76938
76939         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
76940         value to ensure that _Bool promotes to int. Use #define for _Bool when
76941         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
76942
76943 2003-08-10  Karl Berry  <karl@gnu.org>
76944
76945         * lib/regex.h: update from libc (whitespace fix).
76946
76947 2003-08-09  Paul Eggert  <eggert@twinsun.com>
76948
76949         Merge some files from coreutils.  These changes were
76950         originally made by Jim Meyering.
76951         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
76952         many older Unixes require this.
76953         * lib/alloca.c (alloca): Remove cast to argument of free;
76954         no longer needed in C89.
76955         * lib/alloca_.h, regex.h: Fix white space to match
76956         what GNU indent does.
76957
76958 2003-08-09  Paul Eggert  <eggert@twinsun.com>
76959
76960         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
76961         apparently Emacs's Unicode mode got confused before my 2003-08-05
76962         checkin.
76963
76964 2003-08-08  Paul Eggert  <eggert@twinsun.com>
76965
76966         * m4/extensions.m4: New file.
76967         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
76968         Require gl_USE_SYSTEM_EXTENSIONS.
76969         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
76970         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
76971
76972 2003-08-08  Paul Eggert  <eggert@twinsun.com>
76973
76974         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
76975         * modules/extensions, modules/gnu-source: New files.
76976         * modules/timespec, modules/unlocked-io: Depend on extensions.
76977
76978 2003-08-07  Paul Eggert  <eggert@twinsun.com>
76979
76980         * modules/restrict: New file.
76981         * MODULES.html.sh (func_all_modules): Add restrict.
76982         * modules/regex: Depend on restrict.
76983
76984 2003-08-07  Paul Eggert  <eggert@twinsun.com>
76985
76986         * m4/restrict.m4: New file.
76987         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
76988
76989 2003-08-07  Bruno Haible  <bruno@clisp.org>
76990
76991         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
76992         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
76993
76994 2003-08-07  Bruno Haible  <bruno@clisp.org>
76995
76996         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
76997         makes the module 'getndelim2' compatible with the module 'getline'.
76998
76999 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77000
77001         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
77002         byte with "\201" to avoid glitches when editing that source file
77003         with multi-gnome-terminal.
77004
77005 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77006
77007         * lib/bumpalloc.h: Remove.
77008
77009 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77010
77011         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
77012         * modules/bumpalloc: Remove.
77013
77014 2003-08-04  Paul Eggert  <eggert@twinsun.com>
77015
77016         * lib/getloadavg.c: Change copyright notice and spacing to conform to
77017         GNU coding style.
77018
77019         Merge from coreutils.
77020         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
77021         1. From glibc.
77022         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
77023         from Karl Berry, implemented by Jim Meyering.
77024         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
77025         from Dmitry V. Levin.
77026         Remove anachronistic cast of xrealloc.
77027         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
77028         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
77029         type. Otherwise, it wouldn't compile with at least /bin/cc on
77030         ymp-cray-unicos9.0.2.X.
77031         Combine two mostly-identical uses of alloca into one.
77032         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
77033
77034 2003-08-04  Dave Love  <d.love@dl.ac.uk>
77035
77036         [From Emacs.]
77037
77038         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
77039         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
77040         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
77041         obsolete NLIST_NAME_UNION.
77042         [__GNU__]: Undef BSD and FSCALE.
77043         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
77044
77045 2003-08-03  Paul Eggert  <eggert@twinsun.com>
77046
77047         * lib/stdbool_.h (_Bool): Make it signed char, instead of
77048         an enum type, so that it's guaranteed to promote to int.  See:
77049         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
77050
77051 2003-08-03  Karl Berry  <karl@gnu.org>
77052
77053         * config/depcomp: update from automake.
77054
77055 2003-07-31  Paul Eggert  <eggert@twinsun.com>
77056
77057         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
77058         (strerror): Don't assume that a printable int fits in 14 bytes.
77059
77060 2003-07-31  Bruno Haible  <bruno@clisp.org>
77061
77062         * modules/getpass-gnu: New file.
77063         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
77064
77065 2003-07-31  Bruno Haible  <bruno@clisp.org>
77066
77067         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
77068
77069 2003-07-24  Karl Berry  <karl@gnu.org>
77070
77071         * config/missing: update from automake.
77072
77073 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
77074             Bruno Haible  <bruno@clisp.org>
77075
77076         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
77077         * lib/getline.c (getline, getdelim): Likewise.
77078         Remove _GNU_SOURCE define; now it's defined in config.h through
77079         m4/getline.m4.
77080
77081 2003-07-23  Karl Berry  <karl@gnu.org>
77082
77083         * config/config.sub: update from prep.
77084
77085 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77086
77087         * modules/xalloc (Depends-on): Add exitfail.
77088         * modules/xmemcoll: Likewise.
77089
77090 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77091
77092         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
77093         over-parenthesization in macros.
77094
77095         Sync with coreutils.
77096
77097         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
77098         required by C99.
77099
77100         Use `exit_failure' for xalloc and xmemcoll instead of their own
77101         private exit-failure variables.
77102         * lib/xalloc.h (xalloc_exit_failure): Remove.
77103         * lib/xmalloc.c: Likewise.  Include exitfail.h.
77104         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
77105         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
77106         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
77107         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
77108
77109 2003-07-20  Jim Meyering  <jim@meyering.net>
77110
77111         * modules/closeout (Depends-on): Add exitfail.
77112         Suggestion from Bruno Haible.
77113
77114 2003-07-19  Karl Berry  <karl@gnu.org>
77115
77116         * config/config.sub: update from prep.
77117
77118 2003-07-18  Paul Eggert  <eggert@twinsun.com>
77119
77120         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
77121         Remove.
77122         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
77123         to test that it can stand by itself.  Include "exitfail.h".
77124         Clients should set exit_failure instead.
77125         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
77126
77127 2003-07-18  Bruno Haible  <bruno@clisp.org>
77128
77129         * modules/getndelim2: New file.
77130         * modules/getline: Share files with module getndelim2.
77131         * modules/getnline: Depend on getndelim2 instead of sharing files with
77132         it. Add getnline.c to lib_SOURCES.
77133         * MODULES.html.sh (func_all_modules): Add getndelim2.
77134
77135 2003-07-18  Bruno Haible  <bruno@clisp.org>
77136
77137         * m4/getndelim2.m4: New file.
77138         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
77139         invoke gl_PREREQ_GETNDELIM2.
77140         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
77141         gl_PREREQ_GETNDELIM2.
77142         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
77143         gl_GETNDELIM2.
77144
77145 2003-07-18  Bruno Haible  <bruno@clisp.org>
77146
77147         * lib/getndelim2.h: New file.
77148         * lib/getndelim2.c: Make into a module of its own. Include config.h,
77149         getndelim2.h.
77150         (getndelim2): Make non-static. Change return type to ssize_t.
77151         * lib/getline.h: Change argument names.
77152         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
77153         * lib/getnline.c: Include getndelim2.h.
77154
77155 2003-07-18  Andreas Schwab  <schwab@suse.de>
77156
77157         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
77158
77159 2003-07-17  Karl Berry  <karl@gnu.org>
77160
77161         * config/config.sub: update from prep.
77162
77163 2003-07-17  Bruno Haible  <bruno@clisp.org>
77164
77165         * modules/getnline: New file.
77166         * modules/getline: Add lib/getndelim2.c to source file list.
77167         * MODULES.html.sh (func_all_modules): Add getnline.
77168
77169 2003-07-17  Bruno Haible  <bruno@clisp.org>
77170
77171         * m4/getnline.m4: New file.
77172
77173 2003-07-17  Bruno Haible  <bruno@clisp.org>
77174
77175         * m4/Makefile.am.in: Remove file.
77176         * m4/Makefile.am: Remove file.
77177         * m4/Makefile.in: Remove file.
77178
77179 2003-07-17  Bruno Haible  <bruno@clisp.org>
77180
77181         * lib/getnline.h: New file.
77182         * lib/getnline.c: New file.
77183         * lib/getndelim2.c: New file, extracted from getline.c.
77184         (getndelim2): Renamed from getdelim2, with added nmax argument.
77185         * lib/getline.c: Include getndelim2.c.
77186         (getdelim2): Moved out to getndelim2.c.
77187         (getline, getdelim): Update.
77188
77189 2003-07-17  Bruno Haible  <bruno@clisp.org>
77190
77191         * lib/Makefile.am: Remove file.
77192         * lib/Makefile.in: Remove file.
77193
77194 2003-07-17  Bruno Haible  <bruno@clisp.org>
77195
77196         * configure.in: Remove file.
77197         * Makefile.in: Remove file.
77198
77199 2003-07-17  Bruno Haible  <bruno@clisp.org>
77200
77201         * MODULES.html.sh: Put the </BODY> right before </HTML>.
77202
77203 2003-07-16  Karl Berry  <karl@gnu.org>
77204
77205         * config/srclist-update: was running fixlicense twice, which caused
77206                 texinfo.tex to be nullified for some reason.  Simplify,
77207                 $gplsrc is no longer needed as far as I can see?
77208
77209 2003-07-16  Jim Meyering  <jim@meyering.net>
77210
77211         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
77212
77213 2003-07-15  Paul Eggert  <eggert@twinsun.com>
77214
77215         * config/srclist.txt: Get the following files from gettext-runtime/intl
77216         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
77217         ref-del.sin.  From Bruno Haible.
77218         * config/srclist-update (fixfile): Change grep pattern again, since the
77219         previous fix didn't work (there was another trailing $).  Use
77220         '[$]' to escape the $s.
77221
77222 2003-07-15  Karl Berry  <karl@gnu.org>
77223
77224         * lib/vasnprintf.c: update from gettext.
77225
77226 2003-07-15  Karl Berry  <karl@gnu.org>
77227
77228         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
77229         gets expanded when surrounded by '$'.
77230
77231 2003-07-15  Jim Meyering  <jim@meyering.net>
77232
77233         * modules/save-cwd: Don't depend on error.  From Derek Price.
77234
77235 2003-07-15  Jim Meyering  <jim@meyering.net>
77236
77237         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
77238
77239 2003-07-14  Simon Josefsson  <jas@extundo.com>
77240
77241         * modules/mempcpy: New file.
77242         * MODULES.html.sh (func_all_modules): Add mempcpy.
77243
77244 2003-07-14  Simon Josefsson  <jas@extundo.com>
77245
77246         * m4/mempcpy.m4: New file.
77247
77248 2003-07-14  Simon Josefsson  <jas@extundo.com>
77249
77250         * lib/mempcpy.h: New file.
77251         * lib/mempcpy.c: New file.
77252
77253 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77254
77255         * modules/getdate, modules/posixtm: Depend on mktime.
77256
77257 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77258
77259         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
77260         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
77261         unicodeio.c, unicodeio.h, unlocked-io.h:
77262         Switch from LGPL to GPL.
77263
77264 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77265
77266         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
77267         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
77268         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
77269         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
77270         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
77271         updated automatically by ../config/srclist-update.  This changes
77272         their license from LPGL to GPL.
77273
77274 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77275
77276         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
77277         assumed to refer to the root of the most recent stable gettext version.
77278         * config/srclistvars.sh: Add defaults for eggert.
77279         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
77280         Match "This program" as well as "The program".  This is needed
77281         for gettext.
77282
77283 2003-07-14  Jim Meyering  <jim@meyering.net>
77284
77285         Don't emit diagnostics.  Let callers do that.
77286         * lib/save-cwd.c: Don't include "error.h".
77287         (save_cwd): Don't call error.  Ensure that errno is valid
77288         when returning nonzero.
77289
77290         * lib/save-cwd.h (restore_cwd): Update prototype.
77291         * lib/save-cwd.c (restore_cwd): Remove two parameters.
77292         Simplify.  Don't call error upon failure.  Let callers do that.
77293         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
77294         when auditing is enabled.  But don't bother updating the #if.
77295
77296 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
77297
77298         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
77299         it breaks C++ compilation.
77300         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
77301
77302 2003-07-10  Simon Josefsson  <jas@extundo.com>
77303
77304         * modules/strchrnul (Makefile.am): Add strchrnul.h.
77305
77306 2003-07-10  Jim Meyering  <jim@meyering.net>
77307
77308         * m4/clock_time.m4: Remove trailing blank.
77309         * m4/intmax_t.m4: Likewise.
77310
77311 2003-07-10  Jim Meyering  <jim@meyering.net>
77312
77313         * lib/vasnprintf.c: Remove trailing blanks.
77314         Make cpp indentation consistent.
77315
77316 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77317
77318         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
77319         posixver.c, strftime.c, strnlen.c, strverscmp.c:
77320         Switch from LGPL to GPL.
77321
77322 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77323
77324         * config/srclist.txt: Sort sublists.  Add
77325         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
77326         that differ from gnulib for one reason or another; we'd like this list
77327         to be smaller but for now let's document what we have.
77328
77329 2003-07-08  Paul Eggert  <eggert@twinsun.com>
77330
77331         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
77332         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
77333         and sweeter "eval x=$x".
77334         * config/srclist.txt: Get lib/argp* from glibc.
77335
77336 2003-07-07  Paul Eggert  <eggert@twinsun.com>
77337
77338         * lib/mktime.c: Fix some boundary cases and remove need for floating
77339         point.
77340
77341         Issue a compile-time diagnostic if time_t is floating point, or if
77342         two's complement arithmetic is not in effect, or if arithmetic
77343         right shift does not propagate the sign.  These assumptions were
77344         all in the original code but they weren't checked.
77345
77346         (TIME_T_MIDPOINT, verify): New macros.
77347         (__isleap): Remove; it has integer overflow problems.
77348         (leapyear): New function, without those problems.
77349         (ydhms_tm_diff): Remove; splitting into two parts.
77350         (ydhms_diff): New function, containing the arithmetic part of
77351         the old ydhms_tm_diff function.  Issue a compile-time
77352         diagnostic if we are not using C99 integer division.
77353         Avoid casts when possible.
77354         (guess_time_tm): New function, containing the checking part of
77355         the old ydhms_tm_diff function.  Return the new value, rather than
77356         the difference between it and the old.  Accept a new argument T
77357         so that *T specifies the old value.  Check for overflow in the result.
77358
77359         (__mktime_internal): Use a time_t offset, not a long int offset.
77360         This undoes the 2003-06-04 change, which is no longer needed now
77361         that we have better overflow checking.
77362         (localtime_offset): Likewise.
77363
77364         (__mktime_internal): Avoid harmful overflow on hosts where time_t
77365         and long are 64-bit but int is only 32-bit.
77366         (ydhms_diff): Use long int to store year1 and yday1.
77367         Issue a compile-time diagnostic if long int is not wide enough.
77368
77369         (__mktime_internal): Use long int to store adjusted year and yday.
77370         Use plain C rather than preprocessor commands, if that doesn't
77371         affect efficiency.
77372         Check for overflow (and try to repair) after each probe
77373         rather than checking only at the very end.  This avoids some bugs
77374         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
77375         does not equal GMT offset at maximum time).
77376         Use integer to check for overflow rather than floating point; this
77377         is more portable to non-IEEE hosts, and is a tad faster.
77378         When we detect that we are oscillating between two values,
77379         don't check whether tm_isdst has the requested value, since
77380         we already know the answer.  When tm_isdst has the wrong value,
77381         use a different heuristic to find the right one, based on the
77382         extreme values actually observed in practice in tz2003a,
77383         rather than the (overly optimistic) "previous 3 calendar quarters".
77384
77385         (not_equal_tm, print_tm, check_result): Use "const T" rather than
77386         "T const" to accommodate glibc style.
77387         (check_result): Use less-confusing report format.  "long" -> "long int.
77388         (main): Likewise.
77389         Don't loop if the iteration overflows time_t.
77390         Allow a negative step in the iteration.
77391
77392 2003-07-06  Karl Berry  <karl@gnu.org>
77393
77394         * config/depcomp: update from automake.
77395         * config/config.sub: update from prep.
77396
77397 2003-07-03  Karl Berry  <karl@gnu.org>
77398
77399         * config/config.guess: update from prep.
77400
77401 2003-07-01  Paul Eggert  <eggert@twinsun.com>
77402
77403         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
77404         xreadlink.c now includes it unconditionally.
77405
77406 2003-07-01  Paul Eggert  <eggert@twinsun.com>
77407
77408         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
77409         having it depend on HAVE_SYS_TYPES_H.
77410
77411 2003-07-01  Bruno Haible  <bruno@clisp.org>
77412
77413         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
77414         <sys/types.h> should be sufficient.
77415         Reported by Paul Eggert.
77416
77417 2003-06-26  Karl Berry  <karl@gnu.org>
77418
77419         * config/depcomp: update from automake.
77420
77421 2003-06-26  Bruno Haible  <bruno@clisp.org>
77422
77423         * modules/human: Depend on module stdbool.
77424
77425 2003-06-25  Bruno Haible  <bruno@clisp.org>
77426
77427         * modules/readlink: New file.
77428         * modules/xreadlink: Depend on it.
77429         * MODULES.html.sh (func_all_modules): Add readlink.
77430
77431 2003-06-25  Bruno Haible  <bruno@clisp.org>
77432
77433         * m4/readlink.m4: New file.
77434
77435 2003-06-25  Bruno Haible  <bruno@clisp.org>
77436
77437         * lib/readlink.c: New file.
77438
77439 2003-06-22  Karl Berry  <karl@gnu.org>
77440
77441         * config/srclist.txt: update mkinstalldirs from automake.
77442         * config/mkinstalldirs: update.
77443
77444 2003-06-22  Bruno Haible  <bruno@clisp.org>
77445
77446         Portability to mingw32.
77447         * m4/ssize_t.m4: New file, from GNU gettext.
77448         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
77449         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
77450
77451 2003-06-22  Bruno Haible  <bruno@clisp.org>
77452
77453         * modules/safe-read: Add m4/ssize_t.m4.
77454         * modules/xreadlink: Add m4/ssize_t.m4.
77455
77456 2003-06-20  Bruno Haible  <bruno@clisp.org>
77457
77458         Assume C89, so PARAMS isn't needed.
77459         * lib/unicodeio.h (PARAMS): Remove.
77460         * lib/unicodeio.c: Don't use PARAMS.
77461
77462 2003-06-18  Karl Berry  <karl@gnu.org>
77463
77464         * config/config.{guess,sub}: update from prep.
77465
77466 2003-06-18  Jim Meyering  <jim@meyering.net>
77467
77468         Merge changes from coreutils.
77469         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
77470         Remove explicit declarations of xmalloc and realloc.
77471         Include xalloc.h.
77472         (read_utmp): Remove anachronistic cast of xmalloc.
77473
77474 2003-06-17  Paul Eggert  <eggert@twinsun.com>
77475
77476         Assume C89, so PARAMS isn't needed.
77477         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
77478         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
77479         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
77480         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
77481         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
77482         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
77483         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
77484         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
77485         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
77486         lib/xstrtod.h, lib/xstrtol.h: Likewise.
77487         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
77488         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
77489         no longer needed. Anyway, config.h should always be included before any
77490         other file.
77491
77492 2003-06-11  Simon Josefsson  <jas@extundo.com>
77493
77494         * modules/sysexits: New file.
77495         * MODULES.html.sh (func_all_modules): Add sysexits.
77496
77497 2003-06-11  Simon Josefsson  <jas@extundo.com>
77498
77499         * lib/sysexit_.h: New file.
77500
77501 2003-06-11  Derek Price  <derek@ximbiot.com>
77502
77503         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
77504         necessary.
77505
77506 2003-06-11  Bruno Haible  <bruno@clisp.org>
77507
77508         * m4/sysexits.m4: New file.
77509
77510 2003-06-10  Simon Josefsson  <jas@extundo.com>
77511
77512         * lib/argp.h: New file, from glibc.
77513         * lib/argp-ba.c: New file, from glibc.
77514         * lib/argp-eexst.c: New file, from glibc.
77515         * lib/argp-fmtstream.c: New file, from glibc.
77516         * lib/argp-fmtstream.h: New file, from glibc.
77517         * lib/argp-fs-xinl.c: New file, from glibc.
77518         * lib/argp-help.c: New file, from glibc.
77519         * lib/argp-namefrob.h: New file, from glibc.
77520         * lib/argp-parse.c: New file, from glibc.
77521         * lib/argp-pv.c: New file, from glibc.
77522         * lib/argp-pvh.c: New file, from glibc.
77523         * lib/argp-xinl.c: New file, from glibc.
77524
77525 2003-06-10  Simon Josefsson  <jas@extundo.com>
77526
77527         * modules/strchrnul: New file.
77528
77529 2003-06-10  Simon Josefsson  <jas@extundo.com>
77530
77531         * modules/argp: New file.
77532
77533 2003-06-10  Simon Josefsson  <jas@extundo.com>
77534
77535         * m4/strchrnul.m4: New file.
77536
77537 2003-06-10  Simon Josefsson  <jas@extundo.com>
77538
77539         * lib/strchrnul.h: New file.
77540         * lib/strchrnul.c: New file.
77541
77542 2003-06-10  Bruno Haible  <bruno@clisp.org>
77543
77544         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
77545
77546 2003-06-07  Karl Berry  <karl@gnu.org>
77547
77548         * config/config.{guess,sub}: update from prep.
77549
77550 2003-06-07  Jim Meyering  <jim@meyering.net>
77551
77552         * modules/strtod: Use $(...) notation, not @...@ for
77553         AC_REPLACE'd variables.
77554         * modules/localcharset: Likewise.
77555
77556 2003-06-07  Jim Meyering  <jim@meyering.net>
77557
77558         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
77559         in place of my name in the copyright comment.
77560         Remove definition and uses of __P.
77561
77562         From coreutils.
77563         * lib/stat.c: Don't declare xmalloc explicitly.
77564         Instead, include "xalloc.h".
77565         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
77566         xrealloc, and xcalloc return values.
77567         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
77568         Improve comment.
77569         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
77570
77571 2003-06-07  Bruno Haible  <bruno@clisp.org>
77572
77573         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
77574         avoid AC_CONFIG_LINKS.
77575         * modules/fnmatch (Makefile.am): Use explicit creation rule for
77576         fnmatch.h, to avoid AC_CONFIG_LINKS.
77577         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
77578
77579 2003-06-07  Bruno Haible  <bruno@clisp.org>
77580
77581         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
77582         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
77583         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
77584         directory.
77585         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
77586         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
77587         directory.
77588
77589 2003-06-06  Jim Meyering  <jim@meyering.net>
77590
77591         Merge from coreutils.
77592         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
77593         Consolidate declarations and initializations of *_base* locals.
77594
77595         Merge from coreutils.
77596         This avoids a core dump on systems without GNU putenv,
77597         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
77598         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
77599         (unsetenv): New static function, from GNU libc.
77600         (rpl_putenv): Use it.
77601
77602         * lib/modechange.c: Remove trailing blanks.
77603
77604         Merge from coreutils.
77605         * lib/fsusage.c: Remove declaration of statfs.
77606         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
77607
77608         * lib/posixtm.c: Include <stdbool.h> unconditionally.
77609
77610 2003-06-06  Jim Meyering  <jim@meyering.net>
77611
77612         * lib/stdbool_.h: Renamed from stdbool.h.in.
77613
77614 2003-06-06  Jim Meyering  <jim@meyering.net>
77615             Bruno Haible  <bruno@clisp.org>
77616
77617         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
77618         Adjust Makefile.am snippet not to redirect directly to target.
77619         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
77620
77621 2003-06-05  Paul Eggert  <eggert@twinsun.com>
77622
77623         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
77624         mismatch, look in future quarters as well as past.  This fixes a
77625         bug when processing fall-backwards gaps immediately after a long
77626         period of daylight-saving time.
77627
77628         * lib/mktime.c: Assume freestanding C89 or better.
77629         (HAVE_LIMITS_H): Remove.  Assume it's 1.
77630         (__P): Remove; not used.
77631         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
77632         (mktime, not_equal_tm, print_tm, check_result,
77633         main): Use prototypes.  Use const * where appropriate.
77634         (main): Fix typo in testing code that uncovered by above changes.
77635         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
77636
77637 2003-06-04  Paul Eggert  <eggert@twinsun.com>
77638
77639         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
77640         locale.h, localeconv.  This merges changes from coreutils.
77641
77642         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
77643         It can be removed after the next Autoconf is released.
77644         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
77645         needed.
77646
77647 2003-06-04  Paul Eggert  <eggert@twinsun.com>
77648
77649         * lib/mktime.c: Fix Debian bug 177940
77650         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
77651         (localtime_offset): Now long int, not time_t, because we want it
77652         to be guaranteed to be signed.  All uses changed.
77653         (__mktime_internal): If overflow would occur when adding offset,
77654         don't add it.
77655
77656         Merge 'human' changes from coreutils.  Rewrite to support
77657         locale-specific notations like thousands separators.
77658         * lib/human.c: Simplify authorship notice.
77659         Include human.h immediately after config.h.
77660         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
77661         <limits.h>: Do not include, since human.h does.
77662         (SIZE_MAX, UINTMAX_MAX): New macros.
77663         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
77664         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
77665         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
77666         (power_letter): Renamed from suffixes.
77667         (generate_suffix_backwards): Remove.
77668         (adjust_value): Now takes int style (because of human.h changes)
77669         and long double value (for greater precision on some platforms).
77670         (group_number): New function.
77671         (human_readable): Use it.  Use integer options, not enum.
77672         Put the options before the sizes in the arg list.
77673         Support all the new options.
77674         The old human_readable function has been removed;
77675         use inttostr.h instead.
77676         (human_readable, default_block_size, humblock):
77677         Use uintmax_t, not int, for block sizes.
77678         (human_readable_inexact, block_size_types): Remove.
77679         (block_size_opts): New constant.
77680         (human_options): Renamed from human_block_size, with new signature
77681         that allows block sizes up to UINTMAX_MAX.  All callers changed.
77682         * lib/human.h: Add copyright and authorship notice.
77683         Include <limits.h> and <stdbool.h> unconditionally.
77684         (PARAMS): Remove.  All uses removed.
77685         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
77686         (enum human_inexact_style): Remove tag; now a nameless enum.
77687         (human_floor, human_ceiling, human_round_to_even): Now have
77688         values 2, 0, 1 rather than -1, 1, 0.
77689         (human_group_digits, human_suppress_point_zero, human_autoscale,
77690         human_base_1024, human_SI, human_B): New constants.
77691         (human_readable_inexact, human_block_size): Remove.
77692         (human_readable): Size args are now uintmax_t, not int.
77693         (human_options): New decl.
77694
77695         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
77696         unnecessary now that we assume C89 or better.  This change
77697         imported from coreutils.
77698
77699         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
77700         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
77701         in the 2003-05-30 sync from glibc.
77702
77703         .h files should stand alone, but we shouldn't include <sys/types.h>
77704         if we can get away with just <stddef.h>.
77705
77706         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
77707         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
77708         rather than <sys/types.h>, as we merely need size_t.
77709         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
77710         to get size_t.
77711         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
77712         Include <stdio.h>, to get FILE.
77713         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
77714         memcasecmp.h has included <stddef.h> and all we need is size_t.
77715         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
77716         our interface, instead of including <sys/types.h>
77717
77718 2003-06-04  Paul Eggert  <eggert@twinsun.com>
77719
77720         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
77721         now, as glibc mktime is buggy on non-glibc systems.
77722
77723 2003-06-03  Karl Berry  <karl@gnu.org>
77724
77725         * config/config.sub: update from prep.
77726
77727 2003-06-02  Paul Eggert  <eggert@twinsun.com>
77728
77729         [from coreutils]
77730         Fix some minor time-related bugs with POSIX time arguments.
77731         Some valid time stamps were being rejected (notably -1, and
77732         time stamps before 1900 on 64-bit hosts).  And some invalid
77733         time stamps were being accepted, e.g. September 31.
77734
77735         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
77736         that we can return (time_t) -1 successfully.
77737         * lib/posixtm.c: Likewise.
77738         [HAVE_STDBOOL_H]: Include <stdbool.h>.
77739         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
77740         (t): Remove static var.
77741         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
77742         of static var.  All uses changed.
77743         (year): Do not reject years before 1900; they can occur with
77744         64-bit time_t.
77745         (posix_time_parse): Do not check for out-of-range components;
77746         that is now the caller's responsibility, since our checks were
77747         only approximations.
77748         (posixtime): Use mktime to check for out-of-range components,
77749         since it knows them exactly.
77750         If mktime returns (time_t) -1, check whether an error actually occurred
77751         by invoking localtime on -1.
77752         (main) [TEST_POSIXTIME]: Check for input data errors, and report
77753         posixtime failures better.
77754         Improve the test data (in comments only).
77755
77756 2003-06-02  Karl Berry  <karl@gnu.org>
77757
77758         * config/mkinstalldirs (version): new variable.
77759         (--version): new option.
77760         (usage): improve message.
77761
77762 2003-05-30  Karl Berry  <karl@gnu.org>
77763
77764         * lib/mktime.c: update from libc.
77765
77766 2003-05-30  Bruno Haible  <bruno@clisp.org>
77767
77768         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
77769         * config/config.rpath: Upgrade to gettext-0.12.1.
77770
77771 2003-05-30  Bruno Haible  <bruno@clisp.org>
77772
77773         * m4/gettext.m4: Upgrade to gettext-0.12.1.
77774         * m4/nls.m4: New file, from gettext-0.12.1.
77775         * m4/po.m4: New file, from gettext-0.12.1.
77776         * m4/progtest.m4: Upgrade to gettext-0.12.1.
77777
77778 2003-05-30  Bruno Haible  <bruno@clisp.org>
77779
77780         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
77781         * lib/localcharset.h: Likewise.
77782         * lib/localcharset.c: Likewise.
77783
77784 2003-05-29  Karl Berry  <karl@gnu.org>
77785
77786         * config/config.rpath: update from gettext.
77787
77788 2003-05-28  Paul Eggert  <eggert@twinsun.com>
77789
77790         Assume the headers required for C89 freestanding compilers.
77791         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
77792         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
77793         * m4/human.m4 (gl_HUMAN): Likewise.
77794         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
77795         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
77796         * m4/userspec.m4 (gl_USERSPEC): Likewise.
77797         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
77798         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77799         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
77800
77801 2003-05-28  Paul Eggert  <eggert@twinsun.com>
77802
77803         Assume the headers required for C89 freestanding compilers.
77804         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
77805         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
77806         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
77807         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
77808         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
77809         define, since <limits.h> is guaranteed to do that.
77810         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
77811         * lib/exclude.c: Include <stdbool.h> unconditionally.
77812         * lib/tempname.c: Include <stddef.h> unconditionally.
77813         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
77814         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
77815         <stddef.h> does that.
77816         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
77817         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
77818         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
77819         needed.
77820         * lib/xstrtol.c: Likewise.
77821         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
77822         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
77823
77824         * lib/addext.c (addext): Use assignment rather than cast, to avoid
77825         warnings on some platforms.
77826
77827         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
77828         arbitrarily.
77829
77830 2003-05-26  Jim Meyering  <jim@meyering.net>
77831
77832         Merge in a change from coreutils:
77833         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
77834         that is guaranteed to be `no'.  Use `no_such_member' to indicate
77835         that condition, rather than `-1' which is slightly misleading.
77836         Change the name of the cache variable to have the gl_ prefix.
77837         Prompted by a patch from Richard Dawe for DJGPP.
77838
77839 2003-05-24  Karl Berry  <karl@gnu.org>
77840
77841         * config/config.guess: update from prep.
77842
77843 2003-05-22  Karl Berry  <karl@gnu.org>
77844
77845         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
77846
77847 2003-05-20  Karl Berry  <karl@gnu.org>
77848
77849         * config/config.guess: update from prep.
77850
77851 2003-05-18  Karl Berry  <karl@gnu.org>
77852
77853         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
77854         might actually be set by the user.
77855
77856         * config/depcomp, install-sh, mdate-sh: update from automake.
77857
77858 2003-05-17  Bruno Haible  <bruno@clisp.org>
77859
77860         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
77861         invalid expansion for AC_EGREP_CPP.
77862         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
77863         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
77864         Suggested by Akim Demaille <akim@epita.fr> in
77865         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
77866
77867 2003-05-12  Jim Meyering  <jim@meyering.net>
77868
77869         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
77870         the space-padded-by-default conversion specifiers, %e, %k, %l.
77871
77872 2003-05-12  Bruno Haible  <bruno@clisp.org>
77873
77874         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
77875         the string is longer than 4 KB.
77876
77877 2003-05-11  Karl Berry  <karl@gnu.org>
77878
77879         * config/config.{guess,sub}: update from prep.
77880
77881 2003-05-09  Bruno Haible  <bruno@clisp.org>
77882
77883         * modules/error: Add m4/strerror_r.m4 to file list.
77884
77885 2003-05-03  Bruno Haible  <bruno@clisp.org>
77886
77887         Upgrade to Unicode-4.0.
77888         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
77889         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
77890         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
77891         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
77892         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
77893         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
77894         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
77895         Change width of U+E0100..U+E01EF from 1 to 0.
77896
77897 2003-04-25  Jim Meyering  <jim@meyering.net>
77898
77899         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
77900         of type size_t, not int.
77901
77902 2003-04-25  Bruno Haible  <bruno@clisp.org>
77903
77904         * lib/copy-file.c: Include <stddef.h>, for size_t.
77905
77906 2003-04-21  Paul Eggert  <eggert@twinsun.com>
77907
77908         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
77909         code which expansion is under static control.  Patch imported from
77910         Akim Demaille's patch to Bison; see
77911         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
77912
77913 2003-04-14  Bruno Haible  <bruno@clisp.org>
77914
77915         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
77916
77917 2003-04-11  Jim Meyering  <jim@meyering.net>
77918
77919         Merge changes from Coreutils.
77920
77921         2003-03-22  Jim Meyering  <jim@meyering.net>
77922
77923         * lib/strftime.c (widen): Cast alloca return value to proper type.
77924
77925         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
77926
77927         From GNU libc.
77928         * lib/strftime.c (my_strftime): Handle very large width
77929         specifications for numeric values correctly.  Improve checks for
77930         overflow.
77931
77932         2003-01-19  Jim Meyering  <jim@meyering.net>
77933
77934         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
77935         definitions.
77936         (nl_get_alt_digit) [! defined my_strftime]: Define.
77937         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
77938         _nl_get_alt_digit and _nl_get_walt_digit.
77939
77940         * lib/strftime.c (my_strftime): Merge in locale-related changes from
77941         libc. These changes have no effect outside of _LIBC.
77942
77943 2003-04-10  Bruno Haible  <bruno@clisp.org>
77944
77945         * modules/findprog: New file.
77946         * MODULES.html.sh (func_all_modules): Add it.
77947
77948 2003-04-10  Bruno Haible  <bruno@clisp.org>
77949
77950         * m4/findprog.m4: New file.
77951         * m4/eaccess.m4: New file.
77952
77953 2003-04-10  Bruno Haible  <bruno@clisp.org>
77954
77955         * lib/findprog.h: New file, from GNU gettext.
77956         * lib/findprog.c: New file, from GNU gettext.
77957
77958 2003-04-05  Jim Meyering  <jim@meyering.net>
77959
77960         Merge changes from Coreutils.
77961
77962         * lib/exclude.h (PARAMS): Remove definition and uses.
77963         * lib/exclude.c: Remove uses of `PARAMS'.
77964
77965         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
77966         Add test-cases for DOS filenames. Declare program_name.
77967         (main): Set up program_name.  Patch by Rich Dawe.
77968
77969         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
77970         error from mntctl.
77971         Use mntctl's return value to drive the entry-processing loop, since
77972         we can't rely on the value of the vmt_length member in the last
77973         entry.  On some systems doing so could result in exhausting
77974         virtual memory.  Based in part on a patch from Mike Jetzer.
77975
77976 2003-04-04  Bruno Haible  <bruno@clisp.org>
77977
77978         * modules/linebreak: New file.
77979         * MODULES.html.sh (func_all_modules): Add it.
77980
77981 2003-04-04  Bruno Haible  <bruno@clisp.org>
77982
77983         * m4/linebreak.m4: New file.
77984
77985 2003-04-04  Bruno Haible  <bruno@clisp.org>
77986
77987         * lib/linebreak.h: New file, from GNU gettext.
77988         * lib/linebreak.c: New file, from GNU gettext with slight
77989         modifications.
77990         * lib/lbrkprop.h: New file, from GNU gettext.
77991
77992 2003-04-03  Bruno Haible  <bruno@clisp.org>
77993
77994         * modules/utf8-ucs4: New file.
77995         * modules/utf16-ucs4: New file.
77996         * modules/ucs4-utf8: New file.
77997         * modules/ucs4-utf16: New file.
77998         * MODULES.html.sh (func_all_modules): Add them.
77999
78000 2003-04-03  Bruno Haible  <bruno@clisp.org>
78001
78002         * m4/utf-ucs4.m4: New file.
78003         * m4/ucs4-utf.m4: New file.
78004
78005 2003-04-03  Bruno Haible  <bruno@clisp.org>
78006
78007         * lib/utf8-ucs4.h: New file, from GNU gettext.
78008         * lib/utf16-ucs4.h: New file, from GNU gettext.
78009         * lib/ucs4-utf8.h: New file, from GNU gettext.
78010         * lib/ucs4-utf16.h: New file, from GNU gettext.
78011
78012 2003-04-02  Bruno Haible  <bruno@clisp.org>
78013
78014         * modules/binary-io: New file.
78015         * MODULES.html.sh (func_all_modules): Add it.
78016
78017 2003-04-02  Bruno Haible  <bruno@clisp.org>
78018
78019         * lib/binary-io.h: New file, from GNU gettext.
78020
78021 2003-04-01  Bruno Haible  <bruno@clisp.org>
78022
78023         * modules/pathname: New file.
78024         * MODULES.html.sh (func_all_modules): Add it.
78025
78026 2003-04-01  Bruno Haible  <bruno@clisp.org>
78027
78028         * lib/pathname.h: New file, from GNU gettext.
78029         * lib/concatpath.c: New file, from GNU gettext.
78030
78031 2003-03-30  Bruno Haible  <bruno@clisp.org>
78032
78033         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
78034
78035 2003-03-30  Bruno Haible  <bruno@clisp.org>
78036
78037         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
78038         function chown() doesn't exist.
78039
78040 2003-03-28  Bruno Haible  <bruno@clisp.org>
78041
78042         * modules/copy-file: New file.
78043         * MODULES.html.sh (func_all_modules): Add it.
78044
78045 2003-03-28  Bruno Haible  <bruno@clisp.org>
78046
78047         * m4/copy-file.m4: New file.
78048
78049 2003-03-28  Bruno Haible  <bruno@clisp.org>
78050
78051         * lib/copy-file.h: New file, from GNU gettext.
78052         * lib/copy-file.c: New file, from GNU gettext.
78053
78054 2003-03-18  Jim Meyering  <jim@meyering.net>
78055
78056         * lib/quote.c (quote_n): Fix typo in comment.
78057
78058 2003-03-18  Bruno Haible  <bruno@clisp.org>
78059
78060         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
78061         checking.
78062         * m4/onceonly_2_57.m4: Likewise.
78063
78064 2003-03-17  Bruno Haible  <bruno@clisp.org>
78065
78066         * m4/onceonly.m4: Require autoconf 2.54 or newer.
78067         (m4_quote): Remove macro.
78068         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
78069
78070 2003-03-14  Jim Meyering  <jim@meyering.net>
78071
78072         Merge changes from Coreutils.
78073         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
78074         to be const, in order to avoid warnings.
78075         (obstack_room): Likewise.
78076         (obstack_empty_p): Likewise.
78077
78078 2003-03-14  Bruno Haible  <bruno@clisp.org>
78079
78080         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
78081         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
78082
78083 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78084
78085         Merge changes from Bison.
78086         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
78087         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
78088         when compiling Bison 1.875's `bitset bset = obstack_alloc
78089         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
78090         * lib/hash.c: Include <stdbool.h> unconditionally.
78091
78092 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78093
78094         * m4/onceonly.m4 (m4_quote): New macro.
78095         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
78096         Quote AC_FOREACH variable-expansions properly.
78097
78098 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78099
78100         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
78101
78102 2003-03-09  Paul Eggert  <eggert@twinsun.com>
78103
78104         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
78105         Reported by Bruce Becker; see:
78106         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
78107
78108 2003-03-03  Paul Eggert  <eggert@twinsun.com>
78109             Bruno Haible  <bruno@clisp.org>
78110
78111         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
78112         Reported by John Hughes, see
78113         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
78114
78115 2003-02-20  Bruno Haible  <bruno@clisp.org>
78116
78117         * MODULES.html.sh (func_all_modules): Add poll.
78118
78119 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78120
78121         * modules/poll: New file.
78122
78123 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78124
78125         * lib/poll_.h: New file.
78126         * lib/poll.c: New file.
78127
78128 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78129
78130         * m4/poll.m4: New file.
78131
78132 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78133
78134         * modules/mathl: New file.
78135
78136 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78137
78138         * lib/mathl.h: New file.
78139         * lib/acosl.c: New file.
78140         * lib/asinl.c: New file.
78141         * lib/atanl.c: New file.
78142         * lib/ceill.c: New file.
78143         * lib/cosl.c: New file.
78144         * lib/expl.c: New file.
78145         * lib/floorl.c: New file.
78146         * lib/frexpl.c: New file.
78147         * lib/ldexpl.c: New file.
78148         * lib/logl.c: New file.
78149         * lib/sincosl.c: New file.
78150         * lib/sinl.c: New file.
78151         * lib/sqrtl.c: New file.
78152         * lib/tanl.c: New file.
78153         * lib/trigl.c: New file.
78154         * lib/trigl.h: New file.
78155
78156 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78157
78158         * m4/mathl.m4: New file.
78159
78160 2003-02-18  Bruno Haible  <bruno@clisp.org>
78161
78162         * MODULES.html.sh (func_all_modules): Add mathl.
78163
78164 2003-02-17  Bruno Haible  <bruno@clisp.org>
78165
78166         * modules/mkdtemp: New module.
78167         * MODULES.html.sh (func_all_modules): Add it.
78168
78169 2003-02-17  Bruno Haible  <bruno@clisp.org>
78170
78171         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
78172
78173 2003-02-17  Bruno Haible  <bruno@clisp.org>
78174
78175         * lib/mkdtemp.h: New file, from GNU gettext.
78176         * lib/mkdtemp.c: New file, from GNU gettext.
78177
78178 2003-02-02  Jim Meyering  <jim@meyering.net>
78179
78180         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
78181         e.g. glibc-2.2.93.
78182
78183 2003-01-31  Bruno Haible  <bruno@clisp.org>
78184
78185         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
78186         'rpl_rename'.
78187         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
78188         'rpl_strnlen'.
78189         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
78190         'rpl_strtod'.
78191         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
78192         'rpl_utime'.
78193
78194 2003-01-31  Bruno Haible  <bruno@clisp.org>
78195
78196         * lib/rename.c: #undef rename before defining rpl_rename.
78197         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
78198
78199 2003-01-30  Bruno Haible  <bruno@clisp.org>
78200
78201         * modules/vasnprintf, modules/vasprintf: New modules.
78202         * MODULES.html.sh (func_all_modules): Add them.
78203
78204 2003-01-30  Bruno Haible  <bruno@clisp.org>
78205
78206         * m4/signed.m4: New file, from GNU gettext.
78207         * m4/longdouble.m4: New file, from GNU gettext.
78208         * m4/wchar_t.m4: New file, from GNU gettext.
78209         * m4/wint_t.m4: New file, from GNU gettext.
78210         * m4/vasnprintf.m4: New file.
78211         * m4/vasprintf.m4: New file.
78212
78213 2003-01-30  Bruno Haible  <bruno@clisp.org>
78214
78215         * lib/printf-args.h: New file, from GNU gettext.
78216         * lib/printf-args.c: New file, from GNU gettext.
78217         * lib/printf-parse.h: New file, from GNU gettext.
78218         * lib/printf-parse.c: New file, from GNU gettext.
78219         * lib/vasnprintf.h: New file, from GNU gettext.
78220         * lib/vasnprintf.c: New file, from GNU gettext.
78221         * lib/asnprintf.c: New file, from GNU gettext.
78222         * lib/vasprintf.h: New file, from GNU gettext with modifications.
78223         * lib/vasprintf.c: New file, from GNU gettext.
78224         * lib/asprintf.c: New file, from GNU gettext.
78225
78226 2003-01-29  Bruno Haible  <bruno@clisp.org>
78227
78228         * modules/stpncpy: New module.
78229         * MODULES.html.sh (func_all_modules): Add it.
78230
78231 2003-01-29  Bruno Haible  <bruno@clisp.org>
78232
78233         * m4/stpncpy.m4: New file.
78234
78235 2003-01-29  Bruno Haible  <bruno@clisp.org>
78236
78237         * lib/stpncpy.h: New file, from GNU gettext with modifications.
78238         * lib/stpncpy.c: New file, from GNU gettext with modifications.
78239
78240 2003-01-28  Bruno Haible  <bruno@clisp.org>
78241
78242         * modules/c-ctype: New module.
78243         * MODULES.html.sh (func_all_modules): Add it.
78244
78245 2003-01-28  Bruno Haible  <bruno@clisp.org>
78246
78247         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
78248         Paul Eggert.
78249         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
78250         Paul Eggert.
78251
78252 2003-01-27  Bruno Haible  <bruno@clisp.org>
78253
78254         * modules/xsetenv: New module.
78255         * MODULES.html.sh (func_all_modules): Add it.
78256
78257 2003-01-27  Bruno Haible  <bruno@clisp.org>
78258
78259         * lib/xsetenv.h: New file, from GNU gettext.
78260         * lib/xsetenv.c: New file, from GNU gettext.
78261
78262 2003-01-23  Jim Meyering  <jim@meyering.net>
78263
78264         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
78265         from working on systems without dirfd (at least Irix and OSF1/Tru64).
78266
78267 2003-01-23  Bruno Haible  <bruno@clisp.org>
78268
78269         * modules/minmax: New module.
78270         * MODULES.html.sh (func_all_modules): Add it.
78271
78272 2003-01-23  Bruno Haible  <bruno@clisp.org>
78273
78274         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
78275         Eggert.
78276
78277 2003-01-22  Bruno Haible  <bruno@clisp.org>
78278
78279         * modules/exit: New module.
78280         * MODULES.html.sh (func_all_modules): Add it.
78281
78282 2003-01-22  Bruno Haible  <bruno@clisp.org>
78283
78284         * lib/exit.h: New file, from GNU gettext.
78285
78286 2003-01-19  Bruno Haible  <bruno@clisp.org>
78287
78288         * gnulib-tool: Recognize option --extract-maintainer.
78289         (func_get_maintainer): New function.
78290         * modules/*: Add Maintainer entry.
78291
78292 2003-01-16  Jim Meyering  <jim@meyering.net>
78293
78294         * m4/regex.m4: The `regex' struct is both input and output.
78295         Initialize it before each use.  Patch by Tim Waugh.
78296
78297 2003-01-16  Bruno Haible  <bruno@clisp.org>
78298
78299         * MODULES.html.sh: Add a table of contents. Add the module name as
78300         leftmost column. Add hyperlinks.
78301
78302 2003-01-15  Bruno Haible  <bruno@clisp.org>
78303
78304         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
78305
78306 2003-01-15  Bruno Haible  <bruno@clisp.org>
78307
78308         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
78309         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
78310         suffix.
78311
78312 2003-01-15  Bruno Haible  <bruno@clisp.org>
78313
78314         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
78315
78316 2003-01-15  Bruno Haible  <bruno@clisp.org>
78317
78318         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
78319         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
78320
78321 2003-01-14  Jim Meyering  <jim@meyering.net>
78322
78323         * lib/same.c (same_name): Tweak a comment.
78324
78325 2003-01-14  Bruno Haible  <bruno@clisp.org>
78326
78327         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
78328         when a string comparison is sufficient.
78329
78330 2003-01-14  Bruno Haible  <bruno@clisp.org>
78331
78332         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
78333         'unsigned int'.
78334
78335 2003-01-14  Bruno Haible  <bruno@clisp.org>
78336
78337         * lib/hash-pjw.c: Add comment about low quality of this function.
78338
78339 2003-01-13  Bruno Haible  <bruno@clisp.org>
78340
78341         * modules/stpcpy: Distribute lib/stpcpy.h.
78342         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
78343
78344 2003-01-13  Bruno Haible  <bruno@clisp.org>
78345
78346         * modules/*: Add a description.
78347         * modules/strpbrk: Fix Makefile.am snippet.
78348         * modules/strtoimax: Fix dependencies.
78349         * modules/strtoumax: Likewise.
78350
78351 2003-01-13  Bruno Haible  <bruno@clisp.org>
78352
78353         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
78354         * modules/alloca (Makefile.am): All object files depend on alloca.h.
78355         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
78356
78357 2003-01-13  Bruno Haible  <bruno@clisp.org>
78358
78359         * gnulib-tool (func_create_testdir): Store config/* files in the main
78360         directory.
78361         * config.rpath: Move to ...
78362         * config/config.rpath: ... here.
78363         * modules/gettext: Contains config/config.rpath, not config.rpath.
78364         * modules/iconv: Likewise.
78365
78366 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78367
78368         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78369         to avoid collisions with libcurses and libreadline.
78370
78371         * m4/getstr.m4: Remove.
78372         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
78373
78374 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78375
78376         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78377         to avoid collisions with libcurses and libreadline.
78378
78379         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
78380         * lib/getstr.h, getstr.c: Remove.
78381         * lib/getline.c: Include "getline.h", to check interface.
78382         Move body of old getstr.c here: this defines MIN_CHUNK and
78383         declares getdelim2, which is renamed from getstr.
78384         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
78385
78386         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
78387         All uses changed.
78388         * lib/linebuffer.h: Likewise.
78389         (readline): Remove backward-compatibility macro.
78390
78391 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78392
78393         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78394         to avoid collisions with libcurses and libreadline.
78395         * getstr: Remove.
78396         * MODULES.html.sh: Remove getstr.
78397         * modules/getline: Depend on unlocked-io, not getstr.
78398
78399 2003-01-12  Jim Meyering  <jim@meyering.net>
78400
78401         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
78402
78403 2003-01-10  Bruno Haible  <bruno@clisp.org>
78404
78405         * modules/alloca: Change Makefile.am requirements. Simplify Include
78406         requirements. Add lib/alloca_.h to file list.
78407
78408 2003-01-10  Bruno Haible  <bruno@clisp.org>
78409
78410         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
78411
78412 2003-01-10  Bruno Haible  <bruno@clisp.org>
78413
78414         * lib/alloca_.h: New file.
78415         * lib/getdate.y: Unconditionally include alloca.h.
78416         * lib/makepath.c: Likewise.
78417         * lib/setenv.c: Likewise.
78418         * lib/userspec.c: Likewise.
78419
78420 2003-01-09  Karl Berry  <karl@gnu.org>
78421
78422         * MODULES.html.sh: include `dirname $0` in PATH, to find
78423         gnulib-tool.
78424
78425 2003-01-09  Bruno Haible  <bruno@clisp.org>
78426
78427         * modules/stdbool: Change configure.ac, Makefile.am requirements.
78428         Simplify Include requirements. Add lib/stdbool.h.in to file list.
78429
78430 2003-01-09  Bruno Haible  <bruno@clisp.org>
78431
78432         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
78433
78434 2003-01-09  Bruno Haible  <bruno@clisp.org>
78435
78436         * lib/stdbool.h.in: New file.
78437
78438 2003-01-09  Bruno Haible  <bruno@clisp.org>
78439
78440         * gnulib-tool (func_all_modules): Ignore files ending in ~.
78441         * MODULES.html.sh: Likewise.
78442
78443 2003-01-08  Jim Meyering  <jim@meyering.net>
78444
78445         * lib/full-write.c: Undefine and define-away `const' after inclusion
78446         of errno.h, not before.  Suggestion from Bruno Haible.
78447
78448 2003-01-08  Bruno Haible  <bruno@clisp.org>
78449
78450         * modules/full-read: Depend on full-write.
78451
78452 2003-01-08  Bruno Haible  <bruno@clisp.org>
78453
78454         * lib/safe-read.c: Include specification header first, to ensure its
78455         selfcontainedness.
78456         * lib/full-write.c: Likewise.
78457
78458 2003-01-07  Jim Meyering  <jim@meyering.net>
78459
78460         * lib/full-write.c: Rework so that it may serve to define full_read,
78461         too.
78462         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
78463
78464 2003-01-07  Bruno Haible  <bruno@clisp.org>
78465
78466         * lib/strtoimax.c: Include <stdint.h> as an alternative to
78467         <inttypes.h>.
78468         * lib/xstrtol.h: Likewise.
78469         * lib/xstrtoimax.c: Likewise.
78470         * lib/xstrtoumax.c: Likewise.
78471         * lib/human.h: Likewise.
78472
78473         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
78474         on systems that have <inttypes.h> but not <stdint.h>.
78475
78476 2003-01-07  Bruno Haible  <bruno@clisp.org>
78477
78478         * MODULES.html.sh: Add copyright notice.
78479         (missed_files): Omit CVS directory entries.
78480         (func_module): Make it work with sed-3.02.
78481         * MODULES.txt: Remove file.
78482
78483 2003-01-06  Jim Meyering  <jim@meyering.net>
78484
78485         * lib/version-etc.c: Update year in translatable copyright string.
78486
78487 2003-01-03  Karl Berry  <karl@gnu.org>
78488
78489         * config/config.{guess,sub}: update from prep.
78490
78491 2003-01-02  Karl Berry  <karl@gnu.org>
78492
78493         * doc/COPYING.DOC: belatedly updated to 1.2.
78494
78495 2003-01-01  Karl Berry  <karl@gnu.org>
78496
78497         * gnulib-tool (func_verify_module): report module name $module in
78498         error message, not $1.
78499         * gnulib-tool (create-testdir): don't complain if destdir couldn't
78500         be created, only if it doesn't exist.
78501         * gnulib-tool (last_checkin_date): don't expand the $Date here.
78502
78503 2002-12-31  Paul Eggert  <eggert@twinsun.com>
78504
78505         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
78506
78507 2002-12-31  Paul Eggert  <eggert@twinsun.com>
78508
78509         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
78510         memcmp if strcoll doesn't work.
78511
78512 2002-12-31  Bruno Haible  <bruno@clisp.org>
78513
78514         * lib/utime.c (utime_null): No need to call ftruncate if the file was
78515         nonempty.
78516
78517 2002-12-31  Bruno Haible  <bruno@clisp.org>
78518
78519         * lib/memcoll.c (STRCOLL): New macro.
78520         (memcoll): Use it.
78521
78522 2002-12-31  Bruno Haible  <bruno@clisp.org>
78523
78524         * lib/localcharset.h: New file.
78525         * lib/localcharset.c: Include it.
78526         * lib/unicodeio.c: Likewise.
78527
78528 2002-12-31  Bruno Haible  <bruno@clisp.org>
78529
78530         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
78531         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
78532
78533 2002-12-31  Bruno Haible  <bruno@clisp.org>
78534
78535         * lib/getline.h: Include <stddef.h>, for size_t.
78536
78537         * lib/unicodeio.h: Include <stddef.h>, for size_t.
78538         * lib/unicodeio.c: Don't include <stddef.h>.
78539
78540 2002-12-31  Bruno Haible  <bruno@clisp.org>
78541
78542         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
78543         HAVE_TM_ZONE.
78544
78545 2002-12-24  Karl Berry  <karl@gnu.org>
78546
78547         * config/config.guess: update from prep.
78548
78549 2002-12-24  Bruno Haible  <bruno@clisp.org>
78550
78551         General infrasructure.
78552         * m4/README: Rewritten.
78553         * m4/onceonly.m4: New file.
78554         * m4/onceonly_2_57.m4: New file.
78555
78556         Module atexit.
78557         * m4/atexit.m4: New file.
78558
78559         Module strtod.
78560         * m4/strtod.m4: New file.
78561
78562         Module strtol.
78563         * m4/strtol.m4: New file.
78564
78565         Module strtoul.
78566         * m4/strtoul.m4: New file.
78567
78568         Module memchr.
78569         * m4/memchr.m4: New file.
78570
78571         Module memcmp.
78572         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
78573         (jm_FUNC_MEMCMP): Invoke it.
78574
78575         Module memcpy.
78576         * m4/memcpy.m4: New file.
78577
78578         Module memmove.
78579         * m4/memmove.m4: New file.
78580
78581         Module memset.
78582         * m4/memset.m4: New file.
78583
78584         Module strcspn.
78585         * m4/strcspn.m4: New file.
78586
78587         Module strpbrk.
78588         * m4/strpbrk.m4: New file.
78589
78590         Module strstr.
78591         * m4/strstr.m4: New file.
78592
78593         Module strerror.
78594         * m4/strerror.m4: New file.
78595
78596         Module mktime.
78597         * m4/mktime.m4: Renamed from jm-mktime.m4.
78598         (gl_PREREQ_MKTIME): New macro.
78599         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
78600
78601         Module malloc.
78602         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
78603         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
78604         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
78605
78606         Module realloc.
78607         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
78608         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
78609         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
78610
78611         Module strftime.
78612         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
78613         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
78614         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
78615         gl_TM_GMTOFF.
78616         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
78617
78618         Module xalloc.
78619         * m4/xalloc.m4: New file.
78620
78621         Module alloca.
78622         * m4/alloca.m4: New file.
78623
78624         Module putenv.
78625         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
78626         (jm_FUNC_PUTENV): Invoke it.
78627
78628         Module setenv.
78629         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
78630         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
78631         when invoked twice.
78632         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
78633         gt_FUNC_SETENV.
78634
78635         Module memrchr.
78636         * m4/memrchr.m4: New file.
78637
78638         Module stpcpy.
78639         * m4/stpcpy.m4: New file.
78640
78641         Module strcase.
78642         * m4/strcase.m4: New file.
78643
78644         Module strdup.
78645         * m4/strdup.m4: New file.
78646
78647         Module strnlen.
78648         * m4/strnlen.m4: New file.
78649
78650         Module strndup.
78651         * m4/strndup.m4: New file.
78652
78653         Module xstrtod.
78654         * m4/xstrtod.m4: New file.
78655
78656         Module xstrtol.
78657         * m4/xstrtol.m4: New file.
78658
78659         Module getdate.
78660         * m4/getdate.m4: New file.
78661
78662         Module unlocked-io.
78663         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
78664         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
78665         * m4/jm-glibc-io.m4n: Remove file.
78666
78667         Module long-options.
78668         * m4/long-options.m4: New file.
78669
78670         Module md5.
78671         * m4/md5.m4: New file.
78672
78673         Module sha.
78674         * m4/sha.m4: New file.
78675
78676         Module getstr.
78677         * m4/getstr.m4: New file.
78678
78679         Module getline.
78680         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
78681         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
78682         <sys/types.h>, for size_t. Use the function name gnu_getline, not
78683         simply getline. Infoke gl_PREREQ_GETLINE.
78684
78685         Module obstack.
78686         * m4/obstack.m4: New file.
78687
78688         Module hash.
78689         * m4/hash.m4: New file.
78690
78691         Module readtokens.
78692         * m4/readtokens.m4: New file.
78693
78694         Module strverscmp.
78695         * m4/strverscmp.m4: New file.
78696
78697         Module stdbool.
78698         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
78699         OSF/1.
78700
78701         Module strtoll.
78702         * m4/strtoll.m4: New file.
78703
78704         Module strtoull.
78705         * m4/strtoull.m4: New file.
78706
78707         Module strtoimax.
78708         * m4/strtoimax.m4: New file.
78709
78710         Module strtoumax.
78711         * m4/strtoumax.m4: New file.
78712
78713         Module xstrtoimax.
78714         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
78715         jm_AC_PREREQ_XSTRTOIMAX.
78716         Moved the strtol prerequisites to strtol.m4.
78717         Moved the strtoll prerequisites to strtoll.m4.
78718         Moved the strtoimax prerequisites to strtoimax.m4.
78719
78720         Module xstrtoumax.
78721         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
78722         jm_AC_PREREQ_XSTRTOUMAX.
78723         Moved the strtoul prerequisites to strtoul.m4.
78724         Moved the strtoull prerequisites to strtoull.m4.
78725         Moved the strtoumax prerequisites to strtoumax.m4.
78726
78727         Module chown.
78728         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
78729         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
78730
78731         Module dup2.
78732         * m4/dup2.m4: New file.
78733
78734         Module ftruncate.
78735         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
78736         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
78737
78738         Module getgroups.
78739         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
78740         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
78741
78742         Module gettimeofday.
78743         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
78744         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
78745         gl_PREREQ_GETTIMEOFDAY.
78746
78747         Module mkdir.
78748         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
78749         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
78750
78751         Module mkstemp.
78752         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
78753         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
78754         jm_AC_TYPE_UINTMAX_T.
78755         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
78756
78757         Module stat.
78758         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
78759         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
78760
78761         Module lstat.
78762         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
78763         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
78764
78765         Module timespec.
78766         * m4/timespec.m4 (gl_TIMESPEC): New macro.
78767         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
78768         * m4/st_mtim.m4: Indentation.
78769
78770         Module nanosleep.
78771         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
78772         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
78773         gl_PREREQ_NANOSLEEP.
78774
78775         Module regex.
78776         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
78777         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
78778         (gl_REGEX): New macro.
78779
78780         Module rename.
78781         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
78782         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
78783
78784         Module rmdir.
78785         * m4/rmdir.m4: New file.
78786
78787         Module utime.
78788         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
78789         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
78790         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
78791
78792         Module dirname.
78793         * m4/dirname.m4: New file.
78794
78795         Module getopt.
78796         * m4/getopt.m4: New file.
78797
78798         Module unistd-safer.
78799         * m4/unistd-safer.m4: New file.
78800
78801         Module fnmatch.
78802         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
78803         declaration.
78804         (gl_PREREQ_FNMATCH_EXTRA): New macro.
78805         (gl_FUNC_FNMATCH_POSIX): New macro.
78806         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
78807         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
78808         simply fnmatch.
78809
78810         Module exclude.
78811         * m4/exclude.m4: New file.
78812
78813         Module human.
78814         * m4/human.m4: New file.
78815
78816         Module acl.
78817         * m4/acl.m4: Nop.
78818
78819         Module backupfile.
78820         * m4/backupfile.m4: New file.
78821         * m4/d-ino.m4: Indentation.
78822
78823         Module fsusage.
78824         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
78825         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
78826         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
78827
78828         Module dirfd.
78829         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
78830         requirements.
78831
78832         Module euidaccess.
78833         * m4/euidaccess.m4: New file.
78834
78835         Module file-type.
78836         * m4/file-type.m4: New file.
78837
78838         Module fileblocks.
78839         * m4/fileblocks.m4: New file.
78840
78841         Module filemode.
78842         * m4/filemode.m4: New file.
78843
78844         Module isdir.
78845         * m4/isdir.m4: New file.
78846
78847         Module lchown.
78848         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
78849         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
78850
78851         Module makepath.
78852         * m4/makepath.m4: New file.
78853
78854         Module modechange.
78855         * m4/modechange.m4: New file.
78856
78857         Module mountlist.
78858         * m4/mountlist.m4: New file.
78859         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
78860         Indentation.
78861
78862         Module path-concat.
78863         * m4/path-concat.m4: New file.
78864
78865         Module pathmax.
78866         * m4/pathmax.m4: New file.
78867
78868         Module same.
78869         * m4/same.m4: New file.
78870
78871         Module save-cwd.
78872         * m4/save-cwd.m4: New file.
78873
78874         Module savedir.
78875         * m4/savedir.m4: New file.
78876
78877         Module xgetcwd.
78878         * m4/xgetcwd.m4: New file.
78879         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
78880
78881         Module xreadlink.
78882         * m4/xreadlink.m4: New file.
78883
78884         Module safe-read.
78885         * m4/safe-read.m4: New file.
78886
78887         Module safe-write.
78888         * m4/safe-write.m4: New file.
78889
78890         Module closeout.
78891         * m4/closeout.m4: New file.
78892
78893         Module stdio-safer.
78894         * m4/stdio-safer.m4: New file.
78895
78896         Module getpass.
78897         * m4/getpass.m4: New file.
78898
78899         Module getugroups.
78900         * m4/getugroups.m4: New file.
78901
78902         Module group-member.
78903         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
78904         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
78905
78906         Module idcache.
78907         * m4/idcache.m4: New file.
78908
78909         Module userspec.
78910         * m4/userspec.m4: New file.
78911
78912         Module gettime.
78913         * m4/clock_time.m4: New file.
78914         * m4/gettime.m4: New file.
78915
78916         Module settime.
78917         * m4/settime.m4: New file.
78918
78919         Module posixtm.
78920         * m4/posixtm.m4: New file.
78921
78922         Module gethostname.
78923         * m4/gethostname.m4: New file.
78924
78925         Module canon-host.
78926         * m4/canon-host.m4: New file.
78927
78928         Module gettext.
78929         * m4/codeset.m4: New file, from gettext-0.11.5.
78930         * m4/gettext.m4: New file, from gettext-0.11.5.
78931         * m4/glibc21.m4: New file, from gettext-0.11.5.
78932         * m4/iconv.m4: New file, from gettext-0.11.5.
78933         * m4/intdiv0.m4: New file, from gettext-0.11.5.
78934         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
78935         * m4/inttypes.m4: New file, from gettext-0.11.5.
78936         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
78937         * m4/isc-posix.m4: New file, from gettext-0.11.5.
78938         * m4/lcmessage.m4: New file, from gettext-0.11.5.
78939         * m4/lib-ld.m4: New file, from gettext-0.11.5.
78940         * m4/lib-link.m4: New file, from gettext-0.11.5.
78941         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
78942         * m4/progtest.m4: New file, from gettext-0.11.5.
78943         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
78944         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
78945         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
78946
78947         Module localcharset.
78948         * m4/localcharset.m4: New file.
78949
78950         Module hard-locale.
78951         * m4/hard-locale.m4: New file.
78952
78953         Module mbswidth.
78954         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
78955         onceonly macros.
78956         * m4/mbrtowc.m4: Add comment.
78957
78958         Module memcasecmp.
78959         * m4/memcasecmp.m4: New file.
78960
78961         Module memcoll.
78962         * m4/memcoll.m4: New file.
78963
78964         Module unicodeio.
78965         * m4/unicodeio.m4: New file.
78966
78967         Module rpmatch.
78968         * m4/rpmatch.m4: New file.
78969
78970         Module yesno.
78971         * m4/yesno.m4: New file.
78972
78973         Module exitfail.
78974         * m4/exitfail.m4: New file.
78975
78976         Module c-stack.
78977         * m4/c-stack.m4 (gl_C_STACK): New macro.
78978         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
78979
78980         Module error.
78981         * m4/error.m4 (gl_ERROR): New macro.
78982         (jm_PREREQ_ERROR): Use onceonly macros.
78983
78984         Module fatal.
78985         * m4/fatal.m4: New file.
78986
78987         Module getloadavg.
78988         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
78989         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
78990
78991         Module getpagesize.
78992         * m4/getpagesize.m4: New file.
78993
78994         Module getusershell.
78995         * m4/getusershell.m4: New file.
78996
78997         Module physmem.
78998         * m4/physmem.m4: New file.
78999
79000         Module posixver.
79001         * m4/posixver.m4: New file.
79002
79003         Module quotearg.
79004         * m4/quotearg.m4: New file.
79005
79006         Module quote.
79007         * m4/quote.m4: New file.
79008
79009         Module readutmp.
79010         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
79011
79012         Module sig2str.
79013         * m4/sig2str.m4: New file.
79014
79015         Other.
79016         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
79017         ulonglong.m4.
79018         * m4/intmax_t.m4: New file.
79019         * m4/d-type.m4: Indentation.
79020         * m4/jm-macros.m4: Update.
79021         * m4/prereq.m4 (jm_PREREQ): Update.
79022         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
79023         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
79024         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
79025         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
79026         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
79027         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
79028         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
79029         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
79030         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
79031         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
79032         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
79033         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
79034         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
79035         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
79036         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
79037         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
79038         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
79039         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
79040         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
79041
79042 2002-12-24  Bruno Haible  <bruno@clisp.org>
79043
79044         * MODULES.txt: Update according to m4/ changes.
79045
79046         Module gettext.
79047         * config.rpath: New file, from gettext-0.11.5.
79048
79049         * modules/*: New module descriptions.
79050         * gnulib-tool: New file.
79051         * MODULES.html.sh: New file.
79052
79053 2002-12-21  Karl Berry  <karl@gnu.org>
79054
79055         * doc/fdl.texi: update to version 1.2.
79056
79057 2002-12-19  Karl Berry  <karl@gnu.org>
79058
79059         * config/config.guess: update from prep.
79060
79061 2002-12-18  Bruno Haible  <bruno@clisp.org>
79062
79063         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
79064         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
79065
79066 2002-12-17  Bruno Haible  <bruno@clisp.org>
79067
79068         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
79069         stdlib.h, string.h.
79070
79071 2002-12-17  Bruno Haible  <bruno@clisp.org>
79072
79073         * lib/canon-host.c (strdup): Remove unused declaration.
79074
79075         * lib/fsusage.c: Include full_read.h.
79076         (get_fs_usage): Use full_read instead of safe_read.
79077
79078         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
79079
79080 2002-12-12  Karl Berry  <karl@gnu.org>
79081
79082         * config/config.guess: update from prep.
79083
79084 2002-12-11  Bruno Haible  <bruno@clisp.org>
79085
79086         * m4/setenv.m4: New file, from gettext-0.11.5.
79087
79088 2002-12-11  Bruno Haible  <bruno@clisp.org>
79089
79090         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
79091         not unsetenv().
79092         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
79093         modifications:
79094
79095         2002-12-11  Bruno Haible  <bruno@clisp.org>
79096
79097                 * setenv.c (alloca): Fall back to malloc.
79098                 (freea): New macro.
79099                 (setenv): Use freea() to free memory allocated with alloca().
79100
79101         2002-11-13  Bruno Haible  <bruno@clisp.org>
79102
79103                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
79104                 function declarations.
79105                 * unsetenv.c (unsetenv): Likewise.
79106
79107         2002-03-04  Bruno Haible  <bruno@clisp.org>
79108
79109                 Portability to AIX 4.3.3.
79110                 * unsetenv.c: New file, extracted from setenv.c.
79111                 * setenv.c: Move the unsetenv() function to unsetenv.c.
79112
79113         2001-12-20  Bruno Haible  <bruno@clisp.org>
79114
79115                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
79116                 use malloc instead. For SunOS 4.
79117
79118         2001-12-11  Bruno Haible  <bruno@clisp.org>
79119
79120                 * setenv.c: Declare alloca.
79121                 (compar_fn_t): New typedef.
79122                 (KNOWN_VALUE, STORE_VALUE): Use it.
79123
79124         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
79125         setenv.h.
79126
79127 2002-12-10  Paul Eggert  <eggert@twinsun.com>
79128
79129         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
79130         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
79131         Choose values that are less likely to collide with system fnmatch
79132         options.
79133         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
79134         defined (e.g., a pure POSIX system).
79135         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
79136         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
79137
79138 2002-12-06  Paul Eggert  <eggert@twinsun.com>
79139
79140         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
79141         a pain in practice to deal with generated m4 files.  This change
79142         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
79143
79144         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
79145         and jm-glibc-io.m4, as they are no longer a special case.
79146         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
79147         kludge and the auto-generation stuff.  Check only whether the
79148         functions are declared, not whether they exist, since older hosts
79149         that don't declare the functions can't use the optimization anyway.
79150
79151 2002-12-06  Jim Meyering  <jim@meyering.net>
79152
79153         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
79154
79155         Merge in changes from libc's misc/error.c, in preparation
79156         for the merge of gnulib's changes back into libc.
79157
79158         * lib/error.c (_): Define only if not already defined.
79159         Move definition to follow all #include directives.
79160         Include unlocked-io.h only if !_LIBC.
79161         [_LIBC]: Include <libio/libioP.h>.
79162         [USE_IN_LIBIO]: Include <libio/iolibio.h>
79163         (fflush): Tweak definition to use INTUSE.
79164         (putc): Define.
79165
79166 2002-12-05  Paul Eggert  <eggert@twinsun.com>
79167
79168         * lib/alloca.c [defined emacs]: Include "lisp.h".
79169         (xalloc_die) [defined emacs]: New macro.
79170         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
79171         [! defined emacs]: Include <xalloc.h>.
79172         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
79173         (pointer): Typedef to POINTER_TYPE *.
79174         (malloc): Remove decl; we now always use xmalloc.
79175         (alloca): Use old-style definition, since Emacs needs this.
79176         Check for arithmetic overflow when computing combined size.
79177
79178 2002-12-04  Paul Eggert  <eggert@twinsun.com>
79179
79180         Do not generate unlocked-io.h automatically, since it's easier to
79181         maintain it by hand.
79182
79183         * lib/unlocked-io.h: New file, from GNU diffutils,
79184         but with proper copyright notice and attribution.
79185         * lib/gen-uio: Remove.
79186         * lib/Makefile.am: Add copyright notice.
79187         (libfetish_a_SOURCES): Add unlocked-io.h.
79188         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
79189         (DISTCLEANFILES, io_functions): Remove macros.
79190         (EXTRA_DIST): Remove gen_uio.
79191         (unlocked-io.h): Remove rule.
79192
79193 2002-12-04  Jim Meyering  <jim@meyering.net>
79194
79195         Reflect the fact that stat.c and lstat.c are no longer generated.
79196         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
79197         (DISTCLEANFILES): Likewise.
79198         (EXTRA_DIST): Likewise.
79199         (all_local): Don't depend on stat.c or lstat.c.
79200         (stat.c, lstat.c): Remove rules.
79201         (EXTRA_DIST): Remove xstat.in.
79202
79203         * lib/xstat.in: Remove file.  Contents moved into stat.c.
79204         * lib/stat.c: New file.  Contents mostly from xstat.in.
79205         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
79206         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
79207
79208         * lib/safe-read.c: Rework so that it may serve to define safe_write,
79209         too.
79210         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
79211
79212 2002-12-03  Jim Meyering  <jim@meyering.net>
79213
79214         * lib/safe-read.c, safe-write.c: Change variable names and comments,
79215         but not semantics, to minimize the differences between these two files.
79216         (safe_read): Change comment to mention SAFE_READ_ERROR.
79217
79218         * lib/safe-read.c (IS_EINTR): Define.
79219         (safe_read): Use IS_EINTR in place of in-function cpp directives.
79220
79221 2002-12-02  Jim Meyering  <jim@meyering.net>
79222
79223         * lib/safe-read.c (EINTR): Define.
79224         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
79225         (INT_MAX): Provide fallback.
79226         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
79227
79228         * lib/safe-read.h (SAFE_READ_ERROR): Define.
79229
79230 2002-12-02  Bruno Haible  <bruno@clisp.org>
79231
79232         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
79233         Define, taken from safe-read.c.
79234         (INT_MAX): Provide fallback.
79235         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
79236         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
79237
79238         * lib/safe-read.c (EINTR): Remove definition.
79239         (safe_read): Don't use EINTR if it is absent.
79240
79241 2002-12-01  Jim Meyering  <jim@meyering.net>
79242
79243         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
79244         zero.
79245         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
79246
79247 2002-11-27  Paul Eggert  <eggert@twinsun.com>
79248
79249         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
79250         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
79251         with `if (! (value < limit)) abort ();', for readability.
79252
79253 2002-11-26  Karl Berry  <karl@gnu.org>
79254
79255         * lib/strdup.c: copy from libc again, with jim's ok.
79256         * lib/.cppi-disable: re-add strdup.c
79257
79258 2002-11-25  Karl Berry  <karl@gnu.org>
79259
79260         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
79261         instead of "strtol.c".
79262
79263 2002-11-25  Karl Berry  <karl@gnu.org>
79264
79265         * config/install-sh: update from automake for variable quoting, $0 in
79266         error msgs, etc.
79267
79268         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
79269         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
79270         entry.
79271
79272 2002-11-25  Jim Meyering  <jim@meyering.net>
79273
79274         * lib/mktime.c: Sync from libc, now that it has the latest fix.
79275
79276 2002-11-24  Karl Berry  <karl@gnu.org>
79277
79278         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
79279         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
79280
79281 2002-11-24  Jim Meyering  <jim@meyering.net>
79282
79283         Update from coreutils:
79284
79285         * lib/mktime.c: Merge in changes from libc.
79286
79287         Avoid a link-time failure on some Linux systems.
79288         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
79289         (otherwise).
79290         (__mon_yday): Declare with the STATIC attribute.
79291         (__mktime_internal): Likewise.
79292         Based on a report from Greg Schafer.
79293
79294 2002-11-23  Jim Meyering  <jim@meyering.net>
79295
79296         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
79297         Use `unsigned', not `int', as type of index.
79298
79299         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
79300
79301         * lib/fsusage.c: Remove unneeded parentheses around operands of
79302         `defined'.
79303
79304 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79305
79306         * lib/quotearg.h: Allow multiple inclusion by surrounding with
79307         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
79308         so that we can be included first.
79309         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
79310         * lib/quotearg.c: Include quotearg.h immediately after config.h.
79311         No need to include stddef.h or sys/types.h any more.
79312         Surround local include files with "", not "<>".
79313         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
79314         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
79315         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
79316         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
79317         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
79318         (ISPRINT): Remove; no longer needed now that we assume C89.
79319
79320         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
79321         Preserve errno.
79322
79323         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
79324         quotearg_char): Use SIZE_MAX rather than
79325         (size_t) -1 when we are talking about "infinity".
79326
79327         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
79328
79329 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79330
79331         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
79332         hint that one should use `if (! x) abort ();' rather than `assert
79333         (x);', and anyway it's one less thing to worry about configuring.
79334         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
79335         hash_rehash, hash_insert): Use abort rather than assert.
79336
79337 2002-11-22  Bruno Haible  <bruno@clisp.org>
79338
79339         * lib/safe-read.h: Assume C89. Add comments.
79340         (safe_read): Change return type to size_t.
79341         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
79342         byte counts > SSIZE_MAX correctly.
79343         * lib/safe-write.h: New file.
79344         * lib/safe-write.c: New file.
79345         * lib/full-read.h: New file.
79346         * lib/full-read.c: New file.
79347         * lib/full-write.h: Assume C89. Add comments.
79348         * lib/full-write.c: Include safe-write.h.
79349         (full_write): Rewritten to use safe_write.
79350         Suggested by Jim Meyering and Paul Eggert.
79351
79352 2002-11-21  Jim Meyering  <jim@meyering.net>
79353
79354         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
79355
79356         Merge in changes from the coreutils.
79357
79358         2002-09-25  Paul Eggert  <eggert@twinsun.com>
79359         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
79360         <stdint.h>.
79361         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
79362         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
79363         int.  Work more efficiently if X is the same width as uintmax_t.
79364         Do not compare X to -1, to avoid bogus compiler warning.
79365         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
79366         Don't assume that f_frsize and f_bsize are the same type.
79367
79368         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
79369         warning on FreeBSD.
79370
79371         * lib/makepath.c (make_path): Restore umask *before* creating the final
79372         component.
79373         (make_path): Minor reformatting.
79374
79375         * lib/xmalloc.c: Adjust to work with new autoconf macros,
79376         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
79377         HAVE_MALLOC/HAVE_REALLOC.
79378
79379         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
79380         dummy ones.  At least on GNU/Linux systems, `auto' means something
79381         else.
79382         From Michael Stone.
79383
79384 2002-11-21  Bruno Haible  <bruno@clisp.org>
79385
79386         Remove case insensitive option matching.
79387         * lib/argmatch.h (argcasematch): Remove declaration.
79388         (ARGCASEMATCH): Remove macro.
79389         (__xargmatch_internal): Remove case_sensitive argument.
79390         (XARGMATCH): Update.
79391         (XARGCASEMATCH): Remove macro.
79392         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
79393         case_sensitive argument.
79394         (argcasematch): Remove function.
79395         (__xargmatch_internal): Remove case_sensitive argument.
79396         (main): Use XARGMATCH instead of XARGCASEMATCH.
79397
79398         * lib/xmalloc.c: Change compile-time error message. Add comment about
79399         required autoconf version.
79400
79401 2002-11-20  Paul Eggert  <eggert@twinsun.com>
79402
79403         Merge argmatch cleanups from Bison.  Assume C89.
79404
79405         * lib/argmatch.c: Include config.h here, not in argmatch.h.
79406         Include stdlib.h, for EXIT_FAILURE.
79407         Always include <string.h>, since we assume C89.
79408         (EXIT_FAILURE): Remove pre-C89 bug workaround.
79409         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
79410         Include <stddef.h> instead, since it's all we need for size_t.
79411         (PARAMS): Remove.  All uses removed.
79412         (ARRAY_CARDINALITY): Do not bother to #undef.
79413         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
79414         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
79415         Remove unnecessary parentheses.
79416         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
79417         Insert necessary parentheses.
79418         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
79419         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
79420
79421 2002-11-19  Bruno Haible  <bruno@clisp.org>
79422
79423         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
79424         * lib/mbswidth.h: Include <stddef.h>, for size_t.
79425
79426         * lib/mbswidth.h (PARAMS): Remove macro.
79427         (mbswidth, mbsnwidth): Use ANSI C function declarations.
79428         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
79429
79430         * lib/gcd.h (PARAMS): Remove macro.
79431         (gcd): Use ANSI C function declarations.
79432         * lib/gcd.c (gcd): Likewise.
79433
79434 2002-11-15  Bruno Haible  <bruno@clisp.org>
79435
79436         * lib/strcspn.c: Include <stddef.h>.
79437         (strcspn): Use ANSI C function declaration. Change return type to
79438         size_t. Use NULL.
79439         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
79440         (strpbrk): Use NULL.
79441         * lib/strpbrk.h (PARAMS): Remove macro.
79442         (strpbrk): Use ANSI C function declaration.
79443         * lib/strstr.c: Don't include <sys/types.h>.
79444         * lib/strstr.h (PARAMS): Remove macro.
79445         (strstr): Use ANSI C function declarations.
79446
79447 2002-11-14  Karl Berry  <karl@gnu.org>
79448
79449         * config/mkinstalldirs: `do' on separate line, instead of
79450         `for var; do'.
79451
79452 2002-11-06  Bruno Haible  <bruno@clisp.org>
79453
79454         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
79455         * lib/gcd.c (gcd): Likewise.
79456
79457 2002-11-05  Bruno Haible  <bruno@clisp.org>
79458
79459         * lib/gcd.h: New file, from gettext-0.11.5.
79460         * lib/gcd.c: New file, from gettext-0.11.5.
79461
79462 2002-11-05  Bruno Haible  <bruno@clisp.org>
79463
79464         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79465         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79466         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79467         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79468
79469         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
79470         <libintl.h>.
79471         * lib/makepath.c: Include gettext.h instead of <locale.h> and
79472         <libintl.h>.
79473
79474         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
79475         * lib/human.c: Include gettext.h instead of <libintl.h>.
79476         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
79477         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
79478         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
79479         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
79480         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
79481         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
79482         (textdomain): Remove definition.
79483         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
79484
79485         * lib/long-options.c: Remove include of <libintl.h> and definition of
79486         _.
79487         * lib/same.c: Remove include of <libintl.h> and definition of _.
79488
79489 2002-11-04  Owen Taylor  <otaylor@redhat.com>
79490
79491         * lib/config.charset: A few additions for Solaris.
79492
79493 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
79494
79495         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
79496         * lib/localcharset.c (locale_charset): Declare as extern "C".
79497
79498 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
79499
79500         * lib/config.charset: msdos in uk_UA uses CP1125.
79501
79502 2002-11-04  Bruno Haible  <bruno@clisp.org>
79503
79504         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
79505         * lib/strcase.h: New file, from GNU gettext-0.11.5.
79506         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
79507         * lib/strstr.h: New file, from GNU gettext-0.11.5.
79508         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
79509
79510 2002-11-04  Bruno Haible  <bruno@clisp.org>
79511
79512         * lib/localcharset.c (locale_charset): Don't return an empty string.
79513
79514 2002-11-04  Bruno Haible  <bruno@clisp.org>
79515
79516         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
79517         aliases.
79518
79519 2002-11-04  Bruno Haible  <bruno@clisp.org>
79520
79521         * lib/config.charset: Update for newest glibc. Add canonical names
79522         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
79523
79524 2002-11-04  Bruno Haible  <bruno@clisp.org>
79525
79526         * lib/config.charset: Add support for NetBSD.
79527
79528 2002-11-04  Bruno Haible  <bruno@clisp.org>
79529
79530         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
79531
79532 2002-11-01  Bruno Haible  <bruno@clisp.org>
79533
79534         * configure.in: Add AC_CONFIG_AUX_DIR call.
79535         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
79536         test/Makefile.
79537         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
79538
79539 2002-09-28  Karl Berry  <karl@gnu.org>
79540
79541         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
79542         installed automake until the next release, since changes have been
79543         made.
79544
79545 2002-09-25  Karl Berry  <karl@gnu.org>
79546
79547         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
79548         * lib/getopt*: copy from libc/posix.
79549         * lib/gettext.h: copy from gettext.
79550         * lib/.cppi-disable: add strdup.c, gettext.h.
79551
79552 2002-09-25  Karl Berry  <karl@gnu.org>
79553
79554         * config/srclist.txt: enable gettext.h check.
79555         * config/config.{guess,sub}: update from prep.
79556         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
79557                 from automake 1.6.3.
79558         See srclist*.
79559
79560 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
79561
79562         * regex.c (PATFETCH): Remove the translating fetch.
79563         (PATFETCH_RAW): Rename to PATFETCH.
79564         (set_image_of_range): New fun.
79565         (SET_RANGE_TABLE_WORK_AREA): Use it.
79566         (regex_compile): Don't translate the pattern chars so eagerly.
79567         Only do it when inserting an `exactn' bytecode or when handling
79568         a char-range.
79569         (mutually_exclusive_p): Avoid empty statement.
79570
79571 2002-07-06  Jim Meyering  <meyering@lucent.com>
79572
79573         * m4/README: Don't mention Makefile.am.in.
79574         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
79575
79576 2002-07-01  Jim Meyering  <meyering@lucent.com>
79577
79578         * lib/c-stack.c: Include sys/time.h.
79579         From Volker Borchert.
79580
79581 2002-06-26  Paul Eggert  <eggert@twinsun.com>
79582
79583         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
79584
79585 2002-06-26  Paul Eggert  <eggert@twinsun.com>
79586
79587         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
79588         New macro.  Use it uniformly instead of
79589         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
79590         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
79591         reported by Vin Shelton.
79592
79593 2002-06-22  Paul Eggert  <eggert@twinsun.com>
79594
79595         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
79596         Do not assume SA_SIGINFO behavior.
79597         Bug reported by Jim Meyering on NetBSD 1.5.2.
79598
79599 2002-06-22  Jim Meyering  <meyering@lucent.com>
79600
79601         * m4/c-stack.m4: New file, from diffutils-2.8.2.
79602         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
79603
79604         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
79605         now that configure.ac uses AC_GNU_SOURCE.
79606         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
79607         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
79608
79609         Update to latest tools.  Suggestions from Paul Eggert.
79610         * m4/stdbool.m4: New file, from diffutils-2.8.2.
79611         * m4/gnu-source.m4: Update from diffutils-2.8.2.
79612         * m4/fnmatch.m4: Likewise.
79613         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
79614         to AC_HEADER_STDBOOL
79615
79616 2002-06-22  Jim Meyering  <meyering@lucent.com>
79617
79618         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
79619         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
79620
79621 2002-06-22  Jim Meyering  <meyering@lucent.com>
79622
79623         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
79624
79625         * lib/exitfail.c, exitfail.h: Likewise.
79626         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
79627
79628         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
79629         of fnmatch.h.
79630         (EXTRA_DIST): Add fnmatch_loop.c.
79631         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
79632
79633         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
79634         * lib/fnmatch.c: Update from diffutils-2.8.2.
79635         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
79636         * lib/fnmatch.h: Remove file.
79637
79638 2002-06-21  Jim Meyering  <meyering@lucent.com>
79639
79640         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
79641         * m4/mbrtowc.m4: Likewise.
79642
79643         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
79644         * m4/mbswidth.m4: Reflect name change:
79645         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
79646         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
79647
79648         * m4/lib-link.m4: Update from gettext-0.11.2.
79649         * m4/gettext.m4: Likewise.
79650
79651         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
79652         From Alfred M. Szmidt.
79653
79654 2002-06-18  Paul Eggert  <eggert@twinsun.com>
79655
79656         * lib/file-type.h: Report an error if neither S_ISREG nor
79657         S_IFREG is defined, instead of using a test specific to glibc
79658         2.2.  This should be safe, since POSIX requires S_ISREG and
79659         Unix Version 7 had S_IFREG.  We don't need to check for
79660         <sys/types.h> since we don't use any symbols that it defines.
79661
79662 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
79663
79664         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
79665         $@-t, so that each temporary file name is unique and valid in the first
79666         8 characters, for operation under DOS.
79667
79668 2002-06-15  Paul Eggert  <eggert@twinsun.com>
79669
79670         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
79671
79672 2002-06-15  Jim Meyering  <meyering@lucent.com>
79673
79674         Work even with DJGPP 2.03, which lacks support for symlinks.
79675         From Richard Dawe.
79676         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
79677         is defined.
79678         * lib/lchown.c (S_ISLNK): Likewise.
79679
79680 2002-06-15  Jim Meyering  <meyering@lucent.com>
79681
79682         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
79683         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
79684         have been included before this file.
79685
79686 2002-06-14  Jim Meyering  <meyering@lucent.com>
79687
79688         * lib/file-type.h: Use the version from diffutils-2.8.2.
79689         * lib/file-type.c: Likewise.
79690
79691 2002-06-07  Jim Meyering  <meyering@lucent.com>
79692
79693         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
79694         They're needed at least for NetBSD 1.5.2.
79695         ($statxfs_includes): Include those same headers.
79696         ($statxfs_includes): Include sys/vfs.h if available.
79697         ($statxfs_includes): Likewise for sys/statvfs.h.
79698         Check for the following members in both structs statfs and statvfs:
79699         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
79700
79701 2002-06-01  Jim Meyering  <meyering@lucent.com>
79702
79703         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
79704         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
79705
79706 2002-05-28  Jim Meyering  <meyering@lucent.com>
79707
79708         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
79709         Reported by Volker Borchert.
79710
79711 2002-05-27  Jim Meyering  <meyering@lucent.com>
79712
79713         Fix a problem seen only on nonconforming systems whereby ls.c's
79714         use of localtime, and then of gettimeofday would cause trouble:
79715         the localtime call used to initialize rpl_gettimeofday's save
79716         mechanism would clobber ls's current local time information so
79717         that in any long listing the first file would always be listed
79718         with date 1970-01-01.  Analysis by Volker Borchert.
79719
79720         * lib/gettimeofday.c (localtime): Undefine.
79721         (rpl_localtime): New function.
79722
79723 2002-05-27  Jim Meyering  <meyering@lucent.com>
79724
79725         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
79726         localtime.
79727
79728         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
79729         use the replacement function; it wouldn't resolve at link time.
79730         Reported by Volker Borchert.
79731
79732 2002-05-22  Jim Meyering  <meyering@lucent.com>
79733
79734         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
79735         file-type.h.
79736         * lib/file-type.h: New file.
79737         * lib/file-type.c (file_type): New file/function.  Extracted from
79738         diffutils.
79739
79740 2002-04-30  Jim Meyering  <meyering@lucent.com>
79741
79742         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
79743
79744 2002-04-29  Paul Eggert  <eggert@twinsun.com>
79745
79746         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
79747
79748 2002-04-29  Paul Eggert  <eggert@twinsun.com>
79749
79750         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
79751         Do not check for alloca.h (no longer used) or stdbool.h (was never
79752         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
79753
79754 2002-04-29  Paul Eggert  <eggert@twinsun.com>
79755
79756         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
79757
79758 2002-04-29  Jim Meyering  <meyering@lucent.com>
79759
79760         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
79761         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
79762         Use AC_FUNC_STRNLEN here instead.
79763
79764         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
79765         With autoconf-2.53a, it's part of AC_PROG_CC.
79766
79767 2002-04-28  Paul Eggert  <eggert@twinsun.com>
79768
79769         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
79770         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
79771
79772 2002-04-28  Paul Eggert  <eggert@twinsun.com>
79773
79774         * lib/sig2str.h, lib/sig2str.c: New files.
79775         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
79776
79777 2002-04-28  Paul Eggert  <eggert@twinsun.com>
79778
79779         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
79780         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
79781         of 127, since 64 is the largest conceivable number for ancient
79782         nonstandard hosts.
79783         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
79784
79785 2002-04-28  Jim Meyering  <meyering@lucent.com>
79786
79787         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
79788
79789 2002-04-24  Jim Meyering  <meyering@lucent.com>
79790
79791         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
79792         (jm_PREREQ): Use it.
79793
79794         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
79795         mach/mach.h fcntl.h.
79796         Check for this function: setlocale.
79797
79798 2002-04-24  Jim Meyering  <meyering@lucent.com>
79799
79800         * lib/gettext.h: New file, from Gettext.
79801         * lib/Makefile.am (INCLUDES): Remove -I../intl.
79802         (libfetish_a_SOURCES): Add gettext.h.
79803
79804 2002-04-16  Jim Meyering  <meyering@lucent.com>
79805
79806         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
79807         ut_pid, ut_id, ut_exit.
79808
79809 2002-04-16  Jim Meyering  <meyering@lucent.com>
79810
79811         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
79812         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
79813         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
79814
79815 2002-04-12  Jim Meyering  <meyering@lucent.com>
79816
79817         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
79818         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
79819         existence of the getmntinfo function.  Needed for Darwin 5.3.
79820
79821         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
79822         This is necessary at least on Darwin 5.3.
79823
79824         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
79825         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
79826         strnlen.o in the library, and that makes some versions of ranlib
79827         object.
79828
79829 2002-04-12  Jim Meyering  <meyering@lucent.com>
79830
79831         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
79832
79833 2002-04-09  Jim Meyering  <meyering@lucent.com>
79834
79835         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
79836         to be more precise.  Rather than saying we're checking whether the
79837         function `works', say what we're testing.
79838         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
79839         Reported by Bruno Haible.
79840
79841 2002-03-10  Jim Meyering  <meyering@lucent.com>
79842
79843         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
79844         Suggestion from Santiago Vila.
79845
79846 2002-03-08  Jim Meyering  <meyering@lucent.com>
79847
79848         * lib/rename.c: Mention that this wrapper is needed also on
79849         mips-dec-ultrix4.4 systems.
79850
79851 2002-03-02  Jim Meyering  <meyering@lucent.com>
79852
79853         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
79854         not HAVE_CLOCK_SETTIME.
79855
79856 2002-02-27  Paul Eggert  <eggert@twinsun.com>
79857
79858         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
79859         Check for clock_settime.
79860
79861 2002-02-27  Paul Eggert  <eggert@twinsun.com>
79862
79863         * lib/nanosleep.h: Rename to....
79864         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
79865
79866         * lib/gettime.c: New file.
79867         * lib/settime.c: New file.
79868         * lib/stime.c: Remove.
79869
79870         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
79871         timespec.h.  Remove nanosleep.h.
79872
79873 2002-02-25  Paul Eggert  <eggert@twinsun.com>
79874
79875         * m4/acl.m4: New file.
79876         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
79877         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
79878
79879 2002-02-25  Paul Eggert  <eggert@twinsun.com>
79880
79881         * lib/acl.c, lib/acl.h: New files.
79882         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
79883
79884 2002-02-24  Jim Meyering  <meyering@lucent.com>
79885
79886         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
79887         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
79888         cause trouble.  Reported by Nelson Beebe.
79889
79890 2002-02-23  Paul Eggert  <eggert@twinsun.com>
79891
79892         * lib/path-concat.c (xpath_concat): Reorder code to pacify
79893         compilers that don't know that xalloc_die never returns.
79894
79895 2002-02-20  Jim Meyering  <meyering@lucent.com>
79896
79897         * lib/getdate.c: Regenerate using bison-1.33.
79898
79899 2002-02-17  Jim Meyering  <meyering@lucent.com>
79900
79901         * config/config.guess (main): Don't use `head -1'; it's no longer
79902         portable. Use `sed 1q' instead.
79903
79904 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
79905
79906         * m4/codeset.m4: Upgrade to gettext-0.11.
79907         * m4/gettext.m4: Upgrade to gettext-0.11.
79908         * m4/glibc21.m4: Upgrade to gettext-0.11.
79909         * m4/iconv.m4: Upgrade to gettext-0.11.
79910         * m4/isc-posix.m4: Upgrade to gettext-0.11.
79911         * m4/lcmessage.m4: Upgrade to gettext-0.11.
79912         * m4/lib-ld.m4: New file, from gettext-0.11.
79913         * m4/lib-link.m4: New file, from gettext-0.11.
79914         * m4/lib-prefix.m4: New file, from gettext-0.11.
79915         * m4/progtest.m4: Upgrade to gettext-0.11.
79916
79917 2002-02-15  Paul Eggert  <eggert@twinsun.com>
79918
79919         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
79920         (jm_PREREQ): Use it.
79921
79922 2002-02-15  Paul Eggert  <eggert@twinsun.com>
79923
79924         * lib/posixver.c, lib/posixver.h: New files.
79925         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
79926
79927 2002-02-02  Paul Eggert  <eggert@twinsun.com>
79928             Bruno Haible  <bruno@clisp.org>
79929
79930         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
79931         (fwrite_success_callback): New declaration.
79932         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
79933         print_unicode_char. Call failure callback instead of error.
79934         (fwrite_success_callback): New function.
79935         (exit_failure_callback): New function.
79936         (fallback_failure_callback): New function.
79937         (print_unicode_char): Call unicode_to_mb.
79938
79939 2002-01-26  Jim Meyering  <meyering@lucent.com>
79940
79941         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
79942         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
79943
79944 2002-01-26  Jim Meyering  <meyering@lucent.com>
79945
79946         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
79947
79948 2002-01-22  Paul Eggert  <eggert@twinsun.com>
79949
79950         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
79951
79952 2002-01-22  Jim Meyering  <meyering@lucent.com>
79953
79954         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
79955         Otherwise, some versions of automake would omit the rule that makes
79956         Makefile from Makefile.in.
79957
79958 2002-01-21  Paul Eggert  <eggert@twinsun.com>
79959
79960         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
79961         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
79962         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
79963         (memcoll): Set errno to zero if there is no error.
79964
79965         * lib/quotearg.c (quotearg_buffer_restyled):
79966         Fix bug with quoting buffers containing NUL when backslashing escapes.
79967         This bug was exposed by the other changes in this patch.
79968         (quotearg_n_options): New arg ARGSIZE.
79969         All callers changed.
79970         (quoting_options_from_style): New function.
79971         (quotearg_n_style): Use it.
79972         (quotearg_n_style_mem): New function.
79973
79974         * lib/quotearg.h (quotearg_n_style_mem): New function.
79975
79976 2002-01-19  Jim Meyering  <meyering@lucent.com>
79977
79978         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
79979         Remove useless quotes: DF_PROG="df".
79980         * m4/strnlen.m4: New file.
79981
79982 2002-01-16  Paul Eggert  <eggert@twinsun.com>
79983
79984         * lib/backupfile.c (ISDIGIT): Comment fix.
79985         * lib/getdate.y (ISDIGIT): Likewise.
79986         * lib/posixtm.c (ISDIGIT, year): Likewise.
79987         * lib/strverscmp.c (ISDIGIT): Likewise.
79988         * lib/userspec.c (ISDIGIT): Likewise.
79989
79990 2002-01-16  Jim Meyering  <meyering@lucent.com>
79991
79992         * lib/getdate.y: Add three semicolons, each just before a closing
79993         brace. Bison (as of version 1.31) no longer papers over that mistake.
79994
79995 2002-01-05  Jim Meyering  <meyering@lucent.com>
79996
79997         * lib/version-etc.c (version_etc_copyright): Update copyright year.
79998
79999 2001-12-19  Paul Eggert  <eggert@twinsun.com>
80000
80001         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
80002         not silently exit merely because the output buffer happens to
80003         have nothing pending.
80004
80005 2001-12-18  Paul Eggert  <eggert@twinsun.com>
80006
80007         See the big note in ../ChangeLog.
80008         * lib/human.c (suffixes): Prefer K to k for 1024.
80009         (generate_suffix_backwards): New function.
80010         (human_readable_inexact): Use it.
80011         * lib/xstrtol.c (__xstrtol): If there is no number but there
80012         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
80013         Accept 'K' as well as 'k'.
80014
80015 2001-12-15  Jim Meyering  <meyering@lucent.com>
80016
80017         * lib/regex.h (__restrict_arr): Update from libc.
80018
80019         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
80020         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
80021         (STREQ): Define.
80022
80023 2001-12-14  Jim Meyering  <meyering@lucent.com>
80024
80025         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
80026         Suggestion from Bruno Haible.
80027
80028 2001-12-10  Jim Meyering  <meyering@lucent.com>
80029
80030         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
80031         xrealloc, Instead, include "xalloc.h".
80032         (initbuffer): Don't cast xmalloc return value to char*.
80033         (readline): Reword comment.
80034         Don't cast xrealloc return value to char*
80035         Return NULL, not 0.
80036
80037 2001-12-09  Jim Meyering  <meyering@lucent.com>
80038
80039         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
80040         about `signed and unsigned type in conditional expression'.
80041         * lib/posixtm.c (posix_time_parse): Likewise.
80042
80043         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
80044
80045         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
80046         to avoid a pedantic warning.
80047
80048         * lib/getstr.c: Don't include assert.h.
80049         (getstr): Remove warning-evoking assertions.
80050         Return -1 if offset parameter is out of bounds.
80051         Change the type of a local from int to size_t.
80052
80053         * lib/strftime.c (my_strftime_localtime_r): Include this function
80054         definition in the `#if ! HAVE_TM_GMTOFF' block.
80055
80056         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
80057         Include xalloc.h instead.
80058
80059 2001-12-02  Jim Meyering  <meyering@lucent.com>
80060
80061         * lib/tempname.c: Don't declare getenv, thus reverting the change of
80062         2001-11-18.  It's no longer necessary, now that stdlib.h is always
80063         included.
80064
80065         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
80066         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
80067
80068 2001-11-30  Akim Demaille  <akim@epita.fr>
80069
80070         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
80071         before being defined.
80072
80073 2001-11-27  Paul Eggert  <eggert@twinsun.com>
80074
80075         * lib/quotearg.h (quotearg_n, quotearg_n_style):
80076         First arg is int, not unsigned.
80077         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
80078         (SIZE_MAX, UINT_MAX): New macros.
80079         (quotearg_n_options): Abort if N is negative.
80080         Avoid overflow check on hosts where size_t is 64 bits and int
80081         is 32 bits, as overflow is impossible there.
80082         Fix off-by-one typo that caused unnecessary reallocation.
80083
80084 2001-11-27  Jim Meyering  <meyering@lucent.com>
80085
80086         * lib/tempname.c: Merge with version from libc.
80087         * lib/regex.c: Likewise.
80088
80089         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
80090         systems for which STDC_HEADERS is 0, it was not included, resulting in
80091         a warning about an integer-to-pointer conversion problem with getenv.
80092         Reported by Volker Borchert.
80093
80094 2001-11-26  Jim Meyering  <meyering@lucent.com>
80095
80096         * lib/gtod.h: Remove file.
80097         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
80098         * lib/gettimeofday.c: Don't include gtod.h.
80099         (GTOD_init): Remove function.
80100         (rpl_gettimeofday): Do its job here instead, rather than aborting.
80101         Suggestion from Volker Borchert.
80102
80103 2001-11-23  Jim Meyering  <meyering@lucent.com>
80104
80105         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
80106         it.
80107         * lib/hash.c (struct hash_table): Define it here instead.
80108
80109 2001-11-22  Jim Meyering  <meyering@lucent.com>
80110
80111         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
80112
80113 2001-11-20  Jim Meyering  <meyering@lucent.com>
80114
80115         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
80116         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
80117
80118 2001-11-19  Jim Meyering  <meyering@lucent.com>
80119
80120         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
80121         directory.  Use "conftestXXXXXX" as the template.
80122         Suggestion from Paul Eggert.
80123
80124         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
80125         immediately, so the test doesn't mistakenly hit the max-open-files
80126         limit.
80127
80128 2001-11-18  Paul Eggert  <eggert@twinsun.com>
80129
80130         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
80131         (TEMPORARIES): New macro.
80132         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
80133         removes an artificial limitation (e.g. HP-UX 10.20, where
80134         TMP_MAX is 17576).
80135
80136 2001-11-18  Jim Meyering  <meyering@lucent.com>
80137
80138         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
80139
80140 2001-11-18  Jim Meyering  <meyering@lucent.com>
80141
80142         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
80143         on SunOS 4.
80144
80145         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
80146         files will be created before anything else.
80147
80148 2001-11-17  Paul Eggert  <eggert@twinsun.com>
80149
80150         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
80151         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
80152
80153 2001-11-17  Jim Meyering  <meyering@lucent.com>
80154
80155         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
80156         Prompted by a report from Bob Proulx.
80157
80158         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
80159         Instead, require UTILS_FUNC_MKSTEMP.
80160
80161 2001-11-17  Jim Meyering  <meyering@lucent.com>
80162
80163         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
80164         Now, that's done as part of AC_FUNC_STRTOD.
80165
80166 2001-11-17  Jim Meyering  <meyering@lucent.com>
80167
80168         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
80169         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
80170         rather than group writable.  Patch by Juan F. Codagnone.
80171
80172         * lib/readtokens.c: Remove explicit declarations of xmalloc and
80173         xrealloc, Instead, include "xalloc.h".
80174
80175         * lib/mountlist.c: Include unlocked-io.h after all system headers.
80176         Remove explicit declarations of xmalloc, xrealloc,
80177         and xstrdup.  Instead, include "xalloc.h".
80178
80179         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
80180         unlocked-io.h.
80181         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
80182         Likewise.
80183         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
80184
80185         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
80186         Reported by Padraig Brady.
80187
80188         * lib/mkstemp.c: #undef mkstemp.
80189         Include config.h.
80190         (rpl_mkstemp): Rename from mkstemp.
80191         Protoize.
80192
80193 2001-11-16  Jim Meyering  <meyering@lucent.com>
80194
80195         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
80196         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
80197         determine the amount of total physical memory, use pstat_getstatic.
80198         HPUX-11 doesn't define _SC_PHYS_PAGES.
80199         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
80200         If sysconf couldn't be used to determine the amount of available
80201         physical memory, use both pstat_getstatic and pstat_getdynamic.
80202         Based on a patch from Bob Proulx.
80203
80204 2001-11-10  Jim Meyering  <meyering@lucent.com>
80205
80206         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
80207         (jm_PREREQ): Use it.
80208
80209 2001-11-09  Jim Meyering  <meyering@lucent.com>
80210
80211         * m4/jm-macros.m4: Require autoconf-2.52f.
80212         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
80213         Use these AC_-prefixed names, not the AM_-prefixed ones.
80214
80215         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
80216
80217 2001-11-05  Jim Meyering  <meyering@lucent.com>
80218
80219         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
80220
80221 2001-11-04  Jim Meyering  <meyering@lucent.com>
80222
80223         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
80224         $DEFS.
80225
80226 2001-11-03  Jim Meyering  <meyering@lucent.com>
80227
80228         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
80229         of AC_DEFUN.
80230
80231         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
80232         know the name of the variable in the macro definition.
80233
80234 2001-11-03  Jim Meyering  <meyering@lucent.com>
80235
80236         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
80237         in argmatch_to_argument call.
80238
80239         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
80240         argument.
80241
80242         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
80243         e.g., a fault due to an attempt to free a NULL pointer.
80244
80245 2001-11-01  Jim Meyering  <meyering@lucent.com>
80246
80247         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
80248         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
80249
80250 2001-11-01  Jim Meyering  <meyering@lucent.com>
80251
80252         * lib/dirfd.c, lib/dirfd.h: New files.
80253         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
80254
80255         * lib/hash.c (hash_print) [TESTING]: Clean up.
80256
80257 2001-10-22  Paul Eggert  <eggert@twinsun.com>
80258
80259         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
80260         to avoid a warning if -Wall.
80261
80262 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
80263
80264         * README: New file
80265         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
80266         (per RMS's instructions, this is now the canonical source)
80267         * lgpl/, gpl/: New directories.
80268
80269 2001-10-21  Paul Eggert  <eggert@twinsun.com>
80270
80271         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
80272
80273 2001-10-21  Jim Meyering  <meyering@lucent.com>
80274
80275         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
80276         this code would end up calling gettext even in packages built
80277         with --disable-nls.
80278         * lib/getopt.c (_): Likewise.
80279         * lib/regex.c (_): Likewise.
80280
80281 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80282
80283         * m4/error.m4 (jm_PREREQ_ERROR):
80284         Do not invoke AC_CHECK_FUNCS with strerror_r, as
80285         AC_FUNC_STRERROR_R does that.
80286         Check for strerror declaration.
80287
80288         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
80289         are supposed to have them these days.
80290         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
80291         Merge changes from latest Autoconf CVS.
80292         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
80293         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
80294         POSIX decided to standardize on the int flavor of strerror_r.
80295
80296 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80297
80298         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
80299         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
80300         Use strerror_r that is only a macro, even if it is not a function.
80301         (strerror): Check for HAVE_DECL_STRERROR before declaring.
80302         (private_strerror): Use prototypes, not old-style function definition.
80303         (print_errno_message): New function.
80304         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
80305         char*-flavored one.
80306         (error_tail, error, error_at_line): Use it.
80307
80308 2001-10-11  Jim Meyering  <meyering@lucent.com>
80309
80310         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
80311         and quote_n (1, ... to avoid clobbering a buffer.
80312
80313 2001-10-05  Jim Meyering  <meyering@lucent.com>
80314
80315         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
80316         hash-pjw.h.
80317         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
80318         * lib/hash-pjw.h: New file.
80319
80320 2001-09-30  Jim Meyering  <meyering@lucent.com>
80321
80322         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
80323         `struct fsstat' has the `f_fstypename' member.
80324         Use that to define FS_TYPE, which is now used to make
80325         the getfsstat link test tighter.
80326
80327 2001-09-30  Jim Meyering  <meyering@lucent.com>
80328
80329         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
80330         Include <sys/ucred.h>, for Apple Darwin.
80331         Include sys/mount.h and sys/fs_types.h only if available.
80332         (FS_TYPE): Define.
80333         (read_filesystem_list): Use FS_TYPE.
80334
80335 2001-09-29  Paul Eggert  <eggert@twinsun.com>
80336
80337         * lib/exclude.c (excluded_filename): 0 -> false, since it's
80338         a boolean context.
80339
80340 2001-09-29  Jim Meyering  <meyering@lucent.com>
80341
80342         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80343         [one-argument getmntent function]): Include stdio.h before mntent.h.
80344         SunOS 4.1.x needs it for the declaration of `FILE'.
80345         Patch by Volker Borchert.
80346
80347         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80348         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
80349         sys/fs_types.h, and make the link-test for getfsstat guard #include
80350         directives with appropriate #if HAVE_*_H tests so that we can
80351         detect getfsstat on Apple Darwin1.3.7 systems.
80352         Reported by Nelson Beebe.
80353         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
80354
80355 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80356
80357         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80358         #defines strtoimax.  Also treat the other strto* functions
80359         like strtoimax.
80360
80361         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
80362         Check for strtoul and strtoumax,
80363         as those declarations are made even in the signed case.
80364         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
80365         Likewise, for strtol and strtoimax.
80366
80367 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80368
80369         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80370         #defines strtoimax.  Also treat the other strto* functions
80371         like strtoimax.
80372
80373         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
80374         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
80375         (strtoimax, strtoumax): Do not declare if already defined as a macro.
80376
80377 2001-09-26  Jim Meyering  <meyering@lucent.com>
80378
80379         Most macros in unlocked-io.h had the wrong number of arguments.
80380         * lib/gen-uio: New script.
80381         (USE_UNLOCKED_IO): Define to 1 if not already defined.
80382         * lib/unlocked-io.hin: Remove file.
80383         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
80384         rather than trying to embed it here.
80385         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
80386         Reported by Padraig Brady.
80387
80388 2001-09-25  Volker Borchert  <bt@teknon.de>
80389
80390         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
80391         `result'.
80392
80393 2001-09-24  Jim Meyering  <meyering@lucent.com>
80394
80395         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
80396
80397 2001-09-23  Jim Meyering  <meyering@lucent.com>
80398
80399         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
80400         instead of the mere test for existence of mntent.h.  The latter
80401         would get a false-positive on AIX 3.4 systems.
80402         In the outer getmntent if-block, don't die if neither of the getmntent
80403         tests succeeds.  Instead, just fall through and continue with the
80404         remaining tests.
80405
80406 2001-09-23  Jim Meyering  <meyering@lucent.com>
80407
80408         * lib/mountlist.c: Remove useless parentheses in #if directives.
80409         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
80410         the deprecated MOUNTED symbol is no longer defined in mntent.h.
80411
80412 2001-09-22  Jim Meyering  <meyering@lucent.com>
80413
80414         * m4/gettext.m4: New file.  From gettext.
80415         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
80416         * m4/progtest.m4: Likewise
80417         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
80418         * m4/glibc21.m4: Likewise.
80419
80420         * m4/libintl.m4: Remove.  No longer used.
80421
80422 2001-09-22  Jim Meyering  <meyering@lucent.com>
80423
80424         * lib/localcharset.c: Update from latest gettext.
80425         * lib/config.charset: Likewise.
80426
80427 2001-09-20  Jim Meyering  <meyering@lucent.com>
80428
80429         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
80430         strtoimax.
80431         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
80432         strtoumax.
80433
80434 2001-09-20  Jim Meyering  <meyering@lucent.com>
80435
80436         * lib/xstrtol.c (strtoimax): Guard declaration with
80437         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
80438         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
80439         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
80440         (strtoumax): Likewise, for completeness (it wasn't necessary).
80441
80442 2001-09-17  Paul Eggert  <eggert@twinsun.com>
80443
80444         * lib/strtoimax.c (HAVE_LONG_LONG):
80445         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
80446         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
80447         to work around bug in IBM C compiler.
80448
80449 2001-09-17  Jim Meyering  <meyering@lucent.com>
80450
80451         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
80452         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
80453         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
80454         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
80455         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
80456         whenever the right hand side need not be expanded by the shell.
80457
80458 2001-09-16  Paul Eggert  <eggert@twinsun.com>
80459
80460         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
80461         library.  It's not correct, as some older glibcs are buggy.
80462         fnmatch wasn't fixed until glibc 2.2.
80463
80464         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
80465         special shell magic here.
80466
80467 2001-09-16  Jim Meyering  <meyering@lucent.com>
80468
80469         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
80470         * m4/jm-macros.m4: Require it.
80471
80472 2001-09-16  Jim Meyering  <meyering@lucent.com>
80473
80474         * lib/mkdir.c: New file.
80475
80476 2001-09-15  Jim Meyering  <meyering@lucent.com>
80477
80478         * m4/jm-macros.m4: Check for help2man.
80479
80480 2001-09-11  Jim Meyering  <meyering@lucent.com>
80481
80482         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
80483         The body, by Paul Eggert, was moved here from configure.in.
80484         * m4/jm-macros.m4: Require UTILS_HOST_OS.
80485
80486 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80487
80488         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
80489         (jm_PREREQ): Use it.
80490
80491 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80492
80493         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
80494         Use ssize_t, not int, to store result of readlink.
80495         Check for ssize_t overflow as well as size_t overflow,
80496         as POSIX says the result of readlink is implementation-defined
80497         when ssize_t overflows.
80498         Remove unnecessary cast to char*.
80499         Use free+malloc instead of realloc, as the storage doesn't need
80500         to be preserved and it's clearer and can be more efficient that way.
80501         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
80502         * lib/xreadlink.h (xreadlink): Update prototype.
80503
80504 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80505
80506         * lib/xgetcwd.c: Revert some of the previous change; intead,
80507         fix the HAVE_GETCWD_NULL code to behave more like the
80508         !HAVE_GETCWD_NULL code used to.
80509
80510         Include "xalloc.h".
80511         (xgetcwd): Do not return NULL when memory is exhausted; instead,
80512         invoke xalloc_die.
80513
80514 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80515
80516         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
80517         sys/param.h, as pathmax.h includes them.
80518
80519 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80520
80521         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
80522         (jm_PREREQ_XGETCWD): New macro.
80523
80524         * m4/getcwd.m4: New file.
80525
80526 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80527
80528         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
80529         like the HAVE_GETCWD_NULL code.
80530         Include pathmax.h if not HAVE_GETCWD.
80531         Do not include xalloc.h.
80532         (INITIAL_BUFFER_SIZE): New symbol.
80533         Do not use xmalloc / xrealloc, since the caller is responsible for
80534         handling errors.  Preserve errno around `free' during failure.
80535         Do not overrun buffer when using getwd.
80536
80537 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80538
80539         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
80540         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
80541         getcwd (NULL, 0).
80542
80543 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80544
80545         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
80546         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
80547         spotted by Jim Meyering.
80548
80549 2001-09-03  Jim Meyering  <meyering@lucent.com>
80550
80551         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
80552         failure.
80553
80554 2001-09-02  Jim Meyering  <meyering@lucent.com>
80555
80556         * lib/error.c: Update from GNU libc.
80557
80558 2001-09-01  Jim Meyering  <meyering@lucent.com>
80559
80560         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
80561         Used by df.
80562
80563 2001-09-01  Jim Meyering  <meyering@lucent.com>
80564
80565         * lib/xreadlink.c: New file.
80566         * lib/xreadlink.h: New file.
80567         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
80568         xreadlink.h.
80569
80570         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
80571         doesn't conflict with sparc Solaris 7's definition in
80572         /usr/include/sys/int_types.h.
80573
80574         * lib/exclude.c: Use `""', not `<>' to #include non-system header
80575         files.
80576         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
80577         and strncasecmp as r-values.  Unixware didn't have declarations.
80578
80579 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80580
80581         * lib/xstrtol.h: Add copyright notice.
80582         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
80583         LONGINT_INVALID_SUFFIX_CHAR.
80584
80585 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80586
80587         * lib/xstrtol.c (strtoimax): New decl.
80588
80589 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80590
80591         * lib/xgetcwd.c: Don't include pathmax.h.
80592         Include stdlib.h and unistd.h if available.
80593         Include xalloc.h.
80594         (xmalloc, xstrdup, free): Remove decls.
80595         (xgetcwd): Don't assume sizes fit in unsigned.
80596         Check for overflow when computing sizes.
80597         Simplify reallocation code.
80598
80599 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80600
80601         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
80602         a directory's st_size can have an arbitrary value, so the old
80603         usage could waste an arbitrary amount of memory.  All uses
80604         changed.
80605         * lib/savedir.h: Update prototype.
80606
80607 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80608
80609         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
80610
80611         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
80612         old strtoimax.c.
80613
80614         Also, make the following further changes to make this file's
80615         configuration more similar to that of strtol.c:
80616         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
80617         (strtoumax, uintmax_t, strtoull, strtol): Remove.
80618         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
80619         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
80620         changed to signed values.
80621
80622         And make the following changes as well:
80623         Fix copyright notice, as 1999 was missing.
80624         (verify): New macro.
80625         (strtoimax): Check sizes at compile-time, not run-time.
80626         Prefer strtol to strtoll if both work.
80627         (main): Remove; it was not that useful and was a pain to maintain.
80628
80629         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
80630
80631 2001-08-31  Jim Meyering  <meyering@lucent.com>
80632
80633         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
80634         Use an initial, malloc'd, buffer of length 128 rather than
80635         a statically allocated one of length 1024.
80636
80637 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80638
80639         Simplify code, partly by assuming autoconf 2.52 semantics.
80640
80641         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
80642
80643         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
80644         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
80645         All uses removed.
80646         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
80647         Move AC_REQUIRE to next-to-top level, to avoid confusion.
80648         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
80649         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
80650         jm_AC_HEADER_INTTYPES_H.
80651         * m4/jm-macros.m4 (jm_MACROS): Likewise.
80652
80653         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
80654
80655         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
80656         Quote first arg of AC_DEFUN.
80657         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
80658         since they are needed to parse the include file even if we need
80659         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
80660         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
80661         but with opposite signedness.
80662
80663 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80664
80665         Merge 'exclude' changes from tar 1.13.22.
80666         This fixes one or two unlikely storage allocation overflow bugs,
80667         but doesn't change user-visible behavior otherwise.
80668
80669 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80670
80671         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
80672         (jm_PREREQ_EXCLUDE): New macro.
80673
80674 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80675
80676         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
80677         tm to be declared.
80678
80679 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80680
80681         * lib/hash.c: Remove '2001' from copyright notice.
80682
80683 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80684
80685         * lib/full-write.h: New file.
80686         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
80687         * lib/full-write.c: Correct credits, as cccp.c no longer
80688         exists and anyway it was so heavily changed from the old cccp
80689         code as to be unrecognizable.  Include full-write.h.
80690         (full_write): Return size_t, with short writes meaning failure.
80691         All callers changed.  This fixes a bug with large buffers
80692         on 64-bit hosts.
80693         * lib/utime.c: Include full-write.h.
80694
80695 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80696
80697         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
80698         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
80699         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
80700         Include if available.
80701         (<xalloc.h>): Include
80702         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
80703         (verify): New macro.  Use it to verify that EXCLUDE macros do not
80704         collide with FNM macros.
80705         (struct patopts): New struct.
80706         (struct exclude): Use it, as exclude patterns now come with options.
80707         (new_exclude): Support above changes.
80708         (new_exclude, add_exclude_file):
80709         Initial size must now be a power of two to simplify overflow checking.
80710         (free_exclude, fnmatch_no_wildcards): New function.
80711         (excluded_filename): No longer requires options arg, as the options
80712         are determined by add_exclude.  Now returns bool, not int.
80713         (excluded_filename, add_exclude):
80714         Add support for the fancy new exclusion options.
80715         (add_exclude, add_exclude_file): Now takes int options arg.
80716         Check for arithmetic overflow when computing sizes.
80717         (add_exclude_file): xrealloc might modify errno, so don't
80718         realloc until after errno might be used.
80719
80720         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
80721         New macros.
80722         (free_exclude): New decl.
80723         (add_exclude, add_exclude_file): Now takes int options arg.
80724         (excluded_filename): No longer requires options arg, as the options
80725         are determined by add_exclude.  Now returns bool, not int.
80726
80727 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80728
80729         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
80730
80731 2001-08-27  Jim Meyering  <meyering@lucent.com>
80732
80733         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
80734
80735         * lib/version-etc.c (N_): Remove definition.
80736         Revert most of last change.
80737         Instead, simply don't mark the `Copyright...' string for translation.
80738         Based on advice from Paul Eggert.
80739
80740         * lib/strtoxmax.c: Tweak comment.
80741
80742 2001-08-26  Jim Meyering  <meyering@lucent.com>
80743
80744         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
80745
80746         * m4/xstrtoimax.m4: New file.
80747         * m4/xstrtoumax.m4: Add comments explaining why we
80748         AC_REPLACE_FUNCS(strtol).
80749
80750 2001-08-26  Jim Meyering  <meyering@lucent.com>
80751
80752         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
80753         of copyright with `%s' so translators don't get an untranslated
80754         message in 2002.
80755         (COPYRIGHT_YEAR): Define.
80756         (version_etc): Use fprintf rather than fputs.
80757         Suggestion from Ulrich Drepper.
80758
80759         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
80760
80761         * lib/strtoll.c: New file, from GNU libc.
80762         * lib/xstrtoimax.c: New file.
80763
80764         * lib/xstrtol.h: Add xstrtoimax.
80765         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
80766         * lib/strtoimax.c: New file.  Likewise, but first define
80767         STRTOUXMAX_SIGNED.
80768
80769         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
80770         ...
80771         * lib/strtoxmax.c: ... then renamed to this.
80772
80773 2001-08-18  Paul Eggert  <eggert@twinsun.com>
80774
80775         * m4/inttypes.m4: Add AC_PREREQ(2.13).
80776         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
80777         (jm_AC_TYPE_INTMAX_T): New macro.
80778         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
80779
80780         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
80781
80782         * m4/longlong.m4: Renamed from ulonglong.m4.
80783         * m4/inttypes.m4: Renamed from inttypes_h.m4.
80784         * m4/uintmax_t.m4: Removed.
80785
80786 2001-08-13  Paul Eggert  <eggert@twinsun.com>
80787
80788         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
80789         Port to Solaris 8, where 'sed' requires a space after the 'r'
80790         command, and where sh dislikes "$/".  Clean up the spacing a bit.
80791         Redirect output to $tmp just once.
80792
80793 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
80794
80795         * lib/addext.c (<errno.h>): Include.
80796         (errno): Declare if not defined.
80797         (addext): Work correctly when pathconf returns -1 and leaves
80798         errno alone because there is no limit.  Also, work even if
80799         pathconf returns a value greater than SIZE_MAX.
80800
80801 2001-08-12  Jim Meyering  <meyering@lucent.com>
80802
80803         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
80804         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
80805         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
80806         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
80807         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
80808         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
80809         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
80810         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
80811         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
80812         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
80813         utime.m4, utimes.m4, xstrtoumax.m4:
80814         Quote the first argument in each use of AC_DEFUN.
80815
80816 2001-08-12  Jim Meyering  <meyering@lucent.com>
80817
80818         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
80819         Simply `return getcwd (NULL, 0);'.
80820         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
80821         Use 1300 as initial value for length, not PATH_MAX.
80822
80823         * lib/pathmax.h: Clean up cpp syntax.
80824
80825 2001-08-12  Jim Meyering  <meyering@lucent.com>
80826
80827         * lib/gettimeofday.c: New file.
80828         * lib/gtod.h: New file.
80829         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
80830
80831 2001-08-05  Jim Meyering  <meyering@lucent.com>
80832
80833         * m4/jm-macros.m4: Require autoconf-2.52.
80834
80835 2001-08-04  Jim Meyering  <meyering@lucent.com>
80836
80837         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
80838         stmt, to get in sync with glibc.
80839
80840 2001-08-03  Paul Eggert  <eggert@twinsun.com>
80841
80842         The following changes are from gettext 0.10.39 as maintained by
80843         Bruno Haible.
80844
80845         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
80846         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
80847         with inverted sense.  All uses changed.
80848
80849         * lib/mbswidth.c: Don't include <limits.h>.
80850         Include <stdlib.h> and <string.h> unconditionally.
80851         (iswcntrl, mbsinit, ISCNTRL): New macros.
80852         (mbsnwidth): Use K&R style function declarations.
80853         Don't bother checking for MB_LEN_MAX == 1, since the compiler
80854         can optimize it when MB_CUR_MAX == 1.
80855         The width of control characters is zero, not 1.
80856
80857 2001-08-03  Paul Eggert  <eggert@twinsun.com>
80858
80859         The following changes are from gettext 0.10.39 as maintained by
80860         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
80861
80862         * m4/codeset.m4: Upgrade to serial AM1.
80863         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
80864         all uses changed.  Quote first arg of AC_DEFUN.
80865         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
80866
80867         * m4/iconv.m4: Upgrade to serial AM2.
80868         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
80869         Add --with-libconv-prefix.
80870         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
80871         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
80872         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
80873         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
80874         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
80875
80876         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
80877         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
80878         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
80879         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
80880         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
80881         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
80882         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
80883         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
80884         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
80885
80886         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
80887         string.h any more.
80888
80889         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
80890         not the default value.
80891
80892         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
80893         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
80894         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
80895         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
80896         Also check for iswcntrl, used for wcwidth fallback.
80897         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
80898         to Autoconf 2.13.
80899
80900 2001-08-03  Jim Meyering  <meyering@lucent.com>
80901
80902         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
80903         as it was in the original.  Reported by Paul Eggert.
80904
80905 2001-07-16  Jim Meyering  <meyering@lucent.com>
80906
80907         * m4/gettimeofday.m4: New file.
80908         Prompted by a report from Bernhard Baehr.
80909
80910 2001-07-15  Jim Meyering  <meyering@lucent.com>
80911
80912         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
80913         stuff. Now it's in ../Makefile.cfg.
80914
80915 2001-07-15  Jim Meyering  <meyering@lucent.com>
80916
80917         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
80918         (BUILT_SOURCES): Add unlocked-io.h.
80919         (io_functions): Define.
80920         (unlocked-io.h): New rule.
80921         (DISTCLEANFILES): Add unlocked-io.h.
80922         (all-local): Depend on unlocked-io.h, to ensure it is created.
80923
80924         * lib/unlocked-io.hin: New file
80925
80926         * lib/regex.c: Update from glibc.
80927
80928 2001-07-05  Jim Meyering  <meyering@lucent.com>
80929
80930         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
80931         recommendation.
80932         (libfetish_a_SOURCES): Put all .h files here instead.
80933         Remove a thus-exposed (better checks in automake) duplicate and
80934         two unnecessary .h files.
80935
80936 2001-07-04  Jim Meyering  <meyering@lucent.com>
80937
80938         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
80939         that generates jm-glibc-io.m4 so that it doesn't trigger any make
80940         distcheck failure.
80941
80942 2001-07-02  Jim Meyering  <meyering@lucent.com>
80943
80944         The following changes were prompted by suggestions from Bruno Haible.
80945
80946         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
80947         is now generated.
80948         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
80949         definition of EXTRA_DIST.
80950         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
80951         ensure that the generated file is created/updated whenever the list
80952         of $(unlocked_functions) is changed.
80953         (jm-glibc-io.m4): New rule.
80954         (unlocked-io.h): New rule -- currently unused.
80955
80956 2001-06-24  Jim Meyering  <meyering@lucent.com>
80957
80958         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
80959         unmatched right bracket, rather than kludging it with an extra,
80960         falsely-matching quote in a comment.  Patch by Akim Demaille.
80961
80962 2001-06-11  Jim Meyering  <meyering@lucent.com>
80963
80964         * lib/regex.c: Update from GNU libc.
80965
80966 2001-05-27  Jim Meyering  <meyering@lucent.com>
80967
80968         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
80969         Check for ut_type in struct utmp.
80970
80971 2001-05-27  Jim Meyering  <meyering@lucent.com>
80972
80973         * lib/readutmp.h (UT_TYPE): Define.
80974
80975 2001-05-24  Jim Meyering  <meyering@lucent.com>
80976
80977         * lib/argmatch.c: Include "quote.h".
80978         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
80979         quote function.  Reported by Göran Uddeborg.
80980
80981 2001-05-22  Jim Meyering  <meyering@lucent.com>
80982
80983         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
80984         now that we use the package-supplied version unconditionally.
80985         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
80986
80987 2001-05-21  Jim Meyering  <meyering@lucent.com>
80988
80989         * m4/regex.m4: Change a couple backticks to single quotes to avoid
80990         shell syntax errors.
80991
80992 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
80993
80994         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
80995
80996 2001-05-20  Paul Eggert  <eggert@twinsun.com>
80997
80998         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
80999         Don't bother to check library strftime, since
81000         we'll be using our own my_strftime function anyway.
81001         Define my_strftime instead of strftime.
81002
81003 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
81004
81005         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
81006         which is not yet declared.
81007
81008 2001-05-15  Jim Meyering  <meyering@lucent.com>
81009
81010         * m4/regex.m4: Use proper quoting so brackets appear in the test
81011         program.
81012         Reported by, and with help from, Bruno Haible.
81013
81014 2001-05-13  Jim Meyering  <meyering@lucent.com>
81015
81016         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
81017         undefined.
81018
81019 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81020
81021         dirname code cleanup.  base_name now behaves more compatibly
81022         with POSIX basename when given file names that have trailing
81023         slashes, and similarly for dir_name.  Add new primitives
81024         base_len and dir_len.  Put the directory-name-related decls
81025         into dirname.h.
81026
81027         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
81028         * lib/backupfile.c (base_name): Likewise.
81029         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
81030         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
81031         * lib/makepath.c (strip_trailing_slashes): Likewise.
81032         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
81033         ISSLASH): Likewise.
81034         * lib/rename.c (strip_trailing_slashes): Likewise.
81035         * lib/same.c (base_name): Likewise.
81036         * lib/stripslash.c (ISSLASH): Likewise.
81037
81038         * lib/addext.c: Include <dirname.h> after size_t is defined.
81039         * lib/backupfile.c: Likewise.
81040
81041         * lib/addext.c (addext): Use base_len to trim redundant
81042         trailing slashes instead of doing it ourselves.
81043         But do not trim the last slash if it is not redundant.
81044
81045         * lib/backupfile.c (find_backup_file_name,
81046         max_backup_version): Use base_len instead of rolling it ourselves.
81047         Handle the case of "" and (on DOS) "C:" correctly.
81048
81049         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
81050         needed. Include <string.h>, <dirname.h>.
81051         (base_name): Allow file names ending in slashes, other than names
81052         that are all slashes.  In this case, return the basename followed
81053         by the slashes.  This is more general, and can be used in places
81054         where the original base_name purposely had an assertion failure.
81055         (base_len): New function.
81056
81057         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
81058         Do not include <assert.h>; no longer needed.
81059         Include xalloc.h.
81060         (memrchr): Remove decl.
81061         (dir_name_r): Remove.
81062         (dir_len): Renamed from dirlen.  All callers changed.
81063         Rewrite in terms of base_name, for simplicity and consistency.
81064         (dir_name): Never return NULL.  All callers changed.
81065         Do not include <stdlib.h> in test program; no longer needed.
81066         return 0; is fine for test program.
81067
81068         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
81069         New macros.
81070         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
81071
81072         * lib/path-concat.c (path_concat): Use base_len to compute
81073         base length, not strlen; this means we cannot rely on memcpy
81074         to null-terminate.
81075
81076         * lib/same.c (STREQ): Remove.
81077         (same_name): Handle the case where the basename ends in trailing '/'.
81078
81079         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
81080         a slash was stripped.  Do not strip the last slash after a
81081         file system prefix.
81082
81083 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81084
81085         * lib/Makefile.am (libfetish_a_SOURCES):
81086         Add strftime.c, since we now compile it on all hosts.
81087
81088         * lib/strftime.c (my_strftime):
81089         Define to nstrftime if emacs, but only if my_strftime is not defined.
81090         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
81091         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
81092         Add one more extra argument: a nanoseconds value.
81093         All uses changed.
81094         (ns): New macro.
81095         (my_strftime function): Add %N format.
81096         (emacs_strftimeu): Renamed from emacs_strftime,
81097         with extra ut argument.
81098
81099 2001-05-09  Paul Eggert  <eggert@twinsun.com>
81100
81101         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
81102
81103 2001-04-21  Jim Meyering  <meyering@lucent.com>
81104
81105         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
81106         doesn't interfere.
81107
81108 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81109
81110         * m4/ftruncate.m4: Check for chsize.
81111         Link with ftruncate.o unconditionally if ftruncate is missing.
81112         This was required when cross-compiling to i586-mingw32msvc.
81113
81114 2001-04-08  Jim Meyering  <meyering@lucent.com>
81115
81116         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
81117         recomputed; that's necessary when the offset spans a DST transition.
81118         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
81119
81120 2001-04-02  Jim Meyering  <meyering@lucent.com>
81121
81122         * lib/regex.h, regex.c: Update from GNU libc.
81123
81124 2001-03-24  Jim Meyering  <meyering@lucent.com>
81125
81126         * m4/jm-macros.m4: Require autoconf-2.49d.
81127
81128 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
81129
81130         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
81131
81132 2001-03-19  Paul Eggert  <eggert@twinsun.com>
81133
81134         * lib/version-etc.c (version_etc_copyright): Update to 2001.
81135
81136 2001-03-17  Jim Meyering  <meyering@lucent.com>
81137
81138         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
81139         now that the version in autoconf is equivalent.
81140         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
81141
81142         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
81143         Suggestion from Akim Demaille.
81144
81145         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
81146         (jm_PREREQ_TEMPNAME): New function.
81147
81148 2001-03-16  Paul Eggert  <eggert@twinsun.com>
81149
81150         * lib/tempname.c (uint64_t): Define to uintmax_t if
81151         not defined, and if UINT64_MAX is not defined.
81152         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
81153         Reported by John David Anglin.
81154
81155 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
81156
81157         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
81158         resolve alias if codeset is empty.
81159         * lib/config.charset (BeOS): Use wildcard syntax.
81160
81161 2001-03-13  Jim Meyering  <meyering@lucent.com>
81162
81163         * lib/path-concat.c (path_concat)
81164         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
81165         concatenating e.g., `C:' and `foo'.
81166         From Bruno Haible.
81167
81168 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81169
81170         * lib/localcharset.c (locale_charset): Don't use
81171         setlocale(LC_CTYPE,NULL). Don't return NULL.
81172         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
81173
81174 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81175
81176         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
81177         support for DOS/DJGPP.
81178
81179 2001-03-01  Paul Eggert  <eggert@twinsun.com>
81180
81181         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
81182         lacks mkstemp.  Compile our own tempname.c if we compile our own
81183         mkstemp.c, as mkstemp relies on tempname.
81184
81185 2001-03-01  Jim Meyering  <meyering@lucent.com>
81186
81187         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
81188         AH_VERBATIM really does output its argument verbatim.
81189
81190 2001-02-28  Paul Eggert  <eggert@twinsun.com>
81191
81192         * lib/Makefile.am (libfetish_a_SOURCES):
81193         Add dup-safer.c, fopen-safer.c.
81194         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
81195
81196         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
81197         * lib/unistd-safer.h: New files.
81198
81199 2001-02-25  Paul Eggert  <eggert@twinsun.com>
81200
81201         The mkstemp replacement is taken from glibc 2.2.2, with some
81202         portability fixes for use outside glibc, as follows:
81203
81204         * lib/tempname.c (struct_stat64): New macro.
81205         (direxists, __gen_tempname): Use it.
81206         This avoids a portability problem with Solaris 8.
81207
81208         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
81209         (<stddef.h>, <stdint.h>, <string.h>):
81210         Include only if STDC_HEADERS || _LIBC.
81211         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
81212         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
81213         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
81214         (__set_errno): Define this macro if <errno.h> doesn't.
81215         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
81216         Define these macros if <stdio.h> doesn't.
81217         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
81218         Define these macros if <sys/stat.h>
81219         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
81220         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
81221         __xstat64): Define if not _LIBC.
81222         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
81223         (__gen_tempname): Invoke gettimeofday only if
81224         HAVE_GETTIMEOFDAY || _LIBC;
81225         otherwise, fall back on plain "time".
81226         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
81227
81228         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
81229
81230         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
81231
81232 2001-02-18  Paul Eggert  <eggert@twinsun.com>
81233
81234         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
81235
81236 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81237
81238         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
81239         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
81240         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
81241         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81242
81243 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81244
81245         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
81246         Remove workaround macros for hosts that have mbrtowc but not
81247         mbstate_t, as we now insist on proper declarations for both
81248         before using mbrtowc.
81249
81250 2001-02-17  Jim Meyering  <meyering@lucent.com>
81251
81252         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
81253         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
81254         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
81255         UnixWare 7.1.1.
81256
81257         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
81258         rather than AC_CACHE_VAL.
81259
81260 2001-02-17  Jim Meyering  <meyering@lucent.com>
81261
81262         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
81263         around included file name.
81264
81265         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
81266
81267         * lib/strftime.c: Update from GNU libc (the only changes were to
81268         comments).
81269
81270 2001-02-17  Jim Meyering  <meyering@lucent.com>
81271
81272         * lib/regex.c: Update from libc.
81273
81274 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
81275
81276         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
81277         clash.
81278
81279 2001-02-16  Paul Eggert  <eggert@twinsun.com>
81280
81281         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
81282         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
81283         Reported by Mark Hounschell via Paul Eggert.
81284
81285 2001-02-07  Jim Meyering  <meyering@lucent.com>
81286
81287         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
81288
81289 2001-02-05  Jim Meyering  <meyering@lucent.com>
81290
81291         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
81292         it includes the patch required for `large file' support with at least
81293         HP-UX's 10.20 /bin/cc.
81294
81295 2001-02-03  Jim Meyering  <meyering@lucent.com>
81296
81297         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
81298         AS_IF, now that it works once again (mysteriously).
81299         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81300
81301 2001-01-30  Jim Meyering  <meyering@lucent.com>
81302
81303         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
81304         * m4/chown.m4: Rename conftestchown to conftest.chown.
81305         * m4/rename.m4: s/conftestdir/conftest.d1/ and
81306         s/conftestdir2/conftest.d2/.
81307         * m4/utimes.m4: s/conftestdata/conftest.data/
81308         Inspired by Pavel Roskin's change in autoconf.
81309
81310 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
81311
81312         * lib/config.charset: Update for FreeBSD 4.2.
81313
81314 2001-01-27  Jim Meyering  <meyering@lucent.com>
81315
81316         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
81317         a use of AS_IF.
81318         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81319
81320 2001-01-26  Jim Meyering  <meyering@lucent.com>
81321
81322         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
81323         quotearg.c includes it.
81324
81325 2001-01-26  Jim Meyering  <meyering@lucent.com>
81326
81327         * lib/quotearg.c: Include stddef.h.
81328         * lib/quote.c: Include stddef.h.
81329         Reported by Axel Kittenberger.
81330
81331         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
81332         line in double quotes so that it evokes a better diagnostic.
81333         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
81334         Reported by Axel Kittenberger.
81335
81336 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
81337
81338         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
81339         as if it was a `charset'.
81340
81341 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81342
81343         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
81344         has const.
81345
81346 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81347
81348         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
81349         to avoid a warning.  Add back 'const' to inptr.
81350
81351 2001-01-20  Jim Meyering  <meyering@lucent.com>
81352
81353         Be sure that headers are checked before used in code compiled
81354         for the type checks.
81355         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
81356         In place of that, invoke jm_CHECK_ALL_TYPES.
81357         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
81358         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
81359         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
81360         The check for ssize_t was mistakenly run before the test for unistd.h.
81361
81362         The configure-time check for stdbool.h was missing.
81363         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
81364         (jm_PREREQ_HASH): New function.
81365
81366 2001-01-17  Jim Meyering  <meyering@lucent.com>
81367
81368         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
81369         for autoconf-2.49c.
81370         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
81371
81372 2001-01-16  Jim Meyering  <meyering@lucent.com>
81373
81374         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
81375         From Bruno Haible.
81376
81377 2001-01-14  Jim Meyering  <meyering@lucent.com>
81378
81379         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
81380         foo and bar.  Create conftestdir/ in the script, not in the C code.
81381         Remove directories in the script, not in the C code.
81382         Remove conftestdir{,2} before trying to create the directory.
81383         Make the entire configure script fail if the mkdir fails.
81384
81385 2001-01-14  Jim Meyering  <meyering@lucent.com>
81386
81387         * lib/rename.c: New file.  From Volker Borchert.
81388         Include stdlib.h, string.h or strings.h, and xalloc.h.
81389         Use strip_trailing_slashes rather than open-coding it.
81390
81391 2001-01-03  Paul Eggert  <eggert@twinsun.com>
81392
81393         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
81394
81395 2001-01-03  Jim Meyering  <meyering@lucent.com>
81396
81397         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
81398         of local `inptr' to avoid warning with some system declarations of
81399         iconv.
81400
81401 2001-01-02  Volker Borchert  <bt@teknon.de>
81402
81403         * m4/rename.m4: New file.
81404         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
81405
81406 2001-01-01  Jim Meyering  <meyering@lucent.com>
81407
81408         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
81409         even on systems with utmpx.h.  It's necessary for the declaration of
81410         utmp's ut_user member.  Reported by Andreas Jaeger.
81411
81412         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
81413         available. They are required for the declarations of getgrgid and
81414         getpwuid resp.
81415         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
81416         Reported by Andreas Jaeger.
81417
81418 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
81419
81420         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
81421         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
81422         so `make install' also works in VPATH builds.
81423
81424 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
81425
81426         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
81427         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
81428         can be used in subdirectories.
81429
81430 2000-12-29  Paul Eggert  <eggert@twinsun.com>
81431
81432         * lib/modechange.c: Do not assume that mode_t uses the
81433         traditional octal encoding.  E.g. "chmod 1 FOO" should set
81434         the other-execute bit of FOO even if S_IXOTH != 1.
81435
81436         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
81437         WOTH, XOTH, ALLM): New macros.
81438         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
81439          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
81440         Use them.
81441         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
81442         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
81443         (mode_compile):
81444         No need to use uintmax_t; unsigned long is long enough.
81445         Don't bother to get suffix since we don't use it.
81446
81447 2000-12-26  Jim Meyering  <meyering@lucent.com>
81448
81449         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
81450         better with autoheader.
81451
81452 2000-12-24  Jim Meyering  <meyering@lucent.com>
81453
81454         * lib/hash.c (is_prime): Return explicit boolean values.
81455         (hash_get_first): Return NULL to appease Irix5.6's 89.
81456         Reported by Nelson Beebe.
81457
81458 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
81459
81460         * lib/localcharset.c (locale_charset): Add support for Win32.
81461
81462 2000-12-18  Paul Eggert  <eggert@twinsun.com>
81463
81464         * lib/physmem.h, lib/physmem.c: New files.
81465
81466         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
81467         (noinst_HEADERS): Add physmem.h.
81468
81469         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
81470         't' for compatibility with Solaris 8 sort.
81471
81472 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
81473
81474         * lib/config.charset: Add support for BeOS.
81475
81476 2000-12-17  Jim Meyering  <meyering@lucent.com>
81477
81478         * m4/dos.m4 (jm_AC_DOS): New file and macro.
81479         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
81480
81481 2000-12-16  Jim Meyering  <meyering@lucent.com>
81482
81483         This bug had a serious impact on chown: `chown N:M FILE' (for integer
81484         N and M) would have treated it like `chown N:N FILE'.
81485
81486         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
81487
81488 2000-12-16  Jim Meyering  <meyering@lucent.com>
81489
81490         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
81491         SHELLS_FILE to a file name that's useful on djgpp systems.
81492         Include stdlib.h.
81493         (ADDITIONAL_DEFAULT_SHELLS): Define.
81494         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
81495         Based mostly on a patch from Prashant TR.
81496
81497 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
81498
81499         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
81500         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
81501         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
81502
81503 2000-12-08  Andreas Schwab  <schwab@suse.de>
81504
81505         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
81506         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
81507
81508 2000-12-07  Jim Meyering  <meyering@lucent.com>
81509
81510         * lib/stripslash.c (ISSLASH): Define.
81511         (strip_trailing_slashes): Use ISSLASH rather than comparing against
81512         `/'.
81513         From Prashant TR.
81514
81515         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
81516         (dir_name_r): Declare this function as static.
81517         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
81518         manifest itself on a name containing a mix of slashes and
81519         backslashes.
81520         Make this function work with names starting with a DOS-style
81521         drive letter and colon prefix.
81522         (dir_name): Append `.' if necessary.
81523         Based mostly on patches from Prashant TR and Eli Zaretskii.
81524
81525         * lib/dirname.h (dir_name_r): Remove prototype.
81526
81527 2000-12-06  Paul Eggert  <eggert@twinsun.com>
81528
81529         * m4/off_t-format.m4: Remove this file.
81530         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
81531
81532 2000-12-06  Jim Meyering  <meyering@lucent.com>
81533
81534         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
81535         replacement strtoull, we may well need the replacement strtoul, too.
81536         Check for declarations of strtoul and strtoull.
81537         Check for strtol.  Mainly as a cue to cause automake to include
81538         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
81539         Check for limits.h -- strtol.c needs it.
81540
81541 2000-12-05  Jim Meyering  <meyering@lucent.com>
81542
81543         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
81544
81545 2000-12-04  Jim Meyering  <meyering@lucent.com>
81546
81547         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
81548         Also include memory.h, stdlib.h, unistd.h if appropriate.
81549         Reported by Andreas Jaeger (conflicting declaration of malloc).
81550
81551 2000-12-02  Jim Meyering  <meyering@lucent.com>
81552
81553         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
81554         * m4/jm-macros.m4 (jm_MACROS): require it.
81555
81556 2000-12-02  Jim Meyering  <meyering@lucent.com>
81557
81558         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
81559
81560 2000-12-01  Paul Eggert  <eggert@twinsun.com>
81561
81562         * lib/memrchr.c: Include <config.h> before any system include file.
81563
81564 2000-11-30  Jim Meyering  <meyering@lucent.com>
81565
81566         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
81567
81568 2000-11-30  Jim Meyering  <meyering@lucent.com>
81569
81570         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
81571
81572 2000-11-29  Paul Eggert  <eggert@twinsun.com>
81573
81574         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
81575
81576 2000-11-26  Jim Meyering  <meyering@lucent.com>
81577
81578         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
81579
81580 2000-11-22  Paul Eggert  <eggert@twinsun.com>
81581
81582         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
81583         size of (size_t) -1; it's not portable.
81584
81585 2000-11-17  Jim Meyering  <meyering@lucent.com>
81586
81587         * lib/strstr.c: Update from GNU libc.
81588
81589 2000-11-17  Akim Demaille  <akim@epita.fr>
81590
81591         * lib/obstack.h: Formatting changes.
81592         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
81593         prevent type checking.
81594         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
81595         cast the value to (void *): assigning a `foo *' to a `void *'
81596         variable is valid.
81597         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
81598
81599 2000-11-16  Jim Meyering  <meyering@lucent.com>
81600
81601         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
81602
81603 2000-11-11  Jim Meyering  <meyering@lucent.com>
81604
81605         * lib/error.c: Add a couple #includes, merging from GNU libc version.
81606
81607 2000-11-10  Jim Meyering  <meyering@lucent.com>
81608
81609         * lib/obstack.h: Update from GNU libc.
81610         * lib/obstack.c: Likewise.
81611
81612 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
81613
81614         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
81615
81616 2000-11-06  Paul Eggert  <eggert@twinsun.com>
81617
81618         * lib/getusershell.c (setusershell): Use rewind rather than
81619         fseek/fseeko, to avoid configuration hassles with fseeko.
81620         Don't bother opening SHELLS_FILE if shellstream is NULL;
81621         it's not necessary.
81622
81623 2000-11-05  Jim Meyering  <meyering@lucent.com>
81624
81625         * lib/makepath.h (make_dir): Declare.
81626         * lib/makepath.c (make_dir): Remove `static' attribute.
81627         Tweak a comment.
81628
81629 2000-11-04  Jim Meyering  <meyering@lucent.com>
81630
81631         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
81632
81633 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
81634
81635         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
81636         last one in a bucket, advance to the next bucket.
81637
81638 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
81639
81640         * lib/fnmatch.c: Do not comment out all the code if we are using
81641         the GNU C library, because in some cases we are replacing buggy
81642         code in the GNU C library itself.
81643
81644 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
81645
81646         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
81647         (regex_compile): Catch bogus \(\1\).
81648
81649 2000-10-30  Paul Eggert  <eggert@twinsun.com>
81650
81651         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
81652         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
81653         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
81654
81655 2000-10-30  Paul Eggert  <eggert@twinsun.com>
81656
81657         * lib/error.h, getline.h, modechange.h:
81658         Remove "2000" from Copyright line, as the file hasn't been
81659         changed this year other than in the copyright notice.
81660
81661         * lib/xalloc.h: Add "2000" to Copyright line, as this file
81662         was changed this year.
81663
81664 2000-10-29  Jim Meyering  <meyering@lucent.com>
81665
81666         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
81667         renaming.
81668         * m4/ls-mntd-fs.m4: Likewise
81669
81670 2000-10-29  Jim Meyering  <meyering@lucent.com>
81671
81672         * lib/xstat.in: Fix grammar in comment.
81673
81674 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
81675
81676         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
81677         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
81678         doesn't define __restrict_arr.
81679
81680 2000-10-28  Jim Meyering  <meyering@lucent.com>
81681
81682         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
81683         (jm_PREREQ_MEMCHR): New function.
81684
81685 2000-10-28  Jim Meyering  <meyering@lucent.com>
81686
81687         * lib/memchr.c: Update from libc.
81688         Adjust for portability:
81689         [HAVE_STDLIB_H]: Include stdlib.h.
81690         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
81691         Undef __memchr, too.
81692         [!weak_alias]: Define __memchr to memchr.
81693
81694         * lib/regex.c: Update from libc.
81695         * lib/regex.h: Likewise.
81696         * lib/getopt1.c: Likewise.
81697         * lib/memcmp.c: Likewise.
81698
81699         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
81700         Avoid using fseek, when possible -- it's broken by design.
81701         Patch by Ulrich Drepper.
81702
81703 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
81704
81705         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
81706         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
81707         Giving in to popular pressure to shut up the compiler with casts.
81708
81709 2000-10-26  Jim Meyering  <meyering@lucent.com>
81710
81711         * lib/strftime.c: Update from libc.
81712
81713 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
81714
81715         * regex.c: More `unsigned char' -> `re_char' changes.
81716         Also change several `int' into `re_wchar_t'.
81717         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
81718         (PUSH_FAILURE_POINTER): Don't cast any more.
81719         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
81720         We want GCC to complain, since this piece of code makes
81721         re_match non-reentrant, which *should* be fixed.
81722         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
81723         (EXTEND_BUFFER): Use RETALLOC.
81724         (SET_LIST_BIT): Don't cast.
81725         (re_wchar_t): New type.
81726         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
81727         that those two functions will always properly return.
81728         (IMMEDIATE_QUIT_CHECK): Cast to void.
81729         (analyse_first): Use recursion rather than an explicit stack.
81730         (re_compile_fastmap): Can't fail anymore.
81731         (re_search_2): Don't check re_compile_fastmap for failure.
81732         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
81733         Now also sets the new value (passed in a new argument).
81734         (re_match_2_internal): Use it.
81735         Also, use a new var `reg' of type size_t when looping through regs
81736         rather than reuse the inappropriate `mcnt'.
81737
81738 2000-10-25  Jim Meyering  <meyering@lucent.com>
81739
81740         * lib/obstack.c: Update from libc.
81741
81742 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
81743
81744         * regex.c (regex_compile): Change the way of handling a range from
81745         a char less than 256 to a char not less than 256.
81746
81747 2000-10-24  Andrew Innes  <andrewi@gnu.org>
81748
81749         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
81750         NT-Emacs only.
81751         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
81752         so that re_search functions only quit when callers expect them to.
81753
81754 2000-10-23  Jim Meyering  <meyering@lucent.com>
81755
81756         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
81757         wrong.  That set_locale call must not have any side effects.
81758         From Paul Eggert.
81759
81760 2000-10-22  Jim Meyering  <meyering@lucent.com>
81761
81762         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
81763         [CYCLIC]: Remove now-unused definition.
81764
81765         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
81766         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
81767         Suggestion from Ulrich Drepper.
81768
81769 2000-10-21  Jim Meyering  <meyering@lucent.com>
81770
81771         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
81772         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
81773         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
81774
81775 2000-10-21  Jim Meyering  <meyering@lucent.com>
81776
81777         * lib/dirname.c (memrchr): Declare if necessary.
81778         (dir_name): Remove the restriction that there be no
81779         trailing slashes.  Now, this code skips past them, effectively
81780         ignoring them.
81781         [TEST_DIRNAME] (main): New unit tests.
81782
81783         * lib/memrchr.c: New file from GNU libc.
81784         Undef __memrchr, too.
81785         [!weak_alias]: Define __memrchr to memrchr.
81786         Guard weak_alias use with `#ifdef weak_alias'.
81787
81788 2000-10-21  Jim Meyering  <meyering@lucent.com>
81789
81790         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
81791         (dir_name): Use dir_name_r.
81792         * lib/dirname.h (dir_name_r): Declare it.
81793
81794 2000-10-17  Jim Meyering  <meyering@lucent.com>
81795
81796         * lib/quote.h (PARAMS): Define and use.
81797         Reported by Akim Demaille.
81798
81799         * lib/getopt.c: Update from libc.
81800
81801 2000-10-16  Jim Meyering  <meyering@lucent.com>
81802
81803         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
81804         setlocale.
81805         From Jan Fedak.
81806
81807 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
81808
81809         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
81810
81811 2000-09-25  Jim Meyering  <meyering@lucent.com>
81812
81813         * lib/md5.h (rol): Define (from GnuPG).
81814
81815         * lib/sha.c: Give credit (GnuPG) where due.
81816         (M): Use rol rather than open-coding it.
81817         Add a FIXME comment.
81818
81819 2000-09-21  Jim Meyering  <meyering@lucent.com>
81820
81821         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
81822         Reported by Michael Stone.
81823
81824 2000-09-20  Jim Meyering  <meyering@lucent.com>
81825
81826         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
81827         (noinst_HEADERS): Add sha.h.
81828         Based on code from Scott G. Miller and from GnuPG.
81829
81830 2000-09-18  Jim Meyering  <meyering@lucent.com>
81831
81832         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
81833         LIBS. Otherwise, everyone ends up linking with -lelf for some
81834         configurations.
81835         Reported by Mike Stone.
81836
81837 2000-09-15  Jim Meyering  <meyering@lucent.com>
81838
81839         * lib/regex.c: Update from libc.
81840
81841 2000-09-10  Jim Meyering  <meyering@lucent.com>
81842
81843         * lib/getopt.c (_getopt_internal): Update from glibc.
81844
81845 2000-09-09  Jim Meyering  <meyering@lucent.com>
81846
81847         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
81848         think it should be used as a general replacement for isascii.
81849         * lib/fnmatch.c: Likewise.
81850         * lib/mbswidth.c: Likewise
81851         * lib/regex.c: Likewise.
81852
81853         Don't use atoi.
81854         * lib/userspec.c: Include sys/param.h and limits.h.
81855         Include xstrtol.h.
81856         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
81857         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
81858         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
81859         UID, GID.  Check range.
81860
81861 2000-09-06  Jim Meyering  <meyering@lucent.com>
81862
81863         * lib/getopt.c (_getopt_internal): Update from glibc.
81864
81865 2000-08-30  Jim Meyering  <meyering@lucent.com>
81866
81867         * lib/strftime.c: Merge in changes from GNU libc.
81868
81869 2000-08-26  Jim Meyering  <meyering@lucent.com>
81870
81871         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
81872         * m4/fpending.m4: New file.
81873
81874 2000-08-26  Jim Meyering  <meyering@lucent.com>
81875
81876         * lib/closeout.c: Include "__fpending.h".
81877         (close_stdout_status): Return right away if there's nothing to flush.
81878
81879         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
81880         * lib/__fpending.c: New file.
81881         * lib/__fpending.h: New file.
81882
81883 2000-08-20  Jim Meyering  <meyering@lucent.com>
81884
81885         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
81886         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
81887         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
81888
81889 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
81890
81891         Improve fileutils installation on systems where running
81892         programs (like install) can't be unlinked.
81893         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
81894         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
81895
81896 2000-08-07  Paul Eggert  <eggert@twinsun.com>
81897
81898         Standardize on "memory exhausted" instead of "Memory exhausted"
81899         or "virtual memory exhausted".
81900         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
81901         "virtual memory exhausted".
81902         * lib/same.c (same_name): Invoke xalloc_die instead of printing
81903         our own message.
81904         * lib/userspec.c (parse_user_spec): Likewise.
81905         * lib/bumpalloc.h: comment fix
81906         * lib/same.c, userspec.c: Include xalloc.h.
81907
81908         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
81909         not char *const and pointing to a constant array.
81910         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
81911         (xrealloc): Comment fix.
81912
81913         * lib/userspec.c (parse_user_spec):
81914         Don't translate a message until just before returning,
81915         to avoid unnecessary translation.
81916
81917 2000-08-07  Jim Meyering  <meyering@lucent.com>
81918
81919         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
81920         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
81921         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
81922         getgroups.c, gethostname.c, getopt.h, group-member.c,
81923         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
81924         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
81925         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
81926         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
81927         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
81928         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
81929         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
81930         yesno.c: Back out Copyright date changes for each file with no change
81931         this year.  This eases coordination with other programs using the same
81932         source code modules.  From Paul Eggert.
81933
81934 2000-08-06  Paul Eggert  <eggert@twinsun.com>
81935
81936         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
81937         not char, for compatibility with glibc 2.1.3 strftime.c.
81938
81939 2000-08-03  Greg McGary  <greg@mcgary.org>
81940
81941         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
81942         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
81943         (EXTEND_BUFFER): Use them.
81944
81945 2000-08-01  Jim Meyering  <meyering@lucent.com>
81946
81947         * lib/dirname.c (ISSLASH): Define.
81948         (BACKSLASH_IS_PATH_SEPARATOR): Define.
81949         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
81950         both `\' and `/' may be use as path separators.
81951         Based on a patch from Prashant TR.
81952
81953 2000-07-31  Paul Eggert  <eggert@twinsun.com>
81954
81955         * lib/quotearg.c (quotearg_n_options): Don't make the initial
81956         slot vector a constant, since it might get modified.
81957
81958 2000-07-31  Jim Meyering  <meyering@lucent.com>
81959
81960         * lib/xmalloc.c: Use `virtual memory exhausted', not
81961         `Memory exhausted'.
81962         * lib/obstack.c (print_and_abort): Likewise.
81963
81964 2000-07-30  Paul Eggert  <eggert@twinsun.com>
81965
81966         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
81967         buffer, so that the caller can always quote one small
81968         component of a "memory exhausted" message in slot 0.
81969         From a suggestion by Jim Meyering.
81970
81971 2000-07-30  Jim Meyering  <meyering@lucent.com>
81972
81973         * lib/makepath.c (make_path): Quote the other instance, too.
81974
81975         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
81976         (STATIC_BUF_SIZE): Define.
81977         (quotearg_n_options): Use only statically allocated storage when
81978         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
81979         than STATIC_BUF_SIZE.
81980
81981 2000-07-29  Jim Meyering  <meyering@lucent.com>
81982
81983         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
81984         * lib/dirname.c (dir_name): Likewise.
81985
81986         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
81987         `/'.
81988
81989         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
81990         (dir_name): Assert that there are no trailing slashes.
81991
81992 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
81993
81994         * lib/mbswidth.h (mbswidth): Add a flags argument.
81995         (mbswidth): New declaration.
81996         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
81997         * lib/mbswidth.c (mbswidth): Add a flags argument.
81998         (mbsnwidth): New function.
81999
82000 2000-07-24  Jim Meyering  <meyering@lucent.com>
82001
82002         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
82003
82004 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82005
82006         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
82007
82008 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82009
82010         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
82011         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
82012         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
82013         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
82014         invoke multibyte primitives.
82015
82016 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82017
82018         * lib/quotearg.c:
82019         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
82020         so that mbstate_t is always defined.
82021
82022         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
82023         be 1 in at least one GCC installation, and this configuration
82024         error is likely to be common.  Ignoring MB_LEN_MAX hurts
82025         performance on hosts that have mbrtowc but have only unibyte
82026         locales, but I assume these hosts are rare.
82027
82028 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82029
82030         * lib/mbswidth.c (_XOPEN_SOURCE):
82031         Don't define; this causes problems on Solaris 7.
82032         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
82033
82034 2000-07-23  Jim Meyering  <meyering@lucent.com>
82035
82036         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
82037         too: getgrgid, getpwuid, getuid.
82038
82039 2000-07-23  Jim Meyering  <meyering@lucent.com>
82040
82041         * lib/basename.c (base_name): Add an assertion.
82042
82043 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
82044
82045         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
82046         shadow its mbsinit function.
82047
82048 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82049
82050         * lib/mbswidth.h: New file.
82051         * lib/mbswidth.c: New file.
82052         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
82053         (noinst_HEADERS): Add mbswidth.h.
82054
82055 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82056
82057         * lib/config.charset: Add support for FreeBSD. Improve support for
82058         HP-UX and IRIX 6.
82059
82060 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
82061
82062         * m4/mbswidth.m4: New file.
82063         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
82064
82065 2000-07-15  Jim Meyering  <meyering@lucent.com>
82066
82067         * lib/makepath.c: Include quote.h.
82068         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
82069         corresponding argument in a `quote (...)' call.
82070         Give better diagnostics.
82071
82072         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
82073         (noinst_HEADERS): Add quote.h.
82074
82075         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
82076         from tar's src/misc.c.
82077         * lib/quote.h: New file.  Prototypes for same.
82078
82079 2000-07-14  Paul Eggert  <eggert@twinsun.com>
82080
82081         From a suggestion by Bruno Haible.
82082         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
82083         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
82084         to decide whether to define the BeOS workaround macro;
82085         this adjusts to the change to AC_MBSTATE_T.
82086
82087 2000-07-14  Jim Meyering  <meyering@lucent.com>
82088
82089         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
82090         jm_AC_TYPE_UINTMAX_T.
82091
82092 2000-07-13  Paul Eggert  <eggert@twinsun.com>
82093
82094         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
82095
82096         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
82097         quotearg_buffer_restyled): Add support for
82098         clocale_quoting_style.  Undo previous change to
82099         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
82100         and "{RIGHT QUOTATION MARK}" msgids.
82101
82102 2000-07-10  Paul Eggert  <eggert@twinsun.com>
82103
82104         From a suggestion by Bruno Haible.
82105         * m4/mbstate_t.m4 (AC_MBSTATE_T):
82106         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
82107         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
82108         and mbstate_t, to a single-part test that simply defines mbstate_t.
82109         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
82110         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
82111
82112 2000-07-10  Jim Meyering  <meyering@lucent.com>
82113
82114         * m4/strerror_r.m4: Mirror the correction made in autoconf.
82115
82116         * m4/gnu-source.m4: Output to confdefs.h directly.
82117         Suggestion from Akim Demaille.
82118
82119 2000-07-09  Paul Eggert  <eggert@twinsun.com>
82120
82121         The old behavior of quoting `like this' doesn't look good with
82122         newer, ISO-style fonts.  See:
82123         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
82124
82125         Instead, quote "like this" by default.  Let the translator
82126         tailor the locale-specific quoting behavior by providing
82127         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
82128
82129         * lib/quotearg.c (N_): New macro.
82130         (gettext_default): New function.
82131         (quotearg_buffer_restyled): Use
82132         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
82133         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
82134
82135 2000-07-09  Jim Meyering  <meyering@lucent.com>
82136
82137         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
82138         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
82139
82140         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
82141         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
82142
82143 2000-07-09  Jim Meyering  <meyering@lucent.com>
82144
82145         * lib/Most files: Update copyright dates to include 2000.
82146
82147 2000-07-08  Jim Meyering  <meyering@lucent.com>
82148
82149         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
82150         if not defined.
82151         (xgethostname): Remove now-unnecessary #ifdef.
82152         Move declaration of `err' into loop where it's used.
82153
82154 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82155         and Bruno Haible  <haible@clisp.cons.org>
82156
82157         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
82158         only if the test for an object-type mbstate_t fails.  This
82159         prevents us from mistakenly reporting that mbstate_t is a
82160         system object type after we "#define mbstate_t int" to work
82161         around its lack.
82162
82163 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82164         and Bruno Haible  <haible@clisp.cons.org>
82165
82166         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
82167
82168 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82169
82170         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
82171         to strerror_r.
82172         Include <ctype.h> for use of isalpha.
82173
82174 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82175
82176         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
82177         by allocating a larger buffer. Test the gethostname return value for
82178         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
82179         returns an error and ENAMETOOLONG isn't defined.
82180
82181 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82182
82183         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
82184         dimension.
82185
82186 2000-07-04  Jim Meyering  <meyering@lucent.com>
82187
82188         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
82189         of the deprecated AC_CHECKING.
82190
82191 2000-07-04  Jim Meyering  <meyering@lucent.com>
82192
82193         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
82194         Reported by Bruno Haible.
82195
82196 2000-07-04  Jim Meyering  <meyering@lucent.com>
82197
82198         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
82199         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
82200         lacks mbrtowc.
82201
82202 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82203
82204         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
82205         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
82206
82207 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82208         and Bruno Haible  <haible@clisp.cons.org>
82209
82210         * lib/quotearg.c (mbrtowc):
82211         Assign to *pwc, and return 1 only if result is nonzero.
82212         (iswprint): Use ISPRINT when substituting our own mbrtowc.
82213
82214 2000-07-03  Jim Meyering  <meyering@lucent.com>
82215
82216         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
82217
82218 2000-07-03  Jim Meyering  <meyering@lucent.com>
82219
82220         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
82221         This is necessary to get a definition of e.g., UTMP_FILE on
82222         HP-UX 10.20.
82223         From Bob Proulx.
82224
82225 2000-07-02  Jim Meyering  <meyering@lucent.com>
82226
82227         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
82228
82229         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
82230         AC_LIBOBJ(function_name).
82231         * m4/chown.m4: Likewise.
82232         * m4/fnmatch.m4: Likewise.
82233         * m4/ftruncate.m4: Likewise.
82234         * m4/getgroups.m4: Likewise.
82235         * m4/getline.m4: Likewise.
82236         * m4/group-member.m4: Likewise.
82237         * m4/jm-macros.m4: Likewise.
82238         * m4/lstat.m4: Likewise.
82239         * m4/malloc.m4: Likewise.
82240         * m4/memcmp.m4: Likewise.
82241         * m4/nanosleep.m4: Likewise.
82242         * m4/putenv.m4: Likewise.
82243         * m4/realloc.m4: Likewise.
82244         * m4/regex.m4: Likewise.
82245         * m4/stat.m4: Likewise.
82246         * m4/strftime.m4: Likewise.
82247
82248 2000-07-02  Jim Meyering  <meyering@lucent.com>
82249
82250         * lib/quotearg.c (mbstate_t): Don't define here.
82251
82252 2000-07-02  Jim Meyering  <meyering@lucent.com>
82253
82254         * lib/nanosleep.c (SIGCONT): Define if not already defined.
82255
82256 2000-07-01  Jim Meyering  <meyering@lucent.com>
82257
82258         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
82259
82260 2000-07-01  Jim Meyering  <meyering@lucent.com>
82261
82262         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
82263         problem.
82264
82265 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82266
82267         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
82268         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
82269
82270 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82271
82272         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
82273         per change in ../m4/ls-mntd-fs.m4.
82274         (read_filesystem_list): Ignore symbolic links.
82275
82276 2000-06-29  Jim Meyering  <meyering@lucent.com>
82277
82278         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
82279         for declaration of strcmp.
82280
82281         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
82282
82283         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
82284         Avoid warning by casting result to `char *' to remove `const'.
82285
82286 2000-06-28  Jim Meyering  <meyering@lucent.com>
82287
82288         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
82289         included by quotearg.c, for which we perform this test.  From
82290         Bruno Haible.
82291
82292 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82293
82294         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
82295         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
82296         <utmpx.h> exists, put readutmp.o into LIBOBJS.
82297
82298 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82299
82300         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
82301
82302 2000-06-26  Paul Eggert  <eggert@twinsun.com>
82303
82304         savedir now sets errno on failure and invokes xmalloc to get memory.
82305         Fix a couple of other minor bugs while we're at it.
82306
82307         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
82308         (NAMLEN): Remove macro.
82309         (malloc, realloc): Remove decls.
82310         (stpcpy): Likewise.
82311         ("xalloc.h"): Include.
82312         (NAME_SIZE_DEFAULT): New macro.
82313         (savedir): Use xmalloc / xrealloc to allocate memory.
82314         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
82315         Skip "" directory entries.
82316         Use strlen to calculate directory entry length, since the old method
82317         is rarely used these days and isn't worth supporting.
82318         Don't use a pointer after freeing it.
82319         Check for integer overflow when calculating allocation size.
82320         Use memcpy to copy entries, instead of stpcpy.
82321         Set errno properly when returning NULL.
82322         Check for readdir error.
82323
82324 2000-06-26  Jim Meyering  <meyering@lucent.com>
82325
82326         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
82327
82328 2000-06-25  Jim Meyering  <meyering@lucent.com>
82329
82330         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
82331         Linux header bug when _XOPEN_SOURCE is defined to 500.
82332
82333 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82334
82335         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
82336         deficiency.
82337
82338 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82339
82340         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
82341         Include xalloc.h.
82342         Don't include <stdlib.h>.  Don't declare malloc, realloc.
82343
82344 2000-06-24  Jim Meyering  <meyering@lucent.com>
82345
82346         * m4/strerror_r.m4: Revive this file -- to try out an experimental
82347         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
82348         for which strerror does return char*, but which lacks a conveniently
82349         accessible declaration of the function.  If the compile-test says
82350         strerror_r doesn't work, then resort to a `run'-test that works on
82351         BeOS and segfaults on DEC Unix.
82352
82353 2000-06-24  Jim Meyering  <meyering@lucent.com>
82354
82355         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
82356
82357 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82358
82359         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
82360         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
82361
82362 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82363
82364         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
82365         (mbrtowc, mbstate_t): Define substitutes if
82366         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
82367         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
82368         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
82369
82370 2000-06-23  Jim Meyering  <meyering@lucent.com>
82371
82372         * m4/afs.m4: Add missing AC_MSG_RESULT.
82373         Reported by Bruno Haible.
82374
82375         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
82376         Suggestion from Bruno Haible.
82377
82378 2000-06-23  Jim Meyering  <meyering@lucent.com>
82379
82380         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
82381
82382 2000-06-21  Jim Meyering  <meyering@lucent.com>
82383
82384         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
82385
82386 2000-06-21  Jim Meyering  <meyering@lucent.com>
82387
82388         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
82389         (noinst_HEADERS): Add getstr.h.
82390
82391         * lib/getline.c (getstr): Move into a separate file.
82392         * lib/getstr.c (getstr): New file, extracted from getline.c, with
82393         the following changes: new parameter, delim2; both delim[12]
82394         parameters have type `int', not `char'.  The latter would lose
82395         with 8-bit delimiters.
82396         * lib/getstr.h: New file.
82397
82398 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82399
82400         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
82401         than 1024, return a memory chunk of least possible size, instead
82402         of size PATH_MAX + 2. In the loop, increment the size proportionally.
82403         Use free/xmalloc instead of xrealloc to avoid copying for very long
82404         paths.
82405
82406 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82407
82408         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
82409         the empty string.
82410
82411 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82412
82413         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
82414         address, not strdup.  Include <stdlib.h> and don't declare free().
82415
82416 2000-06-19  Jim Meyering  <meyering@lucent.com>
82417
82418         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
82419
82420 2000-06-18  Jim Meyering  <meyering@lucent.com>
82421
82422         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
82423
82424         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
82425         `checking whether...' message to be consistent with that of the
82426         lstat test.
82427
82428 2000-06-18  Jim Meyering  <meyering@lucent.com>
82429
82430         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
82431         Besides, these days every porting target provides a mkdir function.
82432
82433         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
82434         needed. (this snippet comes from src/system.h).
82435
82436 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
82437
82438         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
82439
82440 2000-06-15  Paul Eggert  <eggert@twinsun.com>
82441
82442         * lib/human.c (adjust_value): New function.
82443         (human_readable_inexact): Apply rounding style even when
82444         printing approximate values.
82445
82446 2000-06-14  Paul Eggert  <eggert@twinsun.com>
82447
82448         * lib/human.c (human_readable_inexact): Allow an input block
82449         size that is not a multiple of the output block size, and vice versa.
82450         Reported by Piergiorgio Sartor.
82451
82452 2000-06-14  Paul Eggert  <eggert@twinsun.com>
82453
82454         * lib/getdate.y (get_date): Apply relative times after time
82455         zone indicator, not before.  Reported by Todd A. Jacobs.
82456
82457 2000-06-13  Jim Meyering  <meyering@lucent.com>
82458
82459         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
82460
82461         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
82462
82463 2000-06-12  Paul Eggert  <eggert@twinsun.com>
82464
82465         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
82466
82467 2000-06-12  Jim Meyering  <meyering@lucent.com>
82468
82469         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
82470         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
82471         optional argument.
82472         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
82473         the optional argument, `lib'.
82474
82475 2000-06-08  Jim Meyering  <meyering@lucent.com>
82476
82477         * m4/largefile.m4: Remove file (now that it's part of autoconf).
82478
82479 2000-06-04  Paul Eggert  <eggert@twinsun.com>
82480
82481         Rewrite largefile configuration so that we don't need to run
82482         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
82483         AC_CANONICAL_HOST in configure.in -- jmm]
82484
82485         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
82486         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
82487         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
82488         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
82489         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
82490         All uses changed.
82491         Instead of inspecting the output of getconf, try to compile the
82492         test program without and with the macro definition.
82493         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
82494         for getconf.  Instead, check for the needed flags by compiling
82495         test programs.
82496
82497 2000-06-04  Paul Eggert  <eggert@twinsun.com>
82498
82499         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
82500
82501 2000-06-04  Jim Meyering  <meyering@lucent.com>
82502
82503         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
82504         SunOS 4.1.4 for which gid_t is an unsigned type.
82505
82506 2000-06-03  Jim Meyering  <meyering@lucent.com>
82507
82508         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
82509         now that autoconf requires that.
82510
82511         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
82512         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
82513         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
82514
82515 2000-06-03  Jim Meyering  <meyering@lucent.com>
82516
82517         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
82518
82519 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
82520
82521         * m4/glibc21.m4: New file.
82522         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
82523
82524 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
82525
82526         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
82527         newer, don't install charset.alias.
82528         * lib/config.charset: Change the Linux/glibc rules so they become empty
82529         on glibc-2.1 or newer.
82530
82531 2000-06-02  Jim Meyering  <meyering@lucent.com>
82532
82533         * lib/mountlist.c: Back out last change.  Instead, do this...
82534         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
82535         me_dummy member using the same `ignore'-testing code.
82536         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
82537         fs_type strings.
82538         From Mark D. Roth.
82539
82540 2000-05-29  Jim Meyering  <meyering@lucent.com>
82541
82542         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
82543         mounts with the `ignore' attribute.  Based on a patch from
82544         Mark D. Roth.
82545
82546 2000-05-28  Jim Meyering  <meyering@lucent.com>
82547
82548         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
82549         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82550         * m4/stat.m4: Likewise.
82551         * m4/lstat.m4: Likewise.
82552         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
82553
82554         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
82555         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
82556
82557 2000-05-26  Jim Meyering  <meyering@lucent.com>
82558
82559         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
82560
82561 2000-05-24  Jim Meyering  <meyering@lucent.com>
82562
82563         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
82564         autoconf requires that.
82565         * m4/lib-check.m4: Likewise.
82566         * m4/jm-macros.m4: Likewise.
82567         * m4/strftime.m4: Likewise.
82568
82569         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
82570         AC_CHECK_DECLS, now that autoconf requires that.
82571
82572 2000-05-22  Jim Meyering  <meyering@lucent.com>
82573
82574         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82575         * m4/lstat.m4: Likewise.
82576
82577 2000-05-22  Jim Meyering  <meyering@lucent.com>
82578
82579         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
82580
82581 2000-05-20  Jim Meyering  <meyering@lucent.com>
82582
82583         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
82584         (jm_PREREQ): Use it.
82585
82586 2000-05-18  Jim Meyering  <meyering@lucent.com>
82587
82588         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
82589         back, too, since it may have been modified by allocate_entry.
82590         (hash_delete): Rewrite to use neither the assignment operator
82591         nor the comma operator in an if-expression.
82592
82593 2000-05-15  Paul Eggert  <eggert@twinsun.com>
82594
82595         * lib/closeout.c:
82596         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
82597         Remove; no longer needed.
82598         "quotearg.h": Add include.
82599         (file_name): Do not bother to explicitly initialize to NULL; it's less
82600         efficient on some hosts.
82601         (close_stdout_status): Remove test as to whether stdout was already
82602         closed; it breaks for the case "echo x | sort >&-".
82603         Quote file name colons.
82604         Do not assume that _("write error") lacks format strings.
82605
82606 2000-05-15  Jim Meyering  <meyering@lucent.com>
82607
82608         * lib/version-etc.c (version_etc_copyright): Update the copyright
82609         string used in all --version output.
82610
82611 2000-05-14  Jim Meyering  <meyering@lucent.com>
82612
82613         * lib/closeout.c (close_stdout_set_file_name): New function.
82614         (close_stdout_status): Use new file-scoped global.
82615         Return right away if fstat says the stdout file descriptor is invalid.
82616         * lib/closeout.h (close_stdout_set_file_name): Declare.
82617
82618 2000-05-10  Jim Meyering  <meyering@lucent.com>
82619
82620         * lib/closeout.c [default_exit_status]: New file-scoped variable.
82621         (close_stdout_set_status): New function.
82622         * lib/closeout.h (close_stdout_set_status): Declare.
82623
82624 2000-05-09  Jim Meyering  <meyering@lucent.com>
82625
82626         * m4/gettext.m4: Rename this...
82627         * m4/libintl.m4: ...to this.
82628
82629 2000-05-08  Jim Meyering  <meyering@lucent.com>
82630
82631         * lib/long-options.c: Don't include closeout.h.
82632         (parse_long_options): Don't call close_stdout for --version.
82633
82634 2000-05-06  Paul Eggert  <eggert@twinsun.com>
82635
82636         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
82637         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
82638         2.1.3 bug.  This avoids a clash when files like regex.c define
82639         _GNU_SOURCE.
82640
82641 2000-05-06  Jim Meyering  <meyering@lucent.com>
82642
82643         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
82644         (AC_REPLACE_FUNCS): Add strnlen.
82645
82646         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
82647         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
82648
82649         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
82650         AC_SEARCH_LIBS call for nanosleep.
82651         (LIB_NANOSLEEP): Set and AC_SUBST.
82652
82653 2000-05-06  Jim Meyering  <meyering@lucent.com>
82654
82655         * lib/strnlen.c: Undefine __strnlen and strnlen.
82656         [!weak_alias]: Define __strnlen to strnlen.
82657
82658         * lib/atexit.c: New file, from libiberty.
82659
82660 2000-05-06  Jim Meyering  <meyering@lucent.com>
82661
82662         * lib/closeout.c (close_stdout_status): Also check for errors on the
82663         stderr stream.
82664
82665 2000-05-05  Jim Meyering  <meyering@lucent.com>
82666
82667         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
82668         AC_SEARCH_LIBS call for clock_gettime.
82669         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
82670
82671         * m4/search-libs.m4: Update from autoconf.
82672
82673         su doesn't work on Solaris 2.6.
82674         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
82675         <shadow.h>.  Reported by Dragos Harabor.
82676
82677 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
82678
82679         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
82680         memcpy instead of xmalloc, xrealloc, path_concat.
82681         (locale_charset): Treat empty environment variables as absent.
82682         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
82683
82684 2000-05-04  Jim Meyering  <meyering@lucent.com>
82685
82686         * lib/getopt.c: Update from glibc.
82687         * lib/obstack.c: Likewise.
82688         * lib/obstack.h: Likewise.
82689         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
82690         file
82691
82692         * lib/regex.h: Likewise.
82693         * lib/strndup.c: Likewise.
82694         * lib/strnlen.c: New file, from glibc.
82695
82696 2000-05-03  Jim Meyering  <meyering@lucent.com>
82697
82698         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
82699
82700 2000-05-02  Paul Eggert  <eggert@twinsun.com>
82701
82702         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
82703         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
82704         compile-time test, rather than inspecting host and OS, to
82705         decide whether to define _LARGEFILE_SOURCE.
82706
82707 2000-05-01  Jim Meyering  <meyering@lucent.com>
82708
82709         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
82710
82711         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
82712         Based on a patch from Bruno Haible.
82713
82714 2000-05-01  Jim Meyering  <meyering@lucent.com>
82715
82716         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
82717
82718 2000-04-29  Jim Meyering  <meyering@lucent.com>
82719
82720         * lib/path-concat.c: Declare strdup only if it's not defined.
82721         * lib/canon-host.c: Likewise.
82722
82723 2000-04-28  Jim Meyering  <meyering@lucent.com>
82724
82725         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
82726         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
82727         is included first, then limits.h is included by locale.h by libintl.h.
82728         From John David Anglin.
82729
82730 2000-04-25  Jim Meyering  <meyering@lucent.com>
82731
82732         * lib/makepath.c (S_IRWXUGO): Define.
82733         (make_path): Always perform explicit chmod if MODE specifies any
82734         of the `special' permission bits.  Prompted by a bug report against
82735         install from Mate Wierdl and Joost van Baal.
82736
82737 2000-04-18  Jim Meyering  <meyering@lucent.com>
82738
82739         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
82740         (jm_PREREQ): Use it.
82741
82742 2000-04-18  Jim Meyering  <meyering@lucent.com>
82743
82744         * lib/README: New file.
82745
82746         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
82747         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
82748
82749 2000-04-17  Jim Meyering  <meyering@lucent.com>
82750
82751         Get it right :-)
82752         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
82753         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
82754         Suggestion from Akim Demaille.
82755
82756 2000-04-17  Jim Meyering  <meyering@lucent.com>
82757
82758         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
82759         the definition of it to rpl_strftime also defined-away the system's
82760         declaration.
82761
82762 2000-04-15  Jim Meyering  <meyering@lucent.com>
82763
82764         Use `C' to denote so-called `contiguous' files, the same way
82765         that tar does.
82766         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
82767         (ftypelet): Use S_ISCTG.
82768         From Michael Deutschmann.
82769
82770 2000-04-14  Jim Meyering  <meyering@lucent.com>
82771
82772         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
82773         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
82774         clobbered.
82775
82776 2000-04-14  Jim Meyering  <meyering@lucent.com>
82777
82778         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
82779
82780 2000-04-13  Jim Meyering  <meyering@lucent.com>
82781
82782         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
82783         AH_VERBATIM to insert required #ifndef into config.h.in.
82784         Suggestion from Akim Demaille.
82785
82786 2000-04-12  Jim Meyering  <meyering@lucent.com>
82787
82788         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
82789         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
82790         Christian Krackowizer.
82791
82792         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
82793         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
82794         (AC_SYS_LARGEFILE): Require.
82795         (AM_C_PROTOTYPES): Require.
82796
82797 2000-04-08  Jim Meyering  <meyering@lucent.com>
82798
82799         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
82800         names don't conflict.  Reported by Eli Zaretskii.
82801
82802 2000-04-07  Jim Meyering  <meyering@lucent.com>
82803
82804         * lib/putenv.c: Move inclusion of errno.h so it follows that of
82805         sys/types.h, to work around system header problems on AIX 3.2.5.
82806         From Bruno Haible.
82807
82808 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
82809
82810         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
82811         bug.  Deal with the different error behavior of Irix iconv.
82812
82813 2000-04-05  Paul Eggert  <eggert@twinsun.com>
82814
82815         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
82816         IRIX if the installer said otherwise.
82817
82818 2000-04-05  Jim Meyering  <meyering@lucent.com>
82819
82820         Portability tweaks required for ultrix4.3.
82821         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
82822         (jm_CHECK_DECLS): Add getutent to the list of functions.
82823         (_jm_DECL_HEADERS): Add utmpx.h.
82824         From John David Anglin.
82825
82826         * m4/strftime.m4: Back out the 2000-04-02 change.
82827         Instead of that change, simply undefine putenv in the test program.
82828
82829 2000-04-05  Jim Meyering  <meyering@lucent.com>
82830
82831         Portability tweaks required for ultrix4.3.
82832         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
82833         getutent.
82834         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
82835         * lib/canon-host.c: Declare strdup.
82836         * lib/path-concat.c: Likewise.
82837         From John David Anglin.
82838
82839 2000-04-04  Jim Meyering  <meyering@lucent.com>
82840
82841         Be more DOS 8.3-friendly.
82842         * lib/ref-add.sin: Renamed from ref-add.sed.in.
82843         * lib/ref-del.sin: Renamed from ref-del.sed.in.
82844         * lib/Makefile.am: Reflect renaming.
82845         Reported by Eli Zaretskii.
82846
82847         Use a temporary file name that won't clash with `charset.alias'
82848         in the DOS 8.3 name space.
82849         * lib/Makefile.am (charset_tmp): Define.
82850         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
82851         (uninstall-local): Likewise.
82852         Reported by Eli Zaretskii.
82853
82854 2000-04-03  Jim Meyering  <meyering@lucent.com>
82855
82856         * m4/gettext.m4: Fix typo in comment.
82857
82858         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
82859         textutils/configure.in).  Suggestion from Paul Eggert.
82860         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
82861
82862 2000-04-02  Paul Eggert  <eggert@twinsun.com>
82863
82864         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
82865         variable in the shell rather than using putenv, which isn't
82866         portable.  This avoids the configure-time inter-test dependency
82867         on the potentially-renamed putenv function.
82868
82869 2000-03-30  Paul Eggert  <eggert@twinsun.com>
82870
82871         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
82872         before checking struct stat.st_blksize, so that
82873         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
82874
82875 2000-03-29  Paul Eggert  <eggert@twinsun.com>
82876
82877         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
82878         since strftime.c uses HAVE_STRFTIME to decide whether to use
82879         the underlying strftime.
82880
82881 2000-03-29  Paul Eggert  <eggert@twinsun.com>
82882
82883         * lib/time/strftime.c (my_strftime): Make sure we call the system
82884         strftime, not ourselves, when invoking the underlying strftime.
82885
82886 2000-03-24  Jim Meyering  <meyering@lucent.com>
82887
82888         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
82889         (charset_alias): Define.
82890         (install-exec-local): Factor out common code.
82891         (uninstall-local): Split lines longer than 80.
82892         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
82893         (SUFFIXES): Define.
82894         (.sed.in.sed): New rule.  Don't redirect directly to $@.
82895         (CLEANFILES): Add ref-add.sed and ref-del.sed.
82896
82897 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
82898
82899         * lib/config.charset: Output a line containing "Packages using this
82900         file".
82901         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
82902         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
82903         ref-del.sed): New rules.
82904
82905 2000-03-17  Jim Meyering  <meyering@lucent.com>
82906
82907         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
82908         Otherwise, include <strings.h>
82909
82910 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
82911
82912         * lib/unicodeio.c (utf8_wctomb): New function.
82913         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
82914         format instead of in UCS-4 with platform dependent endianness.
82915
82916 2000-03-10  Jim Meyering  <meyering@lucent.com>
82917
82918         * m4/lib-check.m4: Look for getspnam in -lgen, too.
82919         From Marco Franzen.
82920
82921 2000-03-07  Paul Eggert  <eggert@twinsun.com>
82922
82923         * lib/savedir.c (savedir): Work even if directory size is
82924         negative; this can happen with some screwy NFS configurations.
82925
82926 2000-03-06  Jim Meyering  <meyering@lucent.com>
82927
82928         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
82929         if it's NULL (because we ran out of memory).  From Bruno Haible.
82930
82931 2000-03-05  Jim Meyering  <meyering@lucent.com>
82932
82933         * lib/localcharset.c ("path-concat.h"): Include.
82934         (get_charset_aliases): Use path_concat instead of ANSI string
82935         concatenation.
82936
82937         * lib/unicodeio.h (PARAMS): Define.
82938         Use it to guard prototype.
82939
82940 2000-03-04  Jim Meyering  <meyering@lucent.com>
82941
82942         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
82943         for lib/localcharset.c.
82944
82945 2000-03-04  Jim Meyering  <meyering@lucent.com>
82946
82947         * lib/Makefile.am (install-exec-local): Create $(libdir) before
82948         installing into it.
82949         (uninstall-local): Uncomment this rule so `make distcheck' works
82950         once again.
82951
82952         * lib/unicodeio.c (<errno.h>): Include it.
82953         (errno): Declare if not defined.
82954
82955         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
82956
82957         * lib/config.charset: New version, incorporating remarks from a linux
82958         i18n mailing list.  From Bruno Haible.
82959
82960 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
82961
82962         * m4/codeset.m4: New file.
82963         * m4/iconv.m4: New file.
82964         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
82965
82966 2000-03-03  Jim Meyering  <meyering@lucent.com>
82967
82968         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
82969
82970 2000-03-02  Jim Meyering  <meyering@lucent.com>
82971
82972         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
82973         the messages come out on separate lines.
82974
82975         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
82976         rather than jm_CHECK_DECLARATIONS.
82977         * m4/decl.m4: Remove now-unused file.
82978
82979         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
82980         geteuid.
82981
82982 2000-03-02  Jim Meyering  <meyering@lucent.com>
82983
82984         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
82985
82986 2000-03-01  Jim Meyering  <meyering@lucent.com>
82987
82988         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
82989         * lib/unicodeio.c: Likewise.
82990
82991 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
82992
82993         * lib/config.charset: New file.
82994         * lib/localcharset.c: New file.
82995         * lib/unicodeio.h, lib/unicodeio.c: New files.
82996         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
82997         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
82998         (noinst_HEADERS): Add unicodeio.h.
82999         (all-local, install-exec-local, charset.alias): New targets.
83000
83001 2000-02-28  Paul Eggert  <eggert@twinsun.com>
83002
83003         * lib/quotearg.c (ALERT_CHAR): New macro.
83004         (quotearg_buffer_restyled): Use it.
83005
83006 2000-02-27  Jim Meyering  <meyering@lucent.com>
83007
83008         * m4/check-decl.m4: Add getenv to the list.
83009
83010 2000-02-27  Jim Meyering  <meyering@lucent.com>
83011
83012         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
83013         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
83014
83015         * lib/backupfile.c: Guard inclusion of stdlib.h with
83016         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
83017         Declare malloc if needed.
83018
83019         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
83020         `#ifndef HAVE_DECL..'
83021         now that autoconf always defines the HAVE_DECL_ symbols.
83022         * lib/human.c: Likewise.
83023         * lib/same.c: Likewise.
83024         * lib/strtoumax.c: Likewise.
83025
83026         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
83027         declaration check was not run.
83028         * lib/hash.c: Likewise.
83029         * lib/human.c: Likewise.
83030         * lib/same.c: Likewise.
83031         * lib/strtoumax.c: Likewise.
83032
83033         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
83034         `.', then first look up the entire `.'-containing string as a login
83035         name.
83036
83037 2000-02-23  Jim Meyering  <meyering@lucent.com>
83038
83039         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
83040         in place of my hack.
83041
83042 2000-02-18  Paul Eggert  <eggert@twinsun.com>
83043
83044         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
83045         (textint): New typedef.
83046         (parser_control): Member year changed from int to textint.
83047         All uses changed.
83048         (YYSTYPE): Removed; replaced by %union with int and textint members.
83049         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
83050         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
83051         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
83052         (tSNUMBER, tUNUMBER): Now of type <textintval>.
83053         (date, number, to_year): Use width of number in digits, not its value,
83054         to determine whether it's a 2-digit year, or a 2-digit time.
83055         (yylex): Store number of digits of numeric tokens.
83056         Reported by John Kendall.
83057
83058         (parser_control): Changed from struct parser_control to typedef (for
83059         consistency).  All uses changed.
83060
83061         (tID): Removed; not used.
83062         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
83063
83064 2000-02-14  Paul Eggert  <eggert@twinsun.com>
83065
83066         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
83067         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
83068
83069 2000-02-12  Jim Meyering  <meyering@lucent.com>
83070
83071         * lib/userspec.c (ISDIGIT): Define it.
83072         (isdigit): Remove definition.
83073         (is_number): Use ISDIGIT, not isdigit.
83074         <libintl.h>: Include.
83075         (_ and N_): Define.
83076         (parse_user_spec): Mark translatable strings.
83077
83078 2000-02-10  Jim Meyering  <meyering@lucent.com>
83079
83080         With these changes, nanosleep.[ch] are finally enough like the other
83081         lib/* replacement files to compile on a few more losing systems.
83082
83083         * lib/nanosleep.h: Don't include config.h.
83084         Remove prototype from declaration of nanosleep.
83085         (PARAMS): Remove now-unneeded definition.
83086         * lib/nanosleep.c: #undef nanosleep.
83087         (rpl_nanosleep): Rename from nanosleep.
83088
83089 2000-02-10  Jim Meyering  <meyering@lucent.com>
83090
83091         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
83092         gnu_nanosleep to rpl_nanosleep.
83093
83094 2000-02-09  Jim Meyering  <meyering@lucent.com>
83095
83096         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
83097         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
83098
83099 2000-02-08  Akim Demaille  <akim@epita.fr>
83100
83101         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
83102         `[' and `]' and remove uses of `changequote'.
83103         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
83104         (AC_SYS_LARGEFILE): Likewise.
83105         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
83106         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
83107         of changequote.
83108         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
83109         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
83110         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
83111         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
83112
83113 2000-02-05  Jim Meyering  <meyering@lucent.com>
83114
83115         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
83116         Remove explicit use of AC_HEADER_TIME.  It is required by
83117         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
83118         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
83119         in autoconf whereby the expansion of the latter ended up preceding
83120         the expansion of its prerequisite, AC_HEADER_TIME.
83121         Reported by Volker Borchert.
83122
83123 2000-02-03  Jim Meyering  <meyering@lucent.com>
83124
83125         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
83126
83127 2000-02-03  Jim Meyering  <meyering@lucent.com>
83128
83129         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
83130         rather than with `#if HAVE_UTMPNAME'.
83131
83132 2000-02-02  Jim Meyering  <meyering@lucent.com>
83133
83134         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
83135         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
83136         Reported by Eli Zaretskii.
83137
83138 2000-02-01  Jim Meyering  <meyering@lucent.com>
83139
83140         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
83141
83142 2000-01-31  Jim Meyering  <meyering@lucent.com>
83143
83144         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
83145         functions.  Add the time.h and sys/time.h headers along with the
83146         AC_REQUIRE'ment of AC_HEADER_TIME.
83147
83148 2000-01-31  Jim Meyering  <meyering@lucent.com>
83149
83150         * lib/nanosleep.h (nanosleep): Guard declaration with
83151         `#if ! HAVE_DECL_NANOSLEEP'.
83152         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
83153         the declaration in that vendor's sys/timers.h.
83154         Reported by Christian Krackowizer.
83155
83156         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
83157         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
83158         (ISPRINT): Likewise.
83159         Reported by Tom Tromey.
83160
83161 2000-01-30  Jim Meyering  <meyering@lucent.com>
83162
83163         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
83164
83165         * m4/prereq.m4 (utmp_includes): Define.
83166         Check for ut_user and ut_name members in both struct utmpx
83167         and struct utmp.
83168
83169 2000-01-30  Jim Meyering  <meyering@lucent.com>
83170
83171         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
83172         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
83173         header files where only utmpx.ut_user is declared.
83174
83175         * lib/readutmp.h (UT_USER): Define.
83176
83177 2000-01-29  Jim Meyering  <meyering@lucent.com>
83178
83179         * m4/lib-check.m4: New file containing library-related checks from
83180         fileutils and sh-utils (textutils had none).
83181
83182 2000-01-28  Jim Meyering  <meyering@lucent.com>
83183
83184         * m4/perl.m4: Change format of warning message to look more like that
83185         from the missing script.  Suggestion from François Pinard.
83186
83187 2000-01-25  Jim Meyering  <meyering@lucent.com>
83188
83189         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
83190         well as time.h in the compile check.
83191         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
83192         Fix typo in cross-compiling case: s/yes/no/.
83193
83194 2000-01-23  Jim Meyering  <meyering@lucent.com>
83195
83196         * m4/jm-macros.m4: Move df-related tests here from
83197         fileutils/configure.in
83198
83199         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
83200         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
83201
83202         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
83203         s/space/ac_fsusage_space/.
83204         (jm_FILE_SYSTEM_USAGE): Take two parameters.
83205
83206         * m4/ftruncate.m4: New file (derived from part of
83207         fileutils/configure.in).
83208         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
83209         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
83210
83211         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
83212         AC_SUBST these here, rather than just in sh-util/configure.in, so
83213         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
83214         all the same.
83215         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
83216         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
83217         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
83218         (AC_SUBST(POW_LIBM)): Likewise.
83219         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
83220
83221 2000-01-23  Jim Meyering  <meyering@lucent.com>
83222
83223         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
83224         obstack.c.
83225
83226 2000-01-22  Jim Meyering  <meyering@lucent.com>
83227
83228         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
83229
83230         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
83231
83232         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
83233         configure.in
83234         (AC_CHECK_HEADERS): Likewise for sh-utils.
83235         (AC_CHECK_HEADERS): Likewise for textutils.
83236         Merge the three lists of headers.
83237
83238         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
83239         from fileutils' configure.in.
83240
83241         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
83242         code. Moved tests into their own function (_jm_DECL_HEADERS) in
83243         check-decl.m4.
83244
83245         * m4/check-decl.m4: Use #if rather than #ifdef.
83246         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
83247         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
83248         (_jm_DECL_HEADERS): Define new function.
83249         (jm_CHECK_DECLARATIONS): Require it.
83250
83251 2000-01-22  Jim Meyering  <meyering@lucent.com>
83252
83253         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
83254         [! HAVE_DECL_STRTOULL]: Declare strtoull.
83255         Required for some AIX systems.  Reported by Christian Krackowizer.
83256         [TESTING] (main): New function.
83257
83258         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
83259         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
83260         letters.
83261
83262         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
83263         iswprint.
83264
83265         * lib/strverscmp.c (ISDIGIT): Define.
83266         (strverscmp): Use ISDIGIT, not isdigit.
83267
83268 2000-01-19  Jim Meyering  <meyering@lucent.com>
83269
83270         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
83271         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
83272         defines `struct timespec' in <sys/time.h>
83273
83274         * m4/c-bs-a.m4: Remove uses of changequote altogether.
83275         Thanks to Akim for explaining.
83276
83277 2000-01-17  Paul Eggert  <eggert@twinsun.com>
83278
83279         * lib/nanosleep.c (nanosleep):
83280         Don't use SA_INTERRUPT to decide whether to call sigaction, as
83281         POSIX.1 doesn't require SA_INTERRUPT and some systems
83282         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
83283         it's been part of POSIX.1 since day 1 (in 1988).
83284
83285 2000-01-17  Jim Meyering  <meyering@lucent.com>
83286
83287         * lib/interlock: Remove unused file.  Reported by François Pinard.
83288
83289 2000-01-16  Paul Eggert  <eggert@twinsun.com>
83290
83291         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
83292         alert, backslash, formfeed, and vertical tab unnecessarily in
83293         shell quoting style.
83294
83295 2000-01-16  Jim Meyering  <meyering@lucent.com>
83296
83297         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
83298         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
83299         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
83300         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
83301
83302 2000-01-16  Jim Meyering  <meyering@lucent.com>
83303
83304         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
83305         because the latter didn't work.
83306
83307 2000-01-15  Jim Meyering  <meyering@lucent.com>
83308
83309         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
83310         (AC_REPLACE_FUNCS): Add memcpy and memset.
83311         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
83312         Add strpbrk.
83313         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
83314
83315 2000-01-12  Jim Meyering  <meyering@lucent.com>
83316
83317         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
83318         (jm_PREREQ): Use it.
83319         (jm_PREREQ_READUTMP): New macro.
83320         (jm_PREREQ): Use it.
83321
83322 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83323
83324         Quote multibyte characters correctly.
83325         * m4/c-bs-a.m4: New file.
83326         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
83327         (jm_PREREQ): Use it.
83328
83329 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83330
83331         * m4/uintmax_t.m4: Port to autoconf 2.13.
83332
83333 2000-01-08  Jim Meyering  <meyering@ascend.com>
83334
83335         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
83336         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
83337
83338 2000-01-04  Jim Meyering  <meyering@ascend.com>
83339
83340         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
83341         jm_STRUCT_DIRENT_D_TYPE.
83342         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
83343         jm_STRUCT_DIRENT_D_INO.
83344         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
83345         jm_STRUCT_UTIMBUF.
83346         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
83347         renamings.
83348         * m4/utime.m4: Likewise.
83349
83350         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
83351         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
83352
83353 2000-01-03  Paul Eggert  <eggert@twinsun.com>
83354
83355         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
83356         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
83357
83358 2000-01-02  Jim Meyering  <meyering@ascend.com>
83359
83360         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
83361         remember if this is necessary.
83362
83363 1999-12-26  Jim Meyering  <meyering@ascend.com>
83364
83365         * m4/jm-macros.m4: Use it here.
83366         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
83367
83368 1999-12-23  Jim Meyering  <meyering@ascend.com>
83369
83370         * m4/jm-macros.m4: Check for clock_gettime (moved from
83371         fileutils/configure.in)
83372         Check for gettimeofday.
83373
83374 1999-12-20  Jim Meyering  <meyering@ascend.com>
83375
83376         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
83377         autoconf-2.14a-1999-12-20.
83378
83379 1999-12-19  Jim Meyering  <meyering@ascend.com>
83380
83381         * m4/lstat-slash.m4: New file.
83382         * m4/jm-macros.m4: Use the new macro:
83383         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83384
83385 1999-12-07  Jim Meyering  <meyering@ascend.com>
83386
83387         * m4/perl.m4: Require that File::Compare be available, too.
83388         Too many systems seem to lack it.
83389
83390         * m4/strftime.m4: Add checks for most of the cpp macros tested in
83391         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
83392
83393 1999-11-18  Paul Eggert  <eggert@twinsun.com>
83394
83395         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
83396         problem with the QNX 4.25 shell, which doesn't propagate exit
83397         status of failed commands inside shell assignments.
83398
83399 1999-11-17  Jim Meyering  <meyering@ascend.com>
83400
83401         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
83402
83403 1999-11-07  Jim Meyering  <meyering@ascend.com>
83404
83405         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
83406
83407 1999-11-06  Jim Meyering  <meyering@ascend.com>
83408
83409         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
83410         * m4/jm-macros.m4 (jm_MACROS): Use it here.
83411
83412 1999-11-05  Jim Meyering  <meyering@ascend.com>
83413
83414         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
83415         configure.in of textutils, fileutils, and sh-utils into this one
83416         (shared between those packages) file.
83417         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
83418         AC_STRUCT_ST_BLKSIZE.
83419
83420 1999-11-03  Jim Meyering  <meyering@ascend.com>
83421
83422         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
83423         of AC_CHECK_TYPE checks includes unistd.h.
83424         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
83425         Suggestion from Akim Demaille.
83426
83427 1999-10-30  Jim Meyering  <meyering@ascend.com>
83428
83429         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
83430         m4-quoted string.
83431         * m4/ls-mntd-fs.m4: Likewise.
83432         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
83433         * m4/jm-winsz1.m4: Likewise.
83434
83435         * m4/const.m4: Remove file, since the fix made it into the experimental
83436         version of autoconf.
83437         * m4/mktime.m4: Likewise.
83438
83439         * m4/check-type.m4: Remove file, now that the latest version of
83440         AC_CHECK_TYPE takes a third arg to specify additional #includes.
83441
83442         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
83443         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
83444         AC_CHECK_TYPE.
83445
83446 1999-10-04  Jim Meyering  <meyering@ascend.com>
83447
83448         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
83449
83450 1999-09-22  Paul Eggert  <eggert@twinsun.com>
83451
83452         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
83453         2.95.1 bug with HP-UX 10.20.
83454
83455 1999-09-17  Jim Meyering  <meyering@ascend.com>
83456
83457         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
83458         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
83459         due to missing strdup (against sh-utils-2.0).
83460
83461 1999-08-29  Jim Meyering  <meyering@ascend.com>
83462
83463         * m4/jm-macros.m4: Require jm_BISON.
83464         * m4/bison.m4: New file.
83465
83466 1999-08-17  Paul Eggert  <eggert@twinsun.com>
83467
83468         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
83469         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
83470
83471 1999-08-05  Jim Meyering  <meyering@ascend.com>
83472
83473         * m4/getline.m4: Rename test file from conftestdata to conftest.data
83474         to avoid conflicts with `conftest' on 8+3 filesystems.
83475         Suggestion from Eli Zaretskii.
83476
83477 1999-08-04  Jim Meyering  <meyering@ascend.com>
83478
83479         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
83480         fileutils and sh-utils (textutils's getline test was inadequate).
83481         (AM_FUNC_GETLINE): Run this test.
83482         (AC_CHECK_FUNCS): Check for getdelim.
83483         Reported by Bob Proulx.
83484
83485 1999-08-02  Jim Meyering  <meyering@ascend.com>
83486
83487         * m4/jm-macros.m4: Add a comment.
83488
83489 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83490
83491         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
83492         <inttypes.h> defines strtoumax as a macro (and not as a
83493         function).
83494
83495 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83496
83497         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
83498         that we can shift, multiply and divide unsigned long long
83499         values; Ultrix cc can't do it.
83500
83501 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83502
83503         * m4/mktime.m4: New file, which is a preview of what should appear
83504         in the next public autoconf release.
83505
83506 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83507
83508         * m4/lfs.m4: Remove this file.
83509         * m4/largefile.m4: New file.  It contains the old contents of
83510         lfs.m4, except that all names with prefix AC_LFS have been
83511         changed to use the prefix AC_SYS_LARGEFILE instead, to be
83512         compatible with future autoconf versions.  Also, some minor m4
83513         quoting problems have been fixed.
83514
83515 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83516
83517         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
83518         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
83519         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
83520         and simplify the shell code.
83521
83522 1999-08-01  Jim Meyering  <meyering@ascend.com>
83523
83524         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
83525         m4.
83526
83527 1999-07-20  Jim Meyering  <meyering@ascend.com>
83528
83529         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
83530
83531 1999-07-15  Jim Meyering  <meyering@ascend.com>
83532
83533         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
83534
83535 1999-05-22  Jim Meyering  <meyering@ascend.com>
83536
83537         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
83538
83539 1999-05-20  Jim Meyering  <meyering@ascend.com>
83540
83541         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
83542         Add a colon after each `then' in case $4 is empty.
83543
83544 1999-05-16  Jim Meyering  <meyering@ascend.com>
83545
83546         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
83547
83548 1999-05-10  Jim Meyering  <meyering@ascend.com>
83549
83550         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
83551
83552         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
83553         AC_FUNC_MKTIME.
83554
83555 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
83556
83557         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
83558
83559 1999-05-04  Paul Eggert  <eggert@twinsun.com>
83560
83561         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
83562         not CPPFLAGS, so that linking works correctly in IRIX.
83563
83564 1999-04-30  Paul Eggert  <eggert@twinsun.com>
83565
83566         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
83567
83568 1999-04-20  Paul Eggert  <eggert@twinsun.com>
83569
83570         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
83571         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
83572         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
83573         jm_AC_TYPE_UNSIGNED_LONG_LONG.
83574         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
83575
83576         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
83577
83578 1999-04-20  Jim Meyering  <meyering@ascend.com>
83579
83580         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
83581         AC_REPLACE xstroull if necessary.  From Paul Eggert.
83582         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
83583
83584 1999-04-18  Jim Meyering  <meyering@ascend.com>
83585
83586         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
83587         * m4/jm-macros.m4: Use it.
83588
83589 1999-04-06  Jim Meyering  <meyering@ascend.com>
83590
83591         * m4/strftime.m4: Remove test for %f.
83592
83593 1999-03-29  Jim Meyering  <meyering@ascend.com>
83594
83595         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
83596         superset of the AC_TYPE_* checks in the textutils, fileutils,
83597         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
83598         AC_TYPE_PID_T.
83599
83600 1999-03-28  Jim Meyering  <meyering@ascend.com>
83601
83602         * m4/jm-macros.m4: Define GNU_PACKAGE here.
83603         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
83604         replaced e.g., in the *.sh files of the sh-utils.
83605
83606 1999-03-20  Jim Meyering  <meyering@ascend.com>
83607
83608         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
83609         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
83610         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
83611
83612 1999-03-19  Jim Meyering  <meyering@ascend.com>
83613
83614         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
83615
83616 1999-03-12  Jim Meyering  <meyering@ascend.com>
83617
83618         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
83619
83620 1999-03-07  Jim Meyering  <meyering@ascend.com>
83621
83622         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
83623         declared.
83624
83625 1999-02-17  Jim Meyering  <meyering@ascend.com>
83626
83627         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
83628         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
83629
83630 1999-02-07  Jim Meyering  <meyering@ascend.com>
83631
83632         * m4/group-member.m4: New file -- extracted from sh-utils'
83633         configure.in.
83634
83635         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
83636         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
83637
83638 1999-02-06  Jim Meyering  <meyering@ascend.com>
83639
83640         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
83641         * m4/fnmatch.m4: Likewise.
83642         * m4/getgroups.m4: Likewise.
83643         * m4/lstat.m4: Likewise.
83644         * m4/malloc.m4: Likewise.
83645         * m4/putenv.m4: Likewise.
83646         * m4/realloc.m4: Likewise.
83647         * m4/regex.m4: Likewise.
83648         * m4/stat.m4: Likewise.
83649         * m4/strftime.m4: Likewise.
83650         Suggestion from Alain Magloire.
83651
83652         * m4/chown.m4: Use `.$ac_objext', not `.o'.
83653         * m4/fnmatch.m4: Likewise.
83654         * m4/getgroups.m4: Likewise.
83655         * m4/getline.m4: Likewise.
83656         * m4/lstat.m4: Likewise.
83657         * m4/malloc.m4: Likewise.
83658         * m4/memcmp.m4: Likewise.
83659         * m4/putenv.m4: Likewise.
83660         * m4/realloc.m4: Likewise.
83661         * m4/regex.m4: Likewise.
83662         * m4/stat.m4: Likewise.
83663         * m4/strftime.m4: Likewise.
83664         Suggestion from Alain Magloire.
83665
83666         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
83667         an argument.
83668
83669         * m4/regex.m4: Add a run-time Test for proper operation of
83670         re_compile_pattern.
83671
83672 1999-01-31  Jim Meyering  <meyering@ascend.com>
83673
83674         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
83675
83676 1999-01-30  Jim Meyering  <meyering@ascend.com>
83677
83678         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
83679
83680         * m4/jm-mktime.m4: Make this a wrapper around the official
83681         AM_FUNC_MKTIME rather than my private copy, now that the official one
83682         is up to date.
83683         * m4/mktime.m4: Remove file.
83684
83685         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
83686         * m4/uptime.m4: Likewise.
83687         * m4/uintmax_t.m4: Likewise.
83688
83689 1999-01-28  Jim Meyering  <meyering@ascend.com>
83690
83691         * m4/jm-macros.m4: Use jm_AFS.
83692         * m4/afs.m4: New file (from fileutils' configure.in).
83693
83694         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
83695         * m4/chown.m4: Likewise.
83696         * m4/d-ino.m4: Likewise.
83697         * m4/d-type.m4: Likewise.
83698         * m4/fnmatch.m4: Likewise.
83699         * m4/getgroups.m4: Likewise.
83700         * m4/gettext.m4: Likewise.
83701         * m4/jm-mktime.m4: Likewise.
83702         * m4/jm-winsz2.m4: Likewise.
83703         * m4/lcmessage.m4: Likewise.
83704         * m4/ls-mntd-fs.m4: Likewise.
83705         * m4/malloc.m4: Likewise.
83706         * m4/memcmp.m4: Likewise.
83707         * m4/putenv.m4: Likewise.
83708         * m4/realloc.m4: Likewise.
83709         * m4/st_mtim.m4: Likewise.
83710         * m4/strftime.m4: Likewise.
83711
83712 1999-01-16  Jim Meyering  <meyering@ascend.com>
83713
83714         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
83715         (ARGMATCH_DIE_DECL): Define.
83716
83717 1999-01-12  Jim Meyering  <meyering@ascend.com>
83718
83719         * m4/Makefile.am.in: Rewrite to avoid using fmt.
83720         Reported by Lars Hecking.
83721
83722 1999-01-10  Jim Meyering  <meyering@ascend.com>
83723
83724         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
83725         gross kludge.
83726         * m4/inttypes_h.m4: Likewise.
83727         * m4/lstat.m4: Likewise.
83728         * m4/malloc.m4: Likewise.
83729         * m4/readdir.m4: Likewise.
83730         * m4/realloc.m4: Likewise.
83731         * m4/st_dm_mode.m4: Likewise.
83732         * m4/stat.m4: Likewise.
83733         * m4/utimbuf.m4: Likewise.
83734         * m4/utimes.m4: Likewise.
83735
83736         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
83737         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
83738         comments in config.h.in are meaningful.
83739
83740         * m4/jm-macros.m4: Require autoconf-2.13 here.
83741
83742         * m4/regex.m4: By default, don't use the included regex.c on systems
83743         with glibc 2.  Suggestion from Uli Drepper.
83744
83745 1999-01-02  Jim Meyering  <meyering@ascend.com>
83746
83747         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
83748
83749 1998-12-18  Jim Meyering  <meyering@ascend.com>
83750
83751         * m4/Makefile.am.in (Makefile.am): Simplify rule.
83752         Based on a suggestion from Lars Hecking.
83753
83754 1998-11-16  Paul Eggert  <eggert@twinsun.com>
83755
83756         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
83757
83758 1998-11-16  Jim Meyering  <meyering@ascend.com>
83759
83760         * m4/lfs.m4: Double-quote the `uname...` expression.
83761
83762 1998-11-14  Jim Meyering  <meyering@ascend.com>
83763
83764         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
83765         * m4/stat.m4: Likewise.
83766
83767 1998-11-03  Jim Meyering  <meyering@ascend.com>
83768
83769         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
83770         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
83771
83772 1998-10-18  Jim Meyering  <meyering@ascend.com>
83773
83774         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
83775
83776 1998-10-17  Jim Meyering  <meyering@ascend.com>
83777
83778         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
83779         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
83780         calls for those previously hard-coded headers.  Instead, take a new
83781         parameter.
83782         (jm_CHECK_DECLARATIONS): Reflect interface change.
83783         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
83784         (jm_CHECK_DECL_LOCALTIME_R): New macro.
83785
83786         * m4/mktime.m4: Test for spring-forward gap before long-running test.
83787
83788 1998-10-14  Jim Meyering  <meyering@ascend.com>
83789
83790         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
83791         instead of "TZ=America/Vancouver".  From Paul Eggert.
83792
83793 1998-10-11  Jim Meyering  <meyering@ascend.com>
83794
83795         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
83796         This adds a test for a recently added compatibility fix for mktime.c.
83797         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
83798
83799 1998-09-27  Jim Meyering  <meyering@ascend.com>
83800
83801         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
83802
83803         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
83804         ../configure.in, including a change from Gordon Matzigkeit to allow
83805         cross-compiling for the Hurd.
83806
83807         * m4/glibc.m4: New file/macro to test for the GNU C Library
83808         versions 1 and 2.  From Gordon Matzigkeit.
83809         Indent.
83810
83811 1998-09-21  Jim Meyering  <meyering@ascend.com>
83812
83813         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
83814
83815 1998-08-18  Paul Eggert  <eggert@twinsun.com>
83816
83817         Port nanosecond-resolution times to UnixWare 2.1.2 and
83818         pedantic Solaris 2.6.
83819
83820         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
83821         AC_STRUCT_ST_MTIM.
83822         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
83823         Generate name of ns member, instead of just 1 or undef.
83824         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
83825
83826 1998-08-15  Jim Meyering  <meyering@ascend.com>
83827
83828         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
83829         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
83830         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
83831         instead of jm_TYPE_SSIZE_T.
83832
83833 1998-08-12  Jim Meyering  <meyering@ascend.com>
83834
83835         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
83836
83837 1998-08-02  Jim Meyering  <meyering@ascend.com>
83838
83839         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
83840         in acconfig.h manually.
83841
83842 1998-07-31  Paul Eggert  <eggert@twinsun.com>
83843
83844         * m4/st_mtim.m4: New file.
83845
83846 1998-07-28  Jim Meyering  <meyering@ascend.com>
83847
83848         * m4/utimes.m4: Undef stat.
83849
83850 1998-07-25  Jim Meyering  <meyering@ascend.com>
83851
83852         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
83853         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
83854
83855 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
83856
83857         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
83858         uid and gid actually remain unchanged.
83859
83860 1998-07-07  Jim Meyering  <meyering@ascend.com>
83861
83862         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
83863
83864 1998-07-04  Jim Meyering  <meyering@ascend.com>
83865
83866         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
83867         to prove that this macro can be used in packages without regex.c.
83868
83869 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
83870
83871         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
83872         is to be used.
83873
83874 1998-07-03  Jim Meyering  <meyering@ascend.com>
83875
83876         * m4/gettext.m4: Add -lintl if it's found to be necessary.
83877
83878         * m4/gettext.m4: New file -- from gettext-0.10.35.
83879         * m4/lcmessage.m4: Likewise.
83880         * m4/progtest.m4: Likewise.
83881
83882         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
83883         * m4/jm-macros.m4: Require the new macro.
83884
83885 1998-06-29  Jim Meyering  <meyering@ascend.com>
83886
83887         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
83888         for the definition of NGROUPS (used in a system header included
83889         by sys/mount.h).
83890
83891 1998-06-28  Jim Meyering  <meyering@ascend.com>
83892
83893         * m4/ls-mntd-fs.m4: New file.
83894         * m4/fstypename.m4: New file.
83895
83896         * m4/jm-macros.m4: Require the new macro.
83897         * m4/jm-glibc-io.m4: New file.
83898
83899 1998-05-19  Jim Meyering  <meyering@ascend.com>
83900
83901         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
83902         * m4/lchown.m4: New file.
83903
83904         * m4/Makefile.am.in: New file.
83905         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
83906
83907 1998-05-14  Jim Meyering  <meyering@ascend.com>
83908
83909         * m4/Makefile.am (EXTRA_DIST): Add them.
83910         * m4/jm-macros.m4: New file.
83911         * m4/utimbuf.m4: New file.
83912
83913 1998-05-12  Jim Meyering  <meyering@ascend.com>
83914
83915         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
83916
83917 1998-05-11  Jim Meyering  <meyering@ascend.com>
83918
83919         * m4/isc-posix.m4: New file.
83920
83921 1998-05-10  Jim Meyering  <meyering@ascend.com>
83922
83923         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
83924
83925 1998-05-09  Jim Meyering  <meyering@ascend.com>
83926
83927         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
83928         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
83929         with automake.
83930
83931         * m4/ssize_t.m4: New file.
83932         * m4/mktime.m4: Remove file -- the new automake has this now.
83933
83934 1998-04-26  Jim Meyering  <meyering@ascend.com>
83935
83936         * m4/assert.m4: New file.
83937         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
83938
83939 1998-04-05  Jim Meyering  <meyering@ascend.com>
83940
83941         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
83942         (jm_PREREQ): Use it here.
83943
83944 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
83945
83946         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
83947         in acconfig.h.
83948
83949 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
83950
83951         * m4/prereq.m4: New file.
83952         * m4/error.m4: New file.
83953         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
83954
83955 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
83956
83957         * m4/getline.m4: Don't set am_cv_func_working_getline before the
83958         cache-check for the same variable -- that defeated the purpose of
83959         the test; the test program was never run.  This was a problem only
83960         on systems with losing getline functions -- HP-UX 10.20 is one.
83961         Reported by Bjorn Helgaas.
83962
83963 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
83964
83965         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
83966
83967 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
83968
83969         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
83970
83971         * m4/const.m4: New file.  Use an initializer in this declaration
83972         typedef int charset[2]; const charset x;
83973         Reported by Bob Glickstein.
83974
83975 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
83976
83977         * m4/chown.m4: Fix reversed types on -1 args to chown.
83978         From Kaveh Ghazi.
83979
83980 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
83981
83982         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
83983         Add lseek and memchr.
83984
83985         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
83986         T.E.Dickey <dickey@clark.net> said that some older preprocessors
83987         have a 20-character limit on names.
83988
83989 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
83990
83991         * m4/inttypes_h.m4: New file.
83992         * m4/uintmax_t.m4: New file.
83993         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
83994
83995
83996         -----
83997
83998         Local Variables:
83999         coding: utf-8
84000         End:
84001
84002         Copyright (C) 1997-2011 Free Software Foundation, Inc.
84003
84004         Copying and distribution of this file, with or without
84005         modification, are permitted provided the copyright notice
84006         and this notice are preserved.